Skip to content

feat(desktop): let users choose sidebar quota providers - #10186

Open
g-bastianelli wants to merge 3 commits into
ParadevAI:mainfrom
g-bastianelli:g-bastianelli/sidebar-usage-progress-12430b53
Open

g-bastianelli wants to merge 3 commits into
ParadevAI:mainfrom
g-bastianelli:g-bastianelli/sidebar-usage-progress-12430b53

Conversation

@g-bastianelli

@g-bastianelli g-bastianelli commented Nov 23, 2026 •

Copy link
Copy Markdown

What & why

Claude Code and Codex used to take both spots in the sidebar even when Antigravity also reported a quota. The sidebar now shows every provider with a readable subscription quota. In Settings → Usage → Customize, users can hide individual providers and keep that choice across restarts.

Provider checkboxes in Settings → Usage

Claude Code, Codex and Antigravity After hiding Antigravity
Sidebar with all three providers Sidebar with Claude Code and Codex
English and French menu layouts

The button reuses the existing Lingui message for “Customize”. These crops show the Usage header in a browser with the desktop styles and locale catalogs.

English, 1180 px window French, 540 px window
Customize with provider checkboxes Personnaliser wraps below the switch at the minimum window width

How I tested it

  • Opened the macOS desktop app against a local host with active Claude Code, Codex and Antigravity subscriptions. Clicked the Antigravity ring to open its usage settings, hid it, reloaded the renderer and confirmed that two rings remained. Re-enabled it and confirmed that all three returned.
  • Reproduced the clipped French button at 540 px in an isolated browser render of the Usage header. After the fix, opened the menu and toggled each provider. With a stub host, confirmed the rail quota query became inactive after hiding all providers and resumed when one was shown.
  • Ran the sidebar and Usage-page provider selection tests. All 11 passed, including a zero-percent Antigravity quota.
  • Ran bun run lint, bun run typecheck and bun run check:i18n.
  • The full local monorepo run passed 25 of 32 test tasks. Failures included recurrence time-zone handling in shared, process snapshots in the port scanner, and host-service timeouts.

Checklist

  • Conventional commit title
  • Lint and typecheck pass
  • Maintainers can edit the fork branch
  • Contributor License Agreement check passed

Summary by cubic

Lets users choose which quota providers appear in the sidebar usage rings. Previously the rail showed at most two providers even when others reported a usable quota; it now shows every provider with a readable subscription quota, and users can hide individual providers from Settings → Usage → Customize. The choice persists across restarts, and quota polling pauses when every provider is hidden.

  • Removed the two-provider cap on the rail; the fixed agent order is now shared as QUOTA_AGENT_ORDER.
  • Added hiddenRailUsageProviders to the persisted settings store with a toggleRailUsageProvider action.
  • Provider labels now come from the built-in agent catalog.
  • Updated the rail and usage-page selector tests to cover provider hiding.

Written for commit 17c711e. Summary will update on new commits.

View guided diff

Summary by CodeRabbit

  • New Features
    • Customize which providers appear in the sidebar’s usage rings with per-provider controls in Usage settings.
    • Usage rings can display all available providers in a consistent order, rather than limiting the display to two.
  • Improvements
    • Sidebar usage rings appear only when enabled and at least one eligible provider is visible.
    • Hiding a provider removes only its ring; other visible providers remain displayed.
    • Provider customization is unavailable when sidebar usage rings are turned off.

@coderabbitai

coderabbitai Bot commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

Usage settings now let users choose which providers appear in navigation rail quota rings. The provider order is shared across usage views, and hidden-provider selections are stored in settings. The rail no longer caps results at two providers and skips quota requests when rings are disabled or all ordered providers are hidden.

Changes: Rail quota provider customization

Layer / File(s) Summary
Shared provider order and settings state
apps/desktop/src/renderer/utils/usage/quotaAgentLabels/*, apps/desktop/src/renderer/stores/settings.ts, apps/desktop/src/renderer/routes/_authenticated/settings/usage/components/UsageView/utils/visibleQuotaAgents/visibleQuotaAgents.ts
The shared provider order replaces local order lists. Settings add an empty-by-default hidden-provider list and a toggle action. visibleQuotaAgents uses the shared order.
Customize providers in usage settings
apps/desktop/src/renderer/routes/_authenticated/settings/usage/components/UsageRingsToggle/UsageRingsToggle.tsx
A Customize dropdown lists providers in shared order. Its checkboxes reflect hidden-provider state and toggle individual providers. The dropdown is disabled when quota rings are off.
Select and render rail providers
apps/desktop/src/renderer/routes/_authenticated/_dashboard/components/NavigationRail/components/RailUsage/*
The selector skips hidden providers and no longer caps results at two. Tests cover the returned order and hidden-provider filtering. RailUsage skips quota requests when rings are disabled or all ordered providers are hidden, filters hidden providers, and keys rings by agent.

Estimated code review effort: 3 (Moderate) | ~20 minutes

Change: Feature

Sequence Diagram(s)

sequenceDiagram
  actor User
  participant UsageRingsToggle
  participant SettingsStore
  participant RailUsage
  participant selectRailUsage
  User->>UsageRingsToggle: Changes a provider checkbox
  UsageRingsToggle->>SettingsStore: Calls toggleRailUsageProvider
  RailUsage->>selectRailUsage: Passes accounts and hidden providers
Loading

Possibly related PRs

  • ParadevAI/Paradev#9942: Adds navigation rail quota rings and the two-provider cap that this change replaces.

Suggested reviewers: avipeltz

Merge Risk: Minimal · up to 17c71

This change lets users pick which providers appear as sidebar quota rings, and the choice persists. The changes are limited to the desktop UI. No concrete merge-blocking risk was found.

Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed The title "feat(desktop): let users choose sidebar quota providers" matches the main change. The diff adds a Customize dropdown in Settings → Usage that hides or shows quota providers in the sidebar r…
Description check Passed The description follows the template. It has a "What & why" section that explains the two-provider cap and the new per-provider hide option, with a link to the change. It has a "How I tested it" secti…
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 "feat(desktop): let users choose sidebar quota providers" matches the main change. The diff adds a Customize dropdown in Settings → Usage that hides or shows quota providers in the sidebar rings. It also removes the two-provider cap on the rail, which the title does not mention but which is a secondary point. The title is short, follows conventional commit format, and names the primary user-facing change.

Full details: Description check

Explanation

The description follows the template. It has a "What & why" section that explains the two-provider cap and the new per-provider hide option, with a link to the change. It has a "How I tested it" section with specific steps, screenshots, and test results. The checklist is present and marked. The template asks for an issue link when one exists, and the description does not include one. It also omits the CONTRIBUTING.md screenshot-capture reference, which is optional guidance.

Finishing Touches

Generate unit tests (beta)

  • Create a new PR
  • 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: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 9238622a-d260-440e-b2f8-e9fafe6da23a
Commits

Reviewing files that changed from the base of the PR and between 3eb88ed and 17c711e.

Files selected for processing: 1

  • apps/desktop/src/renderer/utils/usage/quotaAgentLabels/quotaAgentLabels.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.

@g-bastianelli
g-bastianelli marked this pull request as ready for review November 23, 2026 16:21

This branch has not been deployed

No deployments
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