Thanks to visit codestin.com
Credit goes to github.com

Skip to content

feat(site/src): use DateTimeRangePicker on the AI sessions page - #28426

Merged
tracyjohnsonux merged 4 commits into
mainfrom
aibridge-sessions-datetime-picker
Aug 20, 2026
Merged

feat(site/src): use DateTimeRangePicker on the AI sessions page#28426
tracyjohnsonux merged 4 commits into
mainfrom
aibridge-sessions-datetime-picker

Conversation

@tracyjohnsonux

@tracyjohnsonux tracyjohnsonux commented Aug 20, 2026

Copy link
Copy Markdown
Contributor

Follow-up to #28392. Wires the new DateTimeRangePicker into the AI Gateway sessions page, replacing the text-expression DateTimeRangeFilter, and removes the redundant "Filters" preset button.

  • The picker trigger sits in the filter row alongside the search field and the User/Provider/Client/Model dropdowns.
  • The preset queries (All sessions, My sessions) behind the Filters button duplicate the search field and the user dropdown, so the button is dropped by passing no presets. Other pages using the shared Filter component are unaffected.
  • No API or URL contract changes: the filter query still stores resolved started_after/started_before timestamps. The picker's preset id is display-only component state, shown only while the URL range still matches what the preset resolved to, so shared links keep rendering as custom ranges.
  • Clearing the search resets the picker to the default window, labeled "Last 24 hours".
  • The picker trigger chevron now uses the shared animated ChevronDownIcon, rotating on open like the other dropdown triggers.
  • The old DateTimeRangeFilter component is left in place (still referenced by its stories); removing it can be a separate cleanup.

Storybook: the sessions filter story now asserts the Filters button is gone and exercises opening the picker; existing stories updated to the new value shape. biome, tsc, and the Storybook interaction tests for the page pass.


Generated by Coder Agents on behalf of @tracyjohnsonux.

…sions page

Replace the text-expression DateTimeRangeFilter with the new
DateTimeRangePicker on the AI Gateway sessions page and drop the
redundant Filters preset button. The preset queries (All sessions,
My sessions) are already covered by the search field and the user
dropdown.

The picker preset id lives in component state only; the filter query
keeps storing resolved started_after/started_before timestamps, so
shared links and the API contract are unchanged.
@tracyjohnsonux
tracyjohnsonux marked this pull request as ready for review August 20, 2026 22:55
…like other dropdowns

Use the shared animated ChevronDownIcon so the trigger chevron flips
while the popover is open, matching Select and Combobox triggers.
…the search is cleared

Derive the preset from the URL: with no explicit range the default
window applies, so the trigger shows the Last 24 hours label instead
of a stale custom range.
@tracyjohnsonux tracyjohnsonux changed the title feat(site/src/pages/AIBridgePage): use DateTimeRangePicker on the sessions page feat(site/src): use DateTimeRangePicker on the AI sessions page Aug 20, 2026
@tracyjohnsonux
tracyjohnsonux enabled auto-merge (squash) August 20, 2026 23:07
@tracyjohnsonux
tracyjohnsonux merged commit 1c13940 into main Aug 20, 2026
29 of 30 checks passed
@tracyjohnsonux
tracyjohnsonux deleted the aibridge-sessions-datetime-picker branch August 20, 2026 23:08
@github-actions github-actions Bot locked and limited conversation to collaborators Aug 20, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants