Skip to content
Source
Sign inSign up
pingdotgg/t3code

lint/unknown and static #13366

Mergedjuliusmarmingemerged 1 commit intomain fromrefs/pull/13366/headmerged by juliusmarminge View on GitHub

juliusmarmingecommented

Turns 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-heading on the Dialog, AlertDialog, Sheet and Empty titles. It was never declared, so the titles already use the body font; it's removed.
    • transition-shadows on ScrollArea, a typo for transition-shadow. Its focus shadow now animates.
    • bg-code on the worktree setup output. The code surface token existed but was never exposed to Tailwind, so the output had no background. --color-code and --color-code-foreground now 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-art and chat-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: panelClassName becomes panelSize="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 SidebarMenuSubButton restyled with a class string built at runtime.
  • Two restyles that no-restyle could not see before are now fixed:
    • The stage-artwork sidebar trigger's ring offset. media-navigation now draws a transparent ring offset for any control over imagery.
    • p-0 on the right-panel sheet. Sheet has no padding to remove, so nothing changes.

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 labelsvouch:trusted

    2. Thread transfer impact

      ✅ Thread transfer remains within every enforced ceiling.

      ProviderMetricMain baselineThis PRImpactPR ceiling
      CodexTotal thread wire13.5 KiB13.5 KiB+18 B (+0.1%)15.1 KiB✅
      CodexThread snapshot wire7.1 KiB7.1 KiB0 B (0.0%)7.3 KiB✅
      CodexLive turn WebSocket wire6.4 KiB6.4 KiB+18 B (+0.3%)7.8 KiB✅
      CodexLive turn WebSocket decoded56.2 KiB56.2 KiB0 B (0.0%)66.4 KiB✅
      CodexLive turn messages990 (0.0%)21✅
      ClaudeTotal thread wire13.5 KiB13.5 KiB+38 B (+0.3%)15.1 KiB✅
      ClaudeThread snapshot wire7.1 KiB7.1 KiB+9 B (+0.1%)7.3 KiB✅
      ClaudeLive turn WebSocket wire6.4 KiB6.5 KiB+29 B (+0.4%)7.8 KiB✅
      ClaudeLive turn WebSocket decoded57.0 KiB57.1 KiB+44 B (+0.1%)66.4 KiB✅
      ClaudeLive turn messages910+1 (+11.1%)21✅

      Baseline: e67abcf · PR result: c5aa11f · Source CI: success

      Scenario 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.

      • Codex decoded thread snapshot: 114.0 KiB
      • Claude decoded thread snapshot: 114.6 KiB

      Updated in place by a trusted workflow. PR artifacts are strictly validated and never executed.

    3. coderabbitai[bot](GitHub profile, opens in a new tab)commented
      Review in Change Stack →

      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_status to false in 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.tsx
      • apps/web/src/components/ChatMarkdown.test.tsx
      • apps/web/src/components/ChatMarkdown.tsx
      • apps/web/src/components/CommandPalette.tsx
      • apps/web/src/components/CommandPaletteContent.tsx
      • apps/web/src/components/DiffPanelShell.tsx
      • apps/web/src/components/LegacySidebar.tsx
      • apps/web/src/components/RightPanelSheet.tsx
      • apps/web/src/components/Sidebar.logic.test.ts
      • apps/web/src/components/Sidebar.logic.ts
      • apps/web/src/components/SidebarStageBackdrop.tsx
      • apps/web/src/components/ThreadTerminalDrawer.tsx
      • apps/web/src/components/diffs/DiffFileLoadingBoundary.tsx
      • apps/web/src/components/files/ProjectFilePicker.tsx
      • apps/web/src/components/onboarding/WelcomeWizard.tsx
      • apps/web/src/components/preview/PreviewPanelShell.tsx
      • apps/web/src/components/pullRequest/PullRequestDetailPanel.tsx
      • apps/web/src/components/pullRequest/PullRequestGhosts.tsx
      • apps/web/src/components/pullRequest/PullRequestRow.tsx
      • apps/web/src/components/search/ProjectContentSearchDialog.tsx
      • apps/web/src/components/settings/ProjectFaviconPickerDialog.tsx
      • apps/web/src/components/sidebar/SidebarChrome.tsx
      • apps/web/src/components/sidebar/SidebarProviderUpdatePill.tsx
      • apps/web/src/components/ui/alert-dialog.tsx
      • apps/web/src/components/ui/button.tsx
      • apps/web/src/components/ui/dialog.tsx
      • apps/web/src/components/ui/empty.tsx
      • apps/web/src/components/ui/scroll-area.tsx
      • apps/web/src/components/ui/sheet.tsx
      • apps/web/src/index.css
      • apps/web/src/rightPanelLayout.ts
      • vite.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.tsx
      Command palette panels use list, tall-list, or fill sizing 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.tsx
      Diff 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.tsx
      The 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, t3dotgg

      Merge Risk: ⚪ Minimal · up to c5aa1

      The supplied evidence identifies no actionable issue that would prevent merging after normal checks.

      🚥 Pre-merge checks | ✅ 4 | ❌ 1

      ❌ Failed checks (1 warning)

      Check nameStatusExplanationResolution
      Docstring Coverage⚠️ WarningDocstring 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 nameStatusExplanation
      Linked Issues check✅ PassedCheck skipped because no linked issues were found for this pull request.
      Out of Scope Changes check✅ PassedCheck skipped because no linked issues were found for this pull request.
      Title check✅ PassedThe title identifies the two lint-rule areas addressed by the pull request and matches its primary change.
      Description check✅ PassedThe 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.
    4. Approvability

      Verdict: Approved at c5aa11f

      Macroscope'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).
    5. juliusmarminge merged this80fc23a

    6. juliusmarminge closed this

Sign in to join this conversation.