Repository navigation
feat(site/src): use the search filter on the AI Gateway sessions list - #31040
Draft
tracyjohnsonux wants to merge 2 commits into
Draft
tracyjohnsonux wants to merge 2 commits into
tracyjohnsonux wants to merge 2 commits into
Conversation
Replace the sessions list search box and User, Provider, Client, and Model dropdowns with the FilterCombobox search filter used on the Workspaces page. Each former dropdown becomes a filter category. The date range keeps its own picker; its bounds are kept out of the search input and merged back into the query on change.
This branch has not been deployed
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.
Replaces the AI Gateway sessions list filter (search box plus User, Provider, Client, and Model dropdowns) with the
FilterComboboxsearch filter used on the Workspaces page.initiator(User),provider_name,client,model. Option loaders live inListSessionsPage/categoryOptions.tsxand go through new React Query definitions inapi/queries/aiBridge.ts. The User category reuses the WorkspacesgetUserFilterOptions(sessions are admin-only, so all users are listed).DateTimeRangePicker, now to the right of the search input.started_after/started_beforeare stripped from the combobox value and merged back on change (withoutTimeRange,queryWithSearch,queryWithTimeRangeintimeRange.ts). A bound typed in the search overrides only that bound.ErrorAlertabove the filter, matchingWorkspacesPageView. Validation errors show under the search input.ProviderFilter/ClientFilter/ModelFiltercomponents stay because the Spend page still uses them.Known limitation (accepted for now): the sessions search backend has no default key, so typed free text returns
no search key specified, shown under the input.Decision log
FilterComboboxchange).viewDeploymentConfiggate, since only admins can view sessions.ErrorAlertfor non-validation errors....-v2:0) are quoted; covered byListSessionsFilter.test.tsx.provider(type) andsession_idare not added as categories.Frontend review:
frontend-review(FE1 to FE10) andfrontend-deep-reviewpass after fixes. One DF6 finding (category array identity) was dropped becausesrc/pages/AIBridgePage/is compiled by React Compiler, which memoizes it.Generated by Coder Agents on behalf of @tracyjohnsonux.