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

feat(plugins): add color options for big number with time comparison #27524

Merged
merged 2 commits into from
Mar 16, 2024

Conversation

lilykuang
Copy link
Member

@lilykuang lilykuang commented Mar 14, 2024

SUMMARY

This pull request adds a feature to the Big number with time comparison chart, allowing users to color-code positive and negative changes. It introduces a dropdown menu for selecting between two color schemes: the default "Green for increase, Red for decrease" or "Red for increase, Green for decrease." Users can switch between these options, and the chart will update automatically to reflect the change.

BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF

After:
time-comparison

TESTING INSTRUCTIONS

ADDITIONAL INFORMATION

  • Has associated issue:
  • Required feature flags:
  • Changes UI
  • Includes DB Migration (follow approval process in SIP-59)
    • Migration is atomic, supports rollback & is backwards-compatible
    • Confirm DB migration upgrade and downgrade tested
    • Runtime estimates and downtime expectations provided
  • Introduces new feature or API
  • Removes existing feature or API

Copy link

codecov bot commented Mar 14, 2024

Codecov Report

Attention: Patch coverage is 0% with 10 lines in your changes missing coverage. Please review.

Project coverage is 67.39%. Comparing base (d2c9001) to head (cbb80df).
Report is 1414 commits behind head on master.

Files with missing lines Patch % Lines
...src/BigNumber/BigNumberPeriodOverPeriod/PopKPI.tsx 0.00% 9 Missing ⚠️
...igNumber/BigNumberPeriodOverPeriod/controlPanel.ts 0.00% 1 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##           master   #27524   +/-   ##
=======================================
  Coverage   67.39%   67.39%           
=======================================
  Files        1909     1909           
  Lines       74741    74741           
  Branches     8327     8329    +2     
=======================================
  Hits        50369    50369           
  Misses      22322    22322           
  Partials     2050     2050           
Flag Coverage Δ
javascript 57.22% <0.00%> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

visibility: ({ controls }) =>
controls?.comparison_color_enabled?.value === true,
description: t(
' Adds color to the chart symbols based on the positive or' +
Copy link

Choose a reason for hiding this comment

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

Missing trailing space. Currently it's being rendered as positive ornegative

Copy link
Member Author

Choose a reason for hiding this comment

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

nice catch, thank you!

@justinpark justinpark self-requested a review March 15, 2024 17:27
Copy link
Member

@eschutho eschutho left a comment

Choose a reason for hiding this comment

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

Thanks @lilykuang!

@lilykuang lilykuang merged commit ae29427 into master Mar 16, 2024
27 checks passed
@lilykuang lilykuang deleted the big-number-color branch March 16, 2024 00:40
sadpandajoe pushed a commit to preset-io/superset that referenced this pull request Mar 18, 2024
sadpandajoe pushed a commit to preset-io/superset that referenced this pull request Mar 19, 2024
sadpandajoe pushed a commit to preset-io/superset that referenced this pull request Mar 22, 2024
sadpandajoe pushed a commit to preset-io/superset that referenced this pull request Mar 26, 2024
sadpandajoe pushed a commit to preset-io/superset that referenced this pull request Mar 26, 2024
sadpandajoe pushed a commit to preset-io/superset that referenced this pull request Mar 28, 2024
sadpandajoe pushed a commit to preset-io/superset that referenced this pull request Apr 1, 2024
sadpandajoe pushed a commit to preset-io/superset that referenced this pull request Apr 2, 2024
betodealmeida pushed a commit that referenced this pull request Apr 25, 2024
eschutho pushed a commit that referenced this pull request Jun 5, 2024
vinothkumar66 pushed a commit to vinothkumar66/superset that referenced this pull request Nov 11, 2024
@mistercrunch mistercrunch added 🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels 🚢 4.1.0 labels Nov 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels plugins size/M 🚢 4.1.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants