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

Description

Modal dialog that displays the full detail of a single activity record for administrator review. It allows the reviewer to approve or reject the record and optionally attach a written reason for rejection. The modal enforces completeness checks before submission to maintain Bufdir compliance standards.

Feature: Activity Review & Approval

activity-approval-modal

Sources & reasoning

Lines 327-330 list Aktivitetsoversikt og grunnleggende statistikk as Admin Web Portal MVP scope (Phase 1 maps to MVP). Line 46 confirms the admin portal is the sole surface for Bufdir oversight, directly motivating a structured review and approval workflow as an MVP-critical feature.

  • **Admin Web Portal (MVP scope):** - Brukeradministrasjon (invitere, deaktivere, rolletildeling) - Organisasjonsinnstillinger og terminologikonfigurasjon - Aktivitetsoversikt og grunnleggende statistikk
  • Rapporteringsdata samles inn gjennom aktivitetsregistrering i mobilappen, men selve Bufdir-eksporten er en admin-funksjon: organisasjonsadministrator kjører eksporten fra Admin Web Portal.

Responsibilities

  • Display all fields of the selected activity record in a structured layout
  • Provide approve and reject action buttons with confirmation guard
  • Capture and validate a rejection reason when rejecting a record
  • Invoke ActivityApprovalService to persist the decision
  • Close and signal the parent page to refresh on successful submission

Interfaces

open(activityId: string): void
close(): void
submitApproval(decision: ApprovalDecision): Promise<void>

Related Data Entities (1)

Data entities managed by this component