Apply the compare report's "result analysis" presentation to Trends -> By category (table view). Categories are grouped into Income -> Expenses -> Transfers sections with per-month and total subtotals; the old mixed "Total" row (which summed absolute magnitudes into a meaningless figure) is replaced by a Net result row per month (income - expenses + transfers) plus a Result before transfers row shown only when transfers exist, both coloured by sign. Category cells stay neutral levels. - reportService.getCategoryOverTime: project COALESCE(c.type,'expense') in both SELECTs and return an additive `types` map (built from the top-N rows, like `colors`). Dashboard widget and CategoryOverTimeChart are untouched. - shared types: add `types` to CategoryOverTimeData. - new pure module overTimeResults.ts (computeOverTimeResults) with unit tests - the per-month result reducer, mirroring the compare's pure Totals helper. - i18n: add reports.compare.resultNet / resultBeforeTransfers (FR+EN); reuse the existing sections.* and total* keys. - .gitignore: anchor the autopilot `reports/` rule to `/reports/` so it no longer swallows new files under src/components/reports/. Section order is income-first (Revenus -> Depenses -> Transferts), per the issue; the existing COMPARE_TYPE_ORDER is expense-first, so a local OVER_TIME_TYPE_ORDER is used rather than reusing it. Resolves #256 Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
71 lines
977 B
Text
71 lines
977 B
Text
# Logs
|
|
logs
|
|
*.log
|
|
npm-debug.log*
|
|
|
|
# Dependencies
|
|
node_modules/
|
|
|
|
# Build output
|
|
dist/
|
|
dist-ssr/
|
|
target/
|
|
|
|
# User data
|
|
data/
|
|
!src/data/
|
|
*.db
|
|
*.db-journal
|
|
*.db-wal
|
|
|
|
# Imports
|
|
imports/*.csv
|
|
|
|
# Environment
|
|
.env
|
|
.env.local
|
|
.env.*
|
|
*.local
|
|
|
|
# Secrets
|
|
*.pem
|
|
*.key
|
|
|
|
# IDE
|
|
.vscode/*
|
|
!.vscode/extensions.json
|
|
.idea/
|
|
*.swp
|
|
*.swo
|
|
*.suo
|
|
*.ntvs*
|
|
*.njsproj
|
|
*.sln
|
|
|
|
# OS
|
|
.DS_Store
|
|
Thumbs.db
|
|
|
|
# Auto-generated changelogs (synced from root by vite.config.ts)
|
|
public/CHANGELOG.md
|
|
public/CHANGELOG.fr.md
|
|
|
|
# Tauri generated
|
|
src-tauri/gen/
|
|
|
|
# Tauri icon CLI also generates iOS/Android assets — desktop targets only (nsis, deb, rpm)
|
|
src-tauri/icons/android/
|
|
src-tauri/icons/ios/
|
|
|
|
# Claude Code local state
|
|
.claude/settings.local.json
|
|
.claude/scheduled_tasks.lock
|
|
.claude/worktrees/
|
|
decisions-log.md
|
|
|
|
# Autopilot scratch + daily reports (root only — must not swallow src/components/reports/)
|
|
/reports/
|
|
|
|
# Spec scratch (committed only when promoted to docs/archive/)
|
|
spec-decisions-*.md
|
|
spec-plan-*.md
|