Add pensions module and integrate with tax report

Adds a full pensions feature: SIPP/workplace DC/LISA account metadata,
contribution recording with relief-at-source/net-pay/salary-sacrifice
gross calculations, state pension tracker, annual allowance monitor,
and LISA summary. Pension contributions feed into the tax report
(RAS gross totals, allowance used). Includes two Alembic migrations,
backend service/schema/API, and full frontend pensions page with
cards for allowance, state pension, LISA, and retirement projection.

Also fixes CSRF cookie secure flag (must be false for HTTP deployments)
and extends tax schemas/service to expose pension data in the report.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
megaproxy 2026-04-28 09:59:01 +00:00
parent b30e8e577b
commit 1a2c8efd01
30 changed files with 3537 additions and 8 deletions

View file

@ -93,6 +93,32 @@ services:
timeout: 5s
retries: 3
test:
build:
context: ./backend
target: test
profiles:
- test
environment:
ADMIN_DATABASE_URL: "postgresql://finance_app:${DB_PASSWORD}@postgres:5432/postgres"
DATABASE_URL: "postgresql+asyncpg://finance_app:${DB_PASSWORD}@postgres:5432/financedb_test"
ENCRYPTION_KEY: "${ENCRYPTION_KEY}"
JWT_PRIVATE_KEY_FILE: "/run/secrets/jwt_private.pem"
JWT_PUBLIC_KEY_FILE: "/run/secrets/jwt_public.pem"
ENVIRONMENT: "development"
ALLOW_REGISTRATION: "true"
volumes:
- ./backend/tests:/app/tests
- ./backend/app:/app/app
- ./backend/alembic:/app/alembic
- ./backend/alembic.ini:/app/alembic.ini
- ./secrets:/run/secrets:ro
networks:
- backend_net
depends_on:
postgres:
condition: service_healthy
volumes:
redis_data: