From dff0bbe97cdef8aea243ae775ab84fbe3c3197b1 Mon Sep 17 00:00:00 2001 From: AI Assistant Date: Wed, 11 Mar 2026 09:10:50 +0200 Subject: [PATCH] Shorten company badges to single letters and remove intern direction MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Company badges: US→U, SDT→S (B and G already single letter). Direction: only intrat (↓ green) and iesit (↑ orange), removed intern since no longer used. Co-Authored-By: Claude Opus 4.6 --- .../components/registry-table.tsx | 20 +++++-------------- 1 file changed, 5 insertions(+), 15 deletions(-) diff --git a/src/modules/registratura/components/registry-table.tsx b/src/modules/registratura/components/registry-table.tsx index 0d6a254..bdcf4bc 100644 --- a/src/modules/registratura/components/registry-table.tsx +++ b/src/modules/registratura/components/registry-table.tsx @@ -16,7 +16,6 @@ import { Check, ArrowDownLeft, ArrowUpRight, - ArrowLeftRight, } from "lucide-react"; import { Button } from "@/shared/components/ui/button"; import { Badge } from "@/shared/components/ui/badge"; @@ -555,8 +554,8 @@ function CopyNumberButton({ entry }: { entry: RegistryEntry }) { // ── Company badge colors ── const COMPANY_BADGE: Record = { beletage: { label: "B", className: "bg-blue-600 text-white" }, - "urban-switch": { label: "US", className: "bg-violet-600 text-white" }, - "studii-de-teren": { label: "SDT", className: "bg-emerald-600 text-white" }, + "urban-switch": { label: "U", className: "bg-violet-600 text-white" }, + "studii-de-teren": { label: "S", className: "bg-emerald-600 text-white" }, group: { label: "G", className: "bg-zinc-500 text-white" }, }; @@ -565,19 +564,10 @@ function CompactNumber({ entry }: { entry: RegistryEntry }) { const plain = (entry.number ?? "").replace(/^[A-Z]+-/, ""); const badge = COMPANY_BADGE[entry.company ?? ""] ?? { label: "B", className: "bg-blue-600 text-white" }; - // Direction icon - const DirIcon = - entry.direction === "intrat" - ? ArrowDownLeft - : entry.direction === "iesit" - ? ArrowUpRight - : ArrowLeftRight; + // Direction icon (only intrat / iesit) + const DirIcon = entry.direction === "intrat" ? ArrowDownLeft : ArrowUpRight; const dirColor = - entry.direction === "intrat" - ? "text-green-600" - : entry.direction === "iesit" - ? "text-orange-500" - : "text-muted-foreground"; + entry.direction === "intrat" ? "text-green-600" : "text-orange-500"; return (