Skip to content

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
@alwaysmeticulous
Copy link

alwaysmeticulous bot commented May 28, 2025

🔴 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
Copy link

codecov bot commented May 28, 2025

Codecov Report

Attention: Patch coverage is 23.96694% with 92 lines in your changes missing coverage. Please review.

✅ All tests successful. No failed tests found.

Files with missing lines Patch % Lines
...-web-react/src/app/ingestV2/secret/SecretsList.tsx 8.57% 32 Missing ⚠️
...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 ⚠️
...t/src/app/ingestV2/source/IngestionSourceTable.tsx 33.33% 2 Missing ⚠️

❌ 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';
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

Copy link
Collaborator Author

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

Copy link
Collaborator Author

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.

@datahub-cyborg datahub-cyborg bot added needs-review Label for PRs that need review from a maintainer. and removed pending-submitter-response Issue/request has been reviewed but requires a response from the submitter labels May 30, 2025
@purnimagarg1 purnimagarg1 force-pushed the CH-365-update-secrets-tab branch from 8b69ba0 to a9cd919 Compare May 30, 2025 15:17
@purnimagarg1 purnimagarg1 force-pushed the CH-372-empty-loading-state-ingestion-table branch from aa69369 to 3feee4f Compare May 30, 2025 15:22
@codecov
Copy link

codecov bot commented May 30, 2025

Bundle Report

Changes will increase total bundle size by 437 bytes (0.0%) ⬆️. This is within the configured threshold ✅

Detailed changes
Bundle name Size Change
datahub-react-web-esm 19.65MB 437 bytes (0.0%) ⬆️

Affected Assets, Files, and Routes:

view changes for bundle: datahub-react-web-esm

Assets Changed:

Asset Name Size Change Total Size Change (%)
assets/index-*.js 437 bytes 16.02MB 0.0%

Files in assets/index-*.js:

  • ./src/app/ingestV2/secret/SecretsList.tsx → Total Size: 8.73kB

  • ./src/app/ingestV2/source/IngestionSourceTable.tsx → Total Size: 2.44kB

  • ./src/app/ingestV2/EmptySources.tsx → Total Size: 985 bytes

  • ./src/app/ingest/source/executions/ExecutionRequestDetailsModal.tsx → Total Size: 7.7kB

  • ./src/app/ingestV2/source/executions/ExecutionRequestDetailsModal.tsx → Total Size: 7.46kB

  • ./src/app/ingestV2/source/IngestionSourceList.tsx → Total Size: 14.15kB

@chriscollins3456 chriscollins3456 force-pushed the CH-372-empty-loading-state-ingestion-table branch from 3feee4f to 23bbca9 Compare May 30, 2025 20:46
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.

nice!

@chriscollins3456 chriscollins3456 merged commit 2620af8 into master May 31, 2025
30 of 33 checks passed
@chriscollins3456 chriscollins3456 deleted the CH-372-empty-loading-state-ingestion-table branch May 31, 2025 00:44
kartikey-visa pushed a commit to kartikey-visa/datahub that referenced this pull request Jul 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pending-submitter-merge product PR or Issue related to the DataHub UI/UX

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants