Skip to content

Default status-bar usage to Compact and explain the change once - #26726

Merged
AmethystLiang merged 2 commits into
mainfrom
make-compact-the-default
Oct 9, 2026
Merged

AmethystLiang merged 2 commits into
mainfrom
make-compact-the-default

Conversation

@AmethystLiang

@AmethystLiang AmethystLiang commented Oct 9, 2026 •

Copy link
Copy Markdown
Contributor
Files Added Deleted Net
Test 6 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​372 $\color{#cf222e}{\Huge{\mathbf{−}}}$​21 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​351
Prod 21 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​344 $\color{#cf222e}{\Huge{\mathbf{−}}}$​196 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​148

ELI5

New users start with a shorter usage status bar. Existing users whose unsaved preference changes to Compact get one small card explaining how to find Detailed. Saved choices stay unchanged.

What Changed

Changed the canonical status-bar usage default from Detailed (verbose) to Compact. Existing initialization, hydration, persistence, and web normalization inherit that default.

The loader decides notice eligibility from the saved profile before filling defaults. New profiles and either explicit usage mode are excluded. A persisted flag keeps the decision and dismissal across restarts. The card appears above Usage after a short delay, without taking focus. Got it, close, Escape, or choosing either mode dismisses it permanently.

Why

Detailed shows multiple limits and pools, making the status bar long. Reusing the canonical default avoids competing fallbacks. The new card reuses the existing percentage notice’s portal, positioning, timing, and dismissal behavior. It supersedes that older rollout notice for affected users so two cards do not stack. The Detailed/Compact selector and automatic width-based density remain intact.

Linked Issue

No linked issue; maintainer-requested change.

Visual Proof

Full-window CDP screenshots from hidden macOS Electron instances launched with ORCA_BACKGROUND_LAUNCH=1. No test window was revealed or activated.

Previous default comparison: Detailed selected through the existing selector in this build (not an old-build screenshot); that choice survived reload.
Detailed selected

Fresh profile: Compact is selected, with no rollout card.
Fresh profile

Existing profile with no saved mode: the card anchors above Usage.
Compact change card

After Got it and renderer reload: the card stays dismissed.
Dismissed after reload

Testing

  • I manually tested these changes locally

  • Automated tests added/updated

  • Focused shared default/audience, main persistence, renderer hydration, and status-bar suites: 67 files, 649 tests passed, including selector, density, Antigravity, and countdown coverage.

  • ORCA_BACKGROUND_LAUNCH=1 pnpm tc:web and ORCA_BACKGROUND_LAUNCH=1 pnpm tc:node: passed.

  • ORCA_BACKGROUND_LAUNCH=1 pnpm run check:code-quality:changed: passed, zero new findings.

  • RPC parameter catalog and localization catalogs, extraction, and coverage checks: passed. Card copy is available in all supported locales.

  • Hidden Electron: verified worktree identity; fresh-profile Compact with no card; an actual older-profile migration showing the rendered card; Got it persisted to the main store and stayed dismissed on reload; both selector choices persisted and restored.

  • Linux, Windows, and SSH were not manually exercised. Remaining full tests/build checks run in CI.

Review

Self-reviewed default and normalization call sites, migration eligibility before default filling, persisted dismissal, focus behavior, selector discovery, and reuse of the existing notice. Old hosts omit the new flag, which keeps the notice hidden; choosing a mode sends the new field only for an armed notice. The RPC addition is optional. Antigravity code and tests were untouched; the worktree was clean at task start.

Agent skill upstream boundary

  • Not applicable, or this change copies or mechanically translates no upstream skill-installer source, tests, fixtures, registry entries, path tables, comments, or documentation.

Notes

No platform-specific paths or shortcuts, remote execution, or process-status behavior changed. Folder workspaces share the same preference and migration path.

Checklist

  • This PR is small and focused
  • I explained what changed and why (ELI5, the user-facing before/after, the mechanism, and why over the alternatives)
  • Before/after screenshots or videos attached for UI changes, or N/A with reason
  • Self-reviewed for correctness, security, and performance
  • Cross-platform, SSH/remote, and path/shortcut impact considered (or N/A)
  • pnpm lint, pnpm typecheck, pnpm test, and pnpm build pass (or CI will cover; local preferred)

@coderabbitai

coderabbitai Bot commented Oct 9, 2026 •

Copy link
Copy Markdown
Contributor

Review in Change Stack →

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration
  • Configuration used: Repository UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 42a2874a-4652-4a67-8e59-9b8ae5b5196e
📥 Commits

Reviewing files that changed from the base of the PR and between 431559b and a69ed85.

📒 Files selected for processing (24)
  • src/main/persistence-status-bar-compact-change-notice.test.ts
  • src/main/persistence/applying-settings/ui-state-read.ts
  • src/main/persistence/loading-store/normalize-loaded-ui-state.ts
  • src/renderer/src/components/status-bar/StatusBarSurface.tsx
  • src/renderer/src/components/status-bar/StatusBarUsageChangeNoticeCard.tsx
  • src/renderer/src/components/status-bar/StatusBarUsageChangeNotices.test.tsx
  • src/renderer/src/components/status-bar/StatusBarUsageChangeNotices.tsx
  • src/renderer/src/components/status-bar/UsagePercentageDisplayChangeNotice.tsx
  • src/renderer/src/i18n/locales/en.json
  • src/renderer/src/i18n/locales/es.json
  • src/renderer/src/i18n/locales/fr.json
  • src/renderer/src/i18n/locales/ja.json
  • src/renderer/src/i18n/locales/ko.json
  • src/renderer/src/i18n/locales/zh.json
  • src/renderer/src/store/slices/ui-hydration-workspace-preferences.test.ts
  • src/renderer/src/store/slices/ui/ui-slice-contract-contextual.ts
  • src/renderer/src/store/slices/ui/ui-slice-hydration-actions.ts
  • src/renderer/src/store/slices/ui/ui-slice-preference-actions.ts
  • src/renderer/src/store/slices/ui/ui-slice-trust-actions.ts
  • src/shared/constants.ts
  • src/shared/persisted-ui-state-types.ts
  • src/shared/rpc-contract/client-ui-params.ts
  • src/shared/status-bar-compact-change-notice.test.ts
  • src/shared/status-bar-compact-change-notice.ts

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


📝 Walkthrough

Walkthrough

The status bar usage mode default and fallback change from verbose to compact. The change adds persisted dismissal state for a compact-mode notice and resolves that state when loading UI preferences. The renderer displays the notice when its eligibility conditions are met, using a shared card component. Tests cover mode normalization, persistence and hydration, notice state, and notice interactions. Translations for the notice are added in six locales.

Priority: ➖ Normal

Merge Risk: ⚪ Minimal · up to a69ed

The status bar now defaults to Compact usage and shows a one-time dismissible notice to affected existing profiles. No merge-blocking risk was found.

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage Warning Docstring coverage is 38.89% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 18 functions across 21 files. (6 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 clearly and concisely summarizes the main changes: changing the status-bar default to Compact and explaining the change once.
Description check Passed The description follows the required structure and explains the user-facing change, implementation, rationale, visual proof, testing, review, compatibility considerations, and checklist status. It exp…
Full details: Docstring Coverage

Explanation

Docstring coverage is 38.89% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 18 functions across 21 files. (6 skipped: 6 unsupported.)

  • Fix all pre-merge checks with AI
✨ Finishing Touches 💡 1
📝 Generate docstrings 💡
  • Commit to this branch
  • Create a new PR
  • Autopilot · 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

Comment @coderabbitai help to get the list of available commands.

@AmethystLiang AmethystLiang changed the title Make Compact the default status-bar usage mode Default status-bar usage to Compact and explain the change once Oct 9, 2026
@AmethystLiang
AmethystLiang merged commit 04d2ccb into main Oct 9, 2026
39 checks passed
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