Move search state into ToolControls and PromptControls, search response in history
- ToolControls and PromptControls now manage searchText as local state and filter their lists internally (matches on name + title/description) - Removed searchText/onSearchChange props from ToolsScreen, PromptsScreen, and their associated stories - HistoryListPanel search now also matches against stringified response payloads Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
e00853afac
commit
064b807ea4
1 changed files with 18 additions and 41 deletions
|
|
@ -394,9 +394,7 @@ export const ToolsActive: Story = {
|
|||
],
|
||||
onClear: fn(),
|
||||
}}
|
||||
searchText=""
|
||||
listChanged={true}
|
||||
onSearchChange={fn()}
|
||||
onRefreshList={fn()}
|
||||
onSelectTool={fn()}
|
||||
/>
|
||||
|
|
@ -677,8 +675,6 @@ export const PromptsActive: Story = {
|
|||
],
|
||||
}}
|
||||
listChanged={true}
|
||||
searchText=""
|
||||
onSearchChange={fn()}
|
||||
onRefreshList={fn()}
|
||||
onSelectPrompt={fn()}
|
||||
onArgumentChange={fn()}
|
||||
|
|
|
|||
Loading…
Reference in a new issue