This repository was archived by the owner on Oct 21, 2026. It is now read-only.
Repository navigation
feat(web): switch the sidebar between provider profiles - #32
Merged
Merged
Conversation
People who work for several companies keep a provider profile per company, but the sidebar mixed
every company's threads together.
- A profile switcher above the thread list scopes threads, drafts and the project filter to one
profile's projects, all profiles, or projects without one ("Unassigned", only when some exist).
It stays hidden until a profile exists.
- Each profile shows how many threads wait on the user (approvals, questions, failures, unread
completions); a dot on the switcher flags work waiting in other profiles.
- `profile.showAll` and `profile.select.1-9` keybindings (default Mod+Alt+0-9) pick a profile in
menu order and can be rebound in Settings → Keybindings.
- The sidebar follows the project you open: a thread from another profile, via notification,
search or link, or another project for a draft, switches to its profile. Picking a profile by
hand while a thread is open sticks.
- Profile resolution lives in `@t3tools/client-runtime/state/profile-scope` so web and mobile agree;
profiles merge across environments by id. The choice is stored per device.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Review fixes for the sidebar profile switcher: - A project grouped across environments can have members in different profiles; choosing it now intersects its members with the active profile instead of showing other profiles' threads and drafts. - The follow rule tracks the route's thread or draft as well as its project, so opening another thread of the same project from search or a notification switches back after a manual choice. A manual choice still holds until the next navigation. - Profile scope values are tagged (`profile:<id>`), so profiles named "All" or "Unassigned" no longer collide with the special scopes. The stored choice moves to a v2 key. - "Unassigned" with no unassigned projects left resolves to all profiles, matching the menu, without forgetting the stored choice. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Knip flagged four exports used only inside their own modules at this layer: the shared `resolveProjectProviderProfileId`, `profileScopeOfProject` and `projectMatchesScope`, and the switcher's `ProfileAvatar`. The shared test also imports with the `.ts` extension the client-runtime package's typecheck requires. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
donnes
force-pushed
the
t3code/profile-switcher
branch
from
September 28, 2026 20:33
1f5665c to
027b05a
Compare
donnes
enabled auto-merge (squash)
September 28, 2026 20:34
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
People who work for several companies keep a provider profile per company, but the sidebar mixed every company's threads together.
profile.showAll/profile.select.1-9keybindings (default Mod+Alt+0–9), rebindable in Settings → Keybindings.@t3tools/client-runtime/state/profile-scopeso web and mobile agree; profiles merge across environments by id. The choice is stored per device.Upstream files touched only at small seams marked
Fork (profiles)(Sidebar.tsx,AppSidebarLayout.tsx), plus the keybinding contract/defaults and one package export.Verification:
vp test run packages/client-runtime/src/state/profileScope.test.ts apps/web/src/profileScopeplus keybinding tests; web typecheck; exercised in a dev build with seeded profiles (switching, counts, shortcut, follow rule).Screenshots (demo data)
Profile menu with waiting counts and shortcuts:
Stack (review bottom-up):
Done by Claude Opus 5.5 (1M context) in Claude Code, running in T3 Code.
🤖 Generated with Claude Code