feat: add fee rules DSL editor UI in settings (Closes #43) #91

Merged
shahondin1624 merged 1 commits from feature/issue-43-fee-rules-dsl-editor-ui into main 2026-04-07 13:41:04 +02:00
Owner

Summary

  • Adds FeeRuleEditor.vue component with base rate input, family rules table (add/remove rows), live preview, and rule history
  • Adds fees.js Pinia store for fee rules API integration
  • Integrates the fee editor into the Settings view between Stufen and Permissions sections

Features

  • Rule creation: Year-from selector, base rate, dynamic family discount rows (e.g. "1" = 60 EUR, "2" = 45 EUR, "3+" = 30 EUR)
  • Live preview: Shows calculated per-child fees and family total for a configurable family size
  • Versioned rules: Creating a new rule does not overwrite old ones
  • Rule history: Table showing all past rules with year, base rate, family tiers, and creation date
  • Inactive member display: Shows current inactive rule (freeze_rate_at_exit)

Closes #43

## Summary - Adds `FeeRuleEditor.vue` component with base rate input, family rules table (add/remove rows), live preview, and rule history - Adds `fees.js` Pinia store for fee rules API integration - Integrates the fee editor into the Settings view between Stufen and Permissions sections ## Features - **Rule creation**: Year-from selector, base rate, dynamic family discount rows (e.g. "1" = 60 EUR, "2" = 45 EUR, "3+" = 30 EUR) - **Live preview**: Shows calculated per-child fees and family total for a configurable family size - **Versioned rules**: Creating a new rule does not overwrite old ones - **Rule history**: Table showing all past rules with year, base rate, family tiers, and creation date - **Inactive member display**: Shows current inactive rule (freeze_rate_at_exit) Closes #43
shahondin1624 added 1 commit 2026-04-07 13:40:59 +02:00
Adds FeeRuleEditor component with:
- Base rate and year-from inputs for new rules
- Dynamic family rules table (position-based discounts with add/remove rows)
- Live preview showing calculated fees per child for a given family size
- Versioned rule creation (new rules don't overwrite old ones)
- History table showing all past rules
- Inactive member rule display (freeze_rate_at_exit)

Also adds fees Pinia store for API integration and integrates the
editor into the Settings view.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
shahondin1624 merged commit 0efeb27ef6 into main 2026-04-07 13:41:04 +02:00
shahondin1624 deleted branch feature/issue-43-fee-rules-dsl-editor-ui 2026-04-07 13:41:05 +02:00
Sign in to join this conversation.