-
Notifications
You must be signed in to change notification settings - Fork 13.8k
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
chore: implement new mockup to the new viz gallery (2nd iteration) #15868
Conversation
`; | ||
|
||
const CategoriesWrapper = styled.div` | ||
const Wrapper = styled.div` |
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.
Wrapper
isn't a very descriptive name. I was going to suggest renaming it so that it indicates what it is wrapping, but then I noticed that it lives directly within the LeftPane
. Is it possible to merge these styles into LeftPane
and remove the Wrapper
component?
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.
I think it's possible, I'll try it.
Suggestion, non-blocking: |
/testenv up |
@suddjian Ephemeral environment spinning up at http://54.188.201.103:8080. Credentials are |
Good idea! I agree that we do not limit the sidebar size, and we also don't need tooltip. |
} | ||
key={COLLAPSE_LABEL.ALL_CHARTS} | ||
> | ||
<Selector |
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.
It's a bit strange to have a collapse panel that will only ever have one item in it. Should we put the "All Charts" selector at the top of the left pane instead, outside of the collapse?
ghost | ||
defaultActiveKey={Object.values(COLLAPSE_LABEL)} | ||
> | ||
<Collapse.Panel |
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.
Might be able to reduce some duplication by making an array of selector groups and map
ing that to render a collapse panel for each group.
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.
Or actually I think a better way to reduce duplication would be adding a component <SelectorGroup>
that renders a Collapse Panel and its contents.
Played with this in the ephemeral env, looks good! Awesome work. |
@suddjian thanks for the review!! |
147bdd4
to
d4b3f3c
Compare
Codecov Report
@@ Coverage Diff @@
## master #15868 +/- ##
==========================================
+ Coverage 77.08% 77.09% +0.01%
==========================================
Files 984 984
Lines 51787 51819 +32
Branches 7031 7043 +12
==========================================
+ Hits 39918 39949 +31
Misses 11644 11644
- Partials 225 226 +1
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
@stephenLYZ Ephemeral environment creation is currently limited to committers. |
/testenv up |
@suddjian Ephemeral environment spinning up at http://34.212.3.120:8080. Credentials are |
Looks nice! 1 nit which is probably not related to this PR - there's a short vertical scroll in some charts' descriptions which looks a bit weird. I wonder if we could get rid of it somehow (shorter descriptions? fewer tags? larger modal?) Screen.Recording.2021-07-26.at.19.09.58.movcc @junlincc |
I would like to see the "All Charts" section moved to the top and outside of a Collapse. Thoughts @junlincc ? |
1 more thing - we have an "X" button on "All charts" label, which doesn't do anything. Maybe "All charts" shouldn't have that button? |
👍Let's make above changes in a follow up PR> |
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.
Product sign-off ❣️great jobs everyone!! thank you so much! 🙇♀️
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.
code looks good, nice job
Ephemeral environment shutdown and build artifacts deleted. |
…pache#15868) * chore: implement new mockup to the new viz gallery * fix: update package-lock * fix: add license * fix: reduce duplication and fit within the sidebar * fix: ut
…pache#15868) * chore: implement new mockup to the new viz gallery * fix: update package-lock * fix: add license * fix: reduce duplication and fit within the sidebar * fix: ut
…pache#15868) * chore: implement new mockup to the new viz gallery * fix: update package-lock * fix: add license * fix: reduce duplication and fit within the sidebar * fix: ut
…pache#15868) * chore: implement new mockup to the new viz gallery * fix: update package-lock * fix: add license * fix: reduce duplication and fit within the sidebar * fix: ut
SUMMARY
This PR is the second iteration of viz gallery.
Highly-used
,ECharts
,Advanced-Analytics
related: #15734
design: https://www.figma.com/file/LMnulBPitqSh5GeElVbsUV/chart-popover?node-id=0%3A1
BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF
show existing chart and scroll to the category, enable the user to see the selected category.
2021-07-24.12.25.59.mov
TESTING INSTRUCTIONS
ADDITIONAL INFORMATION