[Feature] UI - Search Tools: Show Config Defined Search Tools#20436
Merged
yuneng-jiang merged 3 commits intomainfrom Feb 4, 2026
Merged
[Feature] UI - Search Tools: Show Config Defined Search Tools#20436yuneng-jiang merged 3 commits intomainfrom
yuneng-jiang merged 3 commits intomainfrom
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Contributor
Greptile OverviewGreptile SummaryThis PR refactors the Search Tools UI components by renaming files from snake_case to PascalCase and migrating from TanStack's DataTable to Ant Design's Table component. Key Changes:
Testing:
Confidence Score: 5/5
|
| Filename | Overview |
|---|---|
| ui/litellm-dashboard/src/components/SearchTools/types.tsx | Added is_from_config field to SearchTool interface to distinguish config-defined vs DB-stored tools |
| ui/litellm-dashboard/src/components/SearchTools/SearchToolColumn.tsx | Migrated column definitions from TanStack Table to Ant Design Table, added Source column and disabled edit/delete for config-based tools |
| ui/litellm-dashboard/src/components/SearchTools/SearchTools.tsx | Refactored to use Ant Design Table instead of DataTable, improved DeleteResourceModal usage with detailed resource information |
| ui/litellm-dashboard/src/components/SearchTools/SearchTools.test.tsx | New comprehensive unit tests covering all SearchTools component behaviors including authentication, CRUD operations, and navigation |
| ui/litellm-dashboard/src/components/SearchTools/SearchToolView.test.tsx | New comprehensive unit tests for SearchToolView component covering display, copy functionality, and edge cases |
Sequence Diagram
sequenceDiagram
participant User
participant SearchTools
participant API
participant Backend
User->>SearchTools: Load Search Tools Page
SearchTools->>API: fetchSearchTools(accessToken)
API->>Backend: GET /search_tools
Backend-->>API: { search_tools: [...] }
API-->>SearchTools: SearchTool[]
SearchTools->>API: fetchAvailableSearchProviders(accessToken)
API->>Backend: GET /search_providers
Backend-->>API: { providers: [...] }
API-->>SearchTools: AvailableSearchProvider[]
SearchTools->>SearchTools: Render Ant Design Table with tools
alt Config-Defined Tool
SearchTools->>SearchTools: Show "Config" tag in Source column
SearchTools->>SearchTools: Disable Edit/Delete actions
Note over SearchTools: is_from_config = true
else DB-Stored Tool
SearchTools->>SearchTools: Show "DB" tag in Source column
SearchTools->>SearchTools: Enable Edit/Delete actions
Note over SearchTools: is_from_config = false
end
alt User clicks tool ID
User->>SearchTools: Click tool ID button
SearchTools->>SearchTools: Navigate to SearchToolView
SearchToolView->>User: Display tool details & tester
end
alt User edits DB tool
User->>SearchTools: Click Edit button
SearchTools->>SearchTools: Open edit modal with form
User->>SearchTools: Submit changes
SearchTools->>API: updateSearchTool(accessToken, toolId, data)
API->>Backend: PUT /search_tool/{toolId}
Backend-->>API: Updated tool
API-->>SearchTools: Success
SearchTools->>SearchTools: Refetch tools & close modal
end
alt User deletes DB tool
User->>SearchTools: Click Delete button
SearchTools->>SearchTools: Open DeleteResourceModal
User->>SearchTools: Confirm delete
SearchTools->>API: deleteSearchTool(accessToken, toolId)
API->>Backend: DELETE /search_tool/{toolId}
Backend-->>API: Success
API-->>SearchTools: Success
SearchTools->>SearchTools: Refetch tools & close modal
end
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.
Relevant issues
Pre-Submission checklist
Please complete all items before asking a LiteLLM maintainer to review your PR
tests/litellm/directory, Adding at least 1 test is a hard requirement - see detailsmake test-unitCI (LiteLLM team)
Branch creation CI run
Link:
CI run for the last commit
Link:
Merge / cherry-pick CI run
Links:
Type
🧹 Refactoring
✅ Test
Changes
Refactored Search Tools components by renaming files from snake_case to PascalCase for consistency. Migrated the search tools table implementation to use Ant Design's Table component, extracting column definitions into a separate
SearchToolColumn.tsxfile. Added unit tests forSearchToolsandSearchToolViewcomponents.Screenshots