Bufdir One-Click Export Button
Component Detail
User Interface
medium complexity
frontend
1
Dependencies
0
Dependents
0
Entities
0
Integrations
Description
Primary action button in the Admin Web Portal that triggers the Bufdir export pipeline with a single click. Displays export period selector and confirmation before dispatching the POST to /api/v1/reports/bufdir/export. Enforces role guard so only org admins and global admins see the button.
bufdir-one-click-export-button
Responsibilities
- Render the export trigger button with configurable reporting period inputs
- Validate period selection before submitting the export job
- Dispatch POST request to the export API endpoint and receive the job ID
- Transition to progress view on successful job creation
- Show role-aware visibility - hidden for non-admin roles
Interfaces
onExportTriggered(period: DateRange): Promise<ExportJobId>
onPeriodChange(start: Date, end: Date): void
render(): Widget
Relationships
Sub-Components (1)
Export Period Selector Widget
component
low
Date-range picker embedded in the export button area. Lets admins select the fiscal or calendar reporting period for the Bufdir submission. Defaults to the most recently uncovered reporting period based on the last completed export.
- Render start/end date pickers with sensible defaults
- Validate that end date is after start date
- Emit selected period to parent export button