-
Notifications
You must be signed in to change notification settings - Fork 13.9k
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(CRUD): add new empty state #19310
Conversation
Codecov Report
@@ Coverage Diff @@
## master #19310 +/- ##
==========================================
- Coverage 66.62% 66.61% -0.02%
==========================================
Files 1671 1671
Lines 64558 64577 +19
Branches 6505 6506 +1
==========================================
+ Hits 43012 43017 +5
- Misses 19863 19876 +13
- Partials 1683 1684 +1
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
under the License. | ||
--> | ||
<svg width="120" height="150" viewBox="0 0 120 150" fill="none" xmlns="http://www.w3.org/2000/svg"> | ||
<path d="M100.133 19.8391L100.134 19.8402L119.5 40.6963V149.5H0.5V0.5H82.2811L100.133 19.8391Z" fill="#F7F7F7" stroke="#D9D9D9"/> |
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.
@michael-s-molina @geido these SVG icons provide an interesting little wrinkle in the discussion around Theming. We might want to use currentColor
here instead of the #D9D9D9
references. That only solves one of the two colors, however :/
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.
Interesting. I'll add a section about icon colors to the spike.
@@ -0,0 +1,34 @@ | |||
<!-- |
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'm guessing that there are a handful of these empty state SVG images by now. Perhaps they should get their own directory just for content organization?
@@ -131,6 +131,11 @@ const ImageContainer = ({ image, size }: ImageContainerProps) => ( | |||
/> | |||
); | |||
|
|||
const handleMouseDown = (e: SyntheticEvent) => { |
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.
Why do we need that?
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.
Actually it is to solve the conflict between blur and click. Currently some of our search filters will trigger the query when blur, since blur will be triggered before click, resulting in click is not work (may also have this problem before). Calling preventDefault after the mousedown trigger will disable the blur so that the click can work properly.
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.
Ok, thanks for explanation!
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.
LGTM
* feat(CRUD): add new empty state * fix ci * add svg license
SUMMARY
This PR adds new empty state component for the CRUD pages (Dashboards, Explore, Datasets, Databases, Saved Queries, Query History, CSS Templates, Report, ExecutionLog).
BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF
CRUD
AnnotationLayer with no filters
AnnotationLayer with filters
TESTING INSTRUCTIONS
ADDITIONAL INFORMATION
cc @rusackas @kgabryje