-
Notifications
You must be signed in to change notification settings - Fork 14.1k
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): Make comparison values on BigNumberPeriodOverPeriod toggleable #28605
base: master
Are you sure you want to change the base?
Conversation
/testenv up |
/testenv up FEATURE_CHART_PLUGINS_EXPERIMENTAL=true |
@Antonio-RiveroMartnez Ephemeral environment spinning up at http://35.93.65.110:8080. Credentials are |
@eschutho any chance this gets reviewed and merged? We'd very much love the feature! |
/testenv up FEATURE_CHART_PLUGINS_EXPERIMENTAL=true |
@fontclos Ephemeral environment creation is currently limited to committers. |
/testenv up FEATURE_CHART_PLUGINS_EXPERIMENTAL=true |
@rusackas Ephemeral environment spinning up at http://35.92.2.227:8080. Credentials are |
Thanks for the contribution @mkramer5454! This looks good to me. Can you write a few tests here: superset-frontend/packages/superset-ui-core/test/time-comparison/getComparisonInfo.test.ts |
And maybe one small UI improvement, when "Add color for positive/negative" is selected, there's an extra dialog that shows up. I'd suggest to keep the two fields together and minimize any jumpiness, we just move the "Add color" field to the bottom below the new checkboxes. Also cc @yousoph and @kasiazjc on any other design suggestions. |
SUMMARY
There are various scenarios where it is preferred to only show a subset of the three comparison values: previous period value, period difference, and period percent change. This change allows for hiding unwanted values.
(This is my first contribution on the frontend side so please let me know if I missed something obvious!)
BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF
optional_comparison_diplays.mov
TESTING INSTRUCTIONS
ADDITIONAL INFORMATION