# chaaniee/final-react-project-cce106l architecture

> Architecture diagram of the GitHub repository chaaniee/final-react-project-cce106l, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-12-01). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/chaaniee/final-react-project-cce106l
- Repository: https://github.com/chaaniee/final-react-project-cce106l

## Overview

JobAccess is a role-based local job marketplace connecting applicants, employers, and PESO administrators. The main workflow is vacancy creation and review, job discovery, application submission, and administrator-managed application progression; applicants can track or withdraw applications. The graph also preserves authentication, profile/document and verification, matching, and notifications as product subsystems. Evidence is limited to the supplied excerpts and SOURCE INDEX references; unsampled feature links are omitted rather than inferred.

Main entry points: [`JobAccess/src/lib/firebase.js`](https://github.com/chaaniee/final-react-project-cce106l/blob/main/JobAccess/src/lib/firebase.js) (Firebase client), [`JobAccess/app/(applicant)/apply/[jobId].jsx`](https://github.com/chaaniee/final-react-project-cce106l/blob/main/JobAccess/app/(applicant)/apply/%5BjobId%5D.jsx) (Apply and track), [`JobAccess/src/features/applications/applicationService.js`](https://github.com/chaaniee/final-react-project-cce106l/blob/main/JobAccess/src/features/applications/applicationService.js) (Application service), [`JobAccess/app/(admin)/pipeline.jsx`](https://github.com/chaaniee/final-react-project-cce106l/blob/main/JobAccess/app/(admin)/pipeline.jsx) (Administrator pipeline)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_identity["Identity and accounts"]
  node_auth_ui["Sign-in screens<br/>[login.jsx]"]
  node_auth_service["Authentication service<br/>[authService.js]"]
  node_auth_state["Session and profile state<br/>[AuthProvider.jsx]"]
  node_roles["Role definitions<br/>[roles.js]"]
  node_account["Account services<br/>[accountService.js]"]
end

subgraph group_marketplace["Vacancies and discovery"]
  node_posting_ui["Job search and details<br/>[search.jsx]"]
  node_posting_hooks["Posting queries<br/>[usePostings.js]"]
  node_job_detail["Job detail lookup<br/>[useJob.js]"]
  node_posting_service["Posting and review service<br/>[postingService.js]"]
  node_employer_postings["Employer posting screens<br/>[post-vacancy.jsx]"]
  node_job_card["Job card<br/>[JobCard.jsx]"]
end

subgraph group_hiring["Applications and review"]
  node_application_ui["Apply and track<br/>[&#91;jobId&#93;.jsx]"]
  node_application_hooks["Application subscriptions<br/>[useApplications.js]"]
  node_application_service["Application service"]
  node_status_machine["Status transitions<br/>[statusMachine.js]"]
  node_admin_pipeline["Administrator pipeline<br/>[pipeline.jsx]"]
  node_employer_applicants["Employer applicants<br/>[&#91;postingId&#93;.jsx]"]
  node_status_timeline["Status timeline<br/>[StatusTimeline.jsx]"]
end

subgraph group_support["Supporting features"]
  node_firebase["Firebase client<br/>[firebase.js]"]
  node_firestore[("Cloud Firestore<br/>[firebase.js]")]
  node_people_service["People management<br/>[peopleService.js]"]
  node_verification_service["Permit verification"]
  node_documents["Document services<br/>[documentService.js]"]
  node_matching["Job matching"]
  node_notification_service["Notifications"]
  node_notification_ui["Notification screens"]
end

node_applicant(("Applicant"))
node_employer(("Employer"))
node_admin(("PESO administrator"))

node_applicant -->|"signs in"| node_auth_ui
node_employer -->|"signs in"| node_auth_ui
node_auth_ui -->|"authenticates"| node_auth_service
node_auth_service -->|"uses auth and data"| node_firebase
node_auth_service -->|"checks role labels"| node_roles
node_auth_state -->|"observes session"| node_firebase
node_firebase -->|"provides client"| node_firestore
node_applicant -.->|"searches jobs"| node_posting_ui
node_posting_ui -->|"loads postings"| node_posting_hooks
node_posting_hooks -->|"subscribes"| node_posting_service
node_applicant -.->|"applies"| node_application_ui
node_application_ui -->|"loads selected job"| node_job_detail
node_application_ui -->|"submits application"| node_application_service
node_application_ui -->|"checks applications"| node_application_hooks
node_application_hooks -->|"subscribes"| node_application_service
node_application_service -->|"validates transitions"| node_status_machine
node_admin -.->|"reviews pipeline"| node_admin_pipeline
node_admin_pipeline -->|"loads applications"| node_application_hooks
node_admin_pipeline -->|"updates status"| node_application_service
node_admin_pipeline -->|"offers next stages"| node_status_machine
node_employer -.->|"manages vacancies"| node_employer_postings
node_employer -.->|"reviews applicants"| node_employer_applicants
node_employer_applicants -->|"loads applications"| node_application_hooks
node_applicant -.->|"views updates"| node_notification_ui
node_notification_service -->|"uses Firestore"| node_firebase
node_posting_service -->|"uses Firestore"| node_firebase
node_application_service -->|"uses Firestore"| node_firebase
node_people_service -->|"uses Firestore"| node_firebase
node_verification_service -->|"uses Firestore"| node_firebase
node_documents -->|"uses Firestore"| node_firebase
node_job_detail -->|"reads job"| node_firebase
node_posting_ui -->|"renders results"| node_job_card
node_application_ui -->|"renders progress"| node_status_timeline

click node_auth_ui "https://github.com/chaaniee/final-react-project-cce106l/blob/main/JobAccess/app/(auth)/login.jsx"
click node_auth_service "https://github.com/chaaniee/final-react-project-cce106l/blob/main/JobAccess/src/features/auth/authService.js"
click node_auth_state "https://github.com/chaaniee/final-react-project-cce106l/blob/main/JobAccess/src/features/auth/AuthProvider.jsx"
click node_roles "https://github.com/chaaniee/final-react-project-cce106l/blob/main/JobAccess/src/constants/roles.js"
click node_account "https://github.com/chaaniee/final-react-project-cce106l/blob/main/JobAccess/src/features/auth/accountService.js"
click node_firebase "https://github.com/chaaniee/final-react-project-cce106l/blob/main/JobAccess/src/lib/firebase.js"
click node_firestore "https://github.com/chaaniee/final-react-project-cce106l/blob/main/JobAccess/src/lib/firebase.js"
click node_posting_ui "https://github.com/chaaniee/final-react-project-cce106l/blob/main/JobAccess/app/(applicant)/search.jsx"
click node_posting_hooks "https://github.com/chaaniee/final-react-project-cce106l/blob/main/JobAccess/src/features/postings/usePostings.js"
click node_job_detail "https://github.com/chaaniee/final-react-project-cce106l/blob/main/JobAccess/src/features/postings/useJob.js"
click node_posting_service "https://github.com/chaaniee/final-react-project-cce106l/blob/main/JobAccess/src/features/postings/postingService.js"
click node_employer_postings "https://github.com/chaaniee/final-react-project-cce106l/blob/main/JobAccess/app/(employer)/post-vacancy.jsx"
click node_application_ui "https://github.com/chaaniee/final-react-project-cce106l/blob/main/JobAccess/app/(applicant)/apply/%5BjobId%5D.jsx"
click node_application_hooks "https://github.com/chaaniee/final-react-project-cce106l/blob/main/JobAccess/src/features/applications/useApplications.js"
click node_application_service "https://github.com/chaaniee/final-react-project-cce106l/blob/main/JobAccess/src/features/applications/applicationService.js"
click node_status_machine "https://github.com/chaaniee/final-react-project-cce106l/blob/main/JobAccess/src/features/applications/statusMachine.js"
click node_admin_pipeline "https://github.com/chaaniee/final-react-project-cce106l/blob/main/JobAccess/app/(admin)/pipeline.jsx"
click node_employer_applicants "https://github.com/chaaniee/final-react-project-cce106l/blob/main/JobAccess/app/(employer)/applicants/%5BpostingId%5D.jsx"
click node_people_service "https://github.com/chaaniee/final-react-project-cce106l/blob/main/JobAccess/src/features/admin/peopleService.js"
click node_verification_service "https://github.com/chaaniee/final-react-project-cce106l/blob/main/JobAccess/src/features/admin/verificationService.js"
click node_documents "https://github.com/chaaniee/final-react-project-cce106l/blob/main/JobAccess/src/features/documents/documentService.js"
click node_matching "https://github.com/chaaniee/final-react-project-cce106l/tree/main/JobAccess/src/features/matching"
click node_notification_service "https://github.com/chaaniee/final-react-project-cce106l/blob/main/JobAccess/src/features/notifications/notificationService.js"
click node_notification_ui "https://github.com/chaaniee/final-react-project-cce106l/blob/main/JobAccess/src/components/NotificationList.jsx"
click node_job_card "https://github.com/chaaniee/final-react-project-cce106l/blob/main/JobAccess/src/components/JobCard.jsx"
click node_status_timeline "https://github.com/chaaniee/final-react-project-cce106l/blob/main/JobAccess/src/components/StatusTimeline.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_auth_ui,node_auth_service,node_auth_state,node_roles,node_account toneBlue
class node_posting_ui,node_posting_hooks,node_job_detail,node_posting_service,node_employer_postings,node_job_card toneAmber
class node_application_ui,node_application_hooks,node_application_service,node_status_machine,node_admin_pipeline,node_employer_applicants,node_status_timeline toneMint
class node_firebase,node_firestore,node_people_service,node_verification_service,node_documents,node_matching,node_notification_service,node_notification_ui toneRose
class node_applicant,node_employer,node_admin toneIndigo
```

## Components

### Identity and accounts

- [Sign-in screens](https://github.com/chaaniee/final-react-project-cce106l/blob/main/JobAccess/app/(auth)/login.jsx): `JobAccess/app/(auth)/login.jsx`
- [Authentication service](https://github.com/chaaniee/final-react-project-cce106l/blob/main/JobAccess/src/features/auth/authService.js): `JobAccess/src/features/auth/authService.js`
- [Session and profile state](https://github.com/chaaniee/final-react-project-cce106l/blob/main/JobAccess/src/features/auth/AuthProvider.jsx): `JobAccess/src/features/auth/AuthProvider.jsx`
- [Role definitions](https://github.com/chaaniee/final-react-project-cce106l/blob/main/JobAccess/src/constants/roles.js): `JobAccess/src/constants/roles.js`
- [Account services](https://github.com/chaaniee/final-react-project-cce106l/blob/main/JobAccess/src/features/auth/accountService.js): `JobAccess/src/features/auth/accountService.js`

### Vacancies and discovery

- [Job search and details](https://github.com/chaaniee/final-react-project-cce106l/blob/main/JobAccess/app/(applicant)/search.jsx): `JobAccess/app/(applicant)/search.jsx`
- [Posting queries](https://github.com/chaaniee/final-react-project-cce106l/blob/main/JobAccess/src/features/postings/usePostings.js): `JobAccess/src/features/postings/usePostings.js`
- [Job detail lookup](https://github.com/chaaniee/final-react-project-cce106l/blob/main/JobAccess/src/features/postings/useJob.js): `JobAccess/src/features/postings/useJob.js`
- [Posting and review service](https://github.com/chaaniee/final-react-project-cce106l/blob/main/JobAccess/src/features/postings/postingService.js): `JobAccess/src/features/postings/postingService.js`
- [Employer posting screens](https://github.com/chaaniee/final-react-project-cce106l/blob/main/JobAccess/app/(employer)/post-vacancy.jsx): `JobAccess/app/(employer)/post-vacancy.jsx`
- [Job card](https://github.com/chaaniee/final-react-project-cce106l/blob/main/JobAccess/src/components/JobCard.jsx): `JobAccess/src/components/JobCard.jsx`

### Applications and review

- [Apply and track](https://github.com/chaaniee/final-react-project-cce106l/blob/main/JobAccess/app/(applicant)/apply/%5BjobId%5D.jsx): `JobAccess/app/(applicant)/apply/[jobId].jsx`
- [Application subscriptions](https://github.com/chaaniee/final-react-project-cce106l/blob/main/JobAccess/src/features/applications/useApplications.js): `JobAccess/src/features/applications/useApplications.js`
- [Application service](https://github.com/chaaniee/final-react-project-cce106l/blob/main/JobAccess/src/features/applications/applicationService.js): `JobAccess/src/features/applications/applicationService.js`
- [Status transitions](https://github.com/chaaniee/final-react-project-cce106l/blob/main/JobAccess/src/features/applications/statusMachine.js): `JobAccess/src/features/applications/statusMachine.js`
- [Administrator pipeline](https://github.com/chaaniee/final-react-project-cce106l/blob/main/JobAccess/app/(admin)/pipeline.jsx): `JobAccess/app/(admin)/pipeline.jsx`
- [Employer applicants](https://github.com/chaaniee/final-react-project-cce106l/blob/main/JobAccess/app/(employer)/applicants/%5BpostingId%5D.jsx): `JobAccess/app/(employer)/applicants/[postingId].jsx`
- [Status timeline](https://github.com/chaaniee/final-react-project-cce106l/blob/main/JobAccess/src/components/StatusTimeline.jsx): `JobAccess/src/components/StatusTimeline.jsx`

### Supporting features

- [Firebase client](https://github.com/chaaniee/final-react-project-cce106l/blob/main/JobAccess/src/lib/firebase.js): `JobAccess/src/lib/firebase.js`
- [Cloud Firestore](https://github.com/chaaniee/final-react-project-cce106l/blob/main/JobAccess/src/lib/firebase.js): `JobAccess/src/lib/firebase.js`
- [People management](https://github.com/chaaniee/final-react-project-cce106l/blob/main/JobAccess/src/features/admin/peopleService.js): `JobAccess/src/features/admin/peopleService.js`
- [Permit verification](https://github.com/chaaniee/final-react-project-cce106l/blob/main/JobAccess/src/features/admin/verificationService.js): `JobAccess/src/features/admin/verificationService.js`
- [Document services](https://github.com/chaaniee/final-react-project-cce106l/blob/main/JobAccess/src/features/documents/documentService.js): `JobAccess/src/features/documents/documentService.js`
- [Job matching](https://github.com/chaaniee/final-react-project-cce106l/tree/main/JobAccess/src/features/matching): `JobAccess/src/features/matching`
- [Notifications](https://github.com/chaaniee/final-react-project-cce106l/blob/main/JobAccess/src/features/notifications/notificationService.js): `JobAccess/src/features/notifications/notificationService.js`
- [Notification screens](https://github.com/chaaniee/final-react-project-cce106l/blob/main/JobAccess/src/components/NotificationList.jsx): `JobAccess/src/components/NotificationList.jsx`

### Other components

- **Applicant**
- **Employer**
- **PESO administrator**

## Connections

- Applicant → Sign-in screens: signs in (evidence: `JobAccess/app/(auth)/login.jsx`)
- Employer → Sign-in screens: signs in (evidence: `JobAccess/app/(auth)/login.jsx`)
- Sign-in screens → Authentication service: authenticates (evidence: `JobAccess/app/(auth)/login.jsx`)
- Authentication service → Firebase client: uses auth and data (evidence: `JobAccess/src/features/auth/authService.js`)
- Authentication service → Role definitions: checks role labels (evidence: `JobAccess/src/features/auth/authService.js`)
- Session and profile state → Firebase client: observes session (evidence: `JobAccess/src/features/auth/AuthProvider.jsx`)
- Firebase client → Cloud Firestore: provides client (evidence: `JobAccess/src/lib/firebase.js`)
- Applicant → Job search and details: searches jobs
- Job search and details → Posting queries: loads postings (evidence: `JobAccess/app/(applicant)/search.jsx`)
- Posting queries → Posting and review service: subscribes (evidence: `JobAccess/src/features/postings/usePostings.js`)
- Applicant → Apply and track: applies
- Apply and track → Job detail lookup: loads selected job (evidence: `JobAccess/app/(applicant)/apply/[jobId].jsx`)
- Apply and track → Application service: submits application (evidence: `JobAccess/app/(applicant)/apply/[jobId].jsx`)
- Apply and track → Application subscriptions: checks applications (evidence: `JobAccess/app/(applicant)/apply/[jobId].jsx`)
- Application subscriptions → Application service: subscribes (evidence: `JobAccess/src/features/applications/useApplications.js`)
- Application service → Status transitions: validates transitions (evidence: `JobAccess/src/features/applications/applicationService.js`)
- PESO administrator → Administrator pipeline: reviews pipeline
- Administrator pipeline → Application subscriptions: loads applications (evidence: `JobAccess/app/(admin)/pipeline.jsx`)
- Administrator pipeline → Application service: updates status (evidence: `JobAccess/app/(admin)/pipeline.jsx`)
- Administrator pipeline → Status transitions: offers next stages (evidence: `JobAccess/app/(admin)/pipeline.jsx`)
- Employer → Employer posting screens: manages vacancies
- Employer → Employer applicants: reviews applicants
- Employer applicants → Application subscriptions: loads applications (evidence: `JobAccess/app/(employer)/applicants/[postingId].jsx`)
- Applicant → Notification screens: views updates
- Notifications → Firebase client: uses Firestore (evidence: `JobAccess/src/features/notifications/notificationService.js`)
- Posting and review service → Firebase client: uses Firestore (evidence: `JobAccess/src/features/postings/postingService.js`)
- Application service → Firebase client: uses Firestore (evidence: `JobAccess/src/features/applications/applicationService.js`)
- People management → Firebase client: uses Firestore (evidence: `JobAccess/src/features/admin/peopleService.js`)
- Permit verification → Firebase client: uses Firestore (evidence: `JobAccess/src/features/admin/verificationService.js`)
- Document services → Firebase client: uses Firestore (evidence: `JobAccess/src/features/documents/documentService.js`)
- Job detail lookup → Firebase client: reads job (evidence: `JobAccess/src/features/postings/useJob.js`)
- Job search and details → Job card: renders results (evidence: `JobAccess/app/(applicant)/search.jsx`)
- Apply and track → Status timeline: renders progress
