diff --git a/src/components/FolderPickerModal.tsx b/src/components/FolderPickerModal.tsx index c509993..047b127 100644 --- a/src/components/FolderPickerModal.tsx +++ b/src/components/FolderPickerModal.tsx @@ -36,7 +36,7 @@ function buildBreadcrumbs(path: string | null): { label: string; path: string | const parts = normalized.split(/[\\/]+/).filter(Boolean); let current = separator === "/" ? "" : ""; return [ - { label: "Home", path: null }, + { label: "/", path: null }, ...parts.map((part) => { current = `${current}/${part}`; return { label: part, path: current }; @@ -117,7 +117,7 @@ function FolderRow({ type="button" className="rounded-md p-1 text-gray-500 transition-colors hover:bg-white/[0.06] hover:text-white light-theme:hover:bg-gray-900 light-theme:hover:text-white" onClick={onNavigate} - title={entry.has_children ? "Open folder" : "Open folder"} + title={entry.has_children ? "Open folder" : "No subfolders"} > @@ -300,6 +300,7 @@ export function FolderPickerModal() { const failed = addResults.filter((result) => result.status === "error"); setResults(addResults); if (failed.length > 0) { + setStagedPaths(stagedPaths.filter((_, i) => addResults[i]?.status === "error")); setError(failed.map((failure) => failure.data).join("; ")); return; }