How virat991v/devscope works
DevScope is a student-development platform for faculty, students, and administrators, centered on tracking assignments and GitHub-backed evidence of student work. Users enter through the routed React app, authenticate or use demo personas, then work with academic, review, activity, and integration features. The typed service boundary selects demo data or a Supabase adapter; GitHub OAuth and webhook functions support the documented integration capability. Several feature-to-service links are supported by the SOURCE INDEX; implementation details for unsampled pages and function wiring remain uncertain.
Main entry points: App.tsx Router and app · index.ts Typed service boundary · StudentWorkspace.tsx Student workspace · AuthContext.tsx Session and profile
Components 32
Application shell
- Router and app
src/App.tsx - Workspace shell
src/components/shared/AppShell.tsx - Landing page
src/features/landing/LandingPage.tsx - Route authorization
src/app/RouteGuards.tsx - Demo persona switch
src/components/shared/DemoSwitcher.tsx - Notifications
src/features/notifications/NotificationsPage.tsx
Academic workflows
- Student directory and profile
src/features/students/StudentDirectoryPage.tsx - Assignments and evaluation
src/features/assignments/AssignmentDetailPage.tsx - Classrooms and batches
src/features/classrooms/ClassroomsPage.tsx - Projects
src/features/projects/ProjectsPage.tsx - Administration
src/features/admin/AdminPage.tsx
Activity and review
- Faculty overview
src/features/faculty/FacultyOverview.tsx - Student workspace
src/features/students/StudentWorkspace.tsx - Activity and streaks
src/features/activity/ActivityHeatmap.tsx - Submission evidence
src/features/submissions/EvidenceRail.tsx
Identity and integrations
- Sign-in and enrollment
src/features/auth/SignUpPage.tsx - Auth callback
src/features/auth/AuthCallbackPage.tsx - Session and profile
src/app/AuthContext.tsx - GitHub connection and approval
src/features/github/RepositoryApprovalPanel.tsx - GitHub integration service
src/services/github.ts - GitHub OAuth start
supabase/functions/github-start-oauth/index.ts - GitHub OAuth callback
supabase/functions/github-oauth-callback/index.ts - Webhook ingestion
supabase/functions/github-webhook/index.ts - Webhook job processing
supabase/functions/process-webhook-jobs/index.ts - GitHub sync
supabase/functions/github-sync/index.ts
Services and data
- Typed service boundary
src/services/index.ts - Supabase adapter
src/services/supabase-adapter.ts - Deterministic demo data
src/lib/demo-data.ts - Supabase client
src/lib/supabase.ts
Other components
- Faculty, students, admins
- Supabase platform
- GitHub
Connections 40
- Faculty, students, admins → Router and app: use routes
src/App.tsx - Router and app → Landing page: routes to
src/App.tsx - Router and app → Sign-in and enrollment: routes to
src/App.tsx - Router and app → Auth callback: routes to
src/App.tsx - Router and app → Faculty overview: routes to
src/App.tsx - Router and app → Student workspace: routes to
src/App.tsx - Router and app → Student directory and profile: routes to
src/App.tsx - Router and app → Assignments and evaluation: routes to
src/App.tsx - Router and app → Classrooms and batches: routes to
src/App.tsx - Router and app → Projects: routes to
src/App.tsx - Router and app → Notifications: routes to
src/App.tsx - Router and app → Administration: routes to
src/App.tsx - Router and app → Workspace shell: renders
src/App.tsx - Router and app → Session and profile: provides auth
src/App.tsx - Router and app → Route authorization: guards routes
src/App.tsx - Router and app → Demo persona switch: renders switch
src/App.tsx - Demo persona switch → Typed service boundary: sets persona
src/App.tsx - Auth callback → Session and profile: observes session
src/features/auth/AuthCallbackPage.tsx - Session and profile → Supabase client: reads auth data
src/app/AuthContext.tsx - Faculty overview → Typed service boundary: requests data
src/features/faculty/FacultyOverview.tsx - Student workspace → Typed service boundary: requests data
src/features/students/StudentWorkspace.tsx - Student workspace → Activity and streaks: renders
src/features/students/StudentWorkspace.tsx - Student workspace → Submission evidence: renders
src/features/students/StudentWorkspace.tsx - Assignments and evaluation → Typed service boundary: requests data
src/features/assignments/AssignmentDetailPage.tsx - Classrooms and batches → Typed service boundary: uses services
- Projects → Typed service boundary: requests data
src/features/projects/ProjectsPage.tsx - Notifications → Typed service boundary: requests data
src/features/notifications/NotificationsPage.tsx - Administration → Typed service boundary: uses services
src/features/admin/AdminPage.tsx - GitHub connection and approval → GitHub integration service: uses service
src/features/github/RepositoryApprovalPanel.tsx - Typed service boundary → Deterministic demo data: serves demo data
src/services/index.ts - Typed service boundary → Supabase adapter: selects adapter
src/services/index.ts - Supabase adapter → Supabase client: uses client
src/services/supabase-adapter.ts - Session and profile → Supabase platform: authenticates and reads
src/app/AuthContext.tsx - Supabase adapter → Supabase platform: reads and writes
- GitHub integration service → Supabase client: uses client
src/services/github.ts - GitHub OAuth start → GitHub: starts OAuth
- GitHub OAuth callback → GitHub: completes OAuth
- Webhook ingestion → Webhook job processing: queues work
- Webhook job processing → GitHub sync: dispatches sync
- GitHub sync → GitHub: synchronizes repositories