Repository navigation
feat(platform): replace agent tools checkbox wall with searchable picker - #2525
Merged
Merged
Conversation
The agent editor's Tools tab rendered ~48 tools as a bare two-column checkbox list: no descriptions, no search, no group toggles or counts, half the content width unused. Rework ToolSelector into a scannable picker composed from existing primitives: - SearchInput + rankTokens/scoreText (@tale/ui/search) filter tools by localized label, description, raw name, and category label - one Card per category with a Lucide glyph, a parent enable-all checkbox (indeterminate when partial) and an enabled/total Badge; under an active filter the header only ever toggles visible rows - CheckboxGroup rows gain one-line localized descriptions (settings.agents.tools.descriptions.* in en/de/fr, all 48 tools) - SearchX EmptyState when nothing matches - tools tab widens to the max-w-3xl cap the sibling environment tab already uses; the web-search RadioGroup gets the same Card frame The save contract is unchanged: toolNames / integrationBindings / workflows flow through the same handlers, hiddenTools still excluded, external agents still see only their integration bindings. Closes #2384
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.
Closes #2384
Problem
The agent editor's Tools tab was a flat two-column checkbox wall: ~48 tools under small text headers, no per-tool descriptions, no search, no group toggles or counts, and half of the content area sat empty.
Change
ToolSelectoris rebuilt as a scannable, searchable, grouped picker — composed entirely from existing primitives, no new UI concepts:SearchInputplusrankTokens/scoreTextfrom@tale/ui/search(the same AND-token model the global search uses). Matches the localized label, the description, the raw tool name, and the category label. ASearchXEmptyStateshows when nothing matches.Cardper category with a Lucide glyph, a parent enable-allCheckbox(indeterminate when partially enabled) and an enabled/total countBadge. Under an active filter the header checkbox only ever toggles the visible rows, never hidden ones.settings.agents.tools.descriptions.*, all 48 tools in en/de/fr; de-CH stays an overlay). Registry descriptions are LLM prompt text, so they were not reused verbatim.narrowcap to themax-w-3xlcap the sibling environment/conversation-starters tabs already use; category cards lay out in two columns. The web-searchRadioGroupgets the sameCardframe so it reads as part of the picker.The data contract is untouched:
toolNames/integrationBindings/workflowsflow through the same handlers,hiddenTools(rag_search, web) stay excluded, external agents still see only their integration bindings, and the existing web-search e2e flow is unchanged.Tests
tool-selector.test.tsx(8 tests): grouping + labels + descriptions + counts, indeterminate/checked group states, per-tool toggle preserving other groups, group enable-all select/clear, search filtering, no-match empty state, hiddenTools exclusion, external-agent mode, plus an axe accessibility check.lib/i18n/messages.test.ts(parity + usage, 23 tests) green.