Repository navigation
feat(agents): show Ready to use filters as one row of dropdown headers - #2179
Merged
gkhngyk merged 3 commits intoNov 6, 2026
Merged
Conversation
Agent Center › Ready to use showed its filters as three rows of chips.
They are now one row of headers, Goal ▾ · Business type ▾ · Role ▾,
built on the app's dropdown menu (Base UI Menu, radio items) and its
ChevronDown icon. Clicking a header opens its options right under it;
one panel is open at a time, Escape or a click outside closes it, and
picking an option, All included, closes it and filters as before. A
header names its pick ("Goal: Content"), so the row says what is
filtered. Industry stays hidden while no preset carries one. The filters
stay in the component's state, as before.
Help: Agent Center's article gets a "Filter ready-to-use agents"
section; the approved articles are copied again.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01SvzkMf5TZg7yqwaSeMFba9
…r-filter-menus Conflict in help/chat/agents.md's keywords: main's new ones (what this agent did, agent impact …) kept, with this branch's goal, role and filter agents added. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01SvzkMf5TZg7yqwaSeMFba9
…r-filter-menus Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01SvzkMf5TZg7yqwaSeMFba9
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 join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
The owner asked for this. Agent Center › Ready to use showed its filters as three rows of chips: Goal (10 chips), Business type (5) and For your role (9). They are now one row of headers side by side: Goal ▾ · Business type ▾ · Role ▾. Clicking a header opens its options right below it, and the other headers stay closed.
How it behaves:
aria-haspopup="menu",aria-expanded, andaria-controlspointing at the panel while it is open. Enter, Space or ↓ opens it and moves the focus into the options. The arrow keys move through them, and Enter picks one. Esc, or picking an option, gives the focus back to the header.Components reused: the app's
DropdownMenu(web/src/components/ui/dropdown-menu.tsx, Base UI Menu) withDropdownMenuRadioGroup/DropdownMenuRadioItem closeOnClick(the radio items' ✓ marks the pick), as the Content page's sort menu and the editor's page-type menu use it. The headers keep the list's.fcchip shape with lucide'sChevronDown, the arrow the app's dropdown triggers use.Strings: one new string,
chatAgents.ready.filterPicked= "{filter}: {value}".chatAgents.ready.filters.rolenow reads Role (was "For your role"), the owner's word for the header. The For your role mark on a card is a different string and is unchanged.Phone width: checked in headless Chrome at 375px. The three headers fit on one line, and with long picks ("Role: Business Development") they wrap onto more lines. A panel near the right edge moves in to stay on screen.
help/chat/agents.mdgets a new section, Filter ready-to-use agents (102 words). It replaces the old one-line mention ("Filter them by Goal, Business type and For your role"), which made Ready-to-use agents go over 150 words. Keywords: goal, role, filter agents.approved-articles.jsonregenerated (yarn test -u src/lib/help).Related issue
None (owner's request: Agent Center UI).
Type of change
feat— New featurefix— Bug fixchore— Maintenance / dependenciesdocs— Documentation onlyrefactor— Code change that neither fixes a bug nor adds a featuretest— Adding or updating testsHow to test
cd web && npx vitest run src/components/chat/agents/ready-agents.test.tsx src/lib/help.Checklist
yarn lintpassesyarn typecheckpassesyarn format:checkpasseshelp/(or no user-visible change)Branched from
mainat e2be79b, thenmain(12e5e7b) merged in (b876c9c). The one conflict washelp/chat/agents.md's keywords: main's new ones are kept and this branch's are added. Checks below ran locally on b876c9c. Latermain(5d1a1e6, #2145) was merged in the same way (0334706): the keywords again, with Help regenerated and the Help and Ready to use tests passing.format:checkpasses.lintgives 0 errors and 7 warnings, all already onmainin files this PR doesn't touch.typecheckpasses.yarn testpasses 998/998 files, 10696 tests passed and 1 skipped.yarn buildwith CI's placeholder env passes.ready-agents.test.tsx: 16/16, with no new act() warnings.src/lib/help: 12/12 (approved-articles.jsonis up to date after the merge).Generated by Claude Code