low priority low complexity documentation pending documentor Tier 8

Acceptance Criteria

Developer docs exist for each of the five panel widgets (IntegrationConfigDashboard, CredentialManagementForm, FieldMappingEditor, SyncScheduleConfiguration, ExcludedFeaturesConfigPanel) covering: constructor parameters with types and nullability, callback signatures, expected BLoC/provider events and states, and any required ancestor widget constraints
A sequence diagram (Mermaid or PlantUML) documents all wizard steps from integration type selection to final save, including branch paths for back-navigation and cancellation
Admin user guide section 'Managing Credentials' explains how to add, update, and revoke credentials for each supported integration type (Xledger, Dynamics, Cornerstone, Consio, Bufdir) with step-by-step instructions
Admin user guide section 'Field Mapping Conventions' explains source-to-destination mapping rules, reserved field names, and what happens when a mapping is incomplete at sync time
Admin user guide section 'Sync Schedule' explains each frequency option and its operational impact
Admin user guide section 'Excluded Features' explicitly explains the HLF portal overlap scenario and how to use the exclusion panel to prevent data conflicts with the Dynamics portal
All documentation is written in English
Documentation is stored in the repository under docs/admin-ui/ or the project-standard documentation path

Technical Requirements

frameworks
Flutter (for code examples in developer docs)
Mermaid or PlantUML (for sequence diagram)
data models
IntegrationConfig
CredentialEntry
FieldMapping
SyncSchedule
ExcludedFeature
security requirements
Documentation must not include real credentials, API keys, or production environment URLs in examples — use placeholder values only
ui components
IntegrationConfigDashboard
CredentialManagementForm
FieldMappingEditor
SyncScheduleConfiguration
ExcludedFeaturesConfigPanel
IntegrationSetupWizard

Execution Context

Execution Tier
Tier 8

Tier 8 - 48 tasks

Can start after Tier 7 completes

Integration Task

Handles integration between different epics or system components. Requires coordination across multiple development streams.

Implementation Notes

Structure the developer docs as Dart doc comments (///) on each widget's class, supplemented by a docs/admin-ui/developer-guide.md for cross-component narrative. The sequence diagram should be embedded in the developer guide as a Mermaid code block for GitHub/GitLab rendering. For the admin user guide, use numbered steps with screenshots or annotated wireframes for each major action. Specifically call out the HLF Excluded Features section with a warning box noting that incorrect exclusion configuration can cause duplicate data in the Dynamics portal — this is a high-stakes configuration decision for HLF administrators.

Testing Requirements

No automated tests required for documentation. Perform a peer review pass: one developer reads the developer docs and confirms they can use each widget without needing to read source code. One non-developer (e.g., product owner or coordinator) reads the admin user guide and confirms they can complete the credential management and field mapping setup tasks without external assistance.

Component
Integration Setup Wizard
ui high
Epic Risks (4)
medium impact high prob technical

The multi-step Integration Setup Wizard must render different credential fields, field mapping targets, and validation rules depending on the selected integration type. If the type-specific branching logic is implemented as conditional widget trees rather than driven by the Integration Type Registry, the wizard becomes unmaintainable and adding new integration types requires UI code changes.

Mitigation & Contingency

Mitigation: Design the wizard to be metadata-driven from the Integration Type Registry from day one. Credential form fields, required field validation, and mapping target lists are all fetched from the registry, not hardcoded in widgets. Implement one integration type end-to-end first (Xledger) to validate the pattern before building the others.

Contingency: If the metadata-driven approach proves too complex for the initial delivery, implement Xledger and Dynamics as hardcoded wizard variants and create a registry-driven refactor as a follow-up technical debt ticket with a fixed deadline.

medium impact medium prob dependency

The Excluded Features Configuration Panel must wire directly into the feature flag system to suppress HLF app features. If the feature flag system does not yet expose a writable admin interface, this panel cannot save its configuration, blocking the HLF-specific acceptance criteria.

Mitigation & Contingency

Mitigation: Verify that the Organization-scoped Feature Flags feature (a declared dependency) exposes a Dart API for programmatic flag writes before starting this panel. Coordinate with the feature flags team to ensure the write API is available. If needed, schedule this panel as the last item in the epic.

Contingency: If the feature flag write API is unavailable at implementation time, store excluded features in the integration's JSONB settings column and wire them into a local feature flag provider that merges database state with the standard flag system at app startup.

high impact medium prob scope

The Field Mapping Editor's usability for non-technical org admins is high-risk. If the visual mapping interface is confusing, admins will configure incorrect mappings that cause silent data corruption in accounting exports — a serious financial risk discovered only at month-end reconciliation.

Mitigation & Contingency

Mitigation: Conduct usability testing with at least one admin user from Blindeforbundet on the field mapping editor prototype before full implementation. Provide descriptive labels and sample data values for all fields. Add a 'test mapping' preview that shows a transformed sample record before saving.

Contingency: If usability testing reveals the visual editor is too complex, implement a simplified list-based mapping editor (select app field → select external field, one row at a time) as a fallback, deferring the drag-and-drop visual editor to a future iteration.

medium impact medium prob technical

The Credential Management Form's masked fields and connection-test flow may conflict with screen reader requirements — VoiceOver and JAWS must be able to navigate the form, understand which fields are already configured, and receive feedback on connection test results without exposing credential values in accessible text.

Mitigation & Contingency

Mitigation: Design accessible semantics labels for masked fields (e.g., 'API key: configured, last 4 characters: abcd') from the start. Use Flutter's Semantics widget to provide screen-reader-specific text that differs from visual display. Test with VoiceOver on iOS and TalkBack on Android during development, not only at QA.

Contingency: If accessibility conflicts with security requirements for the credential form, implement a separate 'accessibility mode' flow where credential configuration is done through a separate confirmation step that provides more explicit semantic feedback without risk of value exposure.