Skip to content

fix(ui): restore the ghost-muted-disclosure Button variant - #50816

Merged
nwparker merged 1 commit into
mainfrom
nwparker/fix-resume-toast-variant
Nov 27, 2026
Merged

nwparker merged 1 commit into
mainfrom
nwparker/fix-resume-toast-variant

Conversation

@nwparker

@nwparker nwparker commented Nov 27, 2026 •

Copy link
Copy Markdown
Contributor

ELI5

main doesn't typecheck: the resume card asks for a Button style that no longer exists. This puts that style back.

Files Added Deleted Net
Test 0 0 0 0
Prod 1 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​6 $\color{#cf222e}{\Huge{\mathbf{−}}}$​2 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​4

What Changed

NativeChatResumeToast used variant="ghost-muted-disclosure" (from #50804). That variant was added by de6977f and removed again by the #50777 revert, so pnpm tc:web fails on main (NativeChatResumeToast.tsx:183 TS2322). This restores the variant in button.tsx exactly as de6977f defined it (the design-system lint forbids putting those color classes on the call site).

Why

It unbreaks typecheck, dependency isolation and the Windows compiler-diagnostics jobs for every PR.

Linked Issue

N/A (main CI fix)

Visual Proof

N/A: restores the style #50804 was designed against.

Testing

  • pnpm tc:web passes (fails on main without this change)
  • Automated tests added/updated, or explained why not below: a type-only fix.
  • Every added test fails without this change (no tests added).

Performance

None, because this only restores a class string.

Risk

Level: Low. Revert with a plain revert.

Agent skill upstream boundary

  • Not applicable

Checklist

  • This PR is small and focused
  • I explained what changed and why
  • I stated the risk
  • N/A screenshots (no visual change)
  • Self-reviewed
  • Cross-platform impact considered (renderer only)
  • pnpm tc:web passes

@coderabbitai

coderabbitai Bot commented Nov 27, 2026 •

Copy link
Copy Markdown
Contributor

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The button component now shares muted ghost styling between variants. It adds the ghost-muted-disclosure variant, which applies accent colors when aria-expanded is true.

Merge Risk: Minimal · up to cd694

This restores a button variant with the same appearance and fixes a type error. No user-facing or performance risk is evident, so it is ready to merge.

Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed The title names the fix and the component it restores: the ghost-muted-disclosure Button variant. The raw summary confirms the change adds that variant in button.tsx, so the title matches the main cha…
Description check Passed The description follows the repository template and covers ELI5, What Changed, Why, Testing, Performance, Risk, and the Agent skill boundary checkbox. It explains the root cause (the variant was remov…
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.
Full details: Title check

Explanation

The title names the fix and the component it restores: the ghost-muted-disclosure Button variant. The raw summary confirms the change adds that variant in button.tsx, so the title matches the main change. It uses a conventional fix(ui) prefix and stays concise.

Full details: Description check

Explanation

The description follows the repository template and covers ELI5, What Changed, Why, Testing, Performance, Risk, and the Agent skill boundary checkbox. It explains the root cause (the variant was removed by a revert, which breaks pnpm tc:web on main) and gives a clear before and after. Visual Proof is marked N/A with a reason, which the template allows. Gaps: the Linked Issue section says N/A (main CI fix) rather than linking an issue, and the template says an issue should always exist for outside contributors. The AI Disclosure section is absent. The Review and Notes sections are also absent. The Testing section lists steps but no reviewer-followable steps beyond the typecheck command, and it does not name the platforms tested. These gaps are non-critical, so the description is mostly complete.

  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

Recent review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Repository UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: f4671f48-5e07-48fb-b0fc-b41feb9dc687
Commits

Reviewing files that changed from the base of the PR and between dd6cf03 and cd69448.

Files selected for processing: 1

  • src/renderer/src/components/ui/button.tsx

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 0 remain after this review.

#50804 uses it for the resume card's Details toggle, but the #50777 revert
removed it, so main fails typecheck.
@nwparker
nwparker force-pushed the nwparker/fix-resume-toast-variant branch from dd6cf03 to cd69448 Compare November 27, 2026 11:13
@nwparker nwparker changed the title fix(chat-recovery): use an existing Button variant in the resume card fix(ui): restore the ghost-muted-disclosure Button variant Nov 27, 2026
@nwparker
nwparker merged commit 3b5e924 into main Nov 27, 2026
55 of 57 checks passed
@nwparker
nwparker deleted the nwparker/fix-resume-toast-variant branch November 27, 2026 11:17
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.

1 participant