HIGH story-course-enrollment-management-coordinator-006 3 pts
3
Story Points
High
Priority
Course Enrollment Management
Feature

User Story

As a user
I want to receive a clear, actionable error message when my enrollment attempt fails because the course is full or I have not met the prerequisites
So that So that I understand exactly why I cannot enroll and what steps I can take next, without needing to contact a coordinator for an explanation

Acceptance Criteria

  • Given a user attempts to enroll in a course that is at full capacity, when the CourseEnrollmentService returns a full-capacity error, then a clear 'Course Full' message is shown explaining that no seats are available
  • Given a user attempts to enroll in a course with unmet prerequisites, when the CourseEnrollmentService returns a prerequisite error, then the specific unmet prerequisite is named in the error message
  • Given an enrollment error occurs, when the error state is displayed, then the user is not navigated away from the confirmation screen and can go back to the catalog without losing their place
  • Given an enrollment error occurs, when displayed, then no partial enrollment record is written to the database
  • Given a transient network error occurs during enrollment, when the error is caught, then a retry-friendly message is displayed rather than a permanent failure state

Business Value

Enrollment errors that produce vague failure messages generate coordinator support requests and erode trust in the digital enrollment process. For peer mentors with low digital confidence, unexplained errors often result in abandonment rather than retry. Typed error states with clear explanations eliminate this friction and reduce the administrative overhead on coordinators who otherwise field these questions directly. This is especially important for HLF where certification enrollment directly affects a mentor's active status and visibility on organizational listings.