From 0b829ea20b937cd6dd55f9a4228352324999edcc Mon Sep 17 00:00:00 2001 From: Dotta Date: Mon, 16 Mar 2026 09:47:29 -0500 Subject: [PATCH] fix: move import button below renames panel Move the "Import n files" button from the sticky header bar to below the renames confirmation panel, so the user reviews renames first before importing. Co-Authored-By: Paperclip --- ui/src/pages/CompanyImport.tsx | 56 ++++++++++++++++++---------------- 1 file changed, 29 insertions(+), 27 deletions(-) diff --git a/ui/src/pages/CompanyImport.tsx b/ui/src/pages/CompanyImport.tsx index 92600a8b..de45d7a3 100644 --- a/ui/src/pages/CompanyImport.tsx +++ b/ui/src/pages/CompanyImport.tsx @@ -902,35 +902,23 @@ export function CompanyImport() { <> {/* Sticky import action bar */}
-
-
- - Import preview +
+ + Import preview + + + {selectedCount} / {totalFiles} file{totalFiles === 1 ? "" : "s"} selected + + {conflicts.length > 0 && ( + + {conflicts.length} rename{conflicts.length === 1 ? "" : "s"} - - {selectedCount} / {totalFiles} file{totalFiles === 1 ? "" : "s"} selected + )} + {importPreview.errors.length > 0 && ( + + {importPreview.errors.length} error{importPreview.errors.length === 1 ? "" : "s"} - {conflicts.length > 0 && ( - - {conflicts.length} rename{conflicts.length === 1 ? "" : "s"} - - )} - {importPreview.errors.length > 0 && ( - - {importPreview.errors.length} error{importPreview.errors.length === 1 ? "" : "s"} - - )} -
- + )}
@@ -945,6 +933,20 @@ export function CompanyImport() { onToggleConfirm={handleConflictToggleConfirm} /> + {/* Import button — below renames */} +
+ +
+ {/* Warnings */} {importPreview.warnings.length > 0 && (