-
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(explore): Implement viz switcher redesign #20248
Conversation
/testenv up |
@kgabryje Ephemeral environment spinning up at http://52.41.74.164:8080. Credentials are |
Codecov Report
@@ Coverage Diff @@
## master #20248 +/- ##
==========================================
- Coverage 66.65% 66.62% -0.03%
==========================================
Files 1729 1734 +5
Lines 64910 64997 +87
Branches 6842 6871 +29
==========================================
+ Hits 43267 43306 +39
- Misses 19894 19933 +39
- Partials 1749 1758 +9
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
/testenv up |
@kgabryje Ephemeral environment spinning up at http://34.209.245.19:8080. Credentials are |
Looks good to me! One thing about the charts: we chose time-series (line, bar) as they will be becoming the default after the generic x-axis will be introduced for everyone. They have also similar statistics in terms of how much they are used (time series vs not). Question: do we want to leave time-series charts, go back to simple line/bar OR add a logic which for example shows time-series ones if you have feature flag enabled and for others it shows basic line/bar? All of those are in Tier 1, so I think we need a product decision here. Thoughts @rusackas @lauderbaugh? |
I like the new feature, the only thing is when i open a non-feature chart, then select the viz switcher, my old chart viz will be gone and i need to go to "View all charts" to get my old chart viz back but then i have redo everything for my old chart. Can we have a better flow for undo selecting the viz switcher? viz.switcher.mov |
/testenv up |
@zhaoyongjie Ephemeral environment spinning up at http://35.166.119.29:8080. Credentials are |
d3c0f23
to
4ea9ace
Compare
4ea9ace
to
c8bb67b
Compare
Thanks for testing Jinghua! Now the currently rendered chart's icon stays visible at the start of the list when you switch between charts. |
/testenv up |
@kgabryje Ephemeral environment spinning up at http://35.89.77.28:8080. Credentials are |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks cool! I love this feature.
import { Tooltip } from 'src/components/Tooltip'; | ||
import Icons from 'src/components/Icons'; | ||
import { useSelector } from 'react-redux'; | ||
import { ExplorePageState } from '../../../reducers/getInitialState'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit:
import { ExplorePageState } from 'src/explore/reducers/getInitialState';
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oops! I wish auto-import would use those absolute paths by default...
|
Ephemeral environment shutdown and build artifacts deleted. |
SUMMARY
This PR implements the redesign of viz switcher. Now user can quickly change viz type to 1 of 6 featured charts without opening the viz gallery modal.
Active chart is represented by an icon and chart name. If chart's name is truncated, then tooltip appears on hover.
The rest of the featured charts are represented only by a clickable icon. Chart's name appears in a tooltip on hover. Clicking the icon switches the viz type.
User can open the viz gallery modal by clicking "View all charts". When user selects a chart that is not "featured", it's represented by a magnifying glass icon and chart's name. It's placed first on the quick viz switcher list.
When a non-featured chart is currently rendered, it's displayed at the start of the list.
Currently rendered chart has a tooltip "Currently rendered: "
Featured charts are:
Side note - this feature will work even better when Yongjie's standardized form data PR is merged 🙂
BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF
Screen.Recording.2022-06-07.at.13.19.46.mov
TESTING INSTRUCTIONS
ADDITIONAL INFORMATION
CC @kasiazjc