lint/unknown and static #13366
main fromrefs/pull/13366/head·merged by juliusmarminge View on GitHubTurns on two more @shadcn/lint rules as errors: no-unknown-classes and require-static-classes. It fixes everything they found.
no-unknown-classes (16):
- Four classes that generated no CSS, so they silently did nothing:
font-headingon the Dialog, AlertDialog, Sheet and Empty titles. It was never declared, so the titles already use the body font; it's removed.transition-shadowson ScrollArea, a typo fortransition-shadow. Its focus shadow now animates.bg-codeon the worktree setup output. The code surface token existed but was never exposed to Tailwind, so the output had no background.--color-codeand--color-code-foregroundnow are, and the output picks up the code-block surface.
- Plain classes used as JS or test hooks become
data-*attributes:thread-terminal-drawer,provider-update-main,stage-artandchat-markdown-artifact-template. electron-drag-region: a zero-height strip with no CSS behind it, so it did nothing. Removed.
require-static-classes (11): every className built at runtime on a ui component is now a static string that no-restyle can read.
- Written out as literal classes: the diff skeleton widths, the PR row label visibility and the right-panel sheet width.
CommandPaletteContent:panelClassNamebecomespanelSize="list" | "tall-list" | "fill".- PR state colours move from Badge and InlineButton onto the text inside them.
- The legacy sidebar's thread row is its own element with its own classes, instead of a
SidebarMenuSubButtonrestyled with a class string built at runtime. - Two restyles that
no-restylecould not see before are now fixed:- The stage-artwork sidebar trigger's ring offset.
media-navigationnow draws a transparent ring offset for any control over imagery. p-0on the right-panel sheet. Sheet has no padding to remove, so nothing changes.
- The stage-artwork sidebar trigger's ring offset.
The only visible changes are the setup output's background and the ScrollArea focus transition.
First layer of a stack that also turns on no-raw-colors and no-arbitrary-values.
Claude Opus 5.5 via Claude Code.
🤖 Generated with Claude Code
Summary by CodeRabbit#
- Improvements
- Command palettes now offer consistent list, taller-list, and fill-height layouts across search and picker dialogs.
- Pull request rows display labels more responsively as space allows.
- Updated focus indicators and status styling for clearer visual feedback.
- Code blocks now have dedicated theme color tokens.
- Maintenance
- Refined styling and accessibility hooks across navigation, dialogs, and panels.
- 1
github-actions[bot](GitHub profile, opens in a new tab) added labelssize:L
github-actions[bot](GitHub profile, opens in a new tab) added labelsvouch:trusted
Navigate logical layers of code changes, visualize relationships, and explore their blast radius.
Important
Review skipped#
Review was skipped as selected files did not have any reviewable changes.
⚙️ Run configuration
Configuration used: Repository: pingdotgg/t3code/.coderabbit.yaml
Review profile: CHILL
Plan: Team
Run ID:
63fa2569-7115-429d-8a05-ddd4b2c071fe📥 Commits
Reviewing files that changed from the base of the PR and between c5aa11ff18b6f70c5ae9f1bb5dc23a7ba7f81da4 and c5aa11ff18b6f70c5ae9f1bb5dc23a7ba7f81da4.
You can disable this status message by setting the
reviews.review_statustofalsein the CodeRabbit configuration file.Use the checkbox below for a quick retry:
- 🔍 Trigger review
No actionable comments were generated in the recent review. 🎉
ℹ️ Recent review info
⚙️ Run configuration
Configuration used: Repository: pingdotgg/t3code/.coderabbit.yaml
Review profile: CHILL
Plan: Team
Run ID:
89ce7c66-c692-44be-96ea-e5e7c754c42c📥 Commits
Reviewing files that changed from the base of the PR and between e67abcf798f8c4d8458755e3b4dde02c2c1f628b and c5aa11ff18b6f70c5ae9f1bb5dc23a7ba7f81da4.
📒 Files selected for processing (32)
apps/web/src/components/AppSidebarLayout.tsxapps/web/src/components/ChatMarkdown.test.tsxapps/web/src/components/ChatMarkdown.tsxapps/web/src/components/CommandPalette.tsxapps/web/src/components/CommandPaletteContent.tsxapps/web/src/components/DiffPanelShell.tsxapps/web/src/components/LegacySidebar.tsxapps/web/src/components/RightPanelSheet.tsxapps/web/src/components/Sidebar.logic.test.tsapps/web/src/components/Sidebar.logic.tsapps/web/src/components/SidebarStageBackdrop.tsxapps/web/src/components/ThreadTerminalDrawer.tsxapps/web/src/components/diffs/DiffFileLoadingBoundary.tsxapps/web/src/components/files/ProjectFilePicker.tsxapps/web/src/components/onboarding/WelcomeWizard.tsxapps/web/src/components/preview/PreviewPanelShell.tsxapps/web/src/components/pullRequest/PullRequestDetailPanel.tsxapps/web/src/components/pullRequest/PullRequestGhosts.tsxapps/web/src/components/pullRequest/PullRequestRow.tsxapps/web/src/components/search/ProjectContentSearchDialog.tsxapps/web/src/components/settings/ProjectFaviconPickerDialog.tsxapps/web/src/components/sidebar/SidebarChrome.tsxapps/web/src/components/sidebar/SidebarProviderUpdatePill.tsxapps/web/src/components/ui/alert-dialog.tsxapps/web/src/components/ui/button.tsxapps/web/src/components/ui/dialog.tsxapps/web/src/components/ui/empty.tsxapps/web/src/components/ui/scroll-area.tsxapps/web/src/components/ui/sheet.tsxapps/web/src/index.cssapps/web/src/rightPanelLayout.tsvite.config.ts
💤 Files with no reviewable changes (5)
- apps/web/src/components/CommandPalette.tsx
- apps/web/src/components/preview/PreviewPanelShell.tsx
- apps/web/src/components/Sidebar.logic.ts
- apps/web/src/components/Sidebar.logic.test.ts
- apps/web/src/rightPanelLayout.ts
Included review availability: Your plan provides up to 10 included reviews per hour; 8 remain after this review.
📝 Walkthrough
Walkthrough#
This pull request updates web component sizing options, sidebar and DOM styling hooks, and several UI presentation details. It also adds web lint rules for unknown and non-static classes.
Changes#
Web UI updates
Layer / File(s) Summary Static class rules and UI styles
vite.config.ts,apps/web/src/index.css,apps/web/src/components/ui/*The web lint configuration adds checks for unknown and non-static classes. UI title classes and a scroll transition class change, and the theme adds code color tokens. The media-navigation button adds a transparent focus-ring offset. Panel sizing options and callers
apps/web/src/components/CommandPalette*.tsx,apps/web/src/components/RightPanelSheet.tsx,apps/web/src/rightPanelLayout.ts,apps/web/src/components/files/ProjectFilePicker.tsx,apps/web/src/components/search/ProjectContentSearchDialog.tsx,apps/web/src/components/settings/ProjectFaviconPickerDialog.tsxCommand palette panels use list,tall-list, orfillsizing options instead of caller-provided classes. Call sites select the corresponding options. The right-panel sheet styles move inline, and the shared sheet class constant is removed.Diff skeleton width presets
apps/web/src/components/DiffPanelShell.tsx,apps/web/src/components/diffs/DiffFileLoadingBoundary.tsxDiff skeletons use short, medium, and long width presets. The loading boundary selects the medium title preset. Sidebar rendering and DOM hooks
apps/web/src/components/LegacySidebar.tsx,apps/web/src/components/Sidebar.logic.ts,apps/web/src/components/Sidebar.logic.test.ts,apps/web/src/components/AppSidebarLayout.tsx,apps/web/src/components/sidebar/*,apps/web/src/components/SidebarStageBackdrop.tsx,apps/web/src/components/ThreadTerminalDrawer.tsx,apps/web/src/components/onboarding/WelcomeWizard.tsx,apps/web/src/components/ChatMarkdown.tsx,apps/web/src/components/ChatMarkdown.test.tsxThe thread row is rendered as a focusable div, and its class composition moves to the render site. Sidebar focus-offset logic is removed. Several styling selectors and test assertions switch from identifying classes to data attributes.Preview and pull-request presentation
apps/web/src/components/preview/PreviewPanelShell.tsx,apps/web/src/components/pullRequest/*The preview panel no longer renders an Electron drag-region element. Pull-request badge tone, accessible labeling, and label-pill visibility are applied through updated markup and classes. Priority: ⬇️ Low
Estimated code review effort: 3 (Moderate) | ~25 minutes
Change: Refactor
Suggested reviewers:
maria-rcks,t3dotggMerge Risk: ⚪ Minimal · up to
c5aa1The supplied evidence identifies no actionable issue that would prevent merging after normal checks.
🚥 Pre-merge checks | ✅ 4 | ❌ 1
❌ Failed checks (1 warning)#
Check name Status Explanation Resolution Docstring Coverage ⚠️ Warning Docstring coverage is 13.79% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 29 functions across 26 files. (1 skipped:… Write docstrings for the functions missing them to satisfy the coverage threshold. ✅ Passed checks (4 passed)
Check name Status Explanation Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request. Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request. Title check ✅ Passed The title identifies the two lint-rule areas addressed by the pull request and matches its primary change. Description check ✅ Passed The description clearly explains the changes, rationale, affected lint rules, and visible UI effects. It omits the template headings, checklist, and requested before/after screenshots for UI changes, … Full details: Docstring Coverage
Explanation
Docstring coverage is 13.79% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 29 functions across 26 files. (1 skipped: 1 unsupported.)
✨ Finishing Touches 💡 1
📝 Generate docstrings 💡
- Commit to this branch
- Create a new PR
🧪 Generate unit tests (beta)
- Commit to this branch
- Create a new PR
Comment `@coderabbitai help` to get the list of available commands.macroscopeapp[bot](GitHub profile, opens in a new tab) approved these changes
Approvability#
Verdict: Approved at
c5aa11fMacroscope's review found this PR approvable — This is a localized lint-enablement and UI cleanup PR; its runtime effects are limited to a few small styling corrections and equivalent static/data-attribute refactors. It introduces no new capability, schema change, sensitive-area modification, or diagnostic suppression.
You can add or adjust custom eligibility rules. [Learn more](https://docs.macroscope.com/approvability#example-custom-eligibility-rules).juliusmarminge merged this80fc23a
juliusmarminge closed this
Sign in to join this conversation.
Thread transfer impact#
✅ Thread transfer remains within every enforced ceiling.
Baseline:
e67abcf· PR result:c5aa11f· Source CI: successScenario and decoded snapshot size
10 historical turns, 5 command tools per turn, 878.9 KiB retained MCP result per historical turn, and a 1.05 MiB retained result in the measured turn.
Updated in place by a trusted workflow. PR artifacts are strictly validated and never executed.