From c59ba67daa26ed1c5842a4f8ed0df32597df0416 Mon Sep 17 00:00:00 2001 From: "gpt-engineer-app[bot]" <159125892+gpt-engineer-app[bot]@users.noreply.github.com> Date: Sat, 17 May 2025 23:25:52 +0000 Subject: [PATCH] feat: Create finance dashboard Implement a dashboard to display financial information from a Supabase database. The data will be fetched from the 'transacoes' table, which includes columns like id, user, created_at, valor, quando, detalhes, estabelecimento, tipo, and categoria. --- index.html | 13 +- src/App.tsx | 12 +- src/components/dashboard/CategoryChart.tsx | 85 ++++++++ src/components/dashboard/MonthlyChart.tsx | 84 ++++++++ src/components/dashboard/SummaryCard.tsx | 50 +++++ .../dashboard/TransactionsTable.tsx | 198 ++++++++++++++++++ src/components/layout/Layout.tsx | 23 ++ src/components/layout/Sidebar.tsx | 83 ++++++++ src/data/mockData.ts | 120 +++++++++++ src/index.css | 71 ++++--- src/pages/Index.tsx | 95 ++++++++- src/pages/NotFound.tsx | 20 +- src/types/financialTypes.ts | 39 ++++ tailwind.config.ts | 29 ++- 14 files changed, 870 insertions(+), 52 deletions(-) create mode 100644 src/components/dashboard/CategoryChart.tsx create mode 100644 src/components/dashboard/MonthlyChart.tsx create mode 100644 src/components/dashboard/SummaryCard.tsx create mode 100644 src/components/dashboard/TransactionsTable.tsx create mode 100644 src/components/layout/Layout.tsx create mode 100644 src/components/layout/Sidebar.tsx create mode 100644 src/data/mockData.ts create mode 100644 src/types/financialTypes.ts diff --git a/index.html b/index.html index 70fda46..cb3405a 100644 --- a/index.html +++ b/index.html @@ -1,14 +1,15 @@ + - +
-{title}
+{value}
+Start building your amazing project here!
++ Última atualização: {new Date().toLocaleDateString('pt-BR')} +
+Oops! Page not found
- - Return to Home - +Página não encontrada
++ A página que você está procurando não existe ou foi movida para outro lugar. +
+