From d0db5931713f2a53b1952bb07d3318983e4e06ef Mon Sep 17 00:00:00 2001 From: guilherme Date: Tue, 25 Nov 2025 12:34:26 -0300 Subject: [PATCH] =?UTF-8?q?refactor(App):=20simplificar=20a=20estrutura=20?= =?UTF-8?q?do=20componente=20e=20remover=20gr=C3=A1ficos=20n=C3=A3o=20util?= =?UTF-8?q?izados?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/App.tsx | 144 ++++++---------------------------------------------- 1 file changed, 16 insertions(+), 128 deletions(-) diff --git a/src/App.tsx b/src/App.tsx index f98c0a7..af04a7d 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -8,23 +8,12 @@ import { } from '@/views/components/ui/card'; import { ChartContainer, - ChartLegend, - ChartLegendContent, ChartTooltip, ChartTooltipContent, } from '@/views/components/ui/chart'; import { Progress } from '@/views/components/ui/progress'; import { TrendingUp } from 'lucide-react'; -import { - Bar, - BarChart, - CartesianGrid, - Line, - LineChart, - Pie, - PieChart, - XAxis, -} from 'recharts'; +import { Bar, BarChart, CartesianGrid, Pie, PieChart, XAxis } from 'recharts'; import { Header } from './views/components/header'; @@ -34,36 +23,35 @@ export const description = 'A stacked bar chart with a legend'; export function App() { const stats = [ { - title: 'Média de Consumo (R$)', + title: 'Protocolos criados', value: 'R$ 0,00', description: '', progress: 44.6, }, { - title: 'Total de KM Percorridos', + title: 'Protocolos tramitados', value: '0 KM', description: '', progress: 30.6, }, { - title: 'Viagens Realizadas no Mês', + title: 'Protocolos recebidos', value: '0', description: '', progress: 24.8, }, - ]; - - const evolutionConfig = { - price: { - label: 'Preço', - color: '#007cb8', + { + title: 'Protocolos finalizados', + value: '0', + description: '', + progress: 67.2, + }, + { + title: 'Protocolos cancelados', + value: '0', + description: '', + progress: 67.2, }, - } satisfies ChartConfig; - - const evolutionData = [ - { month: 'Shell', price: 186 }, - { month: 'Ipiranga', price: 305 }, - { month: 'BR', price: 237 }, ]; const bestPricesConfig = { @@ -106,31 +94,11 @@ export function App() { { status: 'reserved', count: 15, fill: '#7cd5fd' }, ]; - const mileageConfig = { - company: { - label: 'Frota Empresa', - color: '#007cb8', - }, - rented: { - label: 'Frota Terceirizada', - color: '#0ca9eb', - }, - } satisfies ChartConfig; - - const mileageData = [ - { month: 'Jan', company: 1200, rented: 800 }, - { month: 'Fev', company: 1350, rented: 750 }, - { month: 'Mar', company: 1100, rented: 900 }, - { month: 'Abr', company: 1400, rented: 600 }, - { month: 'Mai', company: 1250, rented: 850 }, - { month: 'Jun', company: 1300, rented: 700 }, - ]; - return (
-
+
{stats.map((stat) => (
- - - Evolução do Consumo de Combustível - - Comparativo de preços entre os principais postos - - - - - - - - } - /> - - - - - - Postos com Melhor Preço @@ -223,42 +147,6 @@ export function App() { - - - Quilometragem Percorrida - - Total de quilômetros percorridos nos últimos meses - - - - - - - - } /> - } /> - - - - - - - Status dos Veículos