# rndbncc/member architecture

> Architecture diagram of the GitHub repository rndbncc/member, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-29). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/rndbncc/member
- Repository: https://github.com/rndbncc/member

## Overview

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: [`src/App.tsx`](https://github.com/rndbncc/member/blob/SCRUM-176/src/App.tsx) (Routes and access guard), [`src/pages/Login.tsx`](https://github.com/rndbncc/member/blob/SCRUM-176/src/pages/Login.tsx) (Sign in), [`src/pages/Dashboard.tsx`](https://github.com/rndbncc/member/blob/SCRUM-176/src/pages/Dashboard.tsx) (Learning dashboard), [`src/lib/api.ts`](https://github.com/rndbncc/member/blob/SCRUM-176/src/lib/api.ts) (Core API client)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_app["Portal application"]
  node_bootstrap["App bootstrap<br/>[main.tsx]"]
  node_router["Routes and access guard<br/>[App.tsx]"]
end

subgraph group_views["Member workflows"]
  node_login["Sign in<br/>[Login.tsx]"]
  node_forgot["Forgot password<br/>[ForgotPassword.tsx]"]
  node_dashboard["Learning dashboard<br/>[Dashboard.tsx]"]
  node_session["Session details<br/>[SessionDetail.tsx]"]
end

subgraph group_services["API clients"]
  node_api["Core API client<br/>[api.ts]"]
  node_authapi["Auth operations<br/>[authAPI.ts]"]
  node_learning["Learning API client<br/>[learningApi.ts]"]
  node_announcements["Announcement client<br/>[announcementApi.ts]"]
  node_config["API endpoints<br/>[config.ts]"]
end

node_member(("Member"))
node_corebackend{{"Core backend"}}
node_learningbackend{{"Learning backend"}}
node_announcementbackend{{"Announcement backend"}}

node_member -->|"enters credentials"| node_login
node_bootstrap -->|"renders"| node_router
node_router -->|"routes to"| node_login
node_router -->|"routes to"| node_forgot
node_router -->|"guards route"| node_dashboard
node_router -->|"guards route"| node_session
node_login -->|"requests login"| node_api
node_login -->|"navigates after sign-in"| node_dashboard
node_login -->|"opens"| node_forgot
node_dashboard -->|"loads class and sessions"| node_learning
node_dashboard -->|"loads announcements"| node_announcements
node_dashboard -->|"changes password"| node_authapi
node_session -->|"loads session detail"| node_learning
node_authapi -->|"sends auth requests"| node_api
node_api -->|"reads endpoint"| node_config
node_learning -->|"reads endpoint"| node_config
node_announcements -->|"reads endpoint"| node_config
node_api -->|"sends requests"| node_corebackend
node_learning -->|"sends requests"| node_learningbackend
node_announcements -->|"sends requests"| node_announcementbackend

click node_bootstrap "https://github.com/rndbncc/member/blob/SCRUM-176/src/main.tsx"
click node_router "https://github.com/rndbncc/member/blob/SCRUM-176/src/App.tsx"
click node_login "https://github.com/rndbncc/member/blob/SCRUM-176/src/pages/Login.tsx"
click node_forgot "https://github.com/rndbncc/member/blob/SCRUM-176/src/pages/ForgotPassword.tsx"
click node_dashboard "https://github.com/rndbncc/member/blob/SCRUM-176/src/pages/Dashboard.tsx"
click node_session "https://github.com/rndbncc/member/blob/SCRUM-176/src/pages/SessionDetail.tsx"
click node_api "https://github.com/rndbncc/member/blob/SCRUM-176/src/lib/api.ts"
click node_authapi "https://github.com/rndbncc/member/blob/SCRUM-176/src/lib/authAPI.ts"
click node_learning "https://github.com/rndbncc/member/blob/SCRUM-176/src/lib/learningApi.ts"
click node_announcements "https://github.com/rndbncc/member/blob/SCRUM-176/src/lib/announcementApi.ts"
click node_config "https://github.com/rndbncc/member/blob/SCRUM-176/src/lib/config.ts"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_bootstrap,node_router toneBlue
class node_login,node_forgot,node_dashboard,node_session toneAmber
class node_api,node_authapi,node_learning,node_announcements,node_config toneMint
class node_member,node_corebackend,node_learningbackend,node_announcementbackend toneIndigo
```

## Components

### Portal application

- [App bootstrap](https://github.com/rndbncc/member/blob/SCRUM-176/src/main.tsx): `src/main.tsx`
- [Routes and access guard](https://github.com/rndbncc/member/blob/SCRUM-176/src/App.tsx): `src/App.tsx`

### Member workflows

- [Sign in](https://github.com/rndbncc/member/blob/SCRUM-176/src/pages/Login.tsx): `src/pages/Login.tsx`
- [Forgot password](https://github.com/rndbncc/member/blob/SCRUM-176/src/pages/ForgotPassword.tsx): `src/pages/ForgotPassword.tsx`
- [Learning dashboard](https://github.com/rndbncc/member/blob/SCRUM-176/src/pages/Dashboard.tsx): `src/pages/Dashboard.tsx`
- [Session details](https://github.com/rndbncc/member/blob/SCRUM-176/src/pages/SessionDetail.tsx): `src/pages/SessionDetail.tsx`

### API clients

- [Core API client](https://github.com/rndbncc/member/blob/SCRUM-176/src/lib/api.ts): `src/lib/api.ts`
- [Auth operations](https://github.com/rndbncc/member/blob/SCRUM-176/src/lib/authAPI.ts): `src/lib/authAPI.ts`
- [Learning API client](https://github.com/rndbncc/member/blob/SCRUM-176/src/lib/learningApi.ts): `src/lib/learningApi.ts`
- [Announcement client](https://github.com/rndbncc/member/blob/SCRUM-176/src/lib/announcementApi.ts): `src/lib/announcementApi.ts`
- [API endpoints](https://github.com/rndbncc/member/blob/SCRUM-176/src/lib/config.ts): `src/lib/config.ts`

### Other components

- **Member**
- **Core backend**
- **Learning backend**
- **Announcement backend**

## Connections

- Member → Sign in: enters credentials (evidence: `src/pages/Login.tsx`)
- App bootstrap → Routes and access guard: renders (evidence: `src/main.tsx`)
- Routes and access guard → Sign in: routes to (evidence: `src/App.tsx`)
- Routes and access guard → Forgot password: routes to (evidence: `src/App.tsx`)
- Routes and access guard → Learning dashboard: guards route (evidence: `src/App.tsx`)
- Routes and access guard → Session details: guards route (evidence: `src/App.tsx`)
- Sign in → Core API client: requests login (evidence: `src/pages/Login.tsx`)
- Sign in → Learning dashboard: navigates after sign-in (evidence: `src/pages/Login.tsx`)
- Sign in → Forgot password: opens (evidence: `src/pages/Login.tsx`)
- Learning dashboard → Learning API client: loads class and sessions (evidence: `src/pages/Dashboard.tsx`)
- Learning dashboard → Announcement client: loads announcements (evidence: `src/pages/Dashboard.tsx`)
- Learning dashboard → Auth operations: changes password (evidence: `src/pages/Dashboard.tsx`)
- Session details → Learning API client: loads session detail (evidence: `src/pages/SessionDetail.tsx`)
- Auth operations → Core API client: sends auth requests (evidence: `src/lib/authAPI.ts`)
- Core API client → API endpoints: reads endpoint (evidence: `src/lib/api.ts`)
- Learning API client → API endpoints: reads endpoint (evidence: `src/lib/learningApi.ts`)
- Announcement client → API endpoints: reads endpoint (evidence: `src/lib/announcementApi.ts`)
- Core API client → Core backend: sends requests (evidence: `src/lib/api.ts`)
- Learning API client → Learning backend: sends requests (evidence: `src/lib/learningApi.ts`)
- Announcement client → Announcement backend: sends requests (evidence: `src/lib/announcementApi.ts`)
