From 1dcc565299eca203a8ffb469d8c071fd96f1b535 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cau=C3=AA=20Faleiros?= Date: Fri, 17 Jul 2026 10:10:59 -0300 Subject: [PATCH] Standardize operations page layout --- src/pages/PlanningIssues.tsx | 28 ++++++++++------------ src/pages/Supplies.tsx | 46 ++++++++++++++++++------------------ 2 files changed, 36 insertions(+), 38 deletions(-) diff --git a/src/pages/PlanningIssues.tsx b/src/pages/PlanningIssues.tsx index 37698e9..7233243 100644 --- a/src/pages/PlanningIssues.tsx +++ b/src/pages/PlanningIssues.tsx @@ -260,8 +260,7 @@ const PlanningIssues = () => { })} -
-
+
@@ -292,12 +291,12 @@ const PlanningIssues = () => {
{formatNumber(rows.length)} SKUs pendentes
-
+
{isLoading && !products.length ? ( ) : rows.length ? ( - <> +
@@ -325,8 +324,8 @@ const PlanningIssues = () => { {paginatedRows.map(row => ( - - + - - - - - - + + +
#{row.id} + #{row.id}
{row.name}
Cor: {row.color || '-'} @@ -335,10 +334,10 @@ const PlanningIssues = () => { {row.hasOverride && manual}
+ +
{row.issues.map(issue => ( { ))}
{row.familyLabel}{formatNumber(row.quantitySold)} un.{formatCurrency(row.revenue)} + {row.familyLabel}{formatNumber(row.quantitySold)} un.{formatCurrency(row.revenue)}
) : ( -
+
{products.length ? ( <> @@ -414,7 +413,6 @@ const PlanningIssues = () => { )}
)} -
{editingProduct && ( )}
-

{title}

-

{subtitle}

+

{title}

+

{subtitle}

); @@ -384,13 +384,14 @@ const DemandPlanningScreen = () => { ))} -
+

{demandQueueLabels[queue]}

{demandQueueDescriptions[queue]}

-
+
+
+
-
+

Itens na fila

{formatNumber(queueRows.length, 0)}

@@ -455,15 +456,15 @@ const DemandPlanningScreen = () => {

Cobertura alvo

{targetCoverageDays} dias

-
+
{isLoading ? ( -
+

Carregando dados de produtos...

) : queueRows.length ? ( -
+
@@ -476,7 +477,7 @@ const DemandPlanningScreen = () => { - + @@ -488,27 +489,27 @@ const DemandPlanningScreen = () => { - + {paginatedRows.map(row => ( - - - + + - - - - - + + + + -
SKU ProdutoAções
#{row.id} +
#{row.id}

{row.name}

Cor: {row.color || '-'} · Tam.: {row.size || '-'} {row.missingData.length ? ` · Falta: ${row.missingData.join(', ')}` : ''}

{formatNumber(row.dailySales, 2)}{formatNumber(row.stock, 0)} un.{formatDays(row.daysOfCover)} 0 ? 'text-amber-300' : 'text-emerald-300'}`}> + {formatNumber(row.dailySales, 2)}{formatNumber(row.stock, 0)} un.{formatDays(row.daysOfCover)} 0 ? 'text-amber-300' : 'text-emerald-300'}`}> {queue === 'dead' ? new Intl.NumberFormat('pt-BR', { style: 'currency', currency: 'BRL' }).format(row.stock * row.lastPrice) : `${formatNumber(row.suggestedUnits, 0)} un.`} +
{queue === 'review' && ( { />
) : ( -
+

Nada nesta fila

Ajuste a busca, período ou cobertura alvo.

)} -
); };