Skip to content

feat(dashboards): add text widget visualization and integrate into viewer modal#108539

Open
nikkikapadia wants to merge 3 commits intomasterfrom
nikki/text-widget/make-visualization
Open

feat(dashboards): add text widget visualization and integrate into viewer modal#108539
nikkikapadia wants to merge 3 commits intomasterfrom
nikki/text-widget/make-visualization

Conversation

@nikkikapadia
Copy link
Member

Added the text visualization component which is just a MarkedText component within formatting containers. I've integrated it into the widget card components so that it will be baked in whenever someone uses the widget components. To make sure it has all the functionality (at least in dashboards) i've also made it compatible with the widget viewer modal. Here's some proof:
image
image

@github-actions github-actions bot added the Scope: Frontend Automatically applied to PRs that change frontend components label Feb 19, 2026
@nikkikapadia nikkikapadia marked this pull request as ready for review February 26, 2026 16:09
@nikkikapadia nikkikapadia requested a review from a team as a code owner February 26, 2026 16:09
Copy link
Contributor

@cursor cursor bot left a comment

Choose a reason for hiding this comment

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

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

description={widget.description}
description={
widget.displayType === DisplayType.TEXT ? undefined : widget.description
}
Copy link
Contributor

Choose a reason for hiding this comment

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

Text widget description shown in wrong card path

Medium Severity

Text widgets always use the second render path (when canUseTimeseriesVisualization is false) but the description-hiding logic for text widgets was only added to the first path. The second path still passes widget.description to WidgetFrame, so text widgets show the description in the frame header while the body also renders it via TextWidgetVisualization, causing duplication.

Fix in Cursor Fix in Web

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 Waiting for: Community

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant