Skip to content

feat(site): migrate organization member filters to FilterCombobox - #31786

Merged
jakehwll merged 26 commits into
mainfrom
jakehwll/users-filter-combobox
Nov 18, 2026
Merged

jakehwll merged 26 commits into
mainfrom
jakehwll/users-filter-combobox

Conversation

@jakehwll

@jakehwll jakehwll commented Nov 5, 2026 •

Copy link
Copy Markdown
Collaborator

🤖 This PR was modified by Coder Agents on behalf of Jake Howell.

Replace the legacy organization member filter controls with the shared FilterCombobox, matching the workspace, template, and audit log filtering UI.

  • Combine account status and service-account filters in one input with removable chips while retaining URL-backed filter queries.
  • Preserve free-text searches and advanced query fields when adding or removing filters, and show validation errors on the input.
  • Reuse shared user status options and add regression tests and Storybook stories for the new controls.
Wording alignment

Use “User type” and “User type is…” to match the deployment Users filter from #29809. Keep the organization-specific “Search and filter members…” placeholder and existing filter behavior.

image

@jakehwll
jakehwll marked this pull request as ready for review November 5, 2026 14:56
@jakehwll
jakehwll added this pull request to stack #31784 November 5, 2026 14:56
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 5, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-05T14:59:40.280218Z 9e4964b Draft marked ready
ℹ️ 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@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: 9e4964b465

ℹ️ 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".

{Boolean(error) && <ErrorAlert error={error} />}

<UsersFilter {...filterProps} />
<OrganizationMembersFilter {...filterProps} error={error} />

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Pass only member-query errors to the filter

When adding/removing a member or updating roles returns field validations, OrganizationMembersPage.tsx includes that mutation error in the page-wide error prop, so passing it here marks a valid filter invalid and renders the unrelated operation's validation details beneath the search box. Pass the members query error separately for filter validation while retaining the aggregate error for ErrorAlert.

AGENTS.md reference: site/AGENTS.md:L11-L11

Useful? React with 👍 / 👎.

Comment on lines +27 to +30
chipKeys: ["service_account"],
inlineOptions: true,
inlineOptionsLabel: "Member is…",
chipLabelOnly: true,

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Keep the false service-account value visible

When a bookmarked or manually entered query contains the supported service_account:false filter, this category claims that token through chipKeys, but chipLabelOnly cannot find a matching option because only service_account:true is defined. The fallback chip and its remove label therefore display only service_account, hiding that the query excludes service accounts and making the active filter misleading; preserve the boolean value or provide a distinct option/label for the false case.

Useful? React with 👍 / 👎.

Merge main into the template filter combobox branch, preserving system-user suggestions and the shared filter query client type. Add namespaced cache keys to the Users page filter categories.

Generated by Coder Agents on behalf of Jake Howell.
Use the shared filter combobox accessible name and open the Author menu before checking user suggestions in the AI Settings template stories.

Generated by Coder Agents on behalf of Jake Howell.
Use me naming consistently and remove the pass-through template filter hook. Document why the shared user loader can fetch through the query client.

Strengthen cache-isolation and permission coverage, add the self-only author story, and clarify the compatibility-mode filter instructions.
Base automatically changed from jakehwll/audit-log-filters-combobox to main November 18, 2026 02:25
@jakehwll
jakehwll merged commit c1fec5f into main Nov 18, 2026
37 of 56 checks passed
@jakehwll
jakehwll deleted the jakehwll/users-filter-combobox branch November 18, 2026 02:26
@github-actions github-actions Bot locked and limited conversation to collaborators Nov 18, 2026

This branch had an error being deployed

1 failed and 1 inactive deployments
docs-preview — 309b1c5c Deployed Nov 18, 2026 by jakehwll via cleanup #194
main — 309b1c5c Deployed Nov 18, 2026 by jakehwll via cla #259080
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