Skip to content

fix: delete DateTimeRangeFilter and unify on the picker's time range type - #28427

Merged
tracyjohnsonux merged 2 commits into
mainfrom
dedup-timerange-type
Aug 25, 2026
Merged

fix: delete DateTimeRangeFilter and unify on the picker's time range type#28427
tracyjohnsonux merged 2 commits into
mainfrom
dedup-timerange-type

Conversation

@tracyjohnsonux

Copy link
Copy Markdown
Contributor

Completes the deduplication agreed in #28392 (review): now that DateTimeRangePicker has replaced the text-expression DateTimeRangeFilter on the AI Gateway sessions page, the old component and its TimeRange type are deleted, leaving a single time-range value shape.

  • Deletes site/src/components/DateTimeRangeFilter/ (component, stories, timeRange.ts helpers, tests); nothing imported it except the sessions page type alias.
  • The sessions page helpers in ListSessionsPage/timeRange.ts now use neutral {start, end} naming derived from the picker's DateTimeRangeValue (type TimeRange = Pick<DateTimeRangeValue, "start" | "end">), removing the startedAfter/startedBefore field mapping the page previously did by hand.

No behavior changes: the query-string serialization (started_after/started_before RFC 3339 params) is untouched, and all existing unit tests pass with only field renames.


Generated by Coder Agents on behalf of @tracyjohnsonux.

@tracyjohnsonux
tracyjohnsonux marked this pull request as ready for review August 20, 2026 23:29
Comment thread site/src/pages/AIBridgePage/ListSessionsPage/timeRange.ts
@tracyjohnsonux
tracyjohnsonux merged commit 607a1d0 into main Aug 25, 2026
26 checks passed
@tracyjohnsonux
tracyjohnsonux deleted the dedup-timerange-type branch August 25, 2026 05:58
@github-actions github-actions Bot locked and limited conversation to collaborators Aug 25, 2026
@tracyjohnsonux tracyjohnsonux changed the title refactor(site/src): delete DateTimeRangeFilter and unify on the picker's time range type fix: delete DateTimeRangeFilter and unify on the picker's time range type Aug 26, 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