Shorten company badges to single letters and remove intern direction

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 <noreply@anthropic.com>
This commit is contained in:
AI Assistant
2026-03-11 09:10:50 +02:00
parent 98c6fcb619
commit dff0bbe97c
@@ -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<string, { label: string; className: string }> = {
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 (
<span className="inline-flex items-center gap-1">