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:
@@ -16,7 +16,6 @@ import {
|
|||||||
Check,
|
Check,
|
||||||
ArrowDownLeft,
|
ArrowDownLeft,
|
||||||
ArrowUpRight,
|
ArrowUpRight,
|
||||||
ArrowLeftRight,
|
|
||||||
} from "lucide-react";
|
} from "lucide-react";
|
||||||
import { Button } from "@/shared/components/ui/button";
|
import { Button } from "@/shared/components/ui/button";
|
||||||
import { Badge } from "@/shared/components/ui/badge";
|
import { Badge } from "@/shared/components/ui/badge";
|
||||||
@@ -555,8 +554,8 @@ function CopyNumberButton({ entry }: { entry: RegistryEntry }) {
|
|||||||
// ── Company badge colors ──
|
// ── Company badge colors ──
|
||||||
const COMPANY_BADGE: Record<string, { label: string; className: string }> = {
|
const COMPANY_BADGE: Record<string, { label: string; className: string }> = {
|
||||||
beletage: { label: "B", className: "bg-blue-600 text-white" },
|
beletage: { label: "B", className: "bg-blue-600 text-white" },
|
||||||
"urban-switch": { label: "US", className: "bg-violet-600 text-white" },
|
"urban-switch": { label: "U", className: "bg-violet-600 text-white" },
|
||||||
"studii-de-teren": { label: "SDT", className: "bg-emerald-600 text-white" },
|
"studii-de-teren": { label: "S", className: "bg-emerald-600 text-white" },
|
||||||
group: { label: "G", className: "bg-zinc-500 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 plain = (entry.number ?? "").replace(/^[A-Z]+-/, "");
|
||||||
const badge = COMPANY_BADGE[entry.company ?? ""] ?? { label: "B", className: "bg-blue-600 text-white" };
|
const badge = COMPANY_BADGE[entry.company ?? ""] ?? { label: "B", className: "bg-blue-600 text-white" };
|
||||||
|
|
||||||
// Direction icon
|
// Direction icon (only intrat / iesit)
|
||||||
const DirIcon =
|
const DirIcon = entry.direction === "intrat" ? ArrowDownLeft : ArrowUpRight;
|
||||||
entry.direction === "intrat"
|
|
||||||
? ArrowDownLeft
|
|
||||||
: entry.direction === "iesit"
|
|
||||||
? ArrowUpRight
|
|
||||||
: ArrowLeftRight;
|
|
||||||
const dirColor =
|
const dirColor =
|
||||||
entry.direction === "intrat"
|
entry.direction === "intrat" ? "text-green-600" : "text-orange-500";
|
||||||
? "text-green-600"
|
|
||||||
: entry.direction === "iesit"
|
|
||||||
? "text-orange-500"
|
|
||||||
: "text-muted-foreground";
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<span className="inline-flex items-center gap-1">
|
<span className="inline-flex items-center gap-1">
|
||||||
|
|||||||
Reference in New Issue
Block a user