Skip to content

feat(settings): redesign AI provider account lists with search, bounded scroll, and high-contrast active badge - #52261

Merged
orca-remote-automation[bot] merged 4 commits into
mainfrom
orca-remote-automation/redesign-ai-provider-accounts
Nov 29, 2026
Merged

orca-remote-automation[bot] merged 4 commits into
mainfrom
orca-remote-automation/redesign-ai-provider-accounts

Conversation

@orca-remote-automation

@orca-remote-automation orca-remote-automation Bot commented Nov 29, 2026 •

Copy link
Copy Markdown
Contributor

Problem

When a user saves many AI provider accounts in Settings, the account list grows unbounded and pushes other provider sections off-screen, while the active account badge blends in with secondary badges and spelled-out row actions crowd narrow layouts.

What Changed

  • Pinned System default + Search + Bounded Scroll (provider-account-list.tsx, main.css, renderer-scrollbar-style.mjs): Kept System default pinned above an inline Search accounts… input (shown when at least 1 saved account exists, with match count, clear button, Escape to clear, polite live-region announcements, and a no-match state) and an AccountListScroller (max-h-[296px] scroll-py-4 overflow-y-auto) using .account-list-scrollbar (shared always-visible 6px rounded scrollbar with scrollbar-gutter: stable and scrollbar-width: auto; scrollbar-color: auto so macOS overlay scrollbars do not hide overflow), -mr-3 pr-1.5 flush-edge compensation, and an edge-aware two-layer vertical fade mask (data-scroll-fade="bottom" | "top" | "both") that smoothly fades overflowing cards without clipping a border sliver while leaving the rightmost 8px scrollbar column unmasked.
  • High-Contrast Active Badge (badge.tsx, account-card.tsx): Updated Badge variant accountTag to a high-contrast solid ✓ Active pill (bg-foreground text-background, no left accent bar or heavy border).
  • Icon-Only Row Actions (provider-account-list.tsx, account-rename-button.tsx): Replaced spelled-out Rename, Sign in again / Re-authenticate, and Remove text labels with compact icon-only ghost buttons and Radix tooltips (with non-disabled tooltip wrappers so disabled icons still reveal their labels on hover and focus), while preserving Claude's sign-in link menu.
  • Cleaner Subtitles: Removed the bare lastAuthenticatedAt timestamp from row subtitles and surfaced "Last signed in: <date>" in a keyboard-reachable Radix tooltip on AccountCard (accessible even when selectDisabled).
  • Consistent Coverage: Applied across Claude, Codex, Antigravity, and ManagedData (OpenCode/Devin) account sections, with seeded component fixtures in provider-account-list.fixture.tsx.

Checked against how comparable products handle this.

Testing

  • Ran check:changed (38/38 checks passing: format, oxlint, changed-code quality, typecheck across all 4 tsconfigs, localization catalogs/extraction, React Compiler compatibility).
  • Verified seeded component fixtures (0, 1, 3, 25 accounts; 640px and 360px widths; Light and Dark themes; scrollTop = 0, mid-scroll, near-bottom, and bottom scroll states) in headless Chromium via Playwright: visible 6px scrollbar thumb (offsetWidth - clientWidth === 6) remaining crisp across top/bottom fade zones, edge-aware fade mask applied only when overflowing (none on fitting lists, bottom at top, both mid-scroll, top at bottom), search filtering + live-region status, Escape / clear × / no-match Clear resets, scope round-trip and 0 → N resets, focus tooltips, 0.00px left/right edge alignment, and 0px horizontal overflow.

Performance

  • Filtering runs in-memory in O(N) with NFKC + lowercase substring matching over the visible saved-accounts array (typically 1–50 items, skipped completely when the query is empty).
  • Codex search extracts O(1) fields directly instead of scanning sibling accounts per row, and scope/empty transitions reset state via React key remounting with zero extra timers or I/O.
  • AccountListScroller isolates ScrollEdges ({ above, below }) in a dedicated wrapper measured via useLayoutEffect, a single ResizeObserver on the scroll container, and onScroll with a reference-equality guard (next.above === current.above && next.below === current.below ? current : next), so scrolling never churns state between edge transitions and edge flips never re-render account row children.
  • .account-list-scrollbar and [data-account-scroll-list][data-scroll-fade] are pure CSS (shared scrollbar selectors with .bot-sidebar-scrollbar and a two-layer mask-image leaving the 8px scrollbar column unmasked).
Files Added Deleted Net
Test 0 0 0 0
Prod 26 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​959 $\color{#cf222e}{\Huge{\mathbf{−}}}$​284 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​675

@greptile-apps

greptile-apps Bot commented Nov 29, 2026 •

Copy link
Copy Markdown

Confidence Score: 5/5 · The PR appears safe to merge; no new actionable issues were found.RetriggerView in GreptileConfidence Score: 5/5

[Medium impact] The PR appears safe to merge; no new actionable issues were found.

Summary

The PR adds searchable, bounded account lists, compact row actions, and a clearer active badge.

  • Saved provider accounts can be searched in a bounded list.
  • Account rows show compact actions and clearer account details.

Reviews (5) · Last reviewed commit: "fix(settings): fade overflowing account ..." · Reviewed by Greptile

@orca-remote-automation
orca-remote-automation Bot force-pushed the orca-remote-automation/redesign-ai-provider-accounts branch from e676630 to 9bbbd3d Compare November 29, 2026 04:44
@greptile-apps

greptile-apps Bot commented Nov 29, 2026

Copy link
Copy Markdown

Want your agent to iterate on Greptile's feedback? Try greploops.

@orca-remote-automation
orca-remote-automation Bot merged commit e123acb into main Nov 29, 2026
101 of 103 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.

0 participants