How abinav-kishore/arc works
Purpose and Runtime
A universal student-profile/dashboard client built with Expo and React Native, targeting Android, iOS, and web. It aggregates academic/professional profile information, coding-platform statistics, projects, skills, resumes, and update notifications. Startup and platform packaging are defined by package.json, app.json, and eas.json.
Application Entry and Routing
Expo Router provides file-based navigation from the app/ directory. The root route shell is app/_layout.tsx; app/index.tsx is the default landing route. Feature routes include app/profile.tsx, app/student.tsx, app/resume.tsx, and individual platform routes such as app/github.tsx, app/leetcode.tsx, and app/codeforces.tsx. Authentication navigation is isolated under app/login.tsx and app/auth/callback.tsx.
Screen-to-Component Boundary
Route files appear to be lightweight adapters over reusable JavaScript screen components in src/components/. The primary dashboard/profile surfaces are src/components/StudentDashboardPage.js, src/components/StudentProfilePage.js, and src/components/ProfileCard.js. This separates URL/navigation concerns from feature rendering and permits shared profile views across routes.
Identity, Student State, and Backend Access
Shared application state is organized through React contexts: student/domain data in src/lib/student-context.js, authorization behavior in src/lib/permissions-context.js, and update/alert state in src/lib/notifications-context.js. src/lib/supabase.js is the backend integration boundary, likely supporting authentication and persisted student data; the callback route at app/auth/callback.tsx closes the auth redirect flow. Field-level permission schema support is represented by sql/create_field_permissions.sql.
Profile Content and Controlled Updates
Profile data is rendered as structured sections: skills via src/components/SkillsList.js, projects via src/components/ProjectsList.js, and resume presentation via src/components/ResumeCard.js and src/components/ResumePage.js. Permission-aware change tracking is surfaced through src/components/FieldHistoryModal.js, src/components/PendingUpdatesList.js, and src/components/UpdateAlertBanner.js. The control flow is likely: backend/context loads student fields and permissions, views render allowed data, and pending/history UI exposes managed edits.
Coding and External Profile Integrations
Dedicated feature components model external developer-profile sources: src/components/GitHubPage.js, src/components/LeetCodePage.js, src/components/CodeforcesPage.js, src/components/CodeChefPage.js, and src/components/SkillrackPage.js. src/components/CodingStats.js is the likely aggregation/display layer for coding metrics. Corresponding route entry points, including app/github.tsx, app/leetcode.tsx, and app/skillrack.tsx, keep each integration independently navigable. LinkedIn is similarly represented by app/linkedin.tsx and src/components/LinkedInPage.js.
Shared Presentation
Cross-cutting UI includes src/components/HeaderBar.js, src/components/Loader.js, and src/components/EmptyState.js. Theming is centralized in src/lib/theme.js and constants/theme.ts, with platform-aware color hooks under hooks/use-color-scheme.ts and hooks/use-theme-color.ts. This is a client-side presentation boundary; Supabase is the identifiable external service, while coding platforms are represented as external profile/stat domains.
Main entry points: profile.tsx Profile routes · StudentProfilePage.js Student profile · _layout.tsx Root route shell · StudentDashboardPage.js Student dashboard
Components 18
Expo routing
- Root route shell
app/_layout.tsx - Landing route
app/index.tsx - Profile routes · Student, profile, and resume route entry points.
app/profile.tsx - Auth routes · Login and redirect callback navigation.
app/auth/callback.tsx
State and backend
- Student context · Provides shared student/domain data.
src/lib/student-context.js - Permissions context · Controls authorization behavior for profile fields.
src/lib/permissions-context.js - Notifications context · Holds update and alert state.
src/lib/notifications-context.js - Supabase client · Authentication and persisted student-data integration.
src/lib/supabase.js - Field permission schema
sql/create_field_permissions.sql
Profile features
- Student dashboard
src/components/StudentDashboardPage.js - Student profile
src/components/StudentProfilePage.js - Profile content · Skills, projects, and resume presentation.
src/components/SkillsList.js - Controlled updates UI · Shows pending changes, field history, and alerts.
src/components/PendingUpdatesList.js
External profiles
- Coding statistics · Aggregates and displays coding-platform metrics.
src/components/CodingStats.js - Coding profile screens · GitHub, LeetCode, Codeforces, CodeChef, and Skillrack views.
src/components/GitHubPage.js - LinkedIn profile
src/components/LinkedInPage.js
Other components
- Expo runtime · Builds and packages Android, iOS, and web targets.
package.json - Shared presentation · Header, loading, empty-state, and theme support.
src/components/HeaderBar.js
Connections 22
- Expo runtime → Root route shell: runs
- Root route shell → Landing route: default route
- Root route shell → Profile routes: navigates
- Root route shell → Auth routes: navigates
- Profile routes → Student dashboard: adapts to
- Profile routes → Student profile: adapts to
- Auth routes → Supabase client: completes auth
- Student context → Supabase client: loads and persists
- Permissions context → Supabase client: uses field policy data
- Field permission schema → Permissions context: defines field permissions
- Student dashboard → Student context: reads
- Student profile → Student context: reads
- Student profile → Permissions context: enforces
- Student profile → Profile content: renders
- Controlled updates UI → Notifications context: displays
- Controlled updates UI → Permissions context: reflects managed edits
- Student dashboard → Coding statistics: shows
- Coding statistics → Coding profile screens: summarizes
- Profile routes → Coding profile screens: opens platform routes
- Profile routes → LinkedIn profile: opens route
- Student dashboard → Shared presentation: uses
- Student profile → Shared presentation: uses