User Interface medium complexity frontend
1
Dependencies
0
Dependents
0
Entities
0
Integrations

Description

Read-only dry-run panel embedded within the Auto-Approval Config Widget that executes a historical backtest against the current (unsaved) ruleset. Displays count and breakdown of claims that would have been auto-approved, helping administrators calibrate thresholds before activation.

Feature: Auto-Approval Rules

rule-preview-widget

Responsibilities

  • Trigger dry-run preview against historical expense claims on demand
  • Display count, percentage, and sample breakdown of matching claims
  • Refresh preview when rule values change before saving

Interfaces

previewRuleset(rules): Promise<RulePreviewResult>
renderPreviewSummary(result): void

Relationships

Dependencies (1)

Components this component depends on