Skip to content

feat(settings): rename Agent to AI Providers and give each settings section its own address - #1209

Merged
gkhngyk merged 1 commit into
ansvisor:mainfrom
cihan-gyk:feature/settings-ai-providers
Oct 19, 2026
Merged

gkhngyk merged 1 commit into
ansvisor:mainfrom
cihan-gyk:feature/settings-ai-providers

Conversation

@cihan-gyk

Copy link
Copy Markdown
Collaborator

Summary

First of two PRs for "Settings › Agent: more provider keys, a better name and a deep link". This one does the name, the description and the address. The provider keys come next: OpenAI, Gemini, OpenRouter, and Microsoft as Azure OpenAI.

  • Name: Settings › Agent is now AI Providers (settings.aiProviders). The card's description says what the key does: Chat calls the model with it, the usage is billed to the customer's own provider account, and the key is stored encrypted.
  • Its own address per section: /dashboard/settings/<section>, a new settings/[section]/page.tsx.
    • /dashboard/settings/ai-providers opens AI Providers.
    • Picking a section in the settings nav moves the address to it (history.replaceState).
    • The page body moved unchanged into _settings-view.tsx.
    • Which address opens which section lives in settings/_sections.ts, with tests.
  • Old links keep working: /dashboard/settings?tab=… still opens the section it names:
    • the Daily Pulse e-mail uses ?tab=notifications;
    • the integrations' OAuth popups return to ?tab=integrations;
    • ?tab=project and ?tab=agent are read as their new names.
  • Unchanged rules: self-host still has no AI Providers or Billing, and an unknown section opens Account.
  • Chat: the Chat page's "Go to Settings", shown when no key is set, links to /dashboard/settings/ai-providers.

No server or database change.

Related issue

None (product request).

Type of change

  • feat — New feature
  • fix — Bug fix
  • chore — Maintenance / dependencies
  • docs — Documentation only
  • refactor — Code change that neither fixes a bug nor adds a feature
  • test — Adding or updating tests

How to test

On cloud (NEXT_PUBLIC_IS_CLOUD=true):

  1. Open /dashboard/settings/ai-providers: AI Providers is selected and shows the new description.
  2. Click Team: the address becomes /dashboard/settings/team. Reload: Team is still selected.
  3. Open /dashboard/settings?tab=agent: AI Providers. Open /dashboard/settings?tab=notifications: Notifications.
  4. With no key, open /dashboard/agent: Go to Settings links to /dashboard/settings/ai-providers.
  5. On self-host, /dashboard/settings/ai-providers opens Account, and the nav has no AI Providers or Billing.

Checklist

  • Branch follows the naming convention (feature/, fix/, chore/, docs/) — see CONTRIBUTING.md
  • Commits follow Conventional Commits
  • yarn lint passes (run from web/) — 0 errors, the 6 existing warnings
  • yarn typecheck passes (run from web/)
  • yarn format:check passes (run from web/)
  • Changes are focused — one concern per PR

Also run: yarn test (199 files, 1670 tests) and yarn build (placeholder env from ci.yml; the build lists /[locale]/dashboard/settings/[section]). Checked in the browser on cloud at 1440 px.

🤖 Generated with Claude Code

…ection its own address

Settings › Agent holds the API key Chat runs on, so it's AI Providers now,
with a description of what the key does and who pays for it. Each section
has an address, /dashboard/settings/<section>: the Chat page's "Go to
Settings" links to /dashboard/settings/ai-providers, and picking a section
moves the address to it. /dashboard/settings?tab= still opens the section
it names (the Daily Pulse e-mail and the integrations' OAuth return use
it), and ?tab=agent opens AI Providers.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@cihan-gyk

Copy link
Copy Markdown
Collaborator Author

@gkhngyk First of two for Settings › Agent: renamed to AI Providers, with a per-section address (/dashboard/settings/

; ?tab= links still work, ?tab=agent → ai-providers). Web only. The second PR adds OpenAI, Gemini, OpenRouter and Azure OpenAI keys for Chat (new table, provider choice); real-key testing will be yours, as with the Anthropic key.

@gkhngyk gkhngyk left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested on main with #1205, #1206 and #1207: all web tests pass (1,673) and typecheck is clean. Every existing ?tab= link still resolves: billing, integrations, notifications (the Daily Pulse e-mail and the digest), project, and agent (now AI Providers). Cloud-only sections fall back to Account on self-host.

@gkhngyk
gkhngyk merged commit 1cbf647 into ansvisor:main Oct 19, 2026
6 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.

2 participants