Skip to content

chore(ui): account for nested code elements - #9028

Open
avivkeller wants to merge 2 commits into
mainfrom
fix-ui-hydration
Open

chore(ui): account for nested code elements#9028
avivkeller wants to merge 2 commits into
mainfrom
fix-ui-hydration

Conversation

@avivkeller

@avivkeller avivkeller commented Jul 28, 2026

Copy link
Copy Markdown
Member

@avivkeller
avivkeller requested a review from a team as a code owner July 28, 2026 18:28
Copilot AI review requested due to automatic review settings July 28, 2026 18:28
@vercel

vercel Bot commented Jul 28, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
nodejs-org Ready Ready Preview Jul 29, 2026 3:45pm

Request Review

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@cursor

cursor Bot commented Jul 28, 2026

Copy link
Copy Markdown

PR Summary

Low Risk
CSS-only selector change in a presentational component with no auth, data, or API impact.

Overview
BaseCodeBox styling no longer assumes code is a direct child of the pre content area. Selectors in index.module.css were relaxed from .content > code to .content code (including the no-line-numbers line rules) so typography, line numbers, and grid layout still apply when doc rendering inserts a wrapper between pre and code—addressing a hydration mismatch noted in doc-kit.

A patch changeset for @node-core/ui-components documents the fix.

Reviewed by Cursor Bugbot for commit 33f10b7. Bugbot is set up for automated code reviews on this repo. Configure here.

@codecov

codecov Bot commented Jul 28, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 75.09%. Comparing base (c086c54) to head (33f10b7).
⚠️ Report is 6 commits behind head on main.
✅ All tests successful. No failed tests found.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #9028      +/-   ##
==========================================
- Coverage   75.10%   75.09%   -0.02%     
==========================================
  Files         102      102              
  Lines        9109     9109              
  Branches      372      373       +1     
==========================================
- Hits         6841     6840       -1     
- Misses       2264     2265       +1     
  Partials        4        4              

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes using default effort and found 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit a9304fc. Configure here.

Comment thread packages/ui-components/src/Common/BaseCodeBox/index.module.css
@github-actions

github-actions Bot commented Jul 28, 2026

Copy link
Copy Markdown
Contributor

📦 Build Size Comparison

Summary

Metric Value
Old Total First Load JS 10.65 MB
New Total First Load JS 10.66 MB
Delta 3.73 KB (+0.03%)

Changes

🔄 Modified Routes (4)
Route Old First Load JS New First Load JS Delta
/[locale] 2.54 MB 2.54 MB 📈 954.00 B (+0.04%)
/[locale]/[...path] 2.54 MB 2.54 MB 📈 954.00 B (+0.04%)
/[locale]/blog/[...path] 2.54 MB 2.54 MB 📈 954.00 B (+0.04%)
/[locale]/download/archive/[version] 2.54 MB 2.54 MB 📈 954.00 B (+0.04%)

Signed-off-by: Aviv Keller <me@aviv.sh>
Copilot AI review requested due to automatic review settings July 29, 2026 15:44

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants