Skip to content

feat(dashboards): text widget add to dashboard flow#111019

Draft
nikkikapadia wants to merge 8 commits intomasterfrom
nikki/text-widget/add-to-dashboard
Draft

feat(dashboards): text widget add to dashboard flow#111019
nikkikapadia wants to merge 8 commits intomasterfrom
nikki/text-widget/add-to-dashboard

Conversation

@nikkikapadia
Copy link
Member

Currently the add to dashboard flow from text widgets is throwing errors. This PR fixes that. We can now add text widgets to other dashboards (if people want to ig)

@github-actions github-actions bot added the Scope: Frontend Automatically applied to PRs that change frontend components label Mar 18, 2026
Comment on lines 483 to +494
eventView={eventViewFromWidget(
newWidgetTitle,
widget.queries[0]!,
widget.displayType === DisplayType.TEXT
? {
name: '',
fields: [],
aggregates: [],
columns: [],
orderby: '',
conditions: '',
}
: widget.queries[0]!,
Copy link
Member Author

@nikkikapadia nikkikapadia Mar 18, 2026

Choose a reason for hiding this comment

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

it's easier to do this than to create a different modal or even do an early return because the WidgetCard needs information from these providers otherwise it won't render. Also, we want to keep using the WidgetCard because it contains the WidgetFrame and the chart with all the appropriate formatting.

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.

1 participant