Sub-flow › Manage Co-Instructor › Cohort Editor
๐ŸŽฌ Simulate: SUC-LMS.04.01 harness ยท 4 scenarios

Cohort Editor โ€” Co-Instructors

Cohort Information read-only
Introduction to Python Programming
Features read-only
Co-Instructors
Dr. Somsri Vongtong Inst. Prapa Meesuk

Screen Flow (from flow.puml):

โ†’ [*] Finish โ†’ Return to UC-LMS.04
๐Ÿ“ Spec notes โ€” SUC-LMS.04.01 / SCR-LMS.17 + SCR-LMS.42 + SCR-LMS.43
Identity
  • Sub-use case: SUC-LMS.04.01 โ€” Manage Co-Instructor
  • Entry screen: SCR-LMS.17 โ€” Manage Cohort Editor (co-instructor section)
  • Dialogs: SCR-LMS.42 โ€” Co-Instructor Picker ยท SCR-LMS.43 โ€” Remove Confirmation
Brief description

Sub-use case of UC-LMS.04 Manage Cohort โ€” lets the Instructor add or remove co-instructors for a cohort. Adding uses a search-and-select pop-up (SCR-LMS.42); removing uses a confirmation dialog (SCR-LMS.43). Selectable instructors must already be in the course's instructor list, excluding the currently logged-in user. Changes are not permanently saved until the Instructor clicks "Save" on the cohort edit page (UC-LMS.04 step 8).

Fields (SCR-LMS.42 โ€” Co-Instructor Picker)
  • search_query "Search (name or email)" โ€” text ยท max_length:100 ยท not required
  • selected_instructor_id "Selected Instructor" โ€” enum ยท single select ยท required
Fields (SCR-LMS.43 โ€” Remove Confirmation)
  • instructor_name "Instructor Name" โ€” text ยท read-only ยท shows the instructor selected for removal
Actions
  • add_co_instructor "Add Co-Instructor" (SCR-LMS.17) โ€” always enabled ยท triggers SUC-LMS.04.01-M-2 โ†’ opens SCR-LMS.42
  • remove_co_instructor "Remove" (SCR-LMS.17, per row) โ€” always enabled ยท triggers SUC-LMS.04.01-A-1B-1 โ†’ opens SCR-LMS.43
  • SCR-LMS.42 confirm โ€” enabled when selected_instructor_id != null ยท triggers SUC-LMS.04.01-M-5
  • SCR-LMS.42 cancel โ€” always ยท triggers SUC-LMS.04.01-A-5A-1 (AF-5A)
  • SCR-LMS.43 confirm โ€” always ยท triggers SUC-LMS.04.01-A-1B-3 (AF-1B)
  • SCR-LMS.43 cancel โ€” always ยท triggers SUC-LMS.04.01-A-1B.3A-1 (AF-1B.3A)
Additional requirements
  1. The picker list must show only instructors already in this course's instructor list, excluding the currently logged-in user and any instructor already added to this cohort.
  2. If the search result is empty โ€” show "No instructors available to add" in place of the list, and disable the Confirm button.
  3. SCR-LMS.43 uses a fixed overlay โ€” it cannot be dismissed by pressing Escape or clicking outside the window.
  4. Changes in this sub-flow are not yet permanently saved โ€” they are saved when the Instructor clicks "Save" on the cohort edit page (UC-LMS.04 step 8).
ReturnUrl context

Current: /manage-cohort/

returnUrl = the UC-LMS.04 caller screen. Finish โ†’ returnUrl; Cancel โ†’ returnUrl + "sub_cancelled=1"

Sub-flow context

SUC-LMS.04.01 โ€” invoked by: UC-LMS.04 (Manage Cohort), step 7