How thibaultminneboo/celcatweb works
CelcatWeeb is a timetable browser: users browse groups, modules, or teachers, then inspect paginated courses filtered by week and day. Listing and detail pages fetch JSON from Next.js API routes; those routes use Prisma-backed data. The graph preserves the main browse paths and shared course presentation. API-to-database links are based on the SOURCE INDEX references; API implementation details were not excerpted, so finer query behavior is not shown.
Main entry points: groups/page.tsx Group timetable · [name]/page.tsx Module timetable · [name]/page.tsx Teacher timetable · modules/page.tsx Module listing
Components 28
Web experience
- Home page
app/page.tsx - App layout
app/layout.tsx - Group timetable
app/groups/page.tsx - Module listing
app/modules/page.tsx - Module timetable
app/modules/[name]/page.tsx - Teacher listing
app/teachers/page.tsx - Teacher timetable
app/teachers/[name]/page.tsx - Navigation bar
components/Navbar.tsx - Course collection
components/Courses.tsx - Course card
components/Course.tsx - Week selector
components/WeekSelect.tsx - Day selector
components/DaySelect.tsx - Group selector
components/GroupSelect.tsx - Pagination
components/Pagination.tsx - Loading indicator
components/Loader.tsx - Module result
components/Module.tsx - Teacher result
components/Teacher.tsx - Empty results
components/ResultsNotFound.tsx
API routes
- Group listing API
pages/api/groups/index.ts - Group timetable API
pages/api/groups/[name]/index.ts - Module listing API
pages/api/modules/index.ts - Module timetable API
pages/api/modules/[name]/index.ts - Teacher listing API
pages/api/teachers/index.ts - Teacher timetable API
pages/api/teachers/[name]/index.ts - Weeks API
pages/api/weeks/index.ts
Data access
- Prisma client
src/lib/prisma.ts - Timetable database
prisma/schema.prisma
Other components
- Visitor
Connections 43
- Visitor → Home page: opens
- Visitor → Group timetable: browses
- Visitor → Module listing: browses
- Visitor → Teacher listing: browses
- App layout → Navigation bar: renders
app/layout.tsx - Group timetable → Group timetable API: fetches
app/groups/page.tsx - Group timetable → Group selector: renders
app/groups/page.tsx - Group timetable → Week selector: renders
app/groups/page.tsx - Group timetable → Day selector: renders
app/groups/page.tsx - Group timetable → Course collection: renders
app/groups/page.tsx - Group timetable → Pagination: renders
app/groups/page.tsx - Group timetable → Loading indicator: renders
app/groups/page.tsx - Module listing → Module listing API: fetches
app/modules/page.tsx - Module listing → Module result: renders
app/modules/page.tsx - Module listing → Pagination: renders
app/modules/page.tsx - Module listing → Loading indicator: renders
app/modules/page.tsx - Module listing → Empty results: renders
app/modules/page.tsx - Module timetable → Module timetable API: fetches
app/modules/[name]/page.tsx - Module timetable → Week selector: renders
app/modules/[name]/page.tsx - Module timetable → Day selector: renders
app/modules/[name]/page.tsx - Module timetable → Course collection: renders
app/modules/[name]/page.tsx - Module timetable → Pagination: renders
app/modules/[name]/page.tsx - Module timetable → Loading indicator: renders
app/modules/[name]/page.tsx - Teacher listing → Teacher listing API: fetches
app/teachers/page.tsx - Teacher listing → Teacher result: renders
app/teachers/page.tsx - Teacher listing → Pagination: renders
app/teachers/page.tsx - Teacher listing → Loading indicator: renders
app/teachers/page.tsx - Teacher timetable → Teacher timetable API: fetches
app/teachers/[name]/page.tsx - Teacher timetable → Week selector: renders
app/teachers/[name]/page.tsx - Teacher timetable → Day selector: renders
app/teachers/[name]/page.tsx - Teacher timetable → Course collection: renders
app/teachers/[name]/page.tsx - Teacher timetable → Pagination: renders
app/teachers/[name]/page.tsx - Teacher timetable → Loading indicator: renders
app/teachers/[name]/page.tsx - Week selector → Weeks API: fetches
components/WeekSelect.tsx - Course collection → Course card: renders
components/Courses.tsx - Course collection → Empty results: renders
components/Courses.tsx - Group listing API → Prisma client: uses
pages/api/groups/index.ts - Group timetable API → Prisma client: uses
pages/api/groups/[name]/index.ts - Module listing API → Prisma client: uses
pages/api/modules/index.ts - Module timetable API → Prisma client: uses
pages/api/modules/[name]/index.ts - Teacher listing API → Prisma client: uses
pages/api/teachers/index.ts - Teacher timetable API → Prisma client: uses
pages/api/teachers/[name]/index.ts - Weeks API → Prisma client: uses
pages/api/weeks/index.ts