# shadman2503/journey-tracker architecture

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

- Interactive diagram: https://gitdiagram.com/shadman2503/journey-tracker
- Repository: https://github.com/shadman2503/journey-tracker

## Overview

DUET 2027 Journey Tracker is a local-first preparation tracker. Users navigate from the dashboard into syllabus progress, study logging, mock tests, and mistake review; those records support diagnostics, analytics, and a preparation timeline. React pages coordinate Zustand stores, domain logic, repositories, and browser-local Dexie storage. The README documents additional revision, milestone, and backup capabilities. Relationships below follow cited imports/calls or README descriptions; some page internals were not sampled, so undocumented wiring is omitted.

Main entry points: [`src/App.tsx`](https://github.com/shadman2503/journey-tracker/blob/main/src/App.tsx) (App Router), [`src/stores/useStudySessionStore.ts`](https://github.com/shadman2503/journey-tracker/blob/main/src/stores/useStudySessionStore.ts) (Zustand Stores), [`src/pages/DashboardPage.tsx`](https://github.com/shadman2503/journey-tracker/blob/main/src/pages/DashboardPage.tsx) (Dashboard), [`src/pages/SyllabusPage.tsx`](https://github.com/shadman2503/journey-tracker/blob/main/src/pages/SyllabusPage.tsx) (Syllabus Explorer)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_entry["App and Navigation"]
  node_app["App Router<br/>[App.tsx]"]
  node_dashboard["Dashboard<br/>[DashboardPage.tsx]"]
end

subgraph group_learning["Preparation Workflows"]
  node_syllabus["Syllabus Explorer<br/>[SyllabusPage.tsx]"]
  node_studylog["Study Log<br/>[StudyLogPage.tsx]"]
  node_studyform["Session Logger"]
  node_mocktests["Mock Tests<br/>[MockTestsPage.tsx]"]
  node_mistakes["Mistake Notebook<br/>[MistakesPage.tsx]"]
  node_review["Mistake Review"]
end

subgraph group_insights["Insights and Journey"]
  node_analytics["Analytics<br/>[AnalyticsPage.tsx]"]
  node_journey["Journey Timeline<br/>[JourneyPage.tsx]"]
  node_weakness["Weak Area Diagnostics<br/>[weakArea.ts]"]
  node_revision["Revision Recommendations"]
  node_milestones["Milestones<br/>[milestones.ts]"]
end

subgraph group_data["Domain and Local Data"]
  node_backup["Backup and Restore<br/>[backupService.ts]"]
  node_progressdomain["Progress Logic<br/>[progress.ts]"]
  node_studydomain["Study Metrics<br/>[studySession.ts]"]
  node_topicrepo["Syllabus Repository"]
  node_stores["Zustand Stores"]
  node_repositories["Dexie Repositories<br/>[index.ts]"]
  node_database[("IndexedDB Database<br/>[db.ts]")]
end

node_learner(("Learner"))

node_learner -->|"uses"| node_app
node_app -->|"routes to"| node_dashboard
node_app -->|"routes to"| node_syllabus
node_app -->|"routes to"| node_studylog
node_app -->|"routes to"| node_mocktests
node_app -->|"routes to"| node_mistakes
node_app -->|"routes to"| node_analytics
node_app -->|"routes to"| node_journey
node_dashboard -->|"reads state"| node_stores
node_dashboard -->|"uses diagnostics"| node_weakness
node_dashboard -->|"uses recommendations"| node_revision
node_syllabus -->|"queries topics"| node_topicrepo
node_syllabus -->|"reads progress"| node_stores
node_syllabus -->|"uses calculations"| node_progressdomain
node_studylog -->|"records sessions"| node_studyform
node_studyform -->|"records session"| node_stores
node_stores -->|"persists records"| node_repositories
node_stores -->|"calculates metrics"| node_studydomain
node_repositories -->|"reads and writes"| node_database
node_mocktests -->|"uses test state"| node_stores
node_mistakes -->|"uses mistake state"| node_stores
node_review -->|"updates mistakes"| node_stores
node_analytics -.->|"analyzes records"| node_stores
node_journey -.->|"shows milestones"| node_milestones
node_backup -->|"exports and restores"| node_database
node_weakness -->|"informs queue"| node_revision
node_journey -.->|"presents journey"| node_milestones

click node_app "https://github.com/shadman2503/journey-tracker/blob/main/src/App.tsx"
click node_dashboard "https://github.com/shadman2503/journey-tracker/blob/main/src/pages/DashboardPage.tsx"
click node_syllabus "https://github.com/shadman2503/journey-tracker/blob/main/src/pages/SyllabusPage.tsx"
click node_studylog "https://github.com/shadman2503/journey-tracker/blob/main/src/pages/StudyLogPage.tsx"
click node_studyform "https://github.com/shadman2503/journey-tracker/blob/main/src/components/study/RecordSessionModal.tsx"
click node_mocktests "https://github.com/shadman2503/journey-tracker/blob/main/src/pages/MockTestsPage.tsx"
click node_mistakes "https://github.com/shadman2503/journey-tracker/blob/main/src/pages/MistakesPage.tsx"
click node_review "https://github.com/shadman2503/journey-tracker/blob/main/src/components/mistake/MistakeReviewModal.tsx"
click node_analytics "https://github.com/shadman2503/journey-tracker/blob/main/src/pages/AnalyticsPage.tsx"
click node_journey "https://github.com/shadman2503/journey-tracker/blob/main/src/pages/JourneyPage.tsx"
click node_weakness "https://github.com/shadman2503/journey-tracker/blob/main/src/domain/weakArea.ts"
click node_revision "https://github.com/shadman2503/journey-tracker/blob/main/src/domain/revisionRecommendations.ts"
click node_milestones "https://github.com/shadman2503/journey-tracker/blob/main/src/domain/milestones.ts"
click node_backup "https://github.com/shadman2503/journey-tracker/blob/main/src/services/backupService.ts"
click node_progressdomain "https://github.com/shadman2503/journey-tracker/blob/main/src/domain/progress.ts"
click node_studydomain "https://github.com/shadman2503/journey-tracker/blob/main/src/domain/studySession.ts"
click node_topicrepo "https://github.com/shadman2503/journey-tracker/blob/main/src/repositories/syllabusRepository.ts"
click node_stores "https://github.com/shadman2503/journey-tracker/blob/main/src/stores/useStudySessionStore.ts"
click node_repositories "https://github.com/shadman2503/journey-tracker/blob/main/src/repositories/dexie/index.ts"
click node_database "https://github.com/shadman2503/journey-tracker/blob/main/src/storage/dexie/db.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_app,node_dashboard toneBlue
class node_syllabus,node_studylog,node_studyform,node_mocktests,node_mistakes,node_review toneAmber
class node_analytics,node_journey,node_weakness,node_revision,node_milestones toneMint
class node_backup,node_progressdomain,node_studydomain,node_topicrepo,node_stores,node_repositories,node_database toneRose
class node_learner toneIndigo
```

## Components

### App and Navigation

- [App Router](https://github.com/shadman2503/journey-tracker/blob/main/src/App.tsx): `src/App.tsx`
- [Dashboard](https://github.com/shadman2503/journey-tracker/blob/main/src/pages/DashboardPage.tsx): `src/pages/DashboardPage.tsx`

### Preparation Workflows

- [Syllabus Explorer](https://github.com/shadman2503/journey-tracker/blob/main/src/pages/SyllabusPage.tsx): `src/pages/SyllabusPage.tsx`
- [Study Log](https://github.com/shadman2503/journey-tracker/blob/main/src/pages/StudyLogPage.tsx): `src/pages/StudyLogPage.tsx`
- [Session Logger](https://github.com/shadman2503/journey-tracker/blob/main/src/components/study/RecordSessionModal.tsx): `src/components/study/RecordSessionModal.tsx`
- [Mock Tests](https://github.com/shadman2503/journey-tracker/blob/main/src/pages/MockTestsPage.tsx): `src/pages/MockTestsPage.tsx`
- [Mistake Notebook](https://github.com/shadman2503/journey-tracker/blob/main/src/pages/MistakesPage.tsx): `src/pages/MistakesPage.tsx`
- [Mistake Review](https://github.com/shadman2503/journey-tracker/blob/main/src/components/mistake/MistakeReviewModal.tsx): `src/components/mistake/MistakeReviewModal.tsx`

### Insights and Journey

- [Analytics](https://github.com/shadman2503/journey-tracker/blob/main/src/pages/AnalyticsPage.tsx): `src/pages/AnalyticsPage.tsx`
- [Journey Timeline](https://github.com/shadman2503/journey-tracker/blob/main/src/pages/JourneyPage.tsx): `src/pages/JourneyPage.tsx`
- [Weak Area Diagnostics](https://github.com/shadman2503/journey-tracker/blob/main/src/domain/weakArea.ts): `src/domain/weakArea.ts`
- [Revision Recommendations](https://github.com/shadman2503/journey-tracker/blob/main/src/domain/revisionRecommendations.ts): `src/domain/revisionRecommendations.ts`
- [Milestones](https://github.com/shadman2503/journey-tracker/blob/main/src/domain/milestones.ts): `src/domain/milestones.ts`

### Domain and Local Data

- [Backup and Restore](https://github.com/shadman2503/journey-tracker/blob/main/src/services/backupService.ts): `src/services/backupService.ts`
- [Progress Logic](https://github.com/shadman2503/journey-tracker/blob/main/src/domain/progress.ts): `src/domain/progress.ts`
- [Study Metrics](https://github.com/shadman2503/journey-tracker/blob/main/src/domain/studySession.ts): `src/domain/studySession.ts`
- [Syllabus Repository](https://github.com/shadman2503/journey-tracker/blob/main/src/repositories/syllabusRepository.ts): `src/repositories/syllabusRepository.ts`
- [Zustand Stores](https://github.com/shadman2503/journey-tracker/blob/main/src/stores/useStudySessionStore.ts): `src/stores/useStudySessionStore.ts`
- [Dexie Repositories](https://github.com/shadman2503/journey-tracker/blob/main/src/repositories/dexie/index.ts): `src/repositories/dexie/index.ts`
- [IndexedDB Database](https://github.com/shadman2503/journey-tracker/blob/main/src/storage/dexie/db.ts): `src/storage/dexie/db.ts`

### Other components

- **Learner**

## Connections

- Learner → App Router: uses
- App Router → Dashboard: routes to (evidence: `src/App.tsx`)
- App Router → Syllabus Explorer: routes to (evidence: `src/App.tsx`)
- App Router → Study Log: routes to (evidence: `src/App.tsx`)
- App Router → Mock Tests: routes to (evidence: `src/App.tsx`)
- App Router → Mistake Notebook: routes to (evidence: `src/App.tsx`)
- App Router → Analytics: routes to (evidence: `src/App.tsx`)
- App Router → Journey Timeline: routes to (evidence: `src/App.tsx`)
- Dashboard → Zustand Stores: reads state (evidence: `src/pages/DashboardPage.tsx`)
- Dashboard → Weak Area Diagnostics: uses diagnostics (evidence: `src/pages/DashboardPage.tsx`)
- Dashboard → Revision Recommendations: uses recommendations (evidence: `src/pages/DashboardPage.tsx`)
- Syllabus Explorer → Syllabus Repository: queries topics (evidence: `src/pages/SyllabusPage.tsx`)
- Syllabus Explorer → Zustand Stores: reads progress (evidence: `src/pages/SyllabusPage.tsx`)
- Syllabus Explorer → Progress Logic: uses calculations (evidence: `src/pages/SyllabusPage.tsx`)
- Study Log → Session Logger: records sessions
- Session Logger → Zustand Stores: records session (evidence: `src/components/study/RecordSessionModal.tsx`)
- Zustand Stores → Dexie Repositories: persists records (evidence: `src/stores/useStudySessionStore.ts`)
- Zustand Stores → Study Metrics: calculates metrics (evidence: `src/stores/useStudySessionStore.ts`)
- Dexie Repositories → IndexedDB Database: reads and writes (evidence: `src/repositories/dexie/index.ts`)
- Mock Tests → Zustand Stores: uses test state (evidence: `src/pages/MockTestsPage.tsx`)
- Mistake Notebook → Zustand Stores: uses mistake state (evidence: `src/pages/MistakesPage.tsx`)
- Mistake Review → Zustand Stores: updates mistakes (evidence: `src/components/mistake/MistakeReviewModal.tsx`)
- Analytics → Zustand Stores: analyzes records
- Journey Timeline → Milestones: shows milestones
- Backup and Restore → IndexedDB Database: exports and restores (evidence: `src/services/backupService.ts`)
- Weak Area Diagnostics → Revision Recommendations: informs queue (evidence: `src/domain/revisionRecommendations.ts`)
- Journey Timeline → Milestones: presents journey
