Repository navigation
feat(site/src): add organization filter to AI Gateway sessions list - #32260
Merged
Merged
Conversation
Collaborator
Author
|
Warning This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
This stack of pull requests is managed by Graphite. Learn more about stacking. |
mollymaefraser
marked this pull request as ready for review
November 17, 2026 09:43
mollymaefraser
marked this pull request as draft
November 18, 2026 14:56
mollymaefraser
marked this pull request as ready for review
November 18, 2026 15:20
SasSwart
approved these changes
Nov 19, 2026
mollymaefraser
force-pushed
the
molly/aigov-754-sessions-org-backend
branch
from
November 19, 2026 08:47
000e30f to
8dcefea
Compare
mollymaefraser
force-pushed
the
molly/aigov-754-sessions-org-frontend
branch
from
November 19, 2026 09:07
cb6ae17 to
1164a4e
Compare
Base automatically changed from
molly/aigov-754-sessions-org-backend
to
main
November 19, 2026 09:08
…filter to AI Gateway sessions list
… menu on sessions list
mollymaefraser
force-pushed
the
molly/aigov-754-sessions-org-frontend
branch
from
November 19, 2026 09:09
1164a4e to
d253442
Compare
SasSwart
approved these changes
Nov 19, 2026
mollymaefraser
had a problem deploying
to
docs-preview
November 19, 2026 12:11 — with
GitHub Actions
Failure
This branch had an error being 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 subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.

Adds an organization filter to the AI Gateway sessions list, using the
organizationsearch key added in #32057. Choosing an organization addsorganization:<name>to the sessions query, so the list shows sessions with at least one interception attributed to that organization. The filter is a newOrganizationFilterinpages/AIBridgePage/filters/, shaped like the provider, client and model filters, with options from the sharedgetOrganizationFilterOptionshelper (the same source as the Connection Logs and Audit filters). The shareduseOrganizationsFilterMenuit first reused was removed in #32367. It is shown only whenuseDashboard().showOrganizationsis true, so single-organization deployments see no change. The AI Gateway audit docs mention the new filter.Refs AIGOV-754. Stacked on #32057.
Open questions for reviewers
organizationCheckinfilters/OrganizationFilter.tsx), not AI Gateway interceptions. Owners and auditors, who can see this page today, have both. A custom role that can see sessions but not audit logs would get an empty list. Connection Logs has the same behavior. Is this acceptable, or should it check AI Gateway interceptions instead (a one-line change)?Notes for reviewers
ListSessionsPage.test.tsxchecks that picking an organization sendsorganization:<name>in the request. TheWithOrganizationsstory shows the opened menu, andDefaultshows the bar without it. Hiding the filter on single-org deployments has no Vitest test, because FE1 does not allow presence assertions. It is the same one-lineshowOrganizationscheck as Connection Logs.Decisions and plan
main. Follow the Connection Logs pattern (ConnectionLogPage.tsx,ConnectionLogFilter.tsx).SessionSummaryTable.tsx).pnpm lint:types, Biome, theListSessionsPageVitest suite,frontend-review(FE1 to FE10),frontend-deep-review(all findings fixed), and doc-check onaudit.md(no blocking findings).Code written by @mollymaefraser, with Coder Agents used as a guide: explaining the existing code path, reviewing each step, running tests and reviews, and writing parts of the test setup.