Skip to content

redesign ai provider#249

Merged
plusplusoneplusplus merged 4 commits into
mainfrom
pr/redesign-ai-provider
May 30, 2026
Merged

redesign ai provider#249
plusplusoneplusplus merged 4 commits into
mainfrom
pr/redesign-ai-provider

Conversation

@plusplusoneplusplus
Copy link
Copy Markdown
Owner

No description provided.

plusplusoneplusplus and others added 4 commits May 29, 2026 21:52
Extract the AI Provider tab content from AdminPanel into a dedicated
AIProviderPage component with a redesigned layout featuring summary
cards, a provider routing table, and provider-scoped model catalog.

- New AIProviderPage component with summary grid, routing table, and
  toggle-based provider controls
- CSS styles for new aip-* classes using existing admin-redesign
  variable system
- Update tests to match new DOM structure (button toggles instead of
  checkboxes, individual default-provider buttons instead of select)
- UI-only change: no logic modifications

Co-authored-by: Cursor <cursoragent@cursor.com>
- Replace text-based provider avatars with actual SVG icons from
  Copilot (GitHub), Codex (OpenAI), and Claude (Anthropic starburst)
- Redesign ProviderModelsSection from card grid to table-based layout
  matching the admin-agents-redesign.html mockup: toolbar with
  search/filter/view toggle, model table with capabilities/context/
  reasoning/enabled columns, and query view with form + result panel
- Add CSS styles for model catalog toolbar, table, effort controls,
  query grid, and responsive adjustments using aip-* class convention
- Add 57 dedicated mock-based unit tests for AIProviderPage component
  covering page structure, summary grid, routing table, toggles,
  default provider buttons, quota display, save/cancel, and
  ProviderModelsSection prop passing

Co-authored-by: Cursor <cursoragent@cursor.com>
- Codex avatar: black background with white OpenAI icon (matches
  OpenAI brand identity)
- Claude avatar: warm beige (#f5ebe4) background with rust-orange
  (#d97757) Anthropic starburst icon (matches Claude brand color)
- Sort model catalog so enabled models always appear before disabled
  ones, preserving original order within each group
- Add test for enabled-first sort ordering

Co-authored-by: Cursor <cursoragent@cursor.com>
…viders

Add a segmented provider tab bar (Copilot / Codex / Claude) to the
model catalog toolbar, matching the design mockup layout. Users can
now browse each provider's model catalog independently without
changing the default provider setting above.

- Add activeModelProvider state to AIProviderPage, initialized to
  the current defaultProvider
- Add allProviders and onProviderChange optional props to
  ProviderModelsSection
- Render provider tabs as first element in toolbar when allProviders
  is provided, followed by search, capability filter, and view toggle
- Add CSS for 5-column toolbar layout when provider tabs are present
- Add 7 new tests covering provider tab rendering, switching, and
  availability updates on tab change

Co-authored-by: Cursor <cursoragent@cursor.com>
@plusplusoneplusplus plusplusoneplusplus merged commit 75d8520 into main May 30, 2026
34 checks passed
@plusplusoneplusplus plusplusoneplusplus deleted the pr/redesign-ai-provider branch May 30, 2026 06:55
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