# pangilproject/checky architecture

> Architecture diagram of the GitHub repository pangilproject/checky, 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/pangilproject/checky
- Repository: https://github.com/pangilproject/checky

## Overview

Checky is a personal task-and-habit tracking web app: users sign in, organize one-off Tasks and repeating Routines, check off daily activity, then review progress in calendars and records. Admins manage users, notices, dashboards, and reports. The graph follows documented routes and workflows and the sampled call/reference evidence; several page internals and API implementations were not sampled, so uncertain connections are omitted.

Main entry points: [`src/router.tsx`](https://github.com/pangilproject/checky/blob/main/src/router.tsx) (Route dispatch), [`src/pages/RecordPage/hooks/useRecordData.ts`](https://github.com/pangilproject/checky/blob/main/src/pages/RecordPage/hooks/useRecordData.ts) (Period review), [`src/firebase/firebase.ts`](https://github.com/pangilproject/checky/blob/main/src/firebase/firebase.ts) (Firebase client), [`src/pages/CategoryPage/CategoryPage.tsx`](https://github.com/pangilproject/checky/blob/main/src/pages/CategoryPage/CategoryPage.tsx) (Category management)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_entry["Entry and identity"]
  node_router["Route dispatch<br/>[router.tsx]"]
  node_landing["Service landing<br/>[LandingPage.tsx]"]
  node_login["Google sign-in<br/>[LoginSection.tsx]"]
  node_auth["Auth state<br/>[authStore.ts]"]
end

subgraph group_execution["Daily execution"]
  node_category["Category management<br/>[CategoryPage.tsx]"]
  node_task_work["Task planning"]
  node_task_handlers["Task mutations"]
  node_routine["Routine management<br/>[index.tsx]"]
  node_routine_check["Routine check-off"]
  node_home["Daily hub<br/>[index.tsx]"]
end

subgraph group_insight["Progress and review"]
  node_calendar["Calendar reports<br/>[index.tsx]"]
  node_achievement["Achievement report<br/>[index.tsx]"]
  node_routine_report["Routine report<br/>[index.tsx]"]
  node_record["Period review<br/>[useRecordData.ts]"]
  node_profile["Profile and theme<br/>[MyPage.tsx]"]
  node_notices["Notice viewing<br/>[index.tsx]"]
end

subgraph group_data["Domain data services"]
  node_firebase["Firebase client<br/>[firebase.ts]"]
  node_category_api["Category API"]
  node_task_api["Task and log APIs"]
  node_routine_api["Routine and history APIs"]
  node_monthly_stats["Monthly summaries"]
  node_notice_api["Notice API"]
end

subgraph group_admin["Administration"]
  node_admin_dashboard["Admin dashboard"]
  node_admin_stats["Admin metrics<br/>[useAdminStats.ts]"]
  node_admin_users["User administration<br/>[AdminUsersPage.tsx]"]
  node_admin_notices["Notice administration"]
  node_admin_reports["Admin reports"]
end

node_person(("User"))
node_firebase_auth["Firebase Auth"]
node_firestore[("Firestore")]

node_person -->|"opens app"| node_router
node_router -->|"routes to"| node_landing
node_router -->|"routes to"| node_login
node_router -->|"guards route"| node_home
node_router -->|"routes to"| node_category
node_router -->|"routes to"| node_routine
node_router -->|"routes to"| node_record
node_router -->|"routes to"| node_profile
node_router -->|"routes to"| node_admin_dashboard
node_router -->|"routes to"| node_admin_users
node_router -->|"routes to"| node_admin_notices
node_router -->|"routes to"| node_admin_reports
node_person -->|"organizes categories"| node_category
node_person -->|"plans tasks"| node_task_work
node_person -->|"sets routines"| node_routine
node_person -->|"checks activity"| node_home
node_person -->|"reviews periods"| node_record
node_login -.->|"signs in"| node_auth
node_auth -->|"uses client"| node_firebase
node_firebase -->|"initializes"| node_firebase_auth
node_firebase -->|"initializes"| node_firestore
node_category -.->|"loads categories"| node_category_api
node_task_handlers -->|"updates tasks"| node_task_api
node_task_handlers -->|"patches summaries"| node_monthly_stats
node_routine_check -->|"toggles routines"| node_routine_api
node_routine_check -->|"updates logs"| node_routine_api
node_record -->|"loads categories"| node_category_api
node_record -->|"reads tasks and logs"| node_task_api
node_record -->|"reads routines and logs"| node_routine_api
node_record -->|"builds month keys"| node_monthly_stats
node_admin_dashboard -->|"loads metrics"| node_admin_stats
node_admin_stats -->|"reads users"| node_firestore
node_admin_notices -->|"manages notices"| node_notice_api
node_notices -->|"loads notices"| node_notice_api

click node_router "https://github.com/pangilproject/checky/blob/main/src/router.tsx"
click node_landing "https://github.com/pangilproject/checky/blob/main/src/pages/LandingPage/LandingPage.tsx"
click node_login "https://github.com/pangilproject/checky/blob/main/src/pages/LoginPage/components/LoginSection.tsx"
click node_auth "https://github.com/pangilproject/checky/blob/main/src/shared/stores/authStore.ts"
click node_firebase "https://github.com/pangilproject/checky/blob/main/src/firebase/firebase.ts"
click node_category "https://github.com/pangilproject/checky/blob/main/src/pages/CategoryPage/CategoryPage.tsx"
click node_task_work "https://github.com/pangilproject/checky/blob/main/src/pages/HomePage/components/TaskReport/sections/TaskReportSection.tsx"
click node_task_handlers "https://github.com/pangilproject/checky/blob/main/src/pages/HomePage/components/TaskReport/hooks/useTaskModalHandlers.ts"
click node_routine "https://github.com/pangilproject/checky/blob/main/src/pages/RoutinePage/components/RoutineList/index.tsx"
click node_routine_check "https://github.com/pangilproject/checky/blob/main/src/pages/HomePage/components/RoutineReport/hooks/useRoutineToggle.ts"
click node_home "https://github.com/pangilproject/checky/blob/main/src/pages/HomePage/index.tsx"
click node_category_api "https://github.com/pangilproject/checky/tree/main/src/shared/api/category"
click node_task_api "https://github.com/pangilproject/checky/tree/main/src/shared/api/task"
click node_routine_api "https://github.com/pangilproject/checky/tree/main/src/shared/api/routine"
click node_monthly_stats "https://github.com/pangilproject/checky/tree/main/src/shared/api/monthlyStats"
click node_calendar "https://github.com/pangilproject/checky/blob/main/src/pages/HomePage/components/MonthlyReport/index.tsx"
click node_achievement "https://github.com/pangilproject/checky/blob/main/src/pages/HomePage/components/AchievementReport/index.tsx"
click node_routine_report "https://github.com/pangilproject/checky/blob/main/src/pages/HomePage/components/RoutineReport/index.tsx"
click node_record "https://github.com/pangilproject/checky/blob/main/src/pages/RecordPage/hooks/useRecordData.ts"
click node_profile "https://github.com/pangilproject/checky/blob/main/src/pages/MyPage/MyPage.tsx"
click node_admin_dashboard "https://github.com/pangilproject/checky/blob/main/src/admin/pages/dashboard/AdminDashboardPage.tsx"
click node_admin_stats "https://github.com/pangilproject/checky/blob/main/src/admin/pages/dashboard/hooks/useAdminStats.ts"
click node_admin_users "https://github.com/pangilproject/checky/blob/main/src/admin/pages/users/AdminUsersPage.tsx"
click node_admin_notices "https://github.com/pangilproject/checky/blob/main/src/admin/pages/notices/AdminNoticesPage.tsx"
click node_notices "https://github.com/pangilproject/checky/blob/main/src/shared/ui/notices/index.tsx"
click node_notice_api "https://github.com/pangilproject/checky/tree/main/src/shared/api/notice"
click node_admin_reports "https://github.com/pangilproject/checky/blob/main/src/admin/pages/reports/AdminReportsPage.tsx"

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_landing,node_login,node_auth,node_person toneBlue
class node_category,node_task_work,node_task_handlers,node_routine,node_routine_check,node_home,node_firestore toneAmber
class node_calendar,node_achievement,node_routine_report,node_record,node_profile,node_notices toneMint
class node_firebase,node_category_api,node_task_api,node_routine_api,node_monthly_stats,node_notice_api toneRose
class node_admin_dashboard,node_admin_stats,node_admin_users,node_admin_notices,node_admin_reports,node_firebase_auth toneIndigo
```

## Components

### Entry and identity

- [Route dispatch](https://github.com/pangilproject/checky/blob/main/src/router.tsx): `src/router.tsx`
- [Service landing](https://github.com/pangilproject/checky/blob/main/src/pages/LandingPage/LandingPage.tsx): `src/pages/LandingPage/LandingPage.tsx`
- [Google sign-in](https://github.com/pangilproject/checky/blob/main/src/pages/LoginPage/components/LoginSection.tsx): `src/pages/LoginPage/components/LoginSection.tsx`
- [Auth state](https://github.com/pangilproject/checky/blob/main/src/shared/stores/authStore.ts): `src/shared/stores/authStore.ts`

### Daily execution

- [Category management](https://github.com/pangilproject/checky/blob/main/src/pages/CategoryPage/CategoryPage.tsx): `src/pages/CategoryPage/CategoryPage.tsx`
- [Task planning](https://github.com/pangilproject/checky/blob/main/src/pages/HomePage/components/TaskReport/sections/TaskReportSection.tsx): `src/pages/HomePage/components/TaskReport/sections/TaskReportSection.tsx`
- [Task mutations](https://github.com/pangilproject/checky/blob/main/src/pages/HomePage/components/TaskReport/hooks/useTaskModalHandlers.ts): `src/pages/HomePage/components/TaskReport/hooks/useTaskModalHandlers.ts`
- [Routine management](https://github.com/pangilproject/checky/blob/main/src/pages/RoutinePage/components/RoutineList/index.tsx): `src/pages/RoutinePage/components/RoutineList/index.tsx`
- [Routine check-off](https://github.com/pangilproject/checky/blob/main/src/pages/HomePage/components/RoutineReport/hooks/useRoutineToggle.ts): `src/pages/HomePage/components/RoutineReport/hooks/useRoutineToggle.ts`
- [Daily hub](https://github.com/pangilproject/checky/blob/main/src/pages/HomePage/index.tsx): `src/pages/HomePage/index.tsx`

### Progress and review

- [Calendar reports](https://github.com/pangilproject/checky/blob/main/src/pages/HomePage/components/MonthlyReport/index.tsx): `src/pages/HomePage/components/MonthlyReport/index.tsx`
- [Achievement report](https://github.com/pangilproject/checky/blob/main/src/pages/HomePage/components/AchievementReport/index.tsx): `src/pages/HomePage/components/AchievementReport/index.tsx`
- [Routine report](https://github.com/pangilproject/checky/blob/main/src/pages/HomePage/components/RoutineReport/index.tsx): `src/pages/HomePage/components/RoutineReport/index.tsx`
- [Period review](https://github.com/pangilproject/checky/blob/main/src/pages/RecordPage/hooks/useRecordData.ts): `src/pages/RecordPage/hooks/useRecordData.ts`
- [Profile and theme](https://github.com/pangilproject/checky/blob/main/src/pages/MyPage/MyPage.tsx): `src/pages/MyPage/MyPage.tsx`
- [Notice viewing](https://github.com/pangilproject/checky/blob/main/src/shared/ui/notices/index.tsx): `src/shared/ui/notices/index.tsx`

### Domain data services

- [Firebase client](https://github.com/pangilproject/checky/blob/main/src/firebase/firebase.ts): `src/firebase/firebase.ts`
- [Category API](https://github.com/pangilproject/checky/tree/main/src/shared/api/category): `src/shared/api/category`
- [Task and log APIs](https://github.com/pangilproject/checky/tree/main/src/shared/api/task): `src/shared/api/task`
- [Routine and history APIs](https://github.com/pangilproject/checky/tree/main/src/shared/api/routine): `src/shared/api/routine`
- [Monthly summaries](https://github.com/pangilproject/checky/tree/main/src/shared/api/monthlyStats): `src/shared/api/monthlyStats`
- [Notice API](https://github.com/pangilproject/checky/tree/main/src/shared/api/notice): `src/shared/api/notice`

### Administration

- [Admin dashboard](https://github.com/pangilproject/checky/blob/main/src/admin/pages/dashboard/AdminDashboardPage.tsx): `src/admin/pages/dashboard/AdminDashboardPage.tsx`
- [Admin metrics](https://github.com/pangilproject/checky/blob/main/src/admin/pages/dashboard/hooks/useAdminStats.ts): `src/admin/pages/dashboard/hooks/useAdminStats.ts`
- [User administration](https://github.com/pangilproject/checky/blob/main/src/admin/pages/users/AdminUsersPage.tsx): `src/admin/pages/users/AdminUsersPage.tsx`
- [Notice administration](https://github.com/pangilproject/checky/blob/main/src/admin/pages/notices/AdminNoticesPage.tsx): `src/admin/pages/notices/AdminNoticesPage.tsx`
- [Admin reports](https://github.com/pangilproject/checky/blob/main/src/admin/pages/reports/AdminReportsPage.tsx): `src/admin/pages/reports/AdminReportsPage.tsx`

### Other components

- **User**
- **Firebase Auth**
- **Firestore**

## Connections

- User → Route dispatch: opens app (evidence: `src/router.tsx`)
- Route dispatch → Service landing: routes to (evidence: `src/router.tsx`)
- Route dispatch → Google sign-in: routes to (evidence: `src/router.tsx`)
- Route dispatch → Daily hub: guards route (evidence: `src/router.tsx`)
- Route dispatch → Category management: routes to (evidence: `src/router.tsx`)
- Route dispatch → Routine management: routes to (evidence: `src/router.tsx`)
- Route dispatch → Period review: routes to (evidence: `src/router.tsx`)
- Route dispatch → Profile and theme: routes to (evidence: `src/router.tsx`)
- Route dispatch → Admin dashboard: routes to (evidence: `src/router.tsx`)
- Route dispatch → User administration: routes to (evidence: `src/router.tsx`)
- Route dispatch → Notice administration: routes to (evidence: `src/router.tsx`)
- Route dispatch → Admin reports: routes to (evidence: `src/router.tsx`)
- User → Category management: organizes categories (evidence: `README.md`)
- User → Task planning: plans tasks (evidence: `README.md`)
- User → Routine management: sets routines (evidence: `README.md`)
- User → Daily hub: checks activity (evidence: `README.md`)
- User → Period review: reviews periods (evidence: `README.md`)
- Google sign-in → Auth state: signs in
- Auth state → Firebase client: uses client (evidence: `src/shared/stores/authStore.ts`)
- Firebase client → Firebase Auth: initializes (evidence: `src/firebase/firebase.ts`)
- Firebase client → Firestore: initializes (evidence: `src/firebase/firebase.ts`)
- Category management → Category API: loads categories
- Task mutations → Task and log APIs: updates tasks (evidence: `src/pages/HomePage/components/TaskReport/hooks/useTaskModalHandlers.ts`)
- Task mutations → Monthly summaries: patches summaries (evidence: `src/pages/HomePage/components/TaskReport/hooks/useTaskModalHandlers.ts`)
- Routine check-off → Routine and history APIs: toggles routines (evidence: `src/pages/HomePage/components/RoutineReport/hooks/useRoutineToggle.ts`)
- Routine check-off → Routine and history APIs: updates logs (evidence: `src/pages/HomePage/components/RoutineReport/hooks/useRoutineToggle.ts`)
- Period review → Category API: loads categories (evidence: `src/pages/RecordPage/hooks/useRecordData.ts`)
- Period review → Task and log APIs: reads tasks and logs (evidence: `src/pages/RecordPage/hooks/useRecordData.ts`)
- Period review → Routine and history APIs: reads routines and logs (evidence: `src/pages/RecordPage/hooks/useRecordData.ts`)
- Period review → Monthly summaries: builds month keys (evidence: `src/pages/RecordPage/hooks/useRecordData.ts`)
- Admin dashboard → Admin metrics: loads metrics (evidence: `src/admin/pages/dashboard/AdminDashboardPage.tsx`)
- Admin metrics → Firestore: reads users (evidence: `src/admin/pages/dashboard/hooks/useAdminStats.ts`)
- Notice administration → Notice API: manages notices
- Notice viewing → Notice API: loads notices
