Skip to content

[3.1] WorkspaceSwitcher: dropdown on desktop, bottom sheet on phones - #579

Merged
lorant-one merged 2 commits into
previewfrom
feat/workspace-switcher
Nov 23, 2026
Merged

lorant-one merged 2 commits into
previewfrom
feat/workspace-switcher

Conversation

@lorant-one

Copy link
Copy Markdown
Member

Requested by Lorant · project thread

What

One switcher for workspaces, orgs, venues and sites, so Aveiro, Sigilio, Stack and Tavilio stop each drawing their own. Built from Tavilio's venue switcher (Tavilio#284).

  • Trigger: the current item's mark and name with a chevron; placeholders while loading; a long name is cut beside the chevron. In a Sidebar folded to its rail, the mark alone.
  • List: current item pinned on top, groups with counts, search above searchAbove items (default 6) matching name and keywords, empty and no-match states, onCreate button and footer at the foot.
  • Phone (at and below mobileBelow, default "s"): opens as a full-width Drawer from the bottom, near the thumb; names wrap. Focus lands on the current item, not the search, so the keyboard doesn't cover the list.
  • Desktop: a Dropdown at least 20rem wide.
  • 3.0 contract: value/defaultValue/onValueChange, open/defaultOpen/onOpenChange; labels for other languages.

Files: WorkspaceSwitcher.tsx (+ a small scoped sheet for the trigger's truncation), export + subpath, catalog seed entry, docs page workspaceSwitcher.mdx, tests, dev proof page /workspace-switcher-proof.

3.1 candidate (additive, no breaking change). Changelog entry to be written with the 3.1 release notes.

Checks

  • typecheck clean; vitest: 342 files, all pass after adding fixtures (new workspace-switcher.test.tsx, 6 tests); biome clean on new files.
  • The catalog-size cap (31,200 bytes) is nearly hit: this entry leaves ~10 bytes. The next 3.1 component will need the cap moved.

Screens

Saved in the project files under workspace-switcher/: desktop dropdown and search, phone trigger and sheet, dark and light.



Generated by Claude Code

…t on phones

One switcher for workspaces, orgs, venues and sites, from Tavilio's venue
switcher: current item pinned, groups with counts, search above six items,
create button at the foot. Below mobileBelow (default s) the list opens as
a full-width Drawer from the bottom; in a Sidebar rail the trigger is the
mark alone. Docs page, tests, dev proof page.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_016gNJtxR7NzFGo6MdGwjerT
@lorant-one lorant-one self-assigned this Nov 22, 2026
@lorant-one
lorant-one merged commit 5719bfb into preview Nov 23, 2026
9 checks passed
lorant-one added a commit that referenced this pull request Nov 23, 2026
#568 widened colour props (ColorAlpha, gradient) and #579 added
WorkspaceSwitcher without regenerating ai/ and bundle-size.json, so the
harness agents read described the old API. The catalog cap moves to 32,500
for 3.1's new pieces.


Claude-Session: https://claude.ai/code/session_016gNJtx8NozwfTMFAJUwVuh

Co-authored-by: Claude <[email protected]>
@github-actions github-actions Bot mentioned this pull request Nov 24, 2026
27 tasks done
@lorant-one lorant-one added the approved label Nov 24, 2026 — with Claude
@lorant-one
lorant-one deleted the feat/workspace-switcher branch November 29, 2026 13:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants