# msstechno-software/msspathway-client-dashboard-frontend architecture

> Architecture diagram of the GitHub repository msstechno-software/msspathway-client-dashboard-frontend, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-09). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/msstechno-software/msspathway-client-dashboard-frontend
- Repository: https://github.com/msstechno-software/msspathway-client-dashboard-frontend

## Overview

This is a React client dashboard for interview preparation and scheduled interviews. The visible workflow starts with login, enters protected dashboard routes, and branches into practice/theory interviews or scheduled sessions; interview answers and scorecards are presented through feedback and report pages. The source index identifies the broader feature modules, but the README is only the default Vite template. Some page internals are unsampled, so the graph shows documented routing and indexed component/API references without inferring a complete backend workflow.

Main entry points: [`src/components/ProtectedRoute.jsx`](https://github.com/msstechno-software/msspathway-client-dashboard-frontend/blob/main/src/components/ProtectedRoute.jsx) (Role protection), [`src/config/api.js`](https://github.com/msstechno-software/msspathway-client-dashboard-frontend/blob/main/src/config/api.js) (API base config), [`src/App.jsx`](https://github.com/msstechno-software/msspathway-client-dashboard-frontend/blob/main/src/App.jsx) (Route dispatcher), [`src/pages/Dashboard.jsx`](https://github.com/msstechno-software/msspathway-client-dashboard-frontend/blob/main/src/pages/Dashboard.jsx) (Dashboard)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_app["Application shell"]
  node_router["Route dispatcher<br/>[App.jsx]"]
  node_guard["Role protection<br/>[ProtectedRoute.jsx]"]
  node_layout["Client layout<br/>[AppLayout.jsx]"]
  node_sidebar["Navigation sidebar<br/>[Sidebar.jsx]"]
  node_api["API base config<br/>[api.js]"]
end

subgraph group_account["Client account"]
  node_login["Login<br/>[LoginPage.jsx]"]
  node_profile["My profile<br/>[MyProfile.jsx]"]
  node_dashboard["Dashboard<br/>[Dashboard.jsx]"]
end

subgraph group_practice["Practice interviews"]
  node_mode["Interview modes<br/>[InterviewMode.jsx]"]
  node_intro["Self introduction"]
  node_theory["Theory topics<br/>[TheoryTopic.jsx]"]
  node_subtopics["Subtopics<br/>[SubTopicPage.jsx]"]
  node_theory_start["Theory module start"]
  node_theory_interview["Theory AI interview"]
  node_theory_feedback["Theory feedback"]
end

subgraph group_scheduled["Scheduled interviews"]
  node_scheduled_list["Scheduled interviews"]
  node_scheduled_mode["Scheduled interview mode"]
  node_scheduled_ai["Scheduled AI interview"]
  node_scheduled_feedback["Scheduled feedback"]
end

subgraph group_insights["Interview insights"]
  node_scorecard["Scorecards<br/>[ScoreCardPage.jsx]"]
  node_performance["Performance report"]
  node_feedback["Interview feedback<br/>[FeedbackPage.jsx]"]
end

node_client(("Client"))
node_external_api{{"Backend API"}}

node_client -->|"opens app"| node_router
node_router -->|"routes to"| node_login
node_router -->|"protects routes"| node_guard
node_guard -->|"renders"| node_dashboard
node_guard -->|"renders"| node_mode
node_guard -->|"renders"| node_intro
node_guard -->|"renders"| node_theory
node_guard -->|"renders"| node_subtopics
node_guard -->|"renders"| node_theory_start
node_guard -->|"renders"| node_theory_interview
node_guard -->|"renders"| node_theory_feedback
node_guard -->|"renders"| node_scheduled_list
node_guard -->|"renders"| node_scheduled_mode
node_guard -->|"renders"| node_scheduled_ai
node_guard -->|"renders"| node_scorecard
node_dashboard -->|"uses config"| node_api
node_dashboard -->|"opens report"| node_performance
node_login -->|"uses config"| node_api
node_profile -->|"uses config"| node_api
node_mode -->|"uses config"| node_api
node_intro -->|"uses config"| node_api
node_theory -->|"uses config"| node_api
node_subtopics -->|"uses config"| node_api
node_scheduled_list -->|"uses config"| node_api
node_scheduled_list -.->|"starts mode"| node_scheduled_mode
node_scheduled_mode -->|"uses config"| node_api
node_scheduled_ai -->|"submits answers"| node_api
node_scheduled_feedback -.->|"loads feedback"| node_api
node_scorecard -->|"uses config"| node_api
node_api -.->|"configures endpoint"| node_external_api

click node_router "https://github.com/msstechno-software/msspathway-client-dashboard-frontend/blob/main/src/App.jsx"
click node_guard "https://github.com/msstechno-software/msspathway-client-dashboard-frontend/blob/main/src/components/ProtectedRoute.jsx"
click node_layout "https://github.com/msstechno-software/msspathway-client-dashboard-frontend/blob/main/src/pages/AppLayout.jsx"
click node_sidebar "https://github.com/msstechno-software/msspathway-client-dashboard-frontend/blob/main/src/components/Sidebar.jsx"
click node_login "https://github.com/msstechno-software/msspathway-client-dashboard-frontend/blob/main/src/pages/LoginPage.jsx"
click node_profile "https://github.com/msstechno-software/msspathway-client-dashboard-frontend/blob/main/src/pages/MyProfile.jsx"
click node_dashboard "https://github.com/msstechno-software/msspathway-client-dashboard-frontend/blob/main/src/pages/Dashboard.jsx"
click node_api "https://github.com/msstechno-software/msspathway-client-dashboard-frontend/blob/main/src/config/api.js"
click node_mode "https://github.com/msstechno-software/msspathway-client-dashboard-frontend/blob/main/src/pages/InterviewMode.jsx"
click node_intro "https://github.com/msstechno-software/msspathway-client-dashboard-frontend/blob/main/src/pages/SelfIntroductionQuestion.jsx"
click node_theory "https://github.com/msstechno-software/msspathway-client-dashboard-frontend/blob/main/src/pages/TheoryTopic.jsx"
click node_subtopics "https://github.com/msstechno-software/msspathway-client-dashboard-frontend/blob/main/src/pages/SubTopicPage.jsx"
click node_theory_start "https://github.com/msstechno-software/msspathway-client-dashboard-frontend/blob/main/src/pages/TheoryStartModule.jsx"
click node_theory_interview "https://github.com/msstechno-software/msspathway-client-dashboard-frontend/blob/main/src/pages/TheoryAIInterview.jsx"
click node_theory_feedback "https://github.com/msstechno-software/msspathway-client-dashboard-frontend/blob/main/src/pages/TheoryFeedackPage.jsx"
click node_scheduled_list "https://github.com/msstechno-software/msspathway-client-dashboard-frontend/blob/main/src/pages/ScheduledInterviewPage.jsx"
click node_scheduled_mode "https://github.com/msstechno-software/msspathway-client-dashboard-frontend/blob/main/src/pages/ScheduledInterviewMode.jsx"
click node_scheduled_ai "https://github.com/msstechno-software/msspathway-client-dashboard-frontend/blob/main/src/pages/ScheduledAIInterviewPage.jsx"
click node_scheduled_feedback "https://github.com/msstechno-software/msspathway-client-dashboard-frontend/blob/main/src/pages/ScheduledInterviewFeedback.jsx"
click node_scorecard "https://github.com/msstechno-software/msspathway-client-dashboard-frontend/blob/main/src/pages/ScoreCardPage.jsx"
click node_performance "https://github.com/msstechno-software/msspathway-client-dashboard-frontend/blob/main/src/pages/InterviewPerformanceReport.jsx"
click node_feedback "https://github.com/msstechno-software/msspathway-client-dashboard-frontend/blob/main/src/pages/FeedbackPage.jsx"

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_router,node_guard,node_layout,node_sidebar,node_api,node_client toneBlue
class node_login,node_profile,node_dashboard toneAmber
class node_mode,node_intro,node_theory,node_subtopics,node_theory_start,node_theory_interview,node_theory_feedback,node_external_api toneMint
class node_scheduled_list,node_scheduled_mode,node_scheduled_ai,node_scheduled_feedback toneRose
class node_scorecard,node_performance,node_feedback toneIndigo
```

## Components

### Application shell

- [Route dispatcher](https://github.com/msstechno-software/msspathway-client-dashboard-frontend/blob/main/src/App.jsx): `src/App.jsx`
- [Role protection](https://github.com/msstechno-software/msspathway-client-dashboard-frontend/blob/main/src/components/ProtectedRoute.jsx): `src/components/ProtectedRoute.jsx`
- [Client layout](https://github.com/msstechno-software/msspathway-client-dashboard-frontend/blob/main/src/pages/AppLayout.jsx): `src/pages/AppLayout.jsx`
- [Navigation sidebar](https://github.com/msstechno-software/msspathway-client-dashboard-frontend/blob/main/src/components/Sidebar.jsx): `src/components/Sidebar.jsx`
- [API base config](https://github.com/msstechno-software/msspathway-client-dashboard-frontend/blob/main/src/config/api.js): `src/config/api.js`

### Client account

- [Login](https://github.com/msstechno-software/msspathway-client-dashboard-frontend/blob/main/src/pages/LoginPage.jsx): `src/pages/LoginPage.jsx`
- [My profile](https://github.com/msstechno-software/msspathway-client-dashboard-frontend/blob/main/src/pages/MyProfile.jsx): `src/pages/MyProfile.jsx`
- [Dashboard](https://github.com/msstechno-software/msspathway-client-dashboard-frontend/blob/main/src/pages/Dashboard.jsx): `src/pages/Dashboard.jsx`

### Practice interviews

- [Interview modes](https://github.com/msstechno-software/msspathway-client-dashboard-frontend/blob/main/src/pages/InterviewMode.jsx): `src/pages/InterviewMode.jsx`
- [Self introduction](https://github.com/msstechno-software/msspathway-client-dashboard-frontend/blob/main/src/pages/SelfIntroductionQuestion.jsx): `src/pages/SelfIntroductionQuestion.jsx`
- [Theory topics](https://github.com/msstechno-software/msspathway-client-dashboard-frontend/blob/main/src/pages/TheoryTopic.jsx): `src/pages/TheoryTopic.jsx`
- [Subtopics](https://github.com/msstechno-software/msspathway-client-dashboard-frontend/blob/main/src/pages/SubTopicPage.jsx): `src/pages/SubTopicPage.jsx`
- [Theory module start](https://github.com/msstechno-software/msspathway-client-dashboard-frontend/blob/main/src/pages/TheoryStartModule.jsx): `src/pages/TheoryStartModule.jsx`
- [Theory AI interview](https://github.com/msstechno-software/msspathway-client-dashboard-frontend/blob/main/src/pages/TheoryAIInterview.jsx): `src/pages/TheoryAIInterview.jsx`
- [Theory feedback](https://github.com/msstechno-software/msspathway-client-dashboard-frontend/blob/main/src/pages/TheoryFeedackPage.jsx): `src/pages/TheoryFeedackPage.jsx`

### Scheduled interviews

- [Scheduled interviews](https://github.com/msstechno-software/msspathway-client-dashboard-frontend/blob/main/src/pages/ScheduledInterviewPage.jsx): `src/pages/ScheduledInterviewPage.jsx`
- [Scheduled interview mode](https://github.com/msstechno-software/msspathway-client-dashboard-frontend/blob/main/src/pages/ScheduledInterviewMode.jsx): `src/pages/ScheduledInterviewMode.jsx`
- [Scheduled AI interview](https://github.com/msstechno-software/msspathway-client-dashboard-frontend/blob/main/src/pages/ScheduledAIInterviewPage.jsx): `src/pages/ScheduledAIInterviewPage.jsx`
- [Scheduled feedback](https://github.com/msstechno-software/msspathway-client-dashboard-frontend/blob/main/src/pages/ScheduledInterviewFeedback.jsx): `src/pages/ScheduledInterviewFeedback.jsx`

### Interview insights

- [Scorecards](https://github.com/msstechno-software/msspathway-client-dashboard-frontend/blob/main/src/pages/ScoreCardPage.jsx): `src/pages/ScoreCardPage.jsx`
- [Performance report](https://github.com/msstechno-software/msspathway-client-dashboard-frontend/blob/main/src/pages/InterviewPerformanceReport.jsx): `src/pages/InterviewPerformanceReport.jsx`
- [Interview feedback](https://github.com/msstechno-software/msspathway-client-dashboard-frontend/blob/main/src/pages/FeedbackPage.jsx): `src/pages/FeedbackPage.jsx`

### Other components

- **Client**
- **Backend API**

## Connections

- Client → Route dispatcher: opens app
- Route dispatcher → Login: routes to (evidence: `src/App.jsx`)
- Route dispatcher → Role protection: protects routes (evidence: `src/App.jsx`)
- Role protection → Dashboard: renders (evidence: `src/App.jsx`)
- Role protection → Interview modes: renders (evidence: `src/App.jsx`)
- Role protection → Self introduction: renders (evidence: `src/App.jsx`)
- Role protection → Theory topics: renders (evidence: `src/App.jsx`)
- Role protection → Subtopics: renders (evidence: `src/App.jsx`)
- Role protection → Theory module start: renders (evidence: `src/App.jsx`)
- Role protection → Theory AI interview: renders (evidence: `src/App.jsx`)
- Role protection → Theory feedback: renders (evidence: `src/App.jsx`)
- Role protection → Scheduled interviews: renders (evidence: `src/App.jsx`)
- Role protection → Scheduled interview mode: renders (evidence: `src/App.jsx`)
- Role protection → Scheduled AI interview: renders (evidence: `src/App.jsx`)
- Role protection → Scorecards: renders (evidence: `src/App.jsx`)
- Dashboard → API base config: uses config (evidence: `src/pages/Dashboard.jsx`)
- Dashboard → Performance report: opens report
- Login → API base config: uses config (evidence: `src/pages/LoginPage.jsx`)
- My profile → API base config: uses config (evidence: `src/pages/MyProfile.jsx`)
- Interview modes → API base config: uses config (evidence: `src/pages/InterviewMode.jsx`)
- Self introduction → API base config: uses config (evidence: `src/pages/SelfIntroductionQuestion.jsx`)
- Theory topics → API base config: uses config (evidence: `src/pages/TheoryTopic.jsx`)
- Subtopics → API base config: uses config (evidence: `src/pages/SubTopicPage.jsx`)
- Scheduled interviews → API base config: uses config (evidence: `src/pages/ScheduledInterviewPage.jsx`)
- Scheduled interviews → Scheduled interview mode: starts mode
- Scheduled interview mode → API base config: uses config (evidence: `src/pages/ScheduledInterviewMode.jsx`)
- Scheduled AI interview → API base config: submits answers (evidence: `src/pages/ScheduledAIInterviewPage.jsx`)
- Scheduled feedback → API base config: loads feedback
- Scorecards → API base config: uses config (evidence: `src/pages/ScoreCardPage.jsx`)
- API base config → Backend API: configures endpoint
