BillTracker/routes
null d53a64b604 feat(data): "Erase my data" danger zone (Batch 5)
New services/userDataService.js eraseUserData() permanently wipes a user's
financial + imported data in one transaction (child → parent order for FK
safety): bills (+ cascading payments/monthly_bill_state/bill_history_ranges),
transactions/accounts/data_sources, categories/groups, templates, snowball,
spending rules/budgets, merchant rules, imports, and per-user hint tables. It
PRESERVES the account, sessions, 2FA/WebAuthn, login history and preferences —
this resets your data, not your account — then re-seeds default categories and
writes an audit row to import_history.

- POST /api/user/erase-data — rate-limited (demoDataLimiter), requires a
  type-to-confirm token ("ERASE"), structured errors.
- UI: EraseDataSection danger-zone card (Export & backups pane) — red-accented,
  "download a backup first" nudge, type-to-confirm AlertDialog, toasts; on
  success DataPage reloads all state.

Tests: tests/eraseUserData.test.js — wipes user A only, preserves user B +
account + session, re-seeds categories, audited. Server 139 pass.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-07-03 15:21:07 -05:00
..
about.js v0.28.0 2026-05-15 22:45:38 -05:00
aboutAdmin.js fix(qa): version check is opt-out-able (QA-B16-01) 2026-07-03 10:05:37 -05:00
admin.js fix(admin): admin/profile routes and services 2026-06-07 21:18:02 -05:00
analytics.js v0.28.0 2026-05-16 15:38:28 -05:00
auth.js security: WebAuthn / FIDO2 hardware security key 2FA 2026-06-05 22:05:23 -05:00
authOidc.js fix: login mode card update, OIDC service improvements, auth middleware refinements 2026-06-04 03:53:38 -05:00
bills.js feat(bills): "Recently deleted" restore view for the 30-day window (IMP-UX-01) 2026-07-03 12:56:45 -05:00
calendar.js feat(money): cents migration stage 2 — schema flip to integer cents (batch 0.38.4) 2026-06-11 20:12:31 -05:00
calendarFeed.js feat: iCal feed for bills (Apple/Google calendar export) 2026-06-07 15:53:46 -05:00
categories.js feat(spending): category groups, YNAB-style spending page overhaul, 3-month averages, cover overspending (batch 0.41.0) 2026-06-14 19:21:34 -05:00
dataSources.js feat: bank sync section, data sources route, subscription page updates, package updates 2026-06-07 02:03:00 -05:00
export.js feat(export): JSON export + date-range/format payments export (Batch 4) 2026-07-03 15:15:36 -05:00
import.js feat(import): OFX/QFX transaction import (Batch 3) 2026-07-03 15:11:59 -05:00
matches.js refactor(match): one canonical writer for transaction match state (IMP-CODE-03) 2026-07-03 13:02:10 -05:00
monthly-starting-amounts.js feat(money): cents migration stage 2 — schema flip to integer cents (batch 0.38.4) 2026-06-11 20:12:31 -05:00
notifications.js feat: push notification channels (ntfy/Gotify/Discord/Telegram) and cash flow projection 2026-06-03 21:43:54 -05:00
payments.js refactor(match): one canonical writer for transaction match state (IMP-CODE-03) 2026-07-03 13:02:10 -05:00
privacy.js fix(qa): version check is opt-out-able (QA-B16-01) 2026-07-03 10:05:37 -05:00
profile.js fix(admin): admin/profile routes and services 2026-06-07 21:18:02 -05:00
settings.js v0.28.0 2026-05-15 22:45:38 -05:00
snowball.js feat(money): cents migration stage 2 — schema flip to integer cents (batch 0.38.4) 2026-06-11 20:12:31 -05:00
spending.js feat: copy last month budgets, monthly income section on summary page 2026-06-04 21:57:42 -05:00
status.js feat(auth): add per-username rate limiter, migrate dates to local-time utils (batch 0.38.1) 2026-06-10 19:42:51 -05:00
subscriptions.js feat(money): cents migration stage 2 — schema flip to integer cents (batch 0.38.4) 2026-06-11 20:12:31 -05:00
summary.js fix(qa): bank-tracking unpaid_this_month gates by occurrence (QA-B5-02) 2026-07-02 21:41:33 -05:00
tracker.js feat(tracker): overdue command center with snooze/skip/pay + sidebar badge 2026-05-30 13:19:09 -05:00
transactions.js refactor(match): one canonical writer for transaction match state (IMP-CODE-03) 2026-07-03 13:02:10 -05:00
user.js feat(data): "Erase my data" danger zone (Batch 5) 2026-07-03 15:21:07 -05:00
version.js security fixes 2026-05-28 03:59:35 -05:00