@@ -111,7 +111,7 @@ export function AccountCard({
{account.name}
@@ -184,7 +184,7 @@ export function AccountCard({
? "text-base"
: "text-xl",
!compact && !isMobile && "mb-1.5",
- realBalance >= 0 ? "text-emerald-600" : "text-red-600"
+ realBalance >= 0 ? "text-emerald-600" : "text-red-600",
)}
>
{formatCurrency(realBalance)}
@@ -194,7 +194,7 @@ export function AccountCard({
href={`/transactions?accountId=${account.id}`}
className={cn(
"text-muted-foreground hover:text-primary hover:underline shrink-0 whitespace-nowrap",
- isMobile ? "text-[9px]" : "text-xs"
+ isMobile ? "text-[9px]" : "text-xs",
)}
>
{transactionCount} txns
@@ -207,7 +207,7 @@ export function AccountCard({
className={cn(
"flex items-center justify-between gap-2 mt-1",
isMobile ? "text-[10px]" : "text-xs",
- "text-muted-foreground"
+ "text-muted-foreground",
)}
>
-
-
-
-
-
-
-
{account.name}
-
- {account.accountNumber}
-
-
-
-
= 0 ? "text-emerald-600 dark:text-emerald-400" : "text-red-600 dark:text-red-400",
- )}
- >
- {formatCurrency(realBalance)}
-
+ return (
+
+
+
+
+
+
+
+
{account.name}
+
+ {account.accountNumber}
+
- {realBalance > 0 && (
-
- )}
- );
+
= 0
+ ? "text-emerald-600 dark:text-emerald-400"
+ : "text-red-600 dark:text-red-400",
+ )}
+ >
+ {formatCurrency(realBalance)}
+
+
+ {realBalance > 0 && (
+
+ )}
+
+ );
})}
)}
@@ -154,7 +159,9 @@ export function AccountsSummary({ data }: AccountsSummaryProps) {
return (
- Mes Comptes
+
+ Mes Comptes
+
@@ -178,7 +185,9 @@ export function AccountsSummary({ data }: AccountsSummaryProps) {
return (
- Mes Comptes
+
+ Mes Comptes
+
@@ -214,7 +223,10 @@ export function AccountsSummary({ data }: AccountsSummaryProps) {
: 0;
return (
-
+
@@ -241,7 +253,10 @@ export function AccountsSummary({ data }: AccountsSummaryProps) {
{realBalance > 0 && (
-
+
)}
);
diff --git a/components/dashboard/overview-cards.tsx b/components/dashboard/overview-cards.tsx
index 3761f42..2a7e57d 100644
--- a/components/dashboard/overview-cards.tsx
+++ b/components/dashboard/overview-cards.tsx
@@ -13,7 +13,7 @@ interface OverviewCardsProps {
export function OverviewCards({ data }: OverviewCardsProps) {
const totalBalance = data.accounts.reduce(
(sum, acc) => sum + getAccountBalance(acc),
- 0
+ 0,
);
const thisMonth = new Date();
@@ -21,7 +21,7 @@ export function OverviewCards({ data }: OverviewCardsProps) {
const thisMonthStr = thisMonth.toISOString().slice(0, 7);
const monthTransactions = data.transactions.filter((t) =>
- t.date.startsWith(thisMonthStr)
+ t.date.startsWith(thisMonthStr),
);
const income = monthTransactions
@@ -62,7 +62,7 @@ export function OverviewCards({ data }: OverviewCardsProps) {
"text-2xl sm:text-3xl md:text-3xl lg:text-4xl xl:text-5xl font-black tracking-tight mb-4 leading-none",
totalBalance >= 0
? "text-emerald-600 dark:text-emerald-400"
- : "text-red-600 dark:text-red-400"
+ : "text-red-600 dark:text-red-400",
)}
>
{formatCurrency(totalBalance)}
diff --git a/components/dashboard/recent-transactions.tsx b/components/dashboard/recent-transactions.tsx
index be2a3b3..0845c76 100644
--- a/components/dashboard/recent-transactions.tsx
+++ b/components/dashboard/recent-transactions.tsx
@@ -43,11 +43,15 @@ export function RecentTransactions({ data }: RecentTransactionsProps) {
return (
- Transactions récentes
+
+ Transactions récentes
+
-
Aucune transaction
+
+ Aucune transaction
+
Importez un fichier OFX pour commencer
diff --git a/components/dashboard/sidebar.tsx b/components/dashboard/sidebar.tsx
index af8282b..0620ea0 100644
--- a/components/dashboard/sidebar.tsx
+++ b/components/dashboard/sidebar.tsx
@@ -69,7 +69,9 @@ function SidebarContent({
-
FinTrack
+
+ FinTrack
+
)}
@@ -85,19 +87,26 @@ function SidebarContent({
className={cn(
"w-full justify-start gap-4 h-12 rounded-2xl transition-all duration-300",
"hover:bg-muted/70 hover:scale-[1.02] hover:shadow-md",
- isActive && "bg-gradient-to-r from-primary/15 via-primary/10 to-primary/5 border-2 border-primary/30 shadow-lg shadow-primary/10 backdrop-blur-sm",
+ isActive &&
+ "bg-gradient-to-r from-primary/15 via-primary/10 to-primary/5 border-2 border-primary/30 shadow-lg shadow-primary/10 backdrop-blur-sm",
collapsed && "justify-center px-2 w-12",
)}
>
-
+
{!collapsed && (
-
{item.label}
+
+ {item.label}
+
)}
@@ -115,7 +124,9 @@ function SidebarContent({
)}
>
- {!collapsed &&
Paramètres}
+ {!collapsed && (
+
Paramètres
+ )}
>
@@ -173,7 +186,9 @@ export function Sidebar({ open, onOpenChange }: SidebarProps) {
-
FinTrack
+
+ FinTrack
+
)}
)}
>
diff --git a/components/transactions/transaction-filters.tsx b/components/transactions/transaction-filters.tsx
index cf28ba5..2797790 100644
--- a/components/transactions/transaction-filters.tsx
+++ b/components/transactions/transaction-filters.tsx
@@ -256,7 +256,7 @@ export function TransactionFilters({
onRemoveCategory={(id) => {
const newCategories = selectedCategories.filter((c) => c !== id);
onCategoriesChange(
- newCategories.length > 0 ? newCategories : ["all"]
+ newCategories.length > 0 ? newCategories : ["all"],
);
}}
onClearCategories={() => onCategoriesChange(["all"])}
@@ -367,7 +367,7 @@ function ActiveFilters({
const selectedAccs = accounts.filter((a) => selectedAccounts.includes(a.id));
const selectedCats = categories.filter((c) =>
- selectedCategories.includes(c.id)
+ selectedCategories.includes(c.id),
);
const isUncategorized = selectedCategories.includes("uncategorized");
diff --git a/components/ui/account-filter-combobox.tsx b/components/ui/account-filter-combobox.tsx
index f1a6d14..eac95a2 100644
--- a/components/ui/account-filter-combobox.tsx
+++ b/components/ui/account-filter-combobox.tsx
@@ -64,7 +64,7 @@ export function AccountFilterCombobox({
// Get root folders (folders without parent) - same as folders/page.tsx
const rootFolders = useMemo(
() => folders.filter((f) => f.parentId === null),
- [folders]
+ [folders],
);
// Get child folders for a given parent - same as FolderTreeItem
@@ -78,7 +78,7 @@ export function AccountFilterCombobox({
// Get accounts without folder
const orphanAccounts = useMemo(
() => accounts.filter((a) => !a.folderId),
- [accounts]
+ [accounts],
);
const selectedAccounts = accounts.filter((a) => value.includes(a.id));
@@ -89,7 +89,7 @@ export function AccountFilterCombobox({
const directAccounts = getFolderAccounts(folderId);
const childFoldersList = getChildFolders(folderId);
const childAccounts = childFoldersList.flatMap((cf) =>
- getAllAccountsInFolder(cf.id)
+ getAllAccountsInFolder(cf.id),
);
return [...directAccounts, ...childAccounts];
};
@@ -126,7 +126,7 @@ export function AccountFilterCombobox({
if (allSelected) {
const newSelection = value.filter(
- (v) => !allFolderAccountIds.includes(v)
+ (v) => !allFolderAccountIds.includes(v),
);
onChange(newSelection.length > 0 ? newSelection : ["all"]);
} else {
@@ -153,7 +153,7 @@ export function AccountFilterCombobox({
const folderAccounts = getAllAccountsInFolder(folderId);
if (folderAccounts.length === 0) return false;
const selectedCount = folderAccounts.filter((a) =>
- value.includes(a.id)
+ value.includes(a.id),
).length;
return selectedCount > 0 && selectedCount < folderAccounts.length;
};
@@ -185,7 +185,7 @@ export function AccountFilterCombobox({
@@ -213,7 +213,7 @@ export function AccountFilterCombobox({
@@ -222,7 +222,7 @@ export function AccountFilterCombobox({
{/* Child folders - recursive */}
{childFoldersList.map((childFolder) =>
- renderFolder(childFolder, depth + 1, currentPath)
+ renderFolder(childFolder, depth + 1, currentPath),
)}
);
@@ -237,7 +237,7 @@ export function AccountFilterCombobox({
aria-expanded={open}
className={cn(
"justify-between min-w-0 h-10 w-full text-sm font-normal",
- className
+ className,
)}
>
@@ -304,7 +304,10 @@ export function AccountFilterCombobox({
(
{formatCurrency(
- filteredTransactions.reduce((sum, t) => sum + t.amount, 0)
+ filteredTransactions.reduce(
+ (sum, t) => sum + t.amount,
+ 0,
+ ),
)}
)
@@ -312,7 +315,7 @@ export function AccountFilterCombobox({
@@ -348,7 +351,7 @@ export function AccountFilterCombobox({
"ml-auto h-4 w-4 shrink-0",
value.includes(account.id)
? "opacity-100"
- : "opacity-0"
+ : "opacity-0",
)}
/>
diff --git a/components/ui/button.tsx b/components/ui/button.tsx
index 904b9d1..80e6954 100644
--- a/components/ui/button.tsx
+++ b/components/ui/button.tsx
@@ -9,7 +9,8 @@ const buttonVariants = cva(
{
variants: {
variant: {
- default: "bg-gradient-to-r from-primary via-primary/95 to-primary/90 text-primary-foreground hover:from-primary/95 hover:via-primary hover:to-primary/95 shadow-xl shadow-primary/30 hover:shadow-2xl hover:shadow-primary/40 hover:scale-[1.03] active:scale-[0.97] backdrop-blur-sm border border-primary/20",
+ default:
+ "bg-gradient-to-r from-primary via-primary/95 to-primary/90 text-primary-foreground hover:from-primary/95 hover:via-primary hover:to-primary/95 shadow-xl shadow-primary/30 hover:shadow-2xl hover:shadow-primary/40 hover:scale-[1.03] active:scale-[0.97] backdrop-blur-sm border border-primary/20",
destructive:
"bg-gradient-to-r from-destructive via-destructive/95 to-destructive/90 text-white hover:from-destructive/95 hover:via-destructive hover:to-destructive/95 shadow-xl shadow-destructive/30 hover:shadow-2xl hover:shadow-destructive/40 hover:scale-[1.03] focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 active:scale-[0.97] backdrop-blur-sm border border-destructive/20",
outline:
diff --git a/components/ui/card.tsx b/components/ui/card.tsx
index 50e357e..34c49d1 100644
--- a/components/ui/card.tsx
+++ b/components/ui/card.tsx
@@ -10,7 +10,7 @@ function Card({ className, ...props }: React.ComponentProps<"div">) {
"fintech-card",
"bg-card text-card-foreground flex flex-col",
"transition-all duration-300 ease-out",
- className
+ className,
)}
{...props}
/>
@@ -23,7 +23,7 @@ function CardHeader({ className, ...props }: React.ComponentProps<"div">) {
data-slot="card-header"
className={cn(
"@container/card-header grid auto-rows-min grid-rows-[auto_auto] items-start gap-2 px-6 pt-6 has-data-[slot=card-action]:grid-cols-[1fr_auto] [.border-b]:pb-6",
- className
+ className,
)}
{...props}
/>
@@ -56,7 +56,7 @@ function CardAction({ className, ...props }: React.ComponentProps<"div">) {
data-slot="card-action"
className={cn(
"col-start-2 row-span-2 row-start-1 self-start justify-self-end",
- className
+ className,
)}
{...props}
/>
diff --git a/components/ui/popover.tsx b/components/ui/popover.tsx
index b656993..ee28352 100644
--- a/components/ui/popover.tsx
+++ b/components/ui/popover.tsx
@@ -30,17 +30,21 @@ function PopoverContent({
if (!element) return;
const disableAnimations = () => {
- element.style.setProperty('animation', 'none', 'important');
- element.style.setProperty('transition', 'none', 'important');
+ element.style.setProperty("animation", "none", "important");
+ element.style.setProperty("transition", "none", "important");
// Ne pas toucher au transform car il est utilisé pour le positionnement
- element.style.setProperty('opacity', '1', 'important');
- element.style.setProperty('will-change', 'auto', 'important');
-
+ element.style.setProperty("opacity", "1", "important");
+ element.style.setProperty("will-change", "auto", "important");
+
// Supprimer toutes les classes d'animation Tailwind
- const classesToRemove = Array.from(element.classList).filter(cls =>
- cls.includes('animate') || cls.includes('fade') || cls.includes('zoom') || cls.includes('slide')
+ const classesToRemove = Array.from(element.classList).filter(
+ (cls) =>
+ cls.includes("animate") ||
+ cls.includes("fade") ||
+ cls.includes("zoom") ||
+ cls.includes("slide"),
);
- classesToRemove.forEach(cls => element.classList.remove(cls));
+ classesToRemove.forEach((cls) => element.classList.remove(cls));
};
// Désactiver immédiatement
@@ -53,7 +57,7 @@ function PopoverContent({
observer.observe(element, {
attributes: true,
- attributeFilter: ['class', 'data-state'],
+ attributeFilter: ["class", "data-state"],
subtree: false,
});
@@ -84,11 +88,13 @@ function PopoverContent({
"bg-popover text-popover-foreground z-50 w-72 rounded-md border p-4 shadow-md outline-hidden",
className,
)}
- style={{
- animation: 'none !important',
- transition: 'none !important',
- opacity: '1 !important',
- } as React.CSSProperties}
+ style={
+ {
+ animation: "none !important",
+ transition: "none !important",
+ opacity: "1 !important",
+ } as React.CSSProperties
+ }
{...props}
/>
diff --git a/components/ui/select.tsx b/components/ui/select.tsx
index 7cc0783..131aee8 100644
--- a/components/ui/select.tsx
+++ b/components/ui/select.tsx
@@ -63,17 +63,21 @@ function SelectContent({
if (!element) return;
const disableAnimations = () => {
- element.style.setProperty('animation', 'none', 'important');
- element.style.setProperty('transition', 'none', 'important');
+ element.style.setProperty("animation", "none", "important");
+ element.style.setProperty("transition", "none", "important");
// Ne pas toucher au transform car il est utilisé pour le positionnement
- element.style.setProperty('opacity', '1', 'important');
- element.style.setProperty('will-change', 'auto', 'important');
-
+ element.style.setProperty("opacity", "1", "important");
+ element.style.setProperty("will-change", "auto", "important");
+
// Supprimer toutes les classes d'animation Tailwind
- const classesToRemove = Array.from(element.classList).filter(cls =>
- cls.includes('animate') || cls.includes('fade') || cls.includes('zoom') || cls.includes('slide')
+ const classesToRemove = Array.from(element.classList).filter(
+ (cls) =>
+ cls.includes("animate") ||
+ cls.includes("fade") ||
+ cls.includes("zoom") ||
+ cls.includes("slide"),
);
- classesToRemove.forEach(cls => element.classList.remove(cls));
+ classesToRemove.forEach((cls) => element.classList.remove(cls));
};
// Désactiver immédiatement
@@ -86,7 +90,7 @@ function SelectContent({
observer.observe(element, {
attributes: true,
- attributeFilter: ['class', 'data-state'],
+ attributeFilter: ["class", "data-state"],
subtree: false,
});
@@ -116,11 +120,13 @@ function SelectContent({
className,
)}
position={position}
- style={{
- animation: 'none !important',
- transition: 'none !important',
- opacity: '1 !important',
- } as React.CSSProperties}
+ style={
+ {
+ animation: "none !important",
+ transition: "none !important",
+ opacity: "1 !important",
+ } as React.CSSProperties
+ }
{...props}
>