# lalalaurentiu/inviitor architecture

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

- Interactive diagram: https://gitdiagram.com/lalalaurentiu/inviitor
- Repository: https://github.com/lalalaurentiu/inviitor

## Overview

Joblio is a Romanian job-search web frontend. Users browse featured listings or search by keyword, company, and county; the app fetches and normalizes job data from the Django mobile API, presents results and job details, and supplies salary and work-mode information where available. Routing and page selection form the central runtime layer, with SEO metadata and legal pages as supporting capabilities. API wiring is supported by the README and the sampled hook; unsampled component behavior is not inferred beyond documented capabilities.

Main entry points: [`UI/src/app/Root.tsx`](https://github.com/lalalaurentiu/inviitor/blob/main/UI/src/app/Root.tsx) (Page dispatcher), [`UI/src/app/types/job.ts`](https://github.com/lalalaurentiu/inviitor/blob/main/UI/src/app/types/job.ts) (Job model), [`UI/src/app/components/Home.tsx`](https://github.com/lalalaurentiu/inviitor/blob/main/UI/src/app/components/Home.tsx) (Homepage search), [`UI/src/app/components/JobsList.tsx`](https://github.com/lalalaurentiu/inviitor/blob/main/UI/src/app/components/JobsList.tsx) (Filtered listings)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_navigation["Routing and pages"]
  node_router["Route table<br/>[routes.ts]"]
  node_app["App entry<br/>[App.tsx]"]
  node_root["Page dispatcher<br/>[Root.tsx]"]
end

subgraph group_jobs["Job discovery"]
  node_home["Homepage search<br/>[Home.tsx]"]
  node_search["Filtered listings<br/>[JobsList.tsx]"]
  node_detail["Job details<br/>[JobDetail.tsx]"]
  node_jobdata["Job data hook<br/>[useJobs.ts]"]
  node_jobmodel["Job model<br/>[job.ts]"]
end

subgraph group_support["Site capabilities"]
  node_seo["SEO metadata<br/>[useSeo.ts]"]
  node_legal["Legal pages<br/>[PrivacyPolicy.tsx]"]
  node_terms["Terms page<br/>[TermsOfUse.tsx]"]
  node_footer["Site footer<br/>[SiteFooter.tsx]"]
end

subgraph group_shared["Shared UI"]
  node_loading["Loading states<br/>[LoadingState.tsx]"]
  node_ui["UI primitives"]
end

node_visitor(("Job seeker"))
node_backend["Django mobile API"]

node_visitor -->|"opens pages"| node_router
node_app -->|"provides routes"| node_router
node_router -->|"routes to"| node_root
node_root -->|"loads data"| node_jobdata
node_root -->|"selects homepage"| node_home
node_root -->|"selects results"| node_search
node_root -->|"selects detail"| node_detail
node_root -->|"selects policy"| node_legal
node_root -->|"selects terms"| node_terms
node_root -->|"updates metadata"| node_seo
node_root -->|"renders loading"| node_loading
node_jobdata -->|"fetches listings"| node_backend
node_jobdata -->|"normalizes jobs"| node_jobmodel
node_home -->|"uses job data"| node_jobmodel
node_search -->|"renders job data"| node_jobmodel
node_detail -->|"shows job data"| node_jobmodel
node_seo -->|"builds job metadata"| node_jobmodel
node_home -->|"navigates to search"| node_search
node_home -->|"uses controls"| node_ui
node_search -->|"uses controls"| node_ui
node_legal -->|"renders footer"| node_footer
node_terms -->|"renders footer"| node_footer
node_visitor -.->|"searches listings"| node_backend

click node_router "https://github.com/lalalaurentiu/inviitor/blob/main/UI/src/app/routes.ts"
click node_app "https://github.com/lalalaurentiu/inviitor/blob/main/UI/src/app/App.tsx"
click node_root "https://github.com/lalalaurentiu/inviitor/blob/main/UI/src/app/Root.tsx"
click node_home "https://github.com/lalalaurentiu/inviitor/blob/main/UI/src/app/components/Home.tsx"
click node_search "https://github.com/lalalaurentiu/inviitor/blob/main/UI/src/app/components/JobsList.tsx"
click node_detail "https://github.com/lalalaurentiu/inviitor/blob/main/UI/src/app/components/JobDetail.tsx"
click node_jobdata "https://github.com/lalalaurentiu/inviitor/blob/main/UI/src/app/hooks/useJobs.ts"
click node_jobmodel "https://github.com/lalalaurentiu/inviitor/blob/main/UI/src/app/types/job.ts"
click node_seo "https://github.com/lalalaurentiu/inviitor/blob/main/UI/src/app/hooks/useSeo.ts"
click node_legal "https://github.com/lalalaurentiu/inviitor/blob/main/UI/src/app/components/PrivacyPolicy.tsx"
click node_terms "https://github.com/lalalaurentiu/inviitor/blob/main/UI/src/app/components/TermsOfUse.tsx"
click node_footer "https://github.com/lalalaurentiu/inviitor/blob/main/UI/src/app/components/SiteFooter.tsx"
click node_loading "https://github.com/lalalaurentiu/inviitor/blob/main/UI/src/app/components/LoadingState.tsx"
click node_ui "https://github.com/lalalaurentiu/inviitor/tree/main/UI/src/app/components/ui"

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_app,node_root toneBlue
class node_home,node_search,node_detail,node_jobdata,node_jobmodel toneAmber
class node_seo,node_legal,node_terms,node_footer,node_backend toneMint
class node_loading,node_ui toneRose
class node_visitor toneIndigo
```

## Components

### Routing and pages

- [Route table](https://github.com/lalalaurentiu/inviitor/blob/main/UI/src/app/routes.ts): `UI/src/app/routes.ts`
- [App entry](https://github.com/lalalaurentiu/inviitor/blob/main/UI/src/app/App.tsx): `UI/src/app/App.tsx`
- [Page dispatcher](https://github.com/lalalaurentiu/inviitor/blob/main/UI/src/app/Root.tsx): `UI/src/app/Root.tsx`

### Job discovery

- [Homepage search](https://github.com/lalalaurentiu/inviitor/blob/main/UI/src/app/components/Home.tsx): `UI/src/app/components/Home.tsx`
- [Filtered listings](https://github.com/lalalaurentiu/inviitor/blob/main/UI/src/app/components/JobsList.tsx): `UI/src/app/components/JobsList.tsx`
- [Job details](https://github.com/lalalaurentiu/inviitor/blob/main/UI/src/app/components/JobDetail.tsx): `UI/src/app/components/JobDetail.tsx`
- [Job data hook](https://github.com/lalalaurentiu/inviitor/blob/main/UI/src/app/hooks/useJobs.ts): `UI/src/app/hooks/useJobs.ts`
- [Job model](https://github.com/lalalaurentiu/inviitor/blob/main/UI/src/app/types/job.ts): `UI/src/app/types/job.ts`

### Site capabilities

- [SEO metadata](https://github.com/lalalaurentiu/inviitor/blob/main/UI/src/app/hooks/useSeo.ts): `UI/src/app/hooks/useSeo.ts`
- [Legal pages](https://github.com/lalalaurentiu/inviitor/blob/main/UI/src/app/components/PrivacyPolicy.tsx): `UI/src/app/components/PrivacyPolicy.tsx`
- [Terms page](https://github.com/lalalaurentiu/inviitor/blob/main/UI/src/app/components/TermsOfUse.tsx): `UI/src/app/components/TermsOfUse.tsx`
- [Site footer](https://github.com/lalalaurentiu/inviitor/blob/main/UI/src/app/components/SiteFooter.tsx): `UI/src/app/components/SiteFooter.tsx`

### Shared UI

- [Loading states](https://github.com/lalalaurentiu/inviitor/blob/main/UI/src/app/components/LoadingState.tsx): `UI/src/app/components/LoadingState.tsx`
- [UI primitives](https://github.com/lalalaurentiu/inviitor/tree/main/UI/src/app/components/ui): `UI/src/app/components/ui`

### Other components

- **Job seeker**
- **Django mobile API**

## Connections

- Job seeker → Route table: opens pages (evidence: `UI/src/app/routes.ts`)
- App entry → Route table: provides routes (evidence: `UI/src/app/App.tsx`)
- Route table → Page dispatcher: routes to (evidence: `UI/src/app/routes.ts`)
- Page dispatcher → Job data hook: loads data (evidence: `UI/src/app/Root.tsx`)
- Page dispatcher → Homepage search: selects homepage (evidence: `UI/src/app/Root.tsx`)
- Page dispatcher → Filtered listings: selects results (evidence: `UI/src/app/Root.tsx`)
- Page dispatcher → Job details: selects detail (evidence: `UI/src/app/Root.tsx`)
- Page dispatcher → Legal pages: selects policy (evidence: `UI/src/app/Root.tsx`)
- Page dispatcher → Terms page: selects terms (evidence: `UI/src/app/Root.tsx`)
- Page dispatcher → SEO metadata: updates metadata (evidence: `UI/src/app/Root.tsx`)
- Page dispatcher → Loading states: renders loading (evidence: `UI/src/app/Root.tsx`)
- Job data hook → Django mobile API: fetches listings (evidence: `UI/src/app/hooks/useJobs.ts`)
- Job data hook → Job model: normalizes jobs (evidence: `UI/src/app/hooks/useJobs.ts`)
- Homepage search → Job model: uses job data (evidence: `UI/src/app/components/Home.tsx`)
- Filtered listings → Job model: renders job data (evidence: `UI/src/app/components/JobsList.tsx`)
- Job details → Job model: shows job data (evidence: `UI/src/app/components/JobDetail.tsx`)
- SEO metadata → Job model: builds job metadata (evidence: `UI/src/app/hooks/useSeo.ts`)
- Homepage search → Filtered listings: navigates to search (evidence: `UI/src/app/components/Home.tsx`)
- Homepage search → UI primitives: uses controls (evidence: `UI/src/app/components/Home.tsx`)
- Filtered listings → UI primitives: uses controls (evidence: `UI/src/app/components/JobsList.tsx`)
- Legal pages → Site footer: renders footer (evidence: `UI/src/app/components/PrivacyPolicy.tsx`)
- Terms page → Site footer: renders footer (evidence: `UI/src/app/components/TermsOfUse.tsx`)
- Job seeker → Django mobile API: searches listings (evidence: `README.md`)
