# Subject selection ## Purpose and prerequisites Open Subject selection (`/subject-selection`). This is real self-service enrollment into choices configured in [Elective subjects](/en/docs/elective-subjects) in the administration system. It is neither a catalog of all institutional subjects nor a way to select subjects from historical semesters. The options appear only when all of these conditions hold: 1. The student has a latest active enrollment with an existing, non-deleted learning plan, its latest visible and enabled educational status of active type, and semester 1 or 2. 2. Electives and their active blocks exist for the matching plan, course and semester. The related plan row is elective (not compulsory), and the block's subject is one of its eligible options. 3. The subject is not deleted. If it has existing non-deleted child subjects, those children are offered instead of the parent. 4. Enrollment is governed by the start/end dates when configured (inclusive in the Yerevan calendar), block capacity and group selection limit. ## Understand the cards The top indicators sum selected options and their credits. Search matches titles without affecting saved choices or overall indicators. Options appear in expandable groups with the selected count and selection limit in the header. Each card displays the title, credits from the plan row, learning format, selected state and occupied/total seats. Child options in one block share its capacity. A full block is marked accordingly. ## Select, replace or remove 1. Expand a group and select a subject with the checkbox or button. The server saves the change immediately: there is no separate final Save. 2. If the group limit is 1, selecting another available block in that group replaces the previous choice. At a higher limit, you can occupy multiple blocks up to that limit; switching between children of the same block replaces its current choice. 3. A new student cannot join a full block. A student who already occupies a seat in that block may switch its child option while selection is open. 4. Press Remove or clear the checkbox to drop a choice. Once the deadline closes, neither adding nor removing is available. The server rechecks capacity if another student selects simultaneously; the portal reloads on failure. **Example:** a group with limit 1 offers Design Basics (3 credits, 8/20 seats) and Analytics Basics (3 credits, 19/20). After selecting Design, the group shows 1/1. Selecting Analytics replaces Design. If another student takes the last Analytics seat first, refresh and keep/select an available subject. With limit 2 and two occupied blocks, remove an unwanted choice before adding a third. ## Choice versus actual allocation A self-service selection creates a real student membership in the shared EduSystems elective list, not a pending application. It does **not** automatically create a virtual group, scheduled class, educator assignment or united lesson. Removal/replacement clears the corresponding prior virtual-group membership; staff should check allocation again. Before allocating a student to united lessons, configure the eligible elective options first and confirm the student's actual choice, then perform the normal group/united-lesson allocation. See [virtual-group students](/en/docs/virtual-group-students), [united lessons](/en/docs/united-lessons) and [united students](/en/docs/united-students). The credits shown here are selected, not earned. They do not replace final grades or raise GPA by themselves. ## Errors and permissions Students manage only their own selection, without faculty/profession administrator scopes. If the catalog is empty, ask the academic office to check educational-status activity and visibility, plan, course/semester, matching learning-plan rows and elective blocks. A closed-window notice means changes are unavailable; full blocks and limits also restrict additions. Use Reload after an error. Requests for changes after the deadline should go through your institution, not another student's account. ## Implementation references - [frontend-edusystems · App.tsx](https://gitlab.kamoorj.com/development/frontend-edusystems/-/blob/b928b3290040bab5c888b195b813f6705170e309/src/students/src/App.tsx) - [frontend-edusystems · features/subject-selection/SubjectSelectionPage.tsx](https://gitlab.kamoorj.com/development/frontend-edusystems/-/blob/b928b3290040bab5c888b195b813f6705170e309/src/students/src/features/subject-selection/SubjectSelectionPage.tsx) - [frontend-edusystems · features/subject-selection/components/AvailableSubjects.tsx](https://gitlab.kamoorj.com/development/frontend-edusystems/-/blob/b928b3290040bab5c888b195b813f6705170e309/src/students/src/features/subject-selection/components/AvailableSubjects.tsx) - [frontend-edusystems · features/subject-selection/components/SubjectCard.tsx](https://gitlab.kamoorj.com/development/frontend-edusystems/-/blob/b928b3290040bab5c888b195b813f6705170e309/src/students/src/features/subject-selection/components/SubjectCard.tsx) - [student_back · app/Modules/Students/Http/Controllers/SubjectSelectionController.php](https://gitlab.kamoorj.com/development/student_back/-/blob/736face8670d155d12b66590badd233516155976/app/Modules/Students/Http/Controllers/SubjectSelectionController.php) - [student_back · app/Modules/Students/Services/SubjectSelectionService.php](https://gitlab.kamoorj.com/development/student_back/-/blob/736face8670d155d12b66590badd233516155976/app/Modules/Students/Services/SubjectSelectionService.php) - [student_back · app/Modules/Students/Tests/SubjectSelectionTest.php](https://gitlab.kamoorj.com/development/student_back/-/blob/736face8670d155d12b66590badd233516155976/app/Modules/Students/Tests/SubjectSelectionTest.php) - [student_back · app/Modules/Students/routes/api.php](https://gitlab.kamoorj.com/development/student_back/-/blob/736face8670d155d12b66590badd233516155976/app/Modules/Students/routes/api.php)