User Interface medium complexity frontend
0
Dependencies
0
Dependents
0
Entities
0
Integrations

Description

A trigger button rendered on the Bufdir report preview page that initiates the export flow. It is enabled only when a valid snapshot exists and disables itself during active export to prevent duplicate submissions. It surfaces download progress and error feedback inline.

Feature: Bufdir Export

bufdir-export-button

Sources & reasoning

Fase 2 placement (line 145, Fase column = 2) normalizes to v1.0. The 'ett klikk' phrasing (line 342) describes the export action specifically. Line 375 flags that the exact file format is subject to Bufdir negotiation, which is captured as a configuration point in implementation notes.

  • Bufdir-rapportering og eksport med ett klikk (kun i Admin Web Portal; mobilen bidrar med selve aktivitetsregistreringen)
  • Norse Digital Products tar initiativ til dialog med Bufdir på vegne av alle organisasjonene.

Responsibilities

  • Render export button in enabled/disabled/loading states based on snapshot availability
  • Dispatch export action to BufdirExportService on user click
  • Display inline progress indicator during file generation
  • Show success confirmation or error message after export completes

Interfaces

onExportClick(snapshotId: string, format: ExportFormat): void
setExportState(state: 'idle' | 'loading' | 'success' | 'error'): void