fix(import): parenthesize the number on a taken workspace name

"Name 2" reads as part of the name; "Name (2)" reads as the second one.
The destination row leads with "New workspace ·" rather than trailing a
second parenthetical after it.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
Gregory Schier
2026-09-08 08:51:42 -07:00
co-authored by Claude Opus 5
parent 83f2606624
commit cdc034b25a
2 changed files with 6 additions and 6 deletions
@@ -312,7 +312,7 @@ function LoadedImportDataDialog({
if (plan.destination.type === "new_workspace") {
const names = plan.resources.workspaces.map((w) => w.name).filter((n) => n !== "");
if (names.length > 1) return pluralizeCount("new workspace", names.length);
return names[0] == null ? "New workspace" : `${names[0]} (new workspace)`;
return names[0] == null ? "New workspace" : `New workspace · ${names[0]}`;
}
const { workspaceId, folderId } = plan.destination;
const name = workspaces.find((w) => w.id === workspaceId)?.name ?? "Unknown workspace";