fix(app): remove titlebar toggle selected chip - #903
Conversation
|
Warning Review limit reached
Your plan includes 1 review of capacity. Refill in 32 minutes and 32 seconds. Your organization has run out of usage credits. Purchase more in the billing tab. ⌛ How to resolve this issue?After more review capacity refills, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans have higher rate limits than trial, open-source, and free plans. In all cases, review capacity refills continuously over time. Please see our FAQ for further information. ℹ️ Review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (5)
✨ Finishing Touches🧪 Generate unit tests (beta)
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. Comment |
There was a problem hiding this comment.
Code Review
This pull request introduces a new E2E test to verify that titlebar toggles do not show a background chip when expanded. Corresponding CSS updates were made to set the background of ghost-variant titlebar icons to transparent. Feedback focused on improving test reliability by using expect.poll to wait for state transitions and refining CSS selectors to preserve hover/active feedback while maintaining a shared visual contract across components.
Perf delta summaryComparator: pass
|
Summary
Remove the selected-chip background from the titlebar sidebar toggle and right utility panel toggle when they are expanded. There is no standalone issue; this is a direct regression follow-up from the titlebar toggle visual contract restored in PR #880.
Why
The titlebar sidebar/right-panel toggles should express their expanded state by switching icon shape only. PR #880 broadened the
.titlebar-icon[aria-expanded="true"]rule so these<Button variant="ghost">callsites started receiving a selected background chip. That made the sidebar toggle look selected in both light and dark mode.StatusPopover previously also inherited PR #880's expanded chip through the same broad selector. This PR keeps that StatusPopover contract explicit with a dedicated data hook instead of relying on every expanded
.titlebar-iconsharing one visual rule.Related Issue
No standalone issue — direct regression follow-up from PR #880.
Human Review Status
Pending
Review Focus
Please review the CSS specificity boundary around
titlebar-icon:data-action="pawwork-status-popover-toggle".Risk Notes
Low. This is CSS plus E2E regression assertions for the titlebar toggles and StatusPopover fallback. The titlebar toggle test now first asserts both toggles are actually expanded, checks idle background is transparent, and checks hover feedback is still visible. The StatusPopover test covers the mobile/non-desktop fallback path that still renders the popover trigger.
During Electron verification,
dev:desktopregeneratedpackages/opencode/src/provider/models-snapshot.js; that unrelated generated file was restored and is not part of this PR.How To Verify
Screenshots or Recordings
Generated and reviewed locally with
bun run --filter=@opencode-ai/app snap right-panel-titlebar:docs/design/preview/screenshots/right-panel-titlebar.pngThe light/dark grid shows both titlebar toggles without selected-chip backgrounds.
Checklist
bug,enhancement,task,documentation. Type labels are author-added; the labeler bot does NOT assign them. Add the label in the GitHub UI, then tick this.app,ui,platform,harness,ci. The labeler bot assigns these on PR open based on changed paths. Confirm the bot's choice (or override if wrong), then tick this.P0,P1,P2,P3. The priority-triage bot suggests one on PR open. Confirm or override, then tick this.Pending,Approved by @<reviewer>, orNot required: <reason>(default isPending; "not required" is restricted to bot-authored low-risk PRs).dev, and my PR title and commit messages use Conventional Commits in English.