Skip to content

refactor(site): migrate WorkspacesButton to Combobox - #27723

Merged
jakehwll merged 4 commits into
mainfrom
jakehwll/workspacesbutton-combobox
Aug 6, 2026
Merged

refactor(site): migrate WorkspacesButton to Combobox#27723
jakehwll merged 4 commits into
mainfrom
jakehwll/workspacesbutton-combobox

Conversation

@jakehwll

Copy link
Copy Markdown
Contributor

Migrates the New workspace template picker off MUI Link, Emotion css, and the custom Popover/MenuSearch stack onto the shared Combobox used by filters.

Selecting a template still navigates to create a workspace. The list max-height uses the popover's available height so the footer stays visible and scrolling works on short viewports.

Comment on lines +75 to +81
// Cap the list to the popover's available height minus the search
// input and footer. A nested max-height (e.g. 380px) larger than
// the remaining space clips the footer on short viewports.
style={{
maxHeight:
"min(380px, calc(var(--radix-popper-available-height) - 8rem))",
}}

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

This is a bit of a hack, feel free to push back 😛

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.

I want to push back! but I honestly can't think of a better way to accomplish this

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 0b4bb9d5b1

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +46 to +47
<Combobox
onValueChange={(templateId) => {

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Badge Add interaction coverage for the migrated picker

This replaces the template links with a searchable Combobox and moves navigation into onValueChange, but the commit does not add or update a Storybook story, and the existing WorkspacesPage stories never open or select from this picker. Add a play interaction that opens the menu, searches, selects a template, and verifies navigation so the new keyboard and filtering behavior is exercised as required by FE1.

AGENTS.md reference: site/AGENTS.md:L9-L10

Useful? React with 👍 / 👎.

Comment thread site/src/pages/WorkspacesPage/WorkspacesButton.tsx Outdated
@jakehwll
jakehwll requested a review from jeremyruppel August 4, 2026 16:14
const templateLink = getLink(
linkToTemplate(template.organization_name, template.name),
function sortTemplatesByUsersDesc(templates: readonly Template[]) {
return [...templates].sort(

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.

nit: wanna use toSorted() here?

@jakehwll
jakehwll enabled auto-merge (squash) August 6, 2026 01:21
@jakehwll
jakehwll merged commit a79031a into main Aug 6, 2026
26 checks passed
@jakehwll
jakehwll deleted the jakehwll/workspacesbutton-combobox branch August 6, 2026 01:28
@github-actions github-actions Bot locked and limited conversation to collaborators Aug 6, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants