How rndbncc/member works
This is a React member learning portal. Members sign in, pass a role check, and reach a dashboard that loads class, session, and announcement data; they can open session details and access recordings. The dashboard also supports password changes, while the app routes to a forgot-password view. The sampled code shows the client-side API calls and authentication handling; backend implementations and the forgot-password view’s behavior were not sampled.
Main entry points: App.tsx Routes and access guard · Login.tsx Sign in · Dashboard.tsx Learning dashboard · api.ts Core API client
Components 15
Portal application
- App bootstrap
src/main.tsx - Routes and access guard
src/App.tsx
Member workflows
- Sign in
src/pages/Login.tsx - Forgot password
src/pages/ForgotPassword.tsx - Learning dashboard
src/pages/Dashboard.tsx - Session details
src/pages/SessionDetail.tsx
API clients
- Core API client
src/lib/api.ts - Auth operations
src/lib/authAPI.ts - Learning API client
src/lib/learningApi.ts - Announcement client
src/lib/announcementApi.ts - API endpoints
src/lib/config.ts
Other components
- Member
- Core backend
- Learning backend
- Announcement backend
Connections 20
- Member → Sign in: enters credentials
src/pages/Login.tsx - App bootstrap → Routes and access guard: renders
src/main.tsx - Routes and access guard → Sign in: routes to
src/App.tsx - Routes and access guard → Forgot password: routes to
src/App.tsx - Routes and access guard → Learning dashboard: guards route
src/App.tsx - Routes and access guard → Session details: guards route
src/App.tsx - Sign in → Core API client: requests login
src/pages/Login.tsx - Sign in → Learning dashboard: navigates after sign-in
src/pages/Login.tsx - Sign in → Forgot password: opens
src/pages/Login.tsx - Learning dashboard → Learning API client: loads class and sessions
src/pages/Dashboard.tsx - Learning dashboard → Announcement client: loads announcements
src/pages/Dashboard.tsx - Learning dashboard → Auth operations: changes password
src/pages/Dashboard.tsx - Session details → Learning API client: loads session detail
src/pages/SessionDetail.tsx - Auth operations → Core API client: sends auth requests
src/lib/authAPI.ts - Core API client → API endpoints: reads endpoint
src/lib/api.ts - Learning API client → API endpoints: reads endpoint
src/lib/learningApi.ts - Announcement client → API endpoints: reads endpoint
src/lib/announcementApi.ts - Core API client → Core backend: sends requests
src/lib/api.ts - Learning API client → Learning backend: sends requests
src/lib/learningApi.ts - Announcement client → Announcement backend: sends requests
src/lib/announcementApi.ts