Skip to content

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

Open
wants to merge 2 commits into
base: CH-365-update-secrets-tab
Choose a base branch
from

Conversation

purnimagarg1
Copy link
Collaborator

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:

  • Adds empty and loading states for Sources and Secrets tabs in ingestion
  • Updates copy from "Sync Details" to "Execution Run Details" in the modal
  • Use the modal component from library in ExecutionRequestDetailsModal

Screenshots:

image

image

image

image

@github-actions github-actions bot added the product PR or Issue related to the DataHub UI/UX label May 28, 2025
@datahub-cyborg datahub-cyborg bot added the needs-review Label for PRs that need review from a maintainer. label May 28, 2025
Copy link

alwaysmeticulous bot commented May 28, 2025

🔴 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.

Copy link

codecov bot commented May 28, 2025

Codecov Report

Attention: Patch coverage is 30.76923% with 63 lines in your changes missing coverage. Please review.

✅ All tests successful. No failed tests found.

Files with missing lines Patch % Lines
...ct/src/app/ingestV2/source/IngestionSourceList.tsx 3.33% 29 Missing ⚠️
...atahub-web-react/src/app/ingestV2/EmptySources.tsx 50.00% 22 Missing ⚠️
...source/executions/ExecutionRequestDetailsModal.tsx 33.33% 4 Missing ⚠️
...source/executions/ExecutionRequestDetailsModal.tsx 0.00% 3 Missing ⚠️
...-web-react/src/app/ingestV2/secret/SecretsList.tsx 40.00% 3 Missing ⚠️
...t/src/app/ingestV2/source/IngestionSourceTable.tsx 33.33% 2 Missing ⚠️

❌ 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';
Copy link
Contributor

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

@datahub-cyborg datahub-cyborg bot added pending-submitter-response Issue/request has been reviewed but requires a response from the submitter and removed needs-review Label for PRs that need review from a maintainer. labels May 28, 2025
const EmptySources = ({ sourceType, isEmptySearch }: Props) => {
return (
<EmptyContainer>
{isEmptySearch ? (
Copy link
Contributor

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.

Copy link
Collaborator

@chriscollins3456 chriscollins3456 left a 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} />
Copy link
Collaborator

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pending-submitter-response Issue/request has been reviewed but requires a response from the submitter product PR or Issue related to the DataHub UI/UX
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants