Skip to content

Fix status bar on smaller screen - #23587

Merged
AmethystLiang merged 3 commits into
mainfrom
fix-status-bar-on-smaller-screen
Sep 28, 2026
Merged

AmethystLiang merged 3 commits into
mainfrom
fix-status-bar-on-smaller-screen

Conversation

@AmethystLiang

@AmethystLiang AmethystLiang commented Sep 28, 2026 •

Copy link
Copy Markdown
Contributor
Files Added Deleted Net
Test 2 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​89 0 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​89
Prod 14 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​550 $\color{#cf222e}{\Huge{\mathbf{−}}}$​217 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​333

ELI5

What Changed

Why

Linked Issue

Fixes #

Visual Proof

Testing

  • I manually tested these changes locally
  • Automated tests added/updated, or explained why not below

AI Disclosure

Review

Agent skill upstream boundary

  • Not applicable, or this change follows docs/reference/agent-skill-sharing-upstream-boundary.md and copies or mechanically translates no upstream skill-installer source, tests, fixtures, registry entries, path tables, comments, or documentation.

Notes

Ensure no issues in: Security, Cross-platoform support (Linux, Windows, Mac), Remote SSH, Mobile, general backwards compatibility, performance

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)

Replace fixed breakpoints with a responsive density system that measures the status bar's content and picks the roomiest density level that fits. At progressively tighter widths, the bar sheds usage mini bars, segment labels, and finally collapses calm usage chips into a "+N" overflow indicator — keeping every feature one click away in the Usage popover. Usage-first collapse order ensures urgent providers stay visible longer.
Adds a 3px overflow-clip-margin to status bar containers so focus rings
and badge dots aren't clipped when content overflows on smaller screens.
@coderabbitai

coderabbitai Bot commented Sep 28, 2026

Copy link
Copy Markdown
Contributor

Review in Change Stack →

Navigate logical layers of code changes, visualize relationships, and explore their blast radius.

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: 814da31e-45d2-4f65-877e-dac4cbc53c08

📥 Commits

Reviewing files that changed from the base of the PR and between 3dd7d29 and 3cfb825.

📒 Files selected for processing (16)
  • src/renderer/src/assets/main.css
  • src/renderer/src/components/status-bar/StatusBarProviderSegment.tsx
  • src/renderer/src/components/status-bar/StatusBarSurface.tsx
  • src/renderer/src/components/status-bar/status-bar-container-observer.ts
  • src/renderer/src/components/status-bar/status-bar-density.test.ts
  • src/renderer/src/components/status-bar/status-bar-density.ts
  • src/renderer/src/components/status-bar/status-bar-usage-collapse.test.ts
  • src/renderer/src/components/status-bar/status-bar-usage-collapse.ts
  • src/renderer/src/components/status-bar/tooltip.tsx
  • src/renderer/src/components/status-bar/use-status-bar-controller.ts
  • 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
💤 Files with no reviewable changes (1)
  • src/renderer/src/components/status-bar/status-bar-container-observer.ts

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


📝 Walkthrough

Walkthrough

The status bar now measures available width and selects a density level. At tighter levels, it can collapse usage chips into a localized overflow chip and switch segments to icon-only presentation. The usage cluster and attention segments use separate overflow behavior. Added tests cover density selection, width recording, and usage-chip collapse.

Priority: ➖ Normal

Merge Risk: ⚪ Minimal · up to 3cfb8

The adaptive status bar is ready to merge after normal checks; no issue requiring a pre-merge fix was established.

Security Architecture Review

Security architecture risk: 🔵 Low · up to 3cfb8

The new layout appears to preserve access to provider actions and attention controls. No new security-sensitive action path was identified, though behavior across all platforms and browser layout states was not verified.

Retained concerns
No architecture-level concerns identified.

Security review details

Security Blast Radius

  • inferred — The assessed security-relevant exposure is the desktop status bar’s presentation of provider usage, account actions, and attention controls, rather than a new provider or account authority path.

Trust Boundaries and Controls

  • inferred — The changed overflow presentation does not establish a bypass of the existing controller and popover action path: the chip summarizes providers, while account and refresh actions remain in the usage menu.

Resilience and Maintainability Implications

  • inferred — Density transitions preserve a route to collapsed provider actions through the full roster, while attention controls remain rendered when their region overflows. Browser-specific scrolling and observer timing remain unverified.
🚥 Pre-merge checks | ✅ 3 | ❌ 2

❌ Failed checks (2 warnings)

Check name Status Explanation Resolution
Description check ⚠️ Warning The description includes the required headings but leaves the user-facing explanation, rationale, linked issue, visual proof, testing details, AI disclosure, notes, and checklist items incomplete. Complete the ELI5, What Changed, Why, Linked Issue, Visual Proof, Testing, AI Disclosure, Review, Notes, and Checklist sections. Include before-and-after UI evidence, testing steps and platforms, the issue reference, and the required valida…
Docstring Coverage ⚠️ Warning Docstring coverage is 61.54% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 13 functions across 8 files. (7 skipped: … Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (3 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly summarizes the main change: improving the status bar layout on smaller screens.
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: Description check

Resolution

Complete the ELI5, What Changed, Why, Linked Issue, Visual Proof, Testing, AI Disclosure, Review, Notes, and Checklist sections. Include before-and-after UI evidence, testing steps and platforms, the issue reference, and the required validation status.

Full details: Docstring Coverage

Explanation

Docstring coverage is 61.54% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 13 functions across 8 files. (7 skipped: 7 unsupported.)

  • Fix all pre-merge checks with AI
✨ Finishing Touches 💡 1
📝 Generate docstrings 💡
  • Commit to this branch
  • Create a new PR

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 merged commit 0830051 into main Sep 28, 2026
41 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