feat(preferencias): permite ocultar resumo do lancamento

This commit is contained in:
Felipe Coutinho
2026-05-31 15:18:07 -03:00
parent cdcc677787
commit 41eecc2538
11 changed files with 3037 additions and 10 deletions

View File

@@ -6,6 +6,7 @@ interface UserPreferences {
statementNoteAsColumn: boolean;
transactionsColumnOrder: string[] | null;
attachmentMaxSizeMb: number;
showTransactionSummary: boolean;
}
interface ApiToken {
@@ -34,6 +35,7 @@ export async function fetchUserPreferences(
statementNoteAsColumn: schema.userPreferences.statementNoteAsColumn,
transactionsColumnOrder: schema.userPreferences.transactionsColumnOrder,
attachmentMaxSizeMb: schema.userPreferences.attachmentMaxSizeMb,
showTransactionSummary: schema.userPreferences.showTransactionSummary,
})
.from(schema.userPreferences)
.where(eq(schema.userPreferences.userId, userId))