fix(ui): תרגום עברית לסטטוסי-תיק in_progress + qa_failed #223

Merged
chaim merged 1 commits from worktree-status-i18n into main 2026-06-12 06:58:08 +00:00
3 changed files with 13 additions and 3 deletions
Showing only changes of commit 6fba565fcb - Show all commits

View File

@@ -3,13 +3,14 @@ import {
FilePlus2, Upload, Loader2, FileCheck, Target, FilePlus2, Upload, Loader2, FileCheck, Target,
Lightbulb, Compass, PenLine, SearchCheck, FileText, Lightbulb, Compass, PenLine, SearchCheck, FileText,
FileOutput, CheckCircle2, Award, ShieldCheck, BookOpen, FileOutput, CheckCircle2, Award, ShieldCheck, BookOpen,
Microscope, PlayCircle, Microscope, PlayCircle, Hammer, AlertTriangle,
} from "lucide-react"; } from "lucide-react";
import type { CaseStatus } from "@/lib/api/cases"; import type { CaseStatus } from "@/lib/api/cases";
import type { LucideIcon } from "lucide-react"; import type { LucideIcon } from "lucide-react";
const STATUS_LABELS: Record<CaseStatus, string> = { const STATUS_LABELS: Record<CaseStatus, string> = {
new: "חדש", new: "חדש",
in_progress: "בעבודה",
uploading: "מעלה", uploading: "מעלה",
processing: "בעיבוד", processing: "בעיבוד",
documents_ready: "מסמכים מוכנים", documents_ready: "מסמכים מוכנים",
@@ -22,6 +23,7 @@ const STATUS_LABELS: Record<CaseStatus, string> = {
ready_for_writing: "מוכן לכתיבה", ready_for_writing: "מוכן לכתיבה",
drafting: "בכתיבה", drafting: "בכתיבה",
qa_review: "בדיקת איכות", qa_review: "בדיקת איכות",
qa_failed: "בדיקת איכות נכשלה",
drafted: "טיוטה", drafted: "טיוטה",
exported: "יוצא", exported: "יוצא",
reviewed: "נבדק", reviewed: "נבדק",
@@ -30,6 +32,7 @@ const STATUS_LABELS: Record<CaseStatus, string> = {
const STATUS_ICONS: Record<CaseStatus, LucideIcon> = { const STATUS_ICONS: Record<CaseStatus, LucideIcon> = {
new: FilePlus2, new: FilePlus2,
in_progress: Hammer,
uploading: Upload, uploading: Upload,
processing: Loader2, processing: Loader2,
documents_ready: FileCheck, documents_ready: FileCheck,
@@ -42,6 +45,7 @@ const STATUS_ICONS: Record<CaseStatus, LucideIcon> = {
ready_for_writing: PlayCircle, ready_for_writing: PlayCircle,
drafting: PenLine, drafting: PenLine,
qa_review: SearchCheck, qa_review: SearchCheck,
qa_failed: AlertTriangle,
drafted: FileText, drafted: FileText,
exported: FileOutput, exported: FileOutput,
reviewed: CheckCircle2, reviewed: CheckCircle2,
@@ -50,6 +54,7 @@ const STATUS_ICONS: Record<CaseStatus, LucideIcon> = {
const STATUS_DESCRIPTIONS: Record<CaseStatus, string> = { const STATUS_DESCRIPTIONS: Record<CaseStatus, string> = {
new: "התיק נוצר וממתין להעלאת מסמכים", new: "התיק נוצר וממתין להעלאת מסמכים",
in_progress: "התיק בעבודה",
uploading: "מסמכים בתהליך העלאה לשרת", uploading: "מסמכים בתהליך העלאה לשרת",
processing: "המערכת מעבדת ומנתחת את המסמכים", processing: "המערכת מעבדת ומנתחת את המסמכים",
documents_ready: "כל המסמכים עובדו ומוכנים לעבודה", documents_ready: "כל המסמכים עובדו ומוכנים לעבודה",
@@ -62,6 +67,7 @@ const STATUS_DESCRIPTIONS: Record<CaseStatus, string> = {
ready_for_writing: "הכל מוכן — ממתין לכותב ההחלטה", ready_for_writing: "הכל מוכן — ממתין לכותב ההחלטה",
drafting: "טיוטת ההחלטה בתהליך כתיבה", drafting: "טיוטת ההחלטה בתהליך כתיבה",
qa_review: "הטיוטה בבדיקת איכות אוטומטית", qa_review: "הטיוטה בבדיקת איכות אוטומטית",
qa_failed: "בדיקת האיכות נכשלה — נדרש תיקון",
drafted: "טיוטה מוכנה לעיון", drafted: "טיוטה מוכנה לעיון",
exported: "ההחלטה יוצאה לקובץ DOCX", exported: "ההחלטה יוצאה לקובץ DOCX",
reviewed: "ההחלטה נבדקה ע\"י היו\"ר", reviewed: "ההחלטה נבדקה ע\"י היו\"ר",
@@ -76,6 +82,7 @@ const STATUS_DESCRIPTIONS: Record<CaseStatus, string> = {
* done → exported, reviewed, final (success green) */ * done → exported, reviewed, final (success green) */
const STATUS_TONE: Record<CaseStatus, string> = { const STATUS_TONE: Record<CaseStatus, string> = {
new: "bg-rule-soft text-ink-muted border-rule", new: "bg-rule-soft text-ink-muted border-rule",
in_progress: "bg-warn-bg text-warn border-warn/40",
uploading: "bg-rule-soft text-ink-muted border-rule", uploading: "bg-rule-soft text-ink-muted border-rule",
processing: "bg-info-bg text-info border-info/30", processing: "bg-info-bg text-info border-info/30",
documents_ready: "bg-info-bg text-info border-info/40", documents_ready: "bg-info-bg text-info border-info/40",
@@ -88,6 +95,7 @@ const STATUS_TONE: Record<CaseStatus, string> = {
ready_for_writing:"bg-gold-wash text-gold-deep border-gold/50", ready_for_writing:"bg-gold-wash text-gold-deep border-gold/50",
drafting: "bg-warn-bg text-warn border-warn/40", drafting: "bg-warn-bg text-warn border-warn/40",
qa_review: "bg-warn-bg text-warn border-warn/40", qa_review: "bg-warn-bg text-warn border-warn/40",
qa_failed: "bg-danger-bg text-danger border-danger/40",
drafted: "bg-warn-bg text-warn border-warn/50", drafted: "bg-warn-bg text-warn border-warn/50",
exported: "bg-success-bg text-success border-success/40", exported: "bg-success-bg text-success border-success/40",
reviewed: "bg-success-bg text-success border-success/50", reviewed: "bg-success-bg text-success border-success/50",

View File

@@ -12,10 +12,10 @@ import { STATUS_LABELS } from "@/components/cases/status-badge";
type GroupKey = "intake" | "prep" | "thinking" | "writing" | "done"; type GroupKey = "intake" | "prep" | "thinking" | "writing" | "done";
const GROUP_OF: Record<CaseStatus, GroupKey> = { const GROUP_OF: Record<CaseStatus, GroupKey> = {
new: "intake", uploading: "intake", processing: "intake", new: "intake", in_progress: "intake", uploading: "intake", processing: "intake",
documents_ready: "prep", analyst_verified: "prep", research_complete: "prep", outcome_set: "prep", documents_ready: "prep", analyst_verified: "prep", research_complete: "prep", outcome_set: "prep",
brainstorming: "thinking", direction_approved: "thinking", analysis_enriched: "thinking", ready_for_writing: "thinking", brainstorming: "thinking", direction_approved: "thinking", analysis_enriched: "thinking", ready_for_writing: "thinking",
drafting: "writing", qa_review: "writing", drafted: "writing", drafting: "writing", qa_review: "writing", qa_failed: "writing", drafted: "writing",
exported: "done", reviewed: "done", final: "done", exported: "done", reviewed: "done", final: "done",
}; };

View File

@@ -15,6 +15,7 @@ import type { PracticeArea, AppealSubtype } from "@/lib/practice-area";
export type CaseStatus = export type CaseStatus =
| "new" | "new"
| "in_progress"
| "uploading" | "uploading"
| "processing" | "processing"
| "documents_ready" | "documents_ready"
@@ -27,6 +28,7 @@ export type CaseStatus =
| "ready_for_writing" | "ready_for_writing"
| "drafting" | "drafting"
| "qa_review" | "qa_review"
| "qa_failed"
| "drafted" | "drafted"
| "exported" | "exported"
| "reviewed" | "reviewed"