feat: import/export UX updates - P2#5795
Merged
camiloHimura merged 5 commits intodevelopfrom Mar 18, 2026
Merged
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
This PR updates the dataset import/export UX by refactoring import job status UI into a reusable card, improving error handling/loading states in the “import dataset as new project” flow, and enhancing displayed dataset statistics during label mapping.
Changes:
- Refactors multiple import job status components to use a new shared
JobStatusCard. - Adds a loading card + error boundary around the “import as new project” dialog content, and disables task-selection actions while staged dataset fetch is in progress.
- Updates label-mapping “Imported dataset statistics” to use annotated image/frame counts and show separate stats for images vs frames.
Reviewed changes
Copilot reviewed 17 out of 17 changed files in this pull request and generated 6 comments.
Show a summary per file
| File | Description |
|---|---|
| application/ui/src/features/project/list/import-jobs-list/import-jobs-list.component.tsx | Minor JSX cleanup for import queue rendering. |
| application/ui/src/features/project/list/import-dataset-as-new-project/import-task-selection/import-task-selection-buttons.component.tsx | Disables task-selection buttons while staged dataset query is fetching. |
| application/ui/src/features/project/list/import-dataset-as-new-project/import-loadind-card.component.tsx | Adds a dedicated Suspense loading placeholder card. |
| application/ui/src/features/project/list/import-dataset-as-new-project/import-label-mapping/import-label-mapping.component.tsx | Updates dataset statistics calculation/display (images/frames + annotated counts). |
| application/ui/src/features/project/list/import-dataset-as-new-project/import-error-boundary.component.tsx | Adds an error boundary intended to close the import dialog on errors. |
| application/ui/src/features/project/list/import-dataset-as-new-project/import-dataset-as-new-project.component.tsx | Wraps dialog content with new loading/error handling and updates format options text. |
| application/ui/src/features/dataset/import-export/import-jobs-list/import-jobs-list.component.tsx | Minor JSX cleanup for import queue rendering. |
| application/ui/src/features/dataset/import-export/import-dataset/label-mapping/label-mapping.component.tsx | Updates dataset statistics calculation/display (images/frames + annotated counts). |
| application/ui/src/components/util.ts | Adds a generic error-message helper. |
| application/ui/src/components/prepare-import-dataset/prepare-import-dataset.component.tsx | Removes redundant wrapper container around job status rendering. |
| application/ui/src/components/loading-import-dataset/loading-import-dataset.component.tsx | Removes redundant wrapper container around job status rendering. |
| application/ui/src/components/job-status-card/job-status-card.component.tsx | Introduces reusable status card layout used by import job components. |
| application/ui/src/components/import-card-status/staged-import-dataset/staged-import-dataset.test.tsx | Adds test coverage for staged dataset “not found” error state. |
| application/ui/src/components/import-card-status/staged-import-dataset/staged-import-dataset.component.tsx | Uses JobStatusCard and renders ImportFailedJob on staged dataset fetch errors. |
| application/ui/src/components/import-card-status/import-job-done/import-job-done.component.tsx | Refactors “done” UI to JobStatusCard. |
| application/ui/src/components/import-card-status/import-failed-job/import-failed-job.component.tsx | Refactors “failed” UI to JobStatusCard. |
| application/ui/src/components/import-card-status/import-active-job/import-active-job.component.tsx | Refactors “active” UI to JobStatusCard. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
You can also share your feedback on Copilot code review. Take the survey.
.../src/features/dataset/import-export/import-dataset/label-mapping/label-mapping.component.tsx
Outdated
Show resolved
Hide resolved
...t/list/import-dataset-as-new-project/import-label-mapping/import-label-mapping.component.tsx
Show resolved
Hide resolved
...ation/ui/src/components/import-card-status/import-failed-job/import-failed-job.component.tsx
Outdated
Show resolved
Hide resolved
.../src/features/project/list/import-dataset-as-new-project/import-error-boundary.component.tsx
Show resolved
Hide resolved
...tures/project/list/import-dataset-as-new-project/import-dataset-as-new-project.component.tsx
Outdated
Show resolved
Hide resolved
📊 Test coverage report
|
Docker Image SizesCPU
CUDA
XPU
|
ActiveChooN
approved these changes
Mar 18, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds a new
JobStatuscard and reuses it across all import/export status updates. It also displays video frame statistics when available.closes #5764
How to test
Checklist