Skip to content

feat(ui): add quota account notes, compact quota view, and batch Codex model visibility controls - #565

Open
jianli9158 wants to merge 5 commits into
router-for-me:devfrom
jianli9158:fix/ui-quota-notes-compact-codex-visibility
Open

jianli9158 wants to merge 5 commits into
router-for-me:devfrom
jianli9158:fix/ui-quota-notes-compact-codex-visibility

Conversation

@jianli9158

Copy link
Copy Markdown

Summary

Resolves three high-priority frontend UI issues (#558, #375, and #266):

  1. Support displaying and editing account notes on Quota Lookup cards (Fixes 使用额度页面支持账号备注 #558)

    • Renders each credential's note (respecting privacy masking) under the account identity in QuotaCard (src/pages/QuotaPage.tsx), staying synchronized with notes configured in OAuth / Auth Files.
    • Adds an inline note editor on each quota card in QuotaPage that saves updated remarks via PATCH /credentials/fields without leaving the Quota Lookup view.
  2. Add a compact display mode toggle to Quota Lookup (Fixes 这边anti的额度中claude显示是还有5小时的限额额度,但是实际在使用过程中显示,7天的每个5小时额度都已经使用完,另外能保证好这些个列表及卡片的紧凑显示方式吗,如果账号多了当前的这个额度显示方式太过占地方了,不好直接去看每个模型厂商的统一管理。 #375)

    • Adds a Compact view toggle button to the Quota Lookup toolbar (OAuthPageToolbar), persisted in localStorage (cpa.quota.compact).
    • When active (.real-quota-grid.is-compact), renders quota cards in a dense multi-column grid with condensed headers, tighter row spacing, and slimmer progress tracks so users with many OAuth accounts can monitor more credentials at once.
  3. Add batch show/hide actions and inline visibility switches in the Codex Model Catalog editor (Fixes Allow batch show/hide of models in the Codex model catalog editor #266)

    • Adds Show all and Hide all batch action buttons in .codex-catalog-sidebar (src/pages/CodexModelCatalogDialog.tsx) to show or hide all currently listed (or search-filtered) models in one click via setCodexModelsVisibility().
    • Adds an inline Switch and Hidden status indicator on each model row in .codex-catalog-models so users can toggle model visibility directly from the sidebar list.

Verification

  • bun run check (tsc --noEmit) passes with zero errors.
  • bun test tests/quotaRendering.test.tsx tests/codexModelCatalog.test.ts tests/cssSyntax.test.ts tests/searchControls.test.ts passes.
  • Verified in headless Chromium across Quota Lookup (compact view toggle + inline account note editing/saving) and Agent Configuration -> Codex -> Model list settings (batch Show all / Hide all + per-row visibility switch).

渐离 added 3 commits November 1, 2026 20:55
渐离 added 2 commits November 4, 2026 17:16
…own-layout

# Conflicts:
#	src/pages/QuotaPage.tsx
…own-layout

# Conflicts:
#	src/pages/CodexModelCatalogDialog.tsx
#	src/pages/QuotaPage.tsx
#	src/pages/UsageAnalysisView.tsx
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