# adharshko-369z/applytrack architecture

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

- Interactive diagram: https://gitdiagram.com/adharshko-369z/applytrack
- Repository: https://github.com/adharshko-369z/applytrack

## Overview

ApplyTrack is a React job-application tracker backed by Firebase. Users sign in, enter protected dashboard or application views, and manage their applications; the dashboard summarizes application status and links into filtered lists. Application management covers fetching, creation, editing, deletion, filtering, searching, and URL-synchronized detail dialogs. The graph also preserves authentication, form validation, and shared accessibility/UI helpers. Relationships are limited to calls and data flows shown in excerpts or the source index; broader capabilities such as offline recovery are documented in the README.

Main entry points: [`src/pages/Applications.jsx`](https://github.com/adharshko-369z/applytrack/blob/main/src/pages/Applications.jsx) (Applications page), [`src/App.jsx`](https://github.com/adharshko-369z/applytrack/blob/main/src/App.jsx) (Route application), [`src/pages/Dashboard.jsx`](https://github.com/adharshko-369z/applytrack/blob/main/src/pages/Dashboard.jsx) (Dashboard), [`src/config/firebase.js`](https://github.com/adharshko-369z/applytrack/blob/main/src/config/firebase.js) (Firebase setup)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_routing["App routing"]
  node_app["Route application<br/>[App.jsx]"]
  node_authgate["Protected routes<br/>[AuthLayout.jsx]"]
end

subgraph group_identity["Identity"]
  node_authstate["Auth state<br/>[AuthContext.jsx]"]
  node_authform["Auth operations<br/>[useAuthForm.js]"]
  node_login["Login page<br/>[Login.jsx]"]
  node_signup["Signup page<br/>[Signup.jsx]"]
  node_firebase["Firebase setup<br/>[firebase.js]"]
end

subgraph group_tracking["Application tracking"]
  node_dashboard["Dashboard<br/>[Dashboard.jsx]"]
  node_applications["Applications page<br/>[Applications.jsx]"]
  node_datahook["Application data"]
  node_appform["Application form"]
  node_appread["Application details"]
  node_applist["Application list"]
  node_filter["Status filter<br/>[Filter.jsx]"]
  node_status["Status definitions"]
  node_stats["Dashboard metrics<br/>[dashboardStats.js]"]
  node_highlight["Search highlighting<br/>[highlightMatch.jsx]"]
end

subgraph group_presentation["Shared presentation"]
  node_badge["Status badge<br/>[Badge.jsx]"]
  node_profile["User profile<br/>[Profile.jsx]"]
  node_header["Header<br/>[Header.jsx]"]
  node_clickoutside["Outside-click hook<br/>[useClickOutside.js]"]
  node_modala11y["Dialog keyboard support<br/>[useModalA11y.js]"]
  node_appskeleton["Applications loading UI"]
  node_dashskeleton["Dashboard loading UI"]
  node_layout["App layout<br/>[AppLayout.jsx]"]
end

node_user(("Job seeker"))
node_firebaseauth["Firebase Auth"]
node_firestore[("Cloud Firestore")]

node_user -->|"uses"| node_app
node_app -->|"provides auth"| node_authstate
node_app -->|"routes through"| node_authgate
node_app -->|"routes to"| node_dashboard
node_app -->|"routes to"| node_applications
node_authgate -->|"checks user"| node_authstate
node_authstate -->|"observes auth"| node_firebase
node_firebase -->|"initializes"| node_firebaseauth
node_firebase -->|"initializes"| node_firestore
node_login -->|"uses"| node_authform
node_signup -->|"uses"| node_authform
node_authform -->|"uses credentials"| node_firebase
node_dashboard -->|"loads applications"| node_datahook
node_applications -->|"manages applications"| node_datahook
node_datahook -->|"uses database"| node_firebase
node_datahook -->|"reads and writes"| node_firestore
node_applications -->|"opens form"| node_appform
node_applications -->|"opens details"| node_appread
node_applications -->|"renders list"| node_applist
node_applications -->|"renders filter"| node_filter
node_applications -->|"passes matcher"| node_highlight
node_applications -->|"shows loading"| node_appskeleton
node_dashboard -->|"shows loading"| node_dashskeleton
node_dashboard -->|"calculates rates"| node_stats
node_dashboard -->|"uses statuses"| node_status
node_filter -->|"uses statuses"| node_status
node_appform -->|"uses statuses"| node_status
node_appform -->|"uses dialog support"| node_modala11y
node_applist -->|"renders badges"| node_badge
node_appread -->|"renders badge"| node_badge
node_appread -->|"uses dialog support"| node_modala11y
node_header -->|"renders profile"| node_profile
node_profile -->|"uses auth state"| node_authstate
node_profile -->|"uses auth actions"| node_authform
node_profile -->|"uses hook"| node_clickoutside
node_filter -->|"uses hook"| node_clickoutside
node_layout -->|"renders header"| node_header

click node_app "https://github.com/adharshko-369z/applytrack/blob/main/src/App.jsx"
click node_authgate "https://github.com/adharshko-369z/applytrack/blob/main/src/components/AuthLayout.jsx"
click node_dashboard "https://github.com/adharshko-369z/applytrack/blob/main/src/pages/Dashboard.jsx"
click node_applications "https://github.com/adharshko-369z/applytrack/blob/main/src/pages/Applications.jsx"
click node_authstate "https://github.com/adharshko-369z/applytrack/blob/main/src/context/AuthContext.jsx"
click node_authform "https://github.com/adharshko-369z/applytrack/blob/main/src/hooks/useAuthForm.js"
click node_login "https://github.com/adharshko-369z/applytrack/blob/main/src/pages/Login.jsx"
click node_signup "https://github.com/adharshko-369z/applytrack/blob/main/src/pages/Signup.jsx"
click node_firebase "https://github.com/adharshko-369z/applytrack/blob/main/src/config/firebase.js"
click node_datahook "https://github.com/adharshko-369z/applytrack/blob/main/src/hooks/useApplications.jsx"
click node_appform "https://github.com/adharshko-369z/applytrack/blob/main/src/components/application-components/ApplicationFormModal.jsx"
click node_appread "https://github.com/adharshko-369z/applytrack/blob/main/src/components/application-components/ApplicationReadModal.jsx"
click node_applist "https://github.com/adharshko-369z/applytrack/blob/main/src/components/application-components/ApplicationList.jsx"
click node_filter "https://github.com/adharshko-369z/applytrack/blob/main/src/components/application-components/Filter.jsx"
click node_status "https://github.com/adharshko-369z/applytrack/blob/main/src/constants/applicationStatus.js"
click node_stats "https://github.com/adharshko-369z/applytrack/blob/main/src/utils/dashboardStats.js"
click node_highlight "https://github.com/adharshko-369z/applytrack/blob/main/src/utils/highlightMatch.jsx"
click node_badge "https://github.com/adharshko-369z/applytrack/blob/main/src/components/Badge.jsx"
click node_profile "https://github.com/adharshko-369z/applytrack/blob/main/src/components/Profile.jsx"
click node_header "https://github.com/adharshko-369z/applytrack/blob/main/src/components/Header.jsx"
click node_clickoutside "https://github.com/adharshko-369z/applytrack/blob/main/src/hooks/useClickOutside.js"
click node_modala11y "https://github.com/adharshko-369z/applytrack/blob/main/src/hooks/useModalA11y.js"
click node_appskeleton "https://github.com/adharshko-369z/applytrack/blob/main/src/components/loading-components/ApplicationSkeleton.jsx"
click node_dashskeleton "https://github.com/adharshko-369z/applytrack/blob/main/src/components/loading-components/DashboardSkeleton.jsx"
click node_layout "https://github.com/adharshko-369z/applytrack/blob/main/src/components/AppLayout.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_app,node_authgate toneBlue
class node_authstate,node_authform,node_login,node_signup,node_firebase,node_firestore toneAmber
class node_dashboard,node_applications,node_datahook,node_appform,node_appread,node_applist,node_filter,node_status,node_stats,node_highlight toneMint
class node_badge,node_profile,node_header,node_clickoutside,node_modala11y,node_appskeleton,node_dashskeleton,node_layout toneRose
class node_user,node_firebaseauth toneIndigo
```

## Components

### App routing

- [Route application](https://github.com/adharshko-369z/applytrack/blob/main/src/App.jsx): `src/App.jsx`
- [Protected routes](https://github.com/adharshko-369z/applytrack/blob/main/src/components/AuthLayout.jsx): `src/components/AuthLayout.jsx`

### Identity

- [Auth state](https://github.com/adharshko-369z/applytrack/blob/main/src/context/AuthContext.jsx): `src/context/AuthContext.jsx`
- [Auth operations](https://github.com/adharshko-369z/applytrack/blob/main/src/hooks/useAuthForm.js): `src/hooks/useAuthForm.js`
- [Login page](https://github.com/adharshko-369z/applytrack/blob/main/src/pages/Login.jsx): `src/pages/Login.jsx`
- [Signup page](https://github.com/adharshko-369z/applytrack/blob/main/src/pages/Signup.jsx): `src/pages/Signup.jsx`
- [Firebase setup](https://github.com/adharshko-369z/applytrack/blob/main/src/config/firebase.js): `src/config/firebase.js`

### Application tracking

- [Dashboard](https://github.com/adharshko-369z/applytrack/blob/main/src/pages/Dashboard.jsx): `src/pages/Dashboard.jsx`
- [Applications page](https://github.com/adharshko-369z/applytrack/blob/main/src/pages/Applications.jsx): `src/pages/Applications.jsx`
- [Application data](https://github.com/adharshko-369z/applytrack/blob/main/src/hooks/useApplications.jsx): `src/hooks/useApplications.jsx`
- [Application form](https://github.com/adharshko-369z/applytrack/blob/main/src/components/application-components/ApplicationFormModal.jsx): `src/components/application-components/ApplicationFormModal.jsx`
- [Application details](https://github.com/adharshko-369z/applytrack/blob/main/src/components/application-components/ApplicationReadModal.jsx): `src/components/application-components/ApplicationReadModal.jsx`
- [Application list](https://github.com/adharshko-369z/applytrack/blob/main/src/components/application-components/ApplicationList.jsx): `src/components/application-components/ApplicationList.jsx`
- [Status filter](https://github.com/adharshko-369z/applytrack/blob/main/src/components/application-components/Filter.jsx): `src/components/application-components/Filter.jsx`
- [Status definitions](https://github.com/adharshko-369z/applytrack/blob/main/src/constants/applicationStatus.js): `src/constants/applicationStatus.js`
- [Dashboard metrics](https://github.com/adharshko-369z/applytrack/blob/main/src/utils/dashboardStats.js): `src/utils/dashboardStats.js`
- [Search highlighting](https://github.com/adharshko-369z/applytrack/blob/main/src/utils/highlightMatch.jsx): `src/utils/highlightMatch.jsx`

### Shared presentation

- [Status badge](https://github.com/adharshko-369z/applytrack/blob/main/src/components/Badge.jsx): `src/components/Badge.jsx`
- [User profile](https://github.com/adharshko-369z/applytrack/blob/main/src/components/Profile.jsx): `src/components/Profile.jsx`
- [Header](https://github.com/adharshko-369z/applytrack/blob/main/src/components/Header.jsx): `src/components/Header.jsx`
- [Outside-click hook](https://github.com/adharshko-369z/applytrack/blob/main/src/hooks/useClickOutside.js): `src/hooks/useClickOutside.js`
- [Dialog keyboard support](https://github.com/adharshko-369z/applytrack/blob/main/src/hooks/useModalA11y.js): `src/hooks/useModalA11y.js`
- [Applications loading UI](https://github.com/adharshko-369z/applytrack/blob/main/src/components/loading-components/ApplicationSkeleton.jsx): `src/components/loading-components/ApplicationSkeleton.jsx`
- [Dashboard loading UI](https://github.com/adharshko-369z/applytrack/blob/main/src/components/loading-components/DashboardSkeleton.jsx): `src/components/loading-components/DashboardSkeleton.jsx`
- [App layout](https://github.com/adharshko-369z/applytrack/blob/main/src/components/AppLayout.jsx): `src/components/AppLayout.jsx`

### Other components

- **Job seeker**
- **Firebase Auth**
- **Cloud Firestore**

## Connections

- Job seeker → Route application: uses (evidence: `README.md`)
- Route application → Auth state: provides auth (evidence: `src/App.jsx`)
- Route application → Protected routes: routes through (evidence: `src/App.jsx`)
- Route application → Dashboard: routes to (evidence: `src/App.jsx`)
- Route application → Applications page: routes to (evidence: `src/App.jsx`)
- Protected routes → Auth state: checks user (evidence: `src/components/AuthLayout.jsx`)
- Auth state → Firebase setup: observes auth (evidence: `src/context/AuthContext.jsx`)
- Firebase setup → Firebase Auth: initializes (evidence: `src/config/firebase.js`)
- Firebase setup → Cloud Firestore: initializes (evidence: `src/config/firebase.js`)
- Login page → Auth operations: uses (evidence: `src/pages/Login.jsx`)
- Signup page → Auth operations: uses (evidence: `src/pages/Signup.jsx`)
- Auth operations → Firebase setup: uses credentials (evidence: `src/hooks/useAuthForm.js`)
- Dashboard → Application data: loads applications (evidence: `src/pages/Dashboard.jsx`)
- Applications page → Application data: manages applications (evidence: `src/pages/Applications.jsx`)
- Application data → Firebase setup: uses database (evidence: `src/hooks/useApplications.jsx`)
- Application data → Cloud Firestore: reads and writes (evidence: `src/hooks/useApplications.jsx`)
- Applications page → Application form: opens form (evidence: `src/pages/Applications.jsx`)
- Applications page → Application details: opens details (evidence: `src/pages/Applications.jsx`)
- Applications page → Application list: renders list (evidence: `src/pages/Applications.jsx`)
- Applications page → Status filter: renders filter (evidence: `src/pages/Applications.jsx`)
- Applications page → Search highlighting: passes matcher (evidence: `src/pages/Applications.jsx`)
- Applications page → Applications loading UI: shows loading (evidence: `src/pages/Applications.jsx`)
- Dashboard → Dashboard loading UI: shows loading (evidence: `src/pages/Dashboard.jsx`)
- Dashboard → Dashboard metrics: calculates rates (evidence: `src/pages/Dashboard.jsx`)
- Dashboard → Status definitions: uses statuses (evidence: `src/pages/Dashboard.jsx`)
- Status filter → Status definitions: uses statuses (evidence: `src/components/application-components/Filter.jsx`)
- Application form → Status definitions: uses statuses (evidence: `src/components/application-components/ApplicationFormModal.jsx`)
- Application form → Dialog keyboard support: uses dialog support (evidence: `src/components/application-components/ApplicationFormModal.jsx`)
- Application list → Status badge: renders badges (evidence: `src/components/application-components/ApplicationList.jsx`)
- Application details → Status badge: renders badge (evidence: `src/components/application-components/ApplicationReadModal.jsx`)
- Application details → Dialog keyboard support: uses dialog support (evidence: `src/components/application-components/ApplicationReadModal.jsx`)
- Header → User profile: renders profile (evidence: `src/components/Header.jsx`)
- User profile → Auth state: uses auth state (evidence: `src/components/Profile.jsx`)
- User profile → Auth operations: uses auth actions (evidence: `src/components/Profile.jsx`)
- User profile → Outside-click hook: uses hook (evidence: `src/components/Profile.jsx`)
- Status filter → Outside-click hook: uses hook (evidence: `src/components/application-components/Filter.jsx`)
- App layout → Header: renders header (evidence: `src/components/AppLayout.jsx`)
