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
| 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
- Protected pages require a signed-in session. Without one, the interface opens sign-in.
- 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. - 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.
- 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 · 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 · How the server processes a request · Troubleshooting
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
- frontend-edusystems · routes/learningManagementRoutes.ts
- frontend-edusystems · router/ProtectedRoute.tsx
- frontend-edusystems · loaders/permissionLoader.ts
- frontend-edusystems · container/index.tsx
- frontend-edusystems · LearningPlan/LearningPlanService.ts
- frontend-edusystems · core/ModuleTable.tsx
- frontend-edusystems · core/ModuleService.ts
- frontend-edusystems · services/api.ts
- frontend-edusystems · api/index.ts
- backend-edusystems · routes/api.php