- Analytics -
-- Analytics dashboard coming soon... -
-diff --git a/frontend/src/App.tsx b/frontend/src/App.tsx
deleted file mode 100644
index 826e730..0000000
--- a/frontend/src/App.tsx
+++ /dev/null
@@ -1,23 +0,0 @@
-import { QueryClient, QueryClientProvider } from "@tanstack/react-query";
-import Dashboard from "./components/Dashboard";
-
-const queryClient = new QueryClient({
- defaultOptions: {
- queries: {
- refetchOnWindowFocus: false,
- retry: 1,
- },
- },
-});
-
-function App() {
- return (
-
- Unable to connect to the Leggen API. Please check your - configuration and ensure the API server is running. -
- -+ Unable to connect to the Leggen API. Please check your configuration + and ensure the API server is running. +
+ +Total Balance
-- {formatCurrency(totalBalance)} -
++ Total Balance +
++ {formatCurrency(totalBalance)} +
+- Total Accounts -
-- {totalAccounts} -
++ Total Accounts +
++ {totalAccounts} +
+- Connected Banks -
-{uniqueBanks}
++ Connected Banks +
++ {uniqueBanks} +
+- Manage your connected bank accounts -
-+
Connect your first bank account to get started with Leggen.
-- {account.institution_id} -
-- {account.institution_id} -
- {account.iban && ( -- IBAN: {account.iban} -
- )} -+ {account.institution_id} +
++ {account.institution_id} +
+ {account.iban && ( ++ IBAN: {account.iban} +
+ )} +- Updated{" "} - {formatDate(account.last_accessed || account.created)} -
- {formatCurrency(balance, currency)} -
+ + {/* Balance and date section */} ++ Updated{" "} + {formatDate( + account.last_accessed || account.created, + )} +
++ {formatCurrency(balance, currency)} +
+- {new Intl.NumberFormat("en-US", { - style: "currency", - currency: "EUR", - }).format(totalBalance)} -
-- {accounts?.length || 0} accounts -
-- Analytics dashboard coming soon... -
-- Unable to connect to the Leggen API. Please check your - configuration and ensure the API server is running. -
- -+ Unable to connect to the Leggen API. Please check your configuration + and ensure the API server is running. +
+ +- Manage your notification services -
-+
Configure notification services in your backend to receive alerts.
-- {settings.filters.case_insensitive.length > 0 - ? settings.filters.case_insensitive.join(", ") - : "None"} -
-- {settings.filters.case_sensitive && - settings.filters.case_sensitive.length > 0 - ? settings.filters.case_sensitive.join(", ") - : "None"} -
++ {settings.filters.case_insensitive.length > 0 + ? settings.filters.case_insensitive.join(", ") + : "None"} +
++ {settings.filters.case_sensitive && + settings.filters.case_sensitive.length > 0 + ? settings.filters.case_sensitive.join(", ") + : "None"} +
+- Configure notification settings through your backend API to - customize filters and service configurations. -
++ Configure notification settings through your backend API to + customize filters and service configurations. +
++
Transaction ID:{" "}
-
+
{transactionId}
++) : ( -{JSON.stringify(rawTransaction, null, 2)}-+
+-Raw transaction data is not available for this transaction.
-+
Try refreshing the page or check if the transaction was fetched with summary_only=false.
@@ -104,14 +103,14 @@ export default function RawTransactionModal({ )}-
+
{formatCurrency(totalBalance)}
-+
{accounts?.length || 0} accounts
{account.name || "Unnamed Account"} •{" "} @@ -289,38 +308,42 @@ export default function TransactionsTable() { }, sortingFn: "basic", }, - ...(showRunningBalance ? [{ - id: "running_balance", - header: "Running Balance", - cell: ({ row }: { row: { original: Transaction } }) => { - const transaction = row.original; - const balanceKey = `${transaction.account_id}-${transaction.transaction_id}`; - const balance = runningBalances[balanceKey]; + ...(showRunningBalance + ? [ + { + id: "running_balance", + header: "Running Balance", + cell: ({ row }: { row: { original: Transaction } }) => { + const transaction = row.original; + const balanceKey = `${transaction.account_id}-${transaction.transaction_id}`; + const balance = runningBalances[balanceKey]; - if (balance === undefined) return null; + if (balance === undefined) return null; - return ( -
- {formatCurrency(balance, transaction.transaction_currency)} -
-+ {formatCurrency(balance, transaction.transaction_currency)} +
++
Booked: {formatDate(transaction.booking_date)}
)} @@ -337,7 +360,7 @@ export default function TransactionsTable() { return (- Unable to fetch transactions from the Leggen API. -
-Unable to fetch transactions from the Leggen API.
+
+
Showing {transactions.length} transaction
{transactions.length !== 1 ? "s" : ""} (
{pagination ? (
@@ -452,26 +473,30 @@ export default function TransactionsTable() {
)
{filterState.selectedAccount && accounts && (
- for {accounts.find((acc) => acc.id === filterState.selectedAccount)?.name}
+ for{" "}
+ {
+ accounts.find((acc) => acc.id === filterState.selectedAccount)
+ ?.name
+ }
)}