Skip to content

feat: add BBR-based fee calculator to Opkrævningsoverblik#17

Merged
yepzdk merged 2 commits intomainfrom
feature/opkraevningsoverblik-bbr-beregner
Apr 29, 2026
Merged

feat: add BBR-based fee calculator to Opkrævningsoverblik#17
yepzdk merged 2 commits intomainfrom
feature/opkraevningsoverblik-bbr-beregner

Conversation

@yepzdk
Copy link
Copy Markdown
Contributor

@yepzdk yepzdk commented Apr 29, 2026

Summary

  • New "Beregner" tab in the Opkrævningsoverblik prototype calculating four BBR-driven municipal fees: rottebekæmpelse (with >250 m² rate split), renovation, skorstensfejer, and ejendomsskat (grundskyld)
  • Editable mock-BBR per test user with per-field reset, live recalculation, and "hvad-hvis" scenario chips (add carport / brændeovn / expand bolig / reset)
  • "Se beregning →" link from each charge detail switches to the calculator and highlights the relevant card; new skorstensfejer charge type added
  • Mock-up banner ("Dette er en mock-up, ikke det rigtige eller endelige produkt") at the top of the prototype, matching the pattern used in other research mocks

Test plan

  • npm run docs:dev → open /research-projects/projects/opkraevningsoverblik/mocks/index.html
  • Switch between Anders / Maria / Lars and verify the four fee cards show different totals; Lars's rottebekæmpelse should hit the >250 m² rate split (≈ 297,50 kr)
  • Edit grundareal / grundværdi / bygnings-felter and confirm cards update live and the "ift. BBR" delta appears
  • Try each "Hvad hvis"-chip and confirm the BBR panel updates
  • Click the per-field ↺ reset and "Nulstil alt" — values return to BBR defaults
  • From the Oversigt tab, open a rottebekæmpelse / renovation / skorstensfejer / ejendomsskat charge → click "Se beregning →" → lands on the right card with a brief highlight
  • Verify the mock-up banner is visible at the top of the page on all tabs
  • Check mobile width (~375px) layout still works
  • npm run docs:build runs cleanly

🤖 Generated with Claude Code

yepzdk and others added 2 commits April 29, 2026 11:20
New "Beregner" tab in the Opkrævningsoverblik prototype that calculates
four BBR-driven municipal fees (rottebekæmpelse with the >250 m² rate
split, renovation, skorstensfejer, ejendomsskat/grundskyld) directly
from per-user mock BBR data.

- Editable BBR fields (grundareal, grundværdi, bygninger med type/m²/
  ildsteder) with per-field reset and live recalculation
- "Hvad-hvis"-chips: add carport, install brændeovn, expand bolig, reset
- "Se beregning →" button on each charge detail that switches to the
  calculator and highlights the relevant card
- New skorstensfejer charge type with charges on Anders and Lars
- Mock-up banner at the top of the prototype matching the pattern used
  in other research mocks

Pitches to Borgerservice (Lene/Finn) on 2026-05-05.

Co-authored-by: Claude <noreply@anthropic.com>
Co-authored-by: Claude <noreply@anthropic.com>
@yepzdk yepzdk merged commit ab46f17 into main Apr 29, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant