Skip to content

feat(dashboards): allow prebuilt dashboards to hardcode units#105743

Merged
DominikB2014 merged 13 commits intomasterfrom
dominikbuszowiecki/browse-218-hardcode-percentage-units-in-dashboard-json
Jan 7, 2026
Merged

feat(dashboards): allow prebuilt dashboards to hardcode units#105743
DominikB2014 merged 13 commits intomasterfrom
dominikbuszowiecki/browse-218-hardcode-percentage-units-in-dashboard-json

Conversation

@DominikB2014
Copy link
Copy Markdown
Contributor

@DominikB2014 DominikB2014 commented Jan 6, 2026

There are several equations that have no units (all percentage based ones in this case), this PR allows us to define units for prebuilt dashboards. Eventually we could make this a field in the db, and allow it to be clone able/user customizable.

There's some wacky stuff I had to do to get the units working for line charts that have a groupby, the series name isn't the equation name in that case, it's the group name. So there's no easy way to map between the two. Please let me know if you have any better suggestions here.

image image image

@DominikB2014 DominikB2014 requested review from a team as code owners January 6, 2026 20:28
@linear
Copy link
Copy Markdown

linear bot commented Jan 6, 2026

@github-actions github-actions bot added the Scope: Frontend Automatically applied to PRs that change frontend components label Jan 6, 2026
Copy link
Copy Markdown
Member

@gggritso gggritso left a comment

Choose a reason for hiding this comment

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

Makes sense overall, thanks! I think you can wait for Nar's PR (mentioned in comments) to land, and it'll make your life easier here 👍🏻

@DominikB2014 DominikB2014 enabled auto-merge (squash) January 7, 2026 19:37
@DominikB2014 DominikB2014 merged commit 97f489a into master Jan 7, 2026
53 checks passed
@DominikB2014 DominikB2014 deleted the dominikbuszowiecki/browse-218-hardcode-percentage-units-in-dashboard-json branch January 7, 2026 19:45
@github-actions github-actions bot locked and limited conversation to collaborators Jan 23, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Scope: Frontend Automatically applied to PRs that change frontend components

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants