-
Notifications
You must be signed in to change notification settings - Fork 3.3k
feat(ui/ingestion): add empty and loading states for sources and secrets tables #13646
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(ui/ingestion): add empty and loading states for sources and secrets tables #13646
Conversation
|
🔴 Meticulous spotted visual differences in 90 of 1354 screens tested: view and approve differences detected. Meticulous evaluated ~8 hours of user flows against your PR. Last updated for commit 0b77ef2. This comment will update as new commits are pushed. |
Codecov ReportAttention: Patch coverage is ✅ All tests successful. No failed tests found. ❌ Your patch status has failed because the patch coverage (23.96%) is below the target coverage (75.00%). You can increase the patch coverage or adjust the target coverage. 📢 Thoughts on this report? Let us know! |
| @@ -1,19 +1,19 @@ | |||
| import { Icon, Pagination, SearchBar, Table, colors } from '@components'; | |||
| import { Empty, Modal, Typography, message } from 'antd'; | |||
| import { Modal, Typography, message } from 'antd'; | |||
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.
We could remove this antd modal as well. I think ConfirmationModal would work for this use-case
| const EmptySources = ({ sourceType, isEmptySearch }: Props) => { | ||
| return ( | ||
| <EmptyContainer> | ||
| {isEmptySearch ? ( |
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.
Should this be other way round?
It still works here because we are doing !!query but it should be !query to be aligned with the variable name.
chriscollins3456
left a comment
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.
looking solid just agreed with saketh's comments then i think we're good to go!
| {tableData.length === 0 ? ( | ||
| <EmptyState /> | ||
| {!loading && totalSecrets === 0 ? ( | ||
| <EmptySources sourceType="secrets" isEmptySearch={!!query} /> |
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.
yeah agreed with saketh that isEmptySearch and !!query don't match - isEmptySearch should mean there's no query? regardless i think we should make this a little clearer
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.
this is denote when a search returns empty state. I'll change the name to isEmptySearchResult
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.
In fact we're using isEmptySearch to denote the same scenario at multiple other places. Maybe we can change the prop name everywhere.
8b69ba0 to
a9cd919
Compare
aa69369 to
3feee4f
Compare
Bundle ReportChanges will increase total bundle size by 437 bytes (0.0%) ⬆️. This is within the configured threshold ✅ Detailed changes
Affected Assets, Files, and Routes:view changes for bundle: datahub-react-web-esmAssets Changed:
Files in
|
a9cd919 to
9804942
Compare
3feee4f to
23bbca9
Compare
chriscollins3456
left a comment
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.
nice!
…ets tables (datahub-project#13646) Co-authored-by: Chris Collins <[email protected]>
Linear tickets:
https://linear.app/acryl-data/issue/CH-372/add-empty-and-loading-states-for-ingestion-table
https://linear.app/acryl-data/issue/CH-378/change-copy-in-execution-run-modal
Description:
Screenshots: