View and Filter Pending Activity Approval Queue
The approval queue presents all activity registrations awaiting coordinator review, scoped to the coordinator's organizational hierarchy via Supabase Row Level Security. Registrations are ordered by submission date by default and display contextual warning badges for: travel expense claims above the auto-approval threshold, flagged duplicates, and proxy-submitted entries. The coordinator can filter by registration type (standard activity, expense claim, proxy submission, event) and sort by date, submitter, or flag severity. Each list item shows the submitter name, activity type, submission date, and active warning badges so the coordinator can quickly identify high-priority items without opening each record.
User Story
Acceptance Criteria
- Given a coordinator is authenticated and has organizational scope assigned, when they navigate to the approval queue, then they see only registrations belonging to peer mentors within their organizational hierarchy
- Given pending registrations exist, when the queue loads, then items are ordered by submission date (oldest first) by default
- Given a registration has a duplicate flag or exceeds the expense auto-approval threshold, when it appears in the queue, then the relevant warning badge is prominently displayed on the list item
- Given the coordinator applies a filter (e.g., expense claims only), when the filter is active, then only matching registrations are shown and a clear filter indicator is visible
- Given the queue is empty after filtering, when no results match, then an empty state message is displayed explaining the filter criteria
Business Value
The approval queue is the primary daily workflow surface for coordinators managing Bufdir grant compliance. Without a scoped, prioritized view, coordinators would need to manually hunt for pending items across peer mentor profiles, causing delays, missed approvals, and inaccurate grant reporting. Providing clear warning badges ensures high-risk items (duplicates, above-threshold expenses) are never overlooked, directly protecting NHF and HLF's Bufdir funding integrity.