medium complexity extracted Encrypted Data Assignments Confidence: 100%
9
Components
106
Shared
0
User Stories
Yes
Analyzed

Description

This feature tracks the cumulative number of completed assignments per peer mentor within a reporting period and automatically calculates honorarium tiers based on configurable thresholds. For example, a peer mentor may qualify for a base office honorarium upon completing their third assignment, and a higher-rate honorarium upon reaching their fifteenth. The system surfaces threshold progress to both the peer mentor (motivational dashboard widget) and the coordinator (team overview), and triggers notifications when a threshold is crossed.

User Flow

Assignment Threshold Tracking user flow
Click to expand

Analysis

Business Value

Accurate threshold tracking is a financial and compliance requirement for organizations that use assignment counts to trigger honorarium payments — a model explicitly used by Blindeforbundet. Without automated tracking, coordinators manually count assignments in spreadsheets, introducing errors that lead to either underpayment (demotivating peer mentors) or overpayment (a financial control risk). Surfacing progress toward the next threshold also serves as a lightweight gamification signal that motivates continued engagement, directly supporting volunteer retention — a top concern across all participating organizations. The feature also provides auditable records for accounting and Bufdir reporting.

Implementation Notes

Threshold configurations are stored per organization in the assignment_threshold_configs table, allowing each organization to define their own tier boundaries and honorarium rates without code changes. The tracking service listens for assignment status-change events (assignment marked as completed) and increments a counter in the assignments table, then evaluates all configured thresholds. Threshold crossing events are persisted and trigger push notifications via the existing Push Notification Service. The dashboard widget reads pre-aggregated counts from the Stats Store to avoid expensive live queries on every screen load. Honor thresholds should be versioned so historical reporting reflects the rules in force at the time of each assignment.

Components (115)

User Interface (3)

Service Layer (3)

Data Layer (2)

Infrastructure (1)

Shared Components

These components are reused across multiple features

Service Layer (34)

Data Layer (22)

Infrastructure (38)

infrastructure Keychain/Keystore Adapter low Shared infrastructure JWT Claims Extractor low Shared infrastructure Organization Labels Adapter low Shared infrastructure Keychain/Keystore Adapter low Shared infrastructure Auth API Client medium Shared infrastructure REST API Client medium Shared infrastructure WCAG Accessibility Adapter low Shared infrastructure Registration API Client low Shared infrastructure Accounting API Client high Shared infrastructure PDF Renderer Adapter medium Shared infrastructure File Share Adapter low Shared infrastructure FCM/APNs Adapter high Shared infrastructure Share Sheet Adapter low Shared infrastructure Share Plus Adapter low Shared infrastructure Platform Accessibility Bridge medium Shared infrastructure Semantics Override Adapter high Shared infrastructure URL Launcher Adapter low Shared infrastructure Markdown Content Renderer low Shared infrastructure Network Connectivity Monitor low Shared infrastructure Expense Receipt Storage Adapter low Shared infrastructure Audit Log Writer low Shared infrastructure Feature Flag Checker low Shared infrastructure Logo Upload Adapter low Shared infrastructure Terminology Constants Registry low Shared infrastructure Feature Flag Cache Adapter low Shared infrastructure Org Scope JWT Resolver medium Shared infrastructure Association Audit Logger low Shared infrastructure Token Blocklist medium Shared infrastructure Analytics Tracker low Shared infrastructure SEO Metadata Config low Shared infrastructure Analytics Tracker low Shared infrastructure Analytics Tracker low Shared infrastructure Sales Analytics Tracker low Shared infrastructure Email Provider Adapter low Shared infrastructure Terms of Service Content Provider low Shared infrastructure Legal PDF Asset Provider low Shared infrastructure Consent-Gated Script Loader low Shared infrastructure Legal Page Layout low Shared

User Stories

No user stories have been generated for this feature yet.