Approval Action Widget
Component Detail
User Interface
medium complexity
mobilefrontend
1
Dependencies
2
Dependents
0
Entities
0
Integrations
Description
Inline widget embedded in both the queue list and the claim detail screen that presents approve, reject, and request-clarification actions for a pending reimbursement claim. Captures optional coordinator notes before submitting the decision.
approval-action-widget
Responsibilities
- Render approve, reject, and clarify action buttons contextually
- Collect optional decision notes from the coordinator
- Confirm destructive actions (reject) via dialog
- Emit decision events to parent screen or BLoC
- Disable actions after a decision is submitted
Interfaces
buildActionButtons(claimId, currentStatus)
showNotesInput(actionType)
onApprove(claimId, notes)
onReject(claimId, notes)
onRequestClarification(claimId, notes)
setLoadingState(isLoading)
showSuccessFeedback(decision)
showErrorFeedback(error)
Relationships
Dependents (2)
Components that depend on this component