feat(costs): leave a category out of the totals for a look (#2819)

Seeing what a trip cost without, say, food meant adding it up by hand. A
click (or tap) on a category in the breakdown now leaves it out of the
total, your share and what you paid, dimmed in place with a line naming it
and Count all to undo. View only: nothing is saved, and what is owed, open
or settled stays whole. The desktop breakdown moves into its own component.
This commit is contained in:
Maurice
2026-11-13 10:04:57 +01:00
parent a70eea5bf2
commit 72fc61a016
40 changed files with 480 additions and 63 deletions
+5
View File
@@ -177,6 +177,11 @@ const budget: TranslationStrings = {
'costs.mode.label': 'Dividir os custos entre os viajantes',
'costs.mode.hintSplit': 'Quem pagou e quem divide cada despesa, e o acerto no final.',
'costs.mode.hintTotals': 'Só os totais: sem pagadores, partes ou acerto. O que foi dividido continua salvo.',
'costs.breakdown.hint': 'Selecione uma categoria para deixá-la fora dos totais.',
'costs.breakdown.leaveOut': 'Deixar {category} fora dos totais',
'costs.breakdown.countIn': 'Contar {category} nos totais de novo',
'costs.breakdown.leftOut': 'Fora dos totais: {categories}',
'costs.breakdown.countAll': 'Contar tudo',
'costs.splitHint.ticket': 'Liste o que estava no comprovante e marque quem consumiu cada item.',
'costs.filter.allCategories': 'Todas as categorias',
'costs.filter.allDays': 'Todos os dias',