Title: feat(sidebar): search the workspace switcher when a user has many workspaces by waleedlatif1 · Pull Request #5893 · simstudioai/sim · GitHub
Open Graph Title: feat(sidebar): search the workspace switcher when a user has many workspaces by waleedlatif1 · Pull Request #5893 · simstudioai/sim
X Title: feat(sidebar): search the workspace switcher when a user has many workspaces by waleedlatif1 · Pull Request #5893 · simstudioai/sim
Description: Summary Two sidebar improvements: 1. Workspace switcher search (workspace-header.tsx) Restores searchable, keyboard-navigable workspace selection for users with many workspaces — the switcher becomes hard to navigate once the list is long. Search input appears once the list exceeds WORKSPACE_SEARCH_THRESHOLD (> 3 workspaces). Case-insensitive name filter; ↑/↓ move through results, Enter switches, empty-state for no matches. Keyboard highlight rides the existing chipVariants({ active }) so it matches hover/active exactly. Input reuses the emcn ChipInput (icon prop) — no hand-rolled field chrome. Robustness: the highlighted index is clamped against the current results on read, and search/highlight reset via an effect keyed on the menu-open state so every close path (select, Escape, click-away) clears them. All the search machinery is gated on showSearch, so users at ≤3 workspaces get zero extra work. Reuses the pattern that previously lived on an unmerged branch, ported onto current code with the anti-flash refinements (prefetched list means showSearch is stable from first paint; the input only mounts inside the opened, already-hydrated dropdown). 2. Settings-sidebar last-item hover clip (settings-sidebar.tsx) The scrollable settings-nav container had top padding but no bottom padding, so the last item's rounded hover pill was clipped against the overflow edge (visible on "Custom blocks", the final Enterprise item). Fixed with symmetric py-1.5 on the scroll container — item spacing is unchanged. Testing bun typecheck + biome clean on both files. Comprehensive /cleanup pass (effects, state, memo, callback, React Query, url-state, emcn, comments) over both surfaces — no anti-patterns; only inlined a trivial filter memo and collapsed a padding shorthand.
Open Graph Description: Summary Two sidebar improvements: 1. Workspace switcher search (workspace-header.tsx) Restores searchable, keyboard-navigable workspace selection for users with many workspaces — the switcher becom...
X Description: Summary Two sidebar improvements: 1. Workspace switcher search (workspace-header.tsx) Restores searchable, keyboard-navigable workspace selection for users with many workspaces — the switcher becom...
Opengraph URL: https://github.com/simstudioai/sim/pull/5893
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:3e73b68b-8fd5-d960-b549-6bec6bc95d00 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | 8F3C:3A8591:79E252:AB9D36:6A638764 |
| html-safe-nonce | dfece6d561e1d9aaeb75330a927bbc453a10673d5b4540aeaa08567e127d9afd |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4RjNDOjNBODU5MTo3OUUyNTI6QUI5RDM2OjZBNjM4NzY0IiwidmlzaXRvcl9pZCI6IjU2MzkyMTE1NjA4NjA4Nzg2OTIiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | e92c95762cb0016ae95d7acc83895246c1a18e9f2e794d18a1035d323bb456a0 |
| hovercard-subject-tag | pull_request:4118914460 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/simstudioai/sim/pull/5893/files |
| twitter:image | https://avatars.githubusercontent.com/u/40672544?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/40672544?s=400&v=4 |
| og:image:alt | Summary Two sidebar improvements: 1. Workspace switcher search (workspace-header.tsx) Restores searchable, keyboard-navigable workspace selection for users with many workspaces — the switcher becom... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 4ca676e17c4da4532dc68541e9fc874034ae840c26b5f34da7f1c42d9a600659 |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/simstudioai/sim git https://github.com/simstudioai/sim.git |
| octolytics-dimension-user_id | 199344406 |
| octolytics-dimension-user_login | simstudioai |
| octolytics-dimension-repository_id | 912559512 |
| octolytics-dimension-repository_nwo | simstudioai/sim |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 912559512 |
| octolytics-dimension-repository_network_root_nwo | simstudioai/sim |
| turbo-body-classes | logged-out env-production page-responsive full-width |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 3a0a9f049e072eb8e5795dfddcefdba9e277501d |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width