From f811d3c0aba13a6e79c49b46280bc4e2813d9f1f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cau=C3=AA=20Faleiros?= Date: Mon, 15 Jun 2026 16:44:25 -0300 Subject: [PATCH] Rename visible RFM labels to RFV --- src/components/Layout.tsx | 2 +- src/pages/Clients.tsx | 8 ++++---- src/pages/Rfm.tsx | 22 +++++++++++----------- 3 files changed, 16 insertions(+), 16 deletions(-) diff --git a/src/components/Layout.tsx b/src/components/Layout.tsx index e8a7946..7fc5ed8 100644 --- a/src/components/Layout.tsx +++ b/src/components/Layout.tsx @@ -82,7 +82,7 @@ const Layout = () => { { name: 'Dashboard', href: '/graph', icon: LayoutDashboard }, { name: 'Produtos', href: '/products', icon: Package }, { name: 'Clientes', href: '/clients', icon: Users }, - { name: 'RFM', href: '/rfm', icon: Grid3X3 }, + { name: 'RFV', href: '/rfm', icon: Grid3X3 }, { name: 'Campanhas', href: '/campaigns', icon: Megaphone }, ]; diff --git a/src/pages/Clients.tsx b/src/pages/Clients.tsx index 4fc5cc0..34f07ff 100644 --- a/src/pages/Clients.tsx +++ b/src/pages/Clients.tsx @@ -174,7 +174,7 @@ const Clients = () => { - + @@ -200,7 +200,7 @@ const Clients = () => { 'Nome do Cliente': client.name, 'Telefone/WhatsApp': client.phone || 'N/A', 'Tipo de Cliente': client.clientType, - 'RFM': client.rfmScore, + 'RFV': client.rfmScore, 'Total Gasto (R$)': client.totalSpent.toFixed(2).replace('.', ','), 'Ticket Médio (R$)': client.averageTicket.toFixed(2).replace('.', ','), 'Produtos Comprados': client.totalItems, @@ -223,7 +223,7 @@ const Clients = () => {

Tipos de Clientes

- Classificação RFM sincronizada com a página RFM quando disponível. + Classificação RFV sincronizada com a página RFV quando disponível.

@@ -255,7 +255,7 @@ const Clients = () => { Posição Nome do Cliente Tipo - RFM + RFV Total Gasto Ticket Médio Produtos Comprados diff --git a/src/pages/Rfm.tsx b/src/pages/Rfm.tsx index 80e3e5a..51810e1 100644 --- a/src/pages/Rfm.tsx +++ b/src/pages/Rfm.tsx @@ -143,7 +143,7 @@ const Rfm = () => { }, []); useEffect(() => { - // RFM is calculated server-side from the selected date range. + // RFV is calculated server-side from the selected date range. // eslint-disable-next-line react-hooks/set-state-in-effect void loadRfm(dateRange); }, [dateRange, loadRfm]); @@ -248,10 +248,10 @@ const Rfm = () => { Cliente: client.name, Telefone: client.phone, Segmento: client.segmentLabel, - RFM: client.rfmScore, + RFV: client.rfmScore, Recencia: client.recencyScore, Frequencia: client.frequencyScore, - Monetario: client.monetaryScore, + Valor: client.monetaryScore, 'Compra no periodo': formatPeriodRecency(client.lastPurchaseDate), 'Pedidos no periodo': client.frequency, 'Ticket medio no periodo (R$)': (client.frequency ? client.monetary / client.frequency : 0).toFixed(2).replace('.', ','), @@ -259,15 +259,15 @@ const Rfm = () => { 'Ultima compra': formatDate(client.lastPurchaseDate) })); - exportToCSV(exportData, `rfm_${new Date().toISOString().split('T')[0]}.csv`); + exportToCSV(exportData, `rfv_${new Date().toISOString().split('T')[0]}.csv`); }; return (
-

RFM

-

Segmentação de clientes por recência, frequência e valor monetário.

+

RFV

+

Segmentação de clientes por recência, frequência e valor.

@@ -284,7 +284,7 @@ const Rfm = () => { {isLoading && (
- Atualizando RFM + Atualizando RFV
)} @@ -292,7 +292,7 @@ const Rfm = () => {

Clientes no Período

{clients.length}

-

Agrupados pela tag RFM anterior

+

Agrupados pela tag RFV anterior

Receita no Período

@@ -311,8 +311,8 @@ const Rfm = () => {
-

Matriz RFM

-

Compradores do período agrupados pela tag RFM anterior ao período.

+

Matriz RFV

+

Compradores do período agrupados pela tag RFV anterior ao período.

Menor prioridade @@ -520,7 +520,7 @@ const Rfm = () => { Cliente Segmento - RFM + RFV Última Compra Pedidos no Período Ticket no Período