Skip to content

Overview

This page provides all the routes accessible under supervisor namespace.

Tab: Classrooms

Route: /school/${schoolId}/supervisor/classrooms

Features

  • Displays the list of students and teachers in the classrooms assigned to the supervisor.

Components

  1. TopTabs: shows the classroom sections.
    • Location: /src/lib/components/shared/TopTabs.svelte
  2. StudentCard: displays all the students.
    • Location: /src/lib/components/classroom/StudentCard.svelte
  3. DomainPerformanceSummary: displays the domain performance for a student.
    • Location: ../../classroom/students/DomainPerformanceSummary.svelte

Tab: Curriculum

Route: /school/${schoolId}/supervisor/curriculum

Features

  • Fetches all the curriculums and domains in all the curriculums.
  • Displays all the goals, subgoals, lesson plans and the learning materials in the domain.

API Calls

  1. GET - /api/v1/school/curriculums
  2. GET - /api/v1/school/domains?curriculum_id=${curriculumId}
  3. GET - /api/v1/school/goals?domain_id=${domainId}&page=1
  4. GET - /api/v1/library/material_entities?entity_id=${subgoalId}
  5. GET - /api/v1/library/lesson_plan_subgoals?goal_id=${goalId}&q[sorts]=created_at+asc

Discussion

  1. Fetches all the above mentioned data using the API calls from 1 to 5.

Tab: All Students

Route: /school/${schoolId}/supervisor/students

Features

  • Displays all the students.
  • Searches the student as per the query string.

API Calls

  1. GET - /api/v1/school/students?classroom_id=${classroomId}b&per_page=50, fetches all the students in the classroom.

Tab: Content Library

Refer to Tab: Content Library as all the features and API calls are similar.

Tab: Reminders

Route: /school/${schoolId}/supervisor/reminders

Features

  • Displays all the reminders like case study approvals, report approvals etc.
  • Redirects to the page where the supervisor can approve or reject the requests.