-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
base: CH-365-update-secrets-tab
Are you sure you want to change the base?
feat(ui/ingestion): add empty and loading states for sources and secrets tables #13646
Conversation
🔴 Meticulous spotted visual differences in 3 of 1619 screens tested: view and approve differences detected. Meticulous evaluated ~10 hours of user flows against your PR. Last updated for commit 8183245. This comment will update as new commits are pushed. |
Codecov ReportAttention: Patch coverage is ✅ All tests successful. No failed tests found. ❌ Your patch check has failed because the patch coverage (30.76%) 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.
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
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: