Skip to content

fix(dashboards): Respect current time series interval in Widget Viewer#109766

Merged
gggritso merged 1 commit intomasterfrom
claude/clever-elbakyan
Mar 3, 2026
Merged

fix(dashboards): Respect current time series interval in Widget Viewer#109766
gggritso merged 1 commit intomasterfrom
claude/clever-elbakyan

Conversation

@gggritso
Copy link
Member

@gggritso gggritso commented Mar 3, 2026

Pass the dashboard's user-selected interval to the Widget Viewer Modal so
that opening a widget in full screen preserves the chosen interval instead
of reverting to the default. This is especially important when we remove
our custom data cache. If the interval changes, TanStack will issue another
network request to fetch the data!

The interval selection feature lets users pick a chart interval (e.g. 1m,
15m) for all time series widgets on a dashboard. This value was already
threaded through the main dashboard widget rendering path, but the Widget
Viewer Modal never received it. When a widget was opened in full screen,
its chart would re-fetch data without the interval override, causing a
jarring change in granularity.

Three changes:

  • Add widgetInterval to WidgetViewerModalOptions and pass it to the
    chart container and all table query components inside the modal
  • Add widgetInterval to WidgetCardChartContainer props so it can
    forward the value to WidgetCardDataLoader
  • Pass this.props.widgetInterval when opening the modal in
    DashboardDetail.checkIfShouldMountWidgetViewerModal

Refs DAIN-1257

The Widget Viewer Modal was not receiving the dashboard's interval
selection, causing charts to revert to the default interval when
opened in full screen. Thread widgetInterval through
WidgetCardChartContainer and the modal's query components so the
user-selected interval is respected.

Refs DAIN-1257
Co-Authored-By: Claude <noreply@anthropic.com>
@github-actions github-actions bot added the Scope: Frontend Automatically applied to PRs that change frontend components label Mar 3, 2026
@linear
Copy link

linear bot commented Mar 3, 2026

@gggritso gggritso changed the title fix(dashboards): Pass widgetInterval to Widget Viewer Modal fix(dashboards): Respect current timer series interval in Widget Viewer Mar 3, 2026
@gggritso gggritso marked this pull request as ready for review March 3, 2026 03:27
@gggritso gggritso requested a review from a team as a code owner March 3, 2026 03:27
@gggritso gggritso changed the title fix(dashboards): Respect current timer series interval in Widget Viewer fix(dashboards): Respect current time series interval in Widget Viewer Mar 3, 2026
Copy link
Member

@nikkikapadia nikkikapadia left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@gggritso gggritso merged commit fcebddd into master Mar 3, 2026
68 of 69 checks passed
@gggritso gggritso deleted the claude/clever-elbakyan branch March 3, 2026 16:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Scope: Frontend Automatically applied to PRs that change frontend components

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants