diff --git a/web/static/index.html b/web/static/index.html index 676caaa..28551a8 100644 --- a/web/static/index.html +++ b/web/static/index.html @@ -2938,7 +2938,8 @@ async function loadCaseView(caseNumber) { const STATUS_LABELS = { new: 'חדש', in_progress: 'בתהליך', documents_ready: 'מסמכים מוכנים', - drafted: 'טיוטה', final: 'סופי', + outcome_set: 'תוצאה נקבעה', direction_approved: 'כיוון אושר', + drafting: 'בכתיבה', drafted: 'טיוטה', qa_review: 'בבדיקת QA', reviewed: 'נבדק', final: 'סופי', }; const PRACTICE_AREA_LABELS = { appeals_committee: 'ועדת ערר', national_insurance: 'ביטוח לאומי', labor_law: 'דיני עבודה' }; const SUBTYPE_LABELS = { building_permit: 'רישוי ובנייה', betterment_levy: 'היטל השבחה', compensation_197: "פיצויים (ס' 197)", unknown: 'לא ידוע' }; @@ -3958,12 +3959,18 @@ async function loadDiagnostics() { return `
${esc(label)}
${val}
`; }).join(''); + const DOC_STATUS_LABELS = { + pending: 'ממתין', processing: 'בעיבוד', extracting: 'מחלץ טקסט', + chunking: 'מפצל', embedding: 'יוצר embeddings', completed: 'הושלם', + failed: 'נכשל', error: 'שגיאה', queued: 'בתור', + }; + const failedHtml = (data.failed_documents || []).map(d => `
${esc(d.title || '(ללא שם)')}
${d.case_number ? `תיק ${esc(d.case_number)} · ` : ''} - סטטוס: ${esc(d.status)} + סטטוס: ${esc(DOC_STATUS_LABELS[d.status] || d.status)}
`).join('') || '
אין כישלונות
'; @@ -3973,7 +3980,7 @@ async function loadDiagnostics() {
${esc(d.title || '(ללא שם)')}
${d.case_number ? `תיק ${esc(d.case_number)} · ` : ''} - ${esc(d.status)} מאז ${formatRelativeTime(d.created_at)} + ${esc(DOC_STATUS_LABELS[d.status] || d.status)} מאז ${formatRelativeTime(d.created_at)}
`).join('') || '
אין מסמכים תקועים
'; @@ -4052,6 +4059,10 @@ const STEP_LABELS = { copying: 'מעתיק', registering: 'רושם', extracting: 'חילוץ טקסט', + completed: 'הושלם', + failed: 'נכשל', + pending: 'ממתין', + error: 'שגיאה', }; function renderProcessPanel(items) { @@ -5083,7 +5094,7 @@ async function loadTagMappings() { const thead = table.createTHead(); const headerRow = thead.insertRow(); headerRow.style.borderBottom = '2px solid var(--border,#ddd)'; - for (const label of ['Company', 'Tag', 'Label', '']) { + for (const label of ['חברה', 'תג', 'תיאור', '']) { const th = document.createElement('th'); th.style.cssText = 'text-align:right;padding:8px'; if (label === '') th.style.width = '60px';