diff --git a/frontend/src/components/dashboard/blocks/SystemStatusBlock.tsx b/frontend/src/components/dashboard/blocks/SystemStatusBlock.tsx index 86577591..5d8401cb 100644 --- a/frontend/src/components/dashboard/blocks/SystemStatusBlock.tsx +++ b/frontend/src/components/dashboard/blocks/SystemStatusBlock.tsx @@ -116,9 +116,9 @@ export function SystemStatusBlock({ data, loading }: SystemStatusBlockProps) { {/* Status Message */}

{hasIssues - ? t('dashboard:new_dashboard.system_status.issues_requiring_action', { - count: issuesRequiringAction, - }) + ? t('dashboard:new_dashboard.system_status.count', { + count: issuesRequiringAction, + }) : t('dashboard:new_dashboard.system_status.all_clear')}

@@ -127,9 +127,8 @@ export function SystemStatusBlock({ data, loading }: SystemStatusBlockProps) { {/* Issues Requiring Action */}
0 ? 'text-[var(--color-warning-500)]' : 'text-[var(--text-tertiary)]' - }`} + className={`w-5 h-5 ${issuesRequiringAction > 0 ? 'text-[var(--color-warning-500)]' : 'text-[var(--text-tertiary)]' + }`} /> {issuesRequiringAction} @@ -148,7 +147,7 @@ export function SystemStatusBlock({ data, loading }: SystemStatusBlockProps) { {t('dashboard:new_dashboard.system_status.ai_prevented_label')} - + {/* Show specific issue types on hover */} {preventedIssues.length > 0 && (
diff --git a/frontend/src/locales/en/dashboard.json b/frontend/src/locales/en/dashboard.json index 2cf18144..6b20aa46 100644 --- a/frontend/src/locales/en/dashboard.json +++ b/frontend/src/locales/en/dashboard.json @@ -585,7 +585,7 @@ "new_dashboard": { "system_status": { "title": "System Status", - "issues_requiring_action": "{count, plural, one {# issue} other {# issues} requiring your action}", + "count": "{count, plural, one {# issue} other {# issues}} requiring your action", "all_clear": "All systems running smoothly", "never_run": "Never run", "action_needed_label": "action needed", @@ -602,7 +602,7 @@ }, "pending_purchases": { "title": "Pending Purchases", - "count": "{count, plural, one {# order} other {# orders} awaiting approval}", + "count": "{count, plural, one {# order} other {# orders}} awaiting approval", "no_pending": "No pending purchase orders", "all_clear": "No purchase orders pending approval", "po_number": "PO #{number}", @@ -672,7 +672,7 @@ }, "pending_deliveries": { "title": "Pending Deliveries", - "count": "{count, plural, one {# delivery} other {# deliveries} expected today}", + "count": "{count, plural, one {# delivery} other {# deliveries}} expected today", "no_deliveries": "No deliveries expected today", "all_clear": "No pending deliveries today", "overdue_section": "Overdue Deliveries", @@ -686,7 +686,7 @@ }, "production_status": { "title": "Production Status", - "count": "{count, plural, one {# batch} other {# batches} today}", + "count": "{count, plural, one {# batch} other {# batches}} today", "no_production": "No production scheduled for today", "all_clear": "No production scheduled for today", "late_section": "Late to Start", @@ -751,4 +751,4 @@ } } } -} +} \ No newline at end of file diff --git a/frontend/src/locales/es/dashboard.json b/frontend/src/locales/es/dashboard.json index 5a28e179..b930366f 100644 --- a/frontend/src/locales/es/dashboard.json +++ b/frontend/src/locales/es/dashboard.json @@ -656,7 +656,7 @@ "new_dashboard": { "system_status": { "title": "Estado del Sistema", - "issues_requiring_action": "{count, plural, one {# problema requiere} other {# problemas requieren} tu acción}", + "count": "{count, plural, one {# problema requiere} other {# problemas requieren}} tu acción", "all_clear": "Todos los sistemas funcionan correctamente", "never_run": "Nunca ejecutado", "action_needed_label": "acción requerida", @@ -673,7 +673,7 @@ }, "pending_purchases": { "title": "Compras Pendientes", - "count": "{count, plural, one {# orden} other {# órdenes} esperando aprobación}", + "count": "{count, plural, one {# orden} other {# órdenes}} esperando aprobación", "no_pending": "Sin órdenes de compra pendientes", "all_clear": "Sin órdenes de compra pendientes de aprobación", "po_number": "OC #{number}", @@ -695,7 +695,7 @@ }, "pending_deliveries": { "title": "Entregas Pendientes", - "count": "{count, plural, one {# entrega} other {# entregas} esperadas hoy}", + "count": "{count, plural, one {# entrega} other {# entregas}} esperadas hoy", "no_deliveries": "Sin entregas esperadas hoy", "all_clear": "Sin entregas pendientes hoy", "overdue_section": "Entregas Atrasadas", @@ -709,7 +709,7 @@ }, "production_status": { "title": "Estado de Producción", - "count": "{count, plural, one {# lote} other {# lotes} hoy}", + "count": "{count, plural, one {# lote} other {# lotes}} hoy", "no_production": "Sin producción programada para hoy", "all_clear": "Sin producción programada para hoy", "late_section": "Atrasados para Empezar", @@ -774,4 +774,4 @@ } } } -} +} \ No newline at end of file diff --git a/frontend/src/locales/eu/dashboard.json b/frontend/src/locales/eu/dashboard.json index a73faad4..d2f41204 100644 --- a/frontend/src/locales/eu/dashboard.json +++ b/frontend/src/locales/eu/dashboard.json @@ -395,7 +395,7 @@ "new_dashboard": { "system_status": { "title": "Sistema Egoera", - "issues_requiring_action": "{count, plural, one {# arazok} other {# arazok} zure ekintza behar {count, plural, one {du} other {dute}}", + "count": "{count, plural, one {# arazok} other {# arazok}} zure ekintza behar {count, plural, one {du} other {dute}}", "all_clear": "Sistema guztiak ondo dabiltza", "never_run": "Inoiz exekutatu gabe", "action_needed_label": "ekintza behar", @@ -411,7 +411,7 @@ }, "pending_purchases": { "title": "Erosketa Zain", - "count": "{count, plural, one {# agindu} other {# agindu} onarpenaren zai}", + "count": "{count, plural, one {# agindu} other {# agindu}} onarpenaren zai", "no_pending": "Ez dago erosketa-agindu zain", "all_clear": "Ez dago erosketa-agindu onartzeko zain", "po_number": "EA #{number}", @@ -428,7 +428,7 @@ }, "pending_deliveries": { "title": "Entrega Zain", - "count": "{count, plural, one {# entrega} other {# entrega} gaur espero}", + "count": "{count, plural, one {# entrega} other {# entrega}} gaur espero", "no_deliveries": "Ez dago entregarik gaur esperatzen", "all_clear": "Ez dago entregarik zain gaur", "overdue_section": "Atzeratutako Entregak", @@ -442,7 +442,7 @@ }, "production_status": { "title": "Ekoizpen Egoera", - "count": "{count, plural, one {# lote} other {# lote} gaur}", + "count": "{count, plural, one {# lote} other {# lote}} gaur", "no_production": "Ez dago ekoizpenik programatuta gaur", "all_clear": "Ez dago ekoizpenik programatuta gaur", "late_section": "Hasteko Atzeratua",