One-Click Export Button
Component Detail
User Interface
low complexity
frontendmobile
2
Dependencies
2
Dependents
0
Entities
0
Integrations
Description
Prominent export trigger widget displayed on the Bufdir report screen in both the mobile app and admin web portal. Initiates the export pipeline with a single tap, shows progress state, and surfaces success/error feedback with the resulting file or error message.
one-click-export-button
Responsibilities
- Render export button with correct enabled/disabled state based on report readiness
- Dispatch export request to Export Generation Service on tap
- Display in-progress spinner and disable re-tap during export
- Present success notification with file path or download link on completion
- Show error toast with retry option on failure
Interfaces
triggerExport(reportId: string, format: ExportFormat): void
onExportComplete(result: ExportResult): void
onExportError(error: ExportError): void
setButtonState(state: 'idle' | 'loading' | 'success' | 'error'): void
Relationships
Dependencies (2)
Components this component depends on
Dependents (2)
Components that depend on this component