The end of an import: a confirm with the same numbers as the review, the job with its phase, progress and cancel, a result that leads with what failed and offers the error file, and an undo that says what it will remove, put back and keep before you confirm.
On this page
Examples
Installation
Installation is part of Pro
Pro components install from a licensed registry. The live preview stays open to everyone.
Props
- adapter
ImportAdapter- start, progress, result, and optionally cancel, previewUndo and undo. memoryImportAdapter is a working one in memory.
- plan
ImportPlan- From buildPlan: the writes and the totals.
- source
string- Default
"the file" - The file name, for the copy and the error file's name.
- noun
[string, string]- Default
["contact", "contacts"] - What is imported.
- details
string[]- Default
[] - The policy and the owner method, under the confirm.
- errorFile
(rows) => string- Builds the CSV of rows not imported. errorFile(table, rows) from import-core keeps the original columns and adds the reason.
- onStateChange / onResult / onUndone
callbacks- confirm, running, result, undone; the result; the undo report.
- onOpen
() => void- Shows Open the contacts on the result and Back to the contacts after an undo.
- title
boolean- Default
true - false drops the block's own heading on the running and undone states, for a page whose header already says it (the template does).
| Prop | Type | Default | Description |
|---|---|---|---|
| adapter | ImportAdapter | - | start, progress, result, and optionally cancel, previewUndo and undo. memoryImportAdapter is a working one in memory. |
| plan | ImportPlan | - | From buildPlan: the writes and the totals. |
| source | string | "the file" | The file name, for the copy and the error file's name. |
| noun | [string, string] | ["contact", "contacts"] | What is imported. |
| details | string[] | [] | The policy and the owner method, under the confirm. |
| errorFile | (rows) => string | - | Builds the CSV of rows not imported. errorFile(table, rows) from import-core keeps the original columns and adds the reason. |
| onStateChange / onResult / onUndone | callbacks | - | confirm, running, result, undone; the result; the undo report. |
| onOpen | () => void | - | Shows Open the contacts on the result and Back to the contacts after an undo. |
| title | boolean | true | false drops the block's own heading on the running and undone states, for a page whose header already says it (the template does). |
Accessibility
- Phase changes and the finish are announced politely; a failed import assertively.
- Focus moves to the heading of each new state, so a keyboard user hears where they are.
- The undo dialog lists its effects as text before the destructive button, and the remove-edited option is a labelled checkbox.
When to use
When to use
- The end of a bulk import: confirm, progress, result with an error file and undo.
- Any bulk change that needs an honest undo.
When not to use
- A plain progress bar: use Progress.
- The whole import: use Import Wizard.
Using with AI
Use Copy page for AI above to give your assistant this page, Copy prompt under the install command to have it installed and wired to your data, or connect the Knowns UI MCP server and just ask:
- Add the Knowns UI Import Job to my app and wire it to my own data.
- I need the end of a bulk import: confirm, progress, result with an error file and undo. Set that up with the Knowns UI Import Job.
- Which Import Job props do I need for a minimal setup? Show me a short example.
With the server connected, your assistant calls get_component({ name: "import-job" }) and search_docs({ query: "import job" }). Pro props, full examples and source come back once your license key is in the MCP config.