Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stat: Add ability to remove default single-color background gradient #64353

Merged
merged 19 commits into from
Mar 14, 2023

Conversation

baldm0mma
Copy link
Contributor

@baldm0mma baldm0mma commented Mar 7, 2023

What is this feature?

This add the ability for the user to remove the color gradient and solid background colors in the stat panel. A boolean toggle renders when the colorMode is switched to "Background' - seeing as background is the the only value the gradient background applies to - and the user can switch from gradient to non-gradient.

Why do we need this feature?

In almost all BI use cases, it is core to the usability of a stat panel to follow - to a tee - the branding color. The default solid color gradient makes this impossible, and is a deal-breaker for many organizations.

Who is this feature for?

Everyone.

Which issue(s) does this PR fix?:

N/A

Special notes for your reviewer:

Screen.Recording.2023-03-09.at.6.54.51.AM.mov

@baldm0mma baldm0mma changed the title baldm0mma/feature/solidOption/ update cue and ts types Stat Panel: feature - add ability to remove default single-color background gradient Mar 7, 2023
@baldm0mma baldm0mma self-assigned this Mar 9, 2023
@baldm0mma baldm0mma added this to the 9.5.0 milestone Mar 9, 2023
@baldm0mma baldm0mma marked this pull request as ready for review March 9, 2023 13:58
@baldm0mma baldm0mma requested a review from a team March 9, 2023 13:58
@baldm0mma baldm0mma requested review from a team as code owners March 9, 2023 13:58
@baldm0mma baldm0mma requested review from a team and Eve832 as code owners March 9, 2023 13:58
@baldm0mma baldm0mma requested review from codeincarnate, oscarkilhed, ashharrison90, yaelleC and andresmgot and removed request for a team March 9, 2023 13:58
@baldm0mma baldm0mma changed the title Stat Panel: feature - add ability to remove default single-color background gradient StatPanel: add ability to remove default single-color background gradient Mar 9, 2023
@baldm0mma baldm0mma changed the title StatPanel: add ability to remove default single-color background gradient StatPanel: Add ability to remove default single-color background gradient Mar 9, 2023
@baldm0mma baldm0mma changed the title StatPanel: Add ability to remove default single-color background gradient Stat: Add ability to remove default single-color background gradient Mar 9, 2023
Copy link
Collaborator

@codeincarnate codeincarnate left a comment

Choose a reason for hiding this comment

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

Tested it out and works fine. See my comments (which are kind of nitpicky 😂) but with those changes I think it would be fine 😄

public/app/plugins/panel/stat/module.tsx Show resolved Hide resolved
packages/grafana-ui/src/components/BigValue/BigValue.tsx Outdated Show resolved Hide resolved
@baldm0mma baldm0mma merged commit de90156 into main Mar 14, 2023
@baldm0mma baldm0mma deleted the baldm0mma/feature/solidOption branch March 14, 2023 14:59
torkelo added a commit that referenced this pull request Mar 19, 2023
torkelo added a commit that referenced this pull request Mar 20, 2023
…radient" (#65002)

Revert "Stat: Add ability to remove default single-color background gradient (#64353)"

This reverts commit de90156.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants