Approval Rules Page
Component Detail
User Interface
medium complexity
frontend
0
Dependencies
0
Dependents
2
Entities
0
Integrations
Description
Admin-facing screen for creating, editing, activating, and simulating auto-approval rules. Presents the rule list, an editor form for thresholds and conditions, and a simulation panel showing how a draft rule would have affected historical claims.
approval-rules-page
Sources & reasoning
HLF's detailed reimbursement requirements explicitly call for threshold-based automatic approval. Phase 2 in §5 lists threshold-based approval as part of Reiserefusjonshåndtering, so target_release is Core Product.
-
docs/source/likeperson.md · line 43Automatisk godkjenning under 50 km / uten utlegg, manuell attestering ellers (HLF).
-
docs/source/likeperson.md · line 71Detaljert refusjonsstyring med faste valg som gjør feilkombinasjon teknisk umulig (f.eks. km + bussbillett kan ikke velges samtidig). Automatisk godkjenning under terskel.
Responsibilities
- Render the list of existing auto-approval rules with status and last-fired metadata
- Provide a form to compose rule conditions (amount, distance, receipt, expense type, claimant history)
- Trigger simulation runs against historical claims and display the resulting match set
- Activate, deactivate, or delete rules with confirmation
- Surface validation errors returned by the rules engine
Interfaces
loadRules(): RuleSummary[]
saveRule(draft: RuleDraft): Rule
simulateRule(draft: RuleDraft): SimulationResult
toggleRuleActive(ruleId: string, active: boolean): Rule
Related Data Entities (2)
Data entities managed by this component