Assign a Driver to a Peer Mentor Assignment
Coordinators need to manage drivers who transport peer mentors to home visits or other locations. This story covers the ability to view available assignments, select a driver from a list of registered drivers, and associate them with an assignment. The feature is only available to organizations that have the driver module enabled via feature flags. Drivers are typically volunteers or paid individuals who require a confidentiality declaration before being given assignment details.
User Story
Acceptance Criteria
- Given a coordinator is on the driver assignment list screen, when the driver feature flag is enabled for the organization, then the driver assignment section is visible
- Given the coordinator selects an open assignment needing a driver, when they open the assignment detail, then they see an option to assign a driver from a searchable list
- Given the coordinator selects a driver and confirms the assignment, when the assignment is saved, then the driver-assignment record is persisted in the database and shown in the assignment list with the driver's name
- Given a driver has already been assigned, when the coordinator views the assignment, then the current driver assignment is shown and an option to reassign is available
- Given the driver feature flag is disabled for the organization, when the coordinator navigates to the assignments area, then no driver-related UI elements are shown
Business Value
Blindeforbundet peer mentors frequently need transportation to home visits with visually impaired contacts. Without a formal driver assignment system, coordination happens informally via phone or email, leading to missed assignments, no audit trail, and no link between driver costs and specific assignments. This story establishes the foundational assignment record needed for honorarium payment and declaration workflows.
Components
- Driver Assignment History List ui
- Driver Feature Flag Guard Widget ui
- Driver Assignment Service service
- Driver Assignment Repository data
- Organization Feature Flag Service service
- Driver Feature Flag Configuration infrastructure