# How the EduSystems frontend works ## From a page address to a table In the `frontend-edusystems` repository, `src/admin` contains the admin interface, `src/students` contains the student interface, and `src/shared` contains shared components and infrastructure. To identify an admin page, begin with its browser address and menu section. For example, Learning Management → Learning Plan opens `/learning/plan`, a React Router path. The table reads its records from a different address, `GET /api/learning-plan`. [Learning plan list](/en/docs/learning-plans) | What you need to identify | Where it is defined in the admin frontend | | --- | --- | | Which page opens | The `router` directory groups routes by section. In `router/routes/learningManagementRoutes.ts`, `LEARNINGPLAN` connects the page component with its access check. | | Which rows and actions appear | The component under `pages/LearningManagement/LearningPlan/container` configures the shared `ModuleTable`, field descriptor and module actions. Opening a record, creating a plan, settings and restoration each have their own conditions. | | How selections reach the API | `LearningPlanService` sets the base to `/learning-plan`. The common table service sends query parameters and normalizes the response for the table. The plan service uses the returned filter schema and has a fallback definition if the response contains no filters. | | Where language and feedback come from | At startup `App` loads languages and applies the interface language. The HTTP client uses the current language and session. The server supplies data and messages, which a form or shared handler presents. | ## Why an available page can have unavailable actions 1. Protected pages require a signed-in session. Without one, the interface opens [sign-in](/en/docs/admin-login). 2. For routes using `guardedRoute`, the router waits for the user’s permissions and checks access to the module. If access is unavailable, the user returns to the dashboard. Conditions vary by route. 3. Within the page, individual actions check permission groups. Creating or editing a plan, for example, needs lookups for academic years, degrees, formats, faculties and professions. List access alone does not enable every button. 4. The record’s state also matters. A locked plan may still be readable. Editing depends on the returned approval-content permission, and the page hides deletion for a locked plan. [Action permissions](/en/docs/role-permissions) · [Approval flows](/en/docs/approval-flows) ## Example of checking a form An academic coordinator sees the Informatics plan but cannot find Edit. First check the approval state on its row and whether Edit appears on another plan already available to the coordinator. The administrator can check the account assignment and edit permission group, including its lookup dependencies. If the button appears but saving returns an error, follow the field and record-state checks on the server side. [User access control](/en/docs/user-access-control) · [How the server processes a request](/en/docs/edusystems-api-architecture) · [Troubleshooting](/en/docs/edusystems-data-diagnostics) ## Referencing the implementation For a manual or knowledge-base answer, record the page address, user action and verified API endpoint separately. In the example these are `/learning/plan`, “open the list of learning plans” and `GET /api/learning-plan`. The visible title is localized and the module key `learning-plan` is shared across languages. A link to a particular code revision identifies the implementation described by the article. ## Implementation references - [frontend-edusystems · src/App.tsx](https://gitlab.kamoorj.com/development/frontend-edusystems/-/blob/b928b3290040bab5c888b195b813f6705170e309/src/admin/src/App.tsx) - [frontend-edusystems · routes/learningManagementRoutes.ts](https://gitlab.kamoorj.com/development/frontend-edusystems/-/blob/b928b3290040bab5c888b195b813f6705170e309/src/admin/src/router/routes/learningManagementRoutes.ts) - [frontend-edusystems · router/ProtectedRoute.tsx](https://gitlab.kamoorj.com/development/frontend-edusystems/-/blob/b928b3290040bab5c888b195b813f6705170e309/src/admin/src/router/ProtectedRoute.tsx) - [frontend-edusystems · loaders/permissionLoader.ts](https://gitlab.kamoorj.com/development/frontend-edusystems/-/blob/b928b3290040bab5c888b195b813f6705170e309/src/admin/src/router/loaders/permissionLoader.ts) - [frontend-edusystems · container/index.tsx](https://gitlab.kamoorj.com/development/frontend-edusystems/-/blob/b928b3290040bab5c888b195b813f6705170e309/src/admin/src/pages/LearningManagement/LearningPlan/container/index.tsx) - [frontend-edusystems · LearningPlan/LearningPlanService.ts](https://gitlab.kamoorj.com/development/frontend-edusystems/-/blob/b928b3290040bab5c888b195b813f6705170e309/src/admin/src/pages/LearningManagement/LearningPlan/LearningPlanService.ts) - [frontend-edusystems · core/ModuleTable.tsx](https://gitlab.kamoorj.com/development/frontend-edusystems/-/blob/b928b3290040bab5c888b195b813f6705170e309/src/admin/src/core/ModuleTable.tsx) - [frontend-edusystems · core/ModuleService.ts](https://gitlab.kamoorj.com/development/frontend-edusystems/-/blob/b928b3290040bab5c888b195b813f6705170e309/src/admin/src/core/ModuleService.ts) - [frontend-edusystems · services/api.ts](https://gitlab.kamoorj.com/development/frontend-edusystems/-/blob/b928b3290040bab5c888b195b813f6705170e309/src/admin/src/services/api.ts) - [frontend-edusystems · api/index.ts](https://gitlab.kamoorj.com/development/frontend-edusystems/-/blob/b928b3290040bab5c888b195b813f6705170e309/src/shared/src/foundation/api/index.ts) - [backend-edusystems · routes/api.php](https://gitlab.kamoorj.com/development/backend-edusystems/-/blob/83e0edc8d75daf02ae011b433d0be83afe994212/app/Modules/LearningPlan/routes/api.php)