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

Description

Next.js server-rendered page restricted to Org Admin role that presents a period selector, preview table of aggregated figures, and a generate/export trigger. Gives admins confidence in the data before submission by showing totals scoped to their organization.

Feature: Bufdir Report Generation

bufdir-report-builder

Sources & reasoning

The UI builder is the primary interface for Org Admins to select a reporting period, review aggregated totals, and trigger export. The preview step is explicitly required to give admins confidence before submission. Role restriction to Org Admin is mandated by the implementation notes.

No source references — this artifact was included based on reasoning alone (see above).

Responsibilities

  • Render reporting period selector (date range or fiscal year)
  • Display preview of aggregated activity figures before export
  • Trigger report generation and surface download link on completion
  • Show role-guard error for non-Org-Admin users
  • Display generation status and error states

Interfaces

selectPeriod(from: Date, to: Date): void
previewReport(): Promise<BufdirPreview>
generateReport(): Promise<BufdirExportRecord>
downloadExport(exportId: string): void

Relationships

Dependencies (2)

Components this component depends on

Related Data Entities (2)

Data entities managed by this component