Skip to content

Conversation

@DominikB2014
Copy link
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

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
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
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.

4 participants