How ta3allam/ta3 works
Ta3 is an Arabic learning marketplace and creator community. The main user journey is sign-in, role-based access to a dashboard, then learning through courses and community or discovering and buying courses; creators and administrators have distinct management and reporting workflows. The graph also preserves documented cohort events, regional payments, mobile/offline support, and health diagnostics. Source excerpts show routing and selected auth, course, and event-store relationships; other feature links rely on README descriptions, so unsampled internal calls are not inferred.
Main entry points: AuthContext.tsx Identity and roles · Marketplace.tsx Course marketplace · App.tsx Role routing · CourseContext.tsx Course state
Components 26
Access and shell
- Sign-in
src/pages/Login.tsx - Identity and roles
src/contexts/AuthContext.tsx - Role routing
src/App.tsx - Access guard
src/components/layout/RequireAuth.tsx - Dashboard shell
src/components/layout/DashboardLayout.tsx - Profile and certificates
src/pages/profile/UserProfilePage.tsx - Shared UI primitives
src/components/ui - User and certificate types
src/types/user.ts
Learning and community
- Course state
src/contexts/CourseContext.tsx - Course data engine
src/lib/MockDataEngine.ts - Course classroom
src/pages/courses/Courses.tsx - Course groups
src/pages/courses/Groups.tsx - Community feed
src/pages/community/CommunityFeed.tsx - Cohort events
src/pages/cohorts/CohortEvents.tsx - Live event stage
src/components/cohorts/LiveSessionStageModal.tsx
Marketplace and finance
- Course marketplace
src/pages/marketplace/Marketplace.tsx - Affiliate catalog
src/data/affiliateCourses.ts - Checkout and receipts
src/components/marketplace/CheckoutDialog.tsx - Payment verification
src/components/admin/PaymentVerificationQueue.tsx
Creator and admin operations
- Creator studio
src/pages/creator/CreatorDashboard.tsx - Creator analytics
src/pages/analytics/CreatorAnalytics.tsx - Metrics engine
src/lib/analytics/creatorMetricsEngine.ts - Admin governance
src/pages/admin/AdminDashboard.tsx
Resilience and diagnostics
- Mobile and offline
src/components/common/MobileOfflineBanner.tsx - System diagnostics
src/lib/diagnostics/systemHealthEngine.ts
Other components
- Platform users
Connections 27
- Platform users → Sign-in: starts
- Sign-in → Identity and roles: authenticates
src/pages/Login.tsx - Identity and roles → Role routing: sets role
src/App.tsx - Role routing → Access guard: routes through
src/App.tsx - Access guard → Identity and roles: checks session
src/components/layout/RequireAuth.tsx - Role routing → Dashboard shell: opens dashboards
- Identity and roles → Profile and certificates: supplies identity
src/pages/profile/UserProfilePage.tsx - Identity and roles → User and certificate types: uses role types
src/contexts/AuthContext.tsx - Course classroom → Course state: uses course state
- Course groups → Course state: reads course state
src/pages/courses/Groups.tsx - Course state → Course data engine: loads course data
src/contexts/CourseContext.tsx - Platform users → Course classroom: takes lessons
- Platform users → Community feed: joins discussions
- Platform users → Cohort events: views events
- Cohort events → Live event stage: opens live stage
- Platform users → Course marketplace: discovers courses
- Course marketplace → Affiliate catalog: offers affiliate catalog
- Course marketplace → Checkout and receipts: starts checkout
- Checkout and receipts → Payment verification: submits receipt
- Creator studio → Creator analytics: reviews performance
- Creator analytics → Metrics engine: derives reports
- Admin governance → Payment verification: verifies payments
- Creator studio → Course marketplace: publishes courses
- Platform users → Mobile and offline: uses offline mode
- Admin governance → System diagnostics: checks platform health
- Dashboard shell → Shared UI primitives: renders shared UI
src/components/layout/DashboardLayout.tsx - Profile and certificates → User and certificate types: uses certificate types
src/pages/profile/UserProfilePage.tsx