66
Total Infrastructure
25
Low Complexity
29
Medium Complexity
12
High Complexity
20
Shared

Infrastructure components provide foundational utilities, system integrations, and supporting functionality for the application.

JWT Infrastructure

Infrastructure layer responsible for JWT token parsing, validation, and expiry checks. Decodes access token claims to extract user ID, roles...

medium shared Email & Password Login
In-App Browser Infrastructure

Flutter infrastructure layer wrapping flutter_web_auth_2 (or equivalent) to launch external OAuth provider URLs inside a secure in-app brows...

medium BankID & Vipps Authentication
JWT Infrastructure

Shared backend infrastructure for signing, verifying, and managing platform JWTs. Used by both BankID/Vipps authentication and Email & Passw...

low shared BankID & Vipps Authentication
OAuth Callback Handler

Next.js API route infrastructure that receives OAuth authorization code callbacks from BankID and Vipps after the user completes authenticat...

medium BankID & Vipps Authentication
Biometric Infrastructure

Platform-level abstraction wrapping the local_auth Flutter plugin and Flutter Secure Storage package. Provides a stable interface over iOS L...

low Biometric Authentication (Face ID / Fingerprint)
Auth Middleware

Next.js middleware layer that intercepts every API request and validates the JWT role claims server-side before the request reaches any rout...

medium shared Role-Based Access Control
Activity BLoC

