fix(registratura): remove intern direction — only intrat/iesit are valid
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -2,7 +2,6 @@
|
||||
|
||||
import {
|
||||
ArrowDownToLine,
|
||||
ArrowRightLeft,
|
||||
ArrowUpFromLine,
|
||||
Calendar,
|
||||
CheckCircle2,
|
||||
@@ -65,12 +64,6 @@ const DIRECTION_CONFIG = {
|
||||
class:
|
||||
"bg-orange-100 text-orange-800 dark:bg-orange-900/40 dark:text-orange-300",
|
||||
},
|
||||
intern: {
|
||||
label: "Intern",
|
||||
icon: ArrowRightLeft,
|
||||
class:
|
||||
"bg-purple-100 text-purple-800 dark:bg-purple-900/40 dark:text-purple-300",
|
||||
},
|
||||
} as const;
|
||||
|
||||
const STATUS_CONFIG = {
|
||||
|
||||
@@ -15,7 +15,6 @@ import {
|
||||
Globe,
|
||||
ArrowDownToLine,
|
||||
ArrowUpFromLine,
|
||||
ArrowRightLeft,
|
||||
HardDrive,
|
||||
FolderOpen,
|
||||
Link2,
|
||||
@@ -555,19 +554,6 @@ export function RegistryEntryForm({
|
||||
<ArrowUpFromLine className="h-4 w-4" />
|
||||
Ieșit
|
||||
</button>
|
||||
<button
|
||||
type="button"
|
||||
onClick={() => setDirection("intern")}
|
||||
className={cn(
|
||||
"flex flex-1 items-center justify-center gap-1.5 rounded-md px-3 py-2 text-sm font-medium transition-all",
|
||||
direction === "intern"
|
||||
? "bg-purple-500 text-white shadow-sm"
|
||||
: "text-muted-foreground hover:text-foreground hover:bg-background",
|
||||
)}
|
||||
>
|
||||
<ArrowRightLeft className="h-4 w-4" />
|
||||
Intern
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
<div>
|
||||
|
||||
@@ -41,7 +41,6 @@ export function RegistryFilters({ filters, onUpdate }: RegistryFiltersProps) {
|
||||
<SelectItem value="all">Toate</SelectItem>
|
||||
<SelectItem value="intrat">Intrat</SelectItem>
|
||||
<SelectItem value="iesit">Ieșit</SelectItem>
|
||||
<SelectItem value="intern">Intern</SelectItem>
|
||||
</SelectContent>
|
||||
</Select>
|
||||
|
||||
|
||||
@@ -82,7 +82,7 @@ const COLUMNS: ColumnDef[] = [
|
||||
id: "direction",
|
||||
label: "Dir.",
|
||||
tooltip:
|
||||
"Direcție: Intrat = primit, Ieșit = trimis, Intern = intern",
|
||||
"Direcție: Intrat = primit, Ieșit = trimis",
|
||||
defaultVisible: true,
|
||||
},
|
||||
{
|
||||
@@ -141,7 +141,6 @@ const STORAGE_KEY = "registratura:visible-columns";
|
||||
const DIRECTION_LABELS: Record<string, string> = {
|
||||
intrat: "Intrat",
|
||||
iesit: "Ieșit",
|
||||
intern: "Intern",
|
||||
};
|
||||
|
||||
function getDocTypeLabel(type: string): string {
|
||||
@@ -331,9 +330,7 @@ export function RegistryTable({
|
||||
variant={
|
||||
entry.direction === "intrat"
|
||||
? "default"
|
||||
: entry.direction === "intern"
|
||||
? "outline"
|
||||
: "secondary"
|
||||
: "secondary"
|
||||
}
|
||||
className="text-xs"
|
||||
>
|
||||
|
||||
Reference in New Issue
Block a user