BufdirExportButton
Component Detail
User Interface
medium complexity
frontend
0
Dependencies
0
Dependents
0
Entities
0
Integrations
Description
A single-action button in the Admin Web Portal that triggers the Bufdir export process for a reviewed report. It displays export status feedback and disables itself during active export operations to prevent duplicate submissions.
bufdir-export-button
Sources & reasoning
The source frames Bufdir reporting as a one-button export (line 46). Line 342 places export in Phase 2 alongside generation. Line 144 marks it MUST HAVE Phase 2 (v1.0). Blueprint assigns v1.0, consistent with Phase 2. Export is architecturally distinct from generation to allow preview before commit and independent audit-trail entries.
-
docs/source/likeperson.md · line 46Alle fire organisasjoner mottar Bufdir-tilskudd og bruker mye tid på rapportering. Ønsket er det samme: trykk på én knapp og få ut det Bufdir trenger.
-
docs/source/likeperson.md · line 342Bufdir-rapportering og eksport med ett klikk (kun i Admin Web Portal; mobilen bidrar med selve aktivitetsregistreringen)
-
docs/source/likeperson.md · line 144Bufdir-rapportering (eksport, admin) | ✓ | ✓ | ✓ | ✓ | ✓ | MUST HAVE | 2
Responsibilities
- Render export trigger button with appropriate enabled/disabled state
- Display loading indicator and progress feedback during export
- Show success or error notification upon export completion
- Invoke export service when clicked by an admin user
Interfaces
onExportClick(reportId: string): void
setExportState(state: 'idle' | 'exporting' | 'done' | 'error'): void