BLoC (Business Logic Component) state management layer for the activity logging flow. Translates UI events (form field changes, submission t...

medium Simple Activity Logging with Default Values
Wizard Deep Link Handler

Infrastructure utility that intercepts and resolves incoming deep links targeting the activity wizard, extracting optional pre-fill paramete...

low Activity Registration Wizard
Audio Processing Infrastructure

Configures the platform audio session to prevent speech recognition from conflicting with active phone calls, media playback, or other audio...

low Speech-to-Text Input for Reports
Document Storage

Provides the infrastructure layer for object storage of uploaded documents using an S3-compatible provider or Vercel Blob. Generates presign...

medium Document Attachment to Activities
Home Visit Activity Type Detector

Infrastructure utility that determines whether a selected activity type qualifies as a home visit category, triggering injection of the Stru...

low Formalized Home Visit Report Structure
FTS5 Full-Text Search Index Infrastructure

Manages the SQLite FTS5 virtual table that indexes contact names and note content for fast, offline-capable full-text search. Handles index ...

medium Contact List & Search
Caregiver API Routes

Defines and registers the REST API endpoints for caregiver operations in the Next.js backend. Implements `/api/v1/contacts/:contactId/caregi...

low Caregiver & Next-of-Kin Database
Certification Expiry Background Job

A scheduled backend job that runs daily to compare certification expiry dates against the current date and automatically creates pause log e...

medium Peer Mentor Pause & Temporary Deactivation
Geocoding API Infrastructure

Backend infrastructure component that proxies geocoding requests to an external geocoding API (e.g., Google Maps Geocoding or Nominatim) ser...

medium Geographic Map View for Peer Mentor Matching
Map Integration Infrastructure

Abstraction layer wrapping the chosen Flutter mapping SDK (flutter_map with OpenStreetMap tiles as the privacy-respecting default, with opti...

high Geographic Map View for Peer Mentor Matching
Statistics API Endpoint

Next.js REST API route (/api/v1/statistics/personal) that computes aggregated activity rollups per user using PostgreSQL window functions an...

medium Personal Activity Statistics
Statistics Cache Schema

Drift table definition for the local SQLite statistics cache on the mobile device. Stores serialized StatsSnapshot objects keyed by userId a...

low Personal Activity Statistics
Report API Middleware

Next.js API route middleware that enforces role-scoped access control for all team report endpoints, verifying the requesting user holds Coo...

low shared Coordinator Team Reports
Report Access Guard

Middleware that enforces role-based access control for all Bufdir report generation and export endpoints, restricting access to Coordinator ...

low shared Bufdir Report Generation & Export
Report Export Infrastructure

Handles the actual file rendering of Bufdir reports into XLSX and CSV formats using a library such as exceljs, applying the correct column m...

medium Bufdir Report Generation & Export
Duplicate Check API Endpoint

Next.js REST API endpoint at /api/v1/activities/duplicate-check that exposes the duplicate detection service to the Flutter mobile client. A...

low Duplicate Activity Detection
Accounting Integration Adapter

Infrastructure adapter implementing the organization-specific integration hooks for forwarding approved expense records to external accounti...

high Travel & Expense Registration
Receipt API Endpoint

Next.js REST API route handler at /api/v1/receipts that accepts multipart POST requests from the Flutter mobile client, validates the upload...

low Receipt Photo Upload
Receipt Storage Infrastructure

Manages the object storage layer for receipt image files using an S3-compatible storage backend. Handles secure file uploads from the Next.j...

medium Receipt Photo Upload
Approval Audit Logger

Infrastructure component that writes structured audit log entries to audit_logs for every approval lifecycle event: submission, auto-approva...

low shared Automated & Manual Reimbursement Approval
End-to-End Encryption Infrastructure

Implements the asymmetric key exchange and symmetric encryption layer used for assignment payloads. Generates and stores per-user X25519 key...

high shared Encrypted Assignment Dispatch & Tracking
Assignment Counter Cache

Performance infrastructure that maintains a denormalized or materialized counter store to avoid expensive assignment table scans on every th...

medium Assignment Count & Honorarium Threshold Tracking
Notification Infrastructure

Backend-side infrastructure responsible for dispatching push notifications via the FCM server SDK triggered by database events (new assignme...

high Push Notifications
Scheduled Notification Infrastructure

Infrastructure layer that wires the Vercel Cron Job scheduler to the reminder evaluation and delivery pipeline. Runs at configurable interva...

high Scenario-Based Reminders & Automated Follow-Up Alerts
Calendar API Infrastructure

Backend infrastructure that exposes a per-user iCal feed endpoint secured with a user-specific token. Serializes PostgreSQL activity and eve...

medium Calendar Synchronization
Home Screen BLoC

BLoC state management unit for the home dashboard that processes role resolution events and emits typed states for each role variant (PeerMe...

medium Role-Specific Home Dashboard
URL Launcher Infrastructure

Wraps the url_launcher and webview_flutter Flutter packages to provide a unified, testable interface for opening URLs. Abstracts platform di...

low External Resource Links
Toolbox Offline Cache Infrastructure

Local SQLite caching layer for talking cards and toolbox content, enabling full offline access during home visits in low-connectivity enviro...

low Talking Cards & Resource Toolbox
Email Delivery Infrastructure

Adapter layer wrapping the transactional email provider (Resend or SendGrid) used for all outbound system emails. Provides a uniform interfa...

low shared User Management
Invitation Token Infrastructure

Generates and validates time-limited cryptographically signed tokens used in user invitation links. Tokens encode the invitee email, role, a...

medium shared User Management
Labels Cache Infrastructure

Client-side caching layer for organization label maps on the Flutter mobile app. Stores the resolved label map in memory and optionally pers...

low Organization Settings & Terminology Configuration
Settings Schema Validator

Infrastructure utility that validates organization feature toggle payloads against a versioned JSON schema before persistence. Prevents inva...

low Organization Settings & Terminology Configuration
Dashboard API Infrastructure

Next.js API route handlers for the admin dashboard endpoints (/api/v1/admin/dashboard). Handles request authentication, role authorization, ...

low Admin Dashboard & KPIs
Activity Approval API Routes

Next.js API route handlers under /api/v1/admin/activities that expose the oversight and approval endpoints consumed by the admin panel front...

medium Activity Oversight & Approval Workflows
Export File Generator

Server-side infrastructure component responsible for transforming aggregated report data into Bufdir-compliant CSV or Excel files using a li...

high Admin Bufdir Report Export
Export Job Queue Infrastructure

Manages the async job lifecycle for report generation to handle large organizations where generation may take several seconds. Enqueues expo...

medium Admin Bufdir Report Export
Signed URL Provider

Infrastructure utility that generates time-limited signed URLs for accessing receipt images stored in object storage (Vercel Blob or S3-comp...

low shared Admin Reimbursement Oversight
Hierarchy Seed Migration

Database migration and seeding infrastructure that initializes the full known organizational hierarchy for all four client organizations (NH...

medium Multi-Organization Hierarchy Management
Multi-Tenancy Infrastructure

Application-level tenancy scoping layer that intercepts every incoming API request and attaches the resolved tenant context derived from JWT...

high shared Multi-Organization Hierarchy Management
Association Context Middleware

Backend middleware (Next.js API route middleware) that intercepts all write requests and validates that the association_id in the request bo...

low Member Multi-Association Membership
Integration Adapter Infrastructure

Core adapter framework defining the IntegrationAdapter interface and adapter registry. All external system adapters implement this interface...

high External Portal & Accounting System Integration
Course API Routes

REST API route definitions for the courses and enrollment endpoints exposed under /api/v1/courses. Applies JWT authentication middleware and...

low Course Registration & Management
Certificate Expiry Scheduler

Infrastructure component that orchestrates periodic expiry evaluation for all certifications and coordinates the triggering of alert notific...

medium Digital Peer Mentor Certificate & Credentials
Referral Link Infrastructure

Next.js API route infrastructure responsible for generating short-lived referral tokens, constructing deep links that route back into the Fl...

low Membership Recruitment Feature
Animation Asset Infrastructure

Infrastructure layer that bundles and manages Rive or Lottie animation assets used in the Annual Summary Screen. Handles asset versioning, l...

medium Annual Activity Summary (Peer Mentor Wrapped)
Annual Summary Scheduler Infrastructure

Cron-based infrastructure component that schedules and triggers the annual aggregation job at the start of each calendar year. Runs on Verce...

medium Annual Activity Summary (Peer Mentor Wrapped)
Badge Asset Storage Infrastructure

Object storage integration for hosting SVG and PNG badge imagery. Provides URL generation for badge assets consumed by Flutter's cached netw...

low Achievement Badges & Status Recognition
Calculator Export Infrastructure

Provides low-level utilities for generating image snapshots and PDF exports of the calculator result screen. Uses Flutter's rendering pipeli...

medium shared Peer Mentor Advantage Calculator
API Auth Middleware

Next.js middleware that enforces JWT-based authentication on all protected /api/v1/... routes and HTTP-only cookie session verification on /...

high REST API Backend
API Route Infrastructure

Next.js route handler scaffolding and conventions that define how all /api/v1/... and /admin/... endpoints are organized, mounted, and execu...

high REST API Backend
API Versioning Infrastructure

URL-prefix versioning layer that namespaces all public API endpoints under /api/v1/... to enable non-breaking evolution of the API contract ...

medium REST API Backend
Request & Response Interceptors

Flutter-side Dio/HTTP interceptor chain that transparently handles token refresh, retry logic, and error normalization for every outgoing AP...

high shared REST API Backend
Design Token System

Single Dart constants file defining all visual design tokens for the application including colors, typography, spacing, border radii, shadow...

medium shared Design System & Accessibility (WCAG 2.2 AA)
Semantic Labels Infrastructure

Infrastructure layer providing localized, organization-aware semantic label strings for all interactive elements and screen regions. Integra...

medium shared Design System & Accessibility (WCAG 2.2 AA)
Connectivity Infrastructure

Monitors device network connectivity using the connectivity_plus Flutter package and exposes reactive streams of connectivity state changes....

low shared Offline Support & Data Sync
Local Database Infrastructure

Bootstraps and manages the on-device SQLite database using the drift (formerly moor) package for Flutter. Defines the full local schema mirr...

high shared Offline Support & Data Sync
Secure Storage Infrastructure

Wraps flutter_secure_storage to provide hardware-backed secure storage delegating to iOS Keychain and Android Keystore. Ensures JWT access a...

medium shared Security & Encryption Infrastructure
Connection Pool Infrastructure

Manages a pool of PostgreSQL connections for the Next.js backend using node-postgres (pg). Configures pool size, idle timeout, and connectio...

medium shared PostgreSQL Database
Database Backup Infrastructure

Configures and manages automated daily backups of the PostgreSQL database at the managed provider level (e.g., Supabase, Neon, or Railway). ...

low PostgreSQL Database
Database Migration Infrastructure

Manages versioned SQL schema migrations for the PostgreSQL database. Applies migration scripts in sequence, tracks applied migrations in a d...

medium shared PostgreSQL Database