Skip to content
This repository was archived by the owner on Oct 21, 2026. It is now read-only.

feat(web): manage provider profiles in Settings → Profiles - #34

Merged
donnes merged 2 commits into
mainfrom
t3code/settings-profiles
Sep 28, 2026
Merged

donnes merged 2 commits into
mainfrom
t3code/settings-profiles

Conversation

@donnes

@donnes donnes commented Sep 28, 2026 •

Copy link
Copy Markdown
Collaborator

Profiles were a section of the Providers page and projects were assigned one at a time from General, so seeing or changing which projects belong to a company took several trips.

  • Settings → Profiles: one card per profile with providers, default model and projects (Add project, Remove, Edit, New profile); projects without a profile get Assign…. Edits one environment like Providers and respects read-only sessions.
  • The environment's default profile is visible: Default badge, Make default / Unset default, and "By default" on projects that only inherit it.
  • Creating a profile can pick its projects and make it the fallback (pre-checked for a first profile).
  • Assign/remove/create writes use the smallest override and are unit tested.
  • The profile section leaves Providers; the switcher's "Add profile" and settings search point here.

Verification: vp test run apps/web/src/components/settings/ProviderProfilesSettings.logic.test.ts; web typecheck/lint; exercised assign, default and create in a dev build.

Screenshots (demo data)

Before (Providers page) After (Settings → Profiles)
Profiles in Providers Profiles page

Default profile and "By default" projects:

Default profile

New profile with projects and the fallback option:

New profile dialog

Stack (review bottom-up):

  1. Usage keybinding sort order
  2. Sidebar profile switcher
  3. Icon-rail sidebar
  4. Settings → Profiles
  5. Mobile profile filter (this PR: 4)

Done by Claude Opus 5.5 (1M context) in Claude Code, running in T3 Code.

🤖 Generated with Claude Code

@github-actions github-actions Bot added vouch:trusted PR author is trusted by repo permissions or the VOUCHED list. size:XL labels Sep 28, 2026
@donnes
donnes force-pushed the t3code/icon-sidebar branch from 7d8b3cb to 3402de3 Compare September 28, 2026 19:22
@donnes
donnes force-pushed the t3code/settings-profiles branch 2 times, most recently from 9f868a4 to f2b91a9 Compare September 28, 2026 19:36
@donnes
donnes force-pushed the t3code/icon-sidebar branch from c252cf8 to 7b3636d Compare September 28, 2026 19:52
@donnes
donnes force-pushed the t3code/settings-profiles branch from f2b91a9 to 674d68d Compare September 28, 2026 19:52
@donnes
donnes force-pushed the t3code/icon-sidebar branch from 7b3636d to 5245f93 Compare September 28, 2026 20:40
Base automatically changed from t3code/icon-sidebar to main September 28, 2026 20:46
donnes and others added 2 commits September 28, 2026 17:46
Profiles were a section of the Providers page, and projects were assigned one at a time from
General, so seeing or changing which projects belong to a company took several trips.

- Settings → Profiles shows one card per profile: its providers, default model and projects, with
  Add project, Remove, Edit and New profile. Projects without a profile are listed with Assign….
  Like Providers, it edits one environment and respects read-only sessions.
- The environment's existing default profile is visible: a Default badge, Make default / Unset
  default, and "By default" on projects that only inherit it.
- Creating a profile can pick its projects and make it the fallback; the fallback starts checked
  for a first profile, so every project lands somewhere.
- Assign, remove and create writes use the smallest override (none when the environment default
  already gives the target) and are covered by tests. Profile resolution is shared with the
  client runtime.
- The profile section leaves the Providers page; the switcher's "Add profile" and settings search
  point here.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
… its search anchor

Review and CI fixes for Settings → Profiles:

- With several environments selected, the representative environment can change without a
  remount when one disconnects, and an open editor draft could then be saved into the next
  environment's profile of the same id. The per-environment part (now `EnvironmentProfiles`) is
  keyed by environment id. A regression test covers the fallback.
- Settings search jumps to `#provider-profiles`, which the page never rendered. One stable anchor
  now wraps the page, with or without profiles or an environment, so search scrolls and focuses
  it, including repeat searches. Covered by the same test file.
- Export `ProfileAvatar` and `resolveProjectProviderProfileId` here, where they gain callers
  outside their modules (knip).

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
@donnes
donnes force-pushed the t3code/settings-profiles branch from 674d68d to 99ffc6c Compare September 28, 2026 20:46
@donnes
donnes enabled auto-merge (squash) September 28, 2026 20:46
@donnes
donnes merged commit f27b6b7 into main Sep 28, 2026
15 checks passed
@donnes
donnes deleted the t3code/settings-profiles branch September 28, 2026 20:51
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

size:XL vouch:trusted PR author is trusted by repo permissions or the VOUCHED list.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant