From 2a25e4b16087a203e3681cb0f8186c3bcf6a6651 Mon Sep 17 00:00:00 2001 From: AI Assistant Date: Sun, 22 Mar 2026 04:15:37 +0200 Subject: [PATCH] fix(registratura): replace parentheses with en-dash in contact display MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit "Name – Company" instead of "Name (Company)" for sender/recipient. Co-Authored-By: Claude Opus 4.6 (1M context) --- src/modules/registratura/components/registry-entry-form.tsx | 4 ++-- src/modules/registratura/components/registry-table.tsx | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/modules/registratura/components/registry-entry-form.tsx b/src/modules/registratura/components/registry-entry-form.tsx index bb24214..7bf070e 100644 --- a/src/modules/registratura/components/registry-entry-form.tsx +++ b/src/modules/registratura/components/registry-entry-form.tsx @@ -86,11 +86,11 @@ import { } from "../services/deadline-service"; import { getDeadlineType } from "../services/deadline-catalog"; -/** Format a contact for display: "Name (Company)" / "Company" / "Name" */ +/** Format a contact for display: "Name – Company" / "Company" / "Name" */ function formatContactLabel(c: { name: string; company: string }): string { const name = c.name?.trim(); const company = c.company?.trim(); - if (name && company) return `${name} (${company})`; + if (name && company) return `${name} – ${company}`; return name || company || ""; } diff --git a/src/modules/registratura/components/registry-table.tsx b/src/modules/registratura/components/registry-table.tsx index 7f451f5..f03f811 100644 --- a/src/modules/registratura/components/registry-table.tsx +++ b/src/modules/registratura/components/registry-table.tsx @@ -39,11 +39,11 @@ import { DEFAULT_DOC_TYPE_LABELS, EXTERNAL_STATUS_LABELS } from "../types"; import { getOverdueDays } from "../services/registry-service"; import { cn } from "@/shared/lib/utils"; -/** Format a contact for display: "Name (Company)" / "Company" / "Name" */ +/** Format a contact for display: "Name – Company" / "Company" / "Name" */ function formatContactLabel(c: { name?: string; company?: string }): string { const name = (c.name ?? "").trim(); const company = (c.company ?? "").trim(); - if (name && company) return `${name} (${company})`; + if (name && company) return `${name} – ${company}`; return name || company || ""; }