# haranhd/te architecture

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

- Interactive diagram: https://gitdiagram.com/haranhd/te
- Repository: https://github.com/haranhd/te

## Overview

Team Eyrie is a CMS-backed corporate website with public company and service content, contact and recruitment workflows, and an administrative content interface. Visitors browse CMS-driven pages; prospective clients submit enquiries, while candidates apply to open roles and can later withdraw consent. Editors manage content and consent settings through Payload. The graph reflects documented capabilities and indexed relationships; unsampled routes are grouped by their existing directories, and their internal calls are not inferred.

Main entry points: [`src/app/(frontend)/apply/route.ts`](https://github.com/haranhd/te/blob/main/src/app/(frontend)/apply/route.ts) (Application Handler), [`src/app/(frontend)/page.tsx`](https://github.com/haranhd/te/blob/main/src/app/(frontend)/page.tsx) (Home Page), [`src/payload.config.ts`](https://github.com/haranhd/te/blob/main/src/payload.config.ts) (Payload Configuration), [`src/collections/Services.ts`](https://github.com/haranhd/te/blob/main/src/collections/Services.ts) (Services Collection)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_public["Public Website"]
  node_company_pages["Company Pages"]
  node_home["Home Page<br/>[page.tsx]"]
  node_hero["Hero Section<br/>[HeroSection.tsx]"]
  node_network_map["Office Network Map"]
  node_service_pages["Service Pages"]
end

subgraph group_cms["Content Management"]
  node_service_content[("Services Collection<br/>[Services.ts]")]
  node_slug_field["Slug Field<br/>[slug.ts]"]
  node_site_globals[("Site and Home Settings")]
  node_cms_config["Payload Configuration<br/>[payload.config.ts]"]
  node_admin_api["Admin and Content API"]
  node_content_models[("Content Collections")]
  node_content_seed["Initial Content Seed<br/>[seedData.ts]"]
end

subgraph group_recruitment["Recruitment and Privacy"]
  node_careers["Careers Pages"]
  node_application_form["Application Form"]
  node_apply_route["Application Handler<br/>[route.ts]"]
  node_jobs[("Jobs Collection<br/>[Jobs.ts]")]
  node_applications[("Job Applications<br/>[JobApplications.ts]")]
  node_consent_settings[("Consent Settings<br/>[ConsentSettings.ts]")]
  node_consent_helpers["Consent Email Helpers<br/>[consent.ts]"]
  node_withdrawal["Consent Withdrawal<br/>[route.ts]"]
end

subgraph group_engagement["Visitor Engagement"]
  node_contact_page["Contact Page<br/>[page.tsx]"]
  node_contact_form["Contact Form<br/>[ContactForm.tsx]"]
  node_contact_leads[("Contact Leads<br/>[ContactLeads.ts]")]
  node_cookie_consent["Cookie Consent<br/>[CookieConsent.tsx]"]
  node_consent_logs[("Consent Logs<br/>[ConsentLogs.ts]")]
end

node_visitor(("Visitor"))

node_visitor -->|"browses"| node_company_pages
node_visitor -->|"opens"| node_home
node_visitor -->|"browses"| node_service_pages
node_visitor -->|"browses"| node_careers
node_visitor -->|"opens"| node_contact_page
node_home -->|"reads"| node_service_content
node_home -->|"reads"| node_site_globals
node_home -->|"renders"| node_hero
node_home -->|"renders"| node_network_map
node_service_pages -->|"renders from"| node_service_content
node_service_content -->|"uses"| node_slug_field
node_cms_config -->|"registers"| node_content_models
node_cms_config -->|"registers"| node_site_globals
node_admin_api -.->|"serves"| node_cms_config
node_content_seed -->|"populates"| node_content_models
node_careers -->|"provides"| node_application_form
node_application_form -->|"submits to"| node_apply_route
node_apply_route -->|"checks"| node_jobs
node_apply_route -->|"gets notice"| node_consent_settings
node_apply_route -->|"calls"| node_consent_helpers
node_apply_route -->|"creates"| node_applications
node_apply_route -->|"emails via"| node_consent_helpers
node_visitor -->|"withdraws consent"| node_withdrawal
node_withdrawal -->|"updates"| node_applications
node_contact_page -->|"renders"| node_contact_form
node_contact_form -->|"submits to"| node_contact_leads
node_visitor -->|"sets preference"| node_cookie_consent
node_cookie_consent -->|"posts events"| node_consent_logs

click node_company_pages "https://github.com/haranhd/te/tree/main/src/app/(frontend)"
click node_home "https://github.com/haranhd/te/blob/main/src/app/(frontend)/page.tsx"
click node_hero "https://github.com/haranhd/te/blob/main/src/components/HeroSection.tsx"
click node_network_map "https://github.com/haranhd/te/blob/main/src/components/IndiaNetworkMap.tsx"
click node_service_pages "https://github.com/haranhd/te/tree/main/src/app/(frontend)/services"
click node_service_content "https://github.com/haranhd/te/blob/main/src/collections/Services.ts"
click node_slug_field "https://github.com/haranhd/te/blob/main/src/fields/slug.ts"
click node_site_globals "https://github.com/haranhd/te/tree/main/src/globals"
click node_cms_config "https://github.com/haranhd/te/blob/main/src/payload.config.ts"
click node_admin_api "https://github.com/haranhd/te/tree/main/src/app/(payload)"
click node_content_models "https://github.com/haranhd/te/tree/main/src/collections"
click node_content_seed "https://github.com/haranhd/te/blob/main/src/seed/seedData.ts"
click node_careers "https://github.com/haranhd/te/tree/main/src/app/(frontend)/careers"
click node_application_form "https://github.com/haranhd/te/blob/main/src/components/JobApplicationForm.tsx"
click node_apply_route "https://github.com/haranhd/te/blob/main/src/app/(frontend)/apply/route.ts"
click node_jobs "https://github.com/haranhd/te/blob/main/src/collections/Jobs.ts"
click node_applications "https://github.com/haranhd/te/blob/main/src/collections/JobApplications.ts"
click node_consent_settings "https://github.com/haranhd/te/blob/main/src/globals/ConsentSettings.ts"
click node_consent_helpers "https://github.com/haranhd/te/blob/main/src/lib/consent.ts"
click node_withdrawal "https://github.com/haranhd/te/blob/main/src/app/(frontend)/withdraw-consent/route.ts"
click node_contact_page "https://github.com/haranhd/te/blob/main/src/app/(frontend)/contact/page.tsx"
click node_contact_form "https://github.com/haranhd/te/blob/main/src/components/ContactForm.tsx"
click node_contact_leads "https://github.com/haranhd/te/blob/main/src/collections/ContactLeads.ts"
click node_cookie_consent "https://github.com/haranhd/te/blob/main/src/components/CookieConsent.tsx"
click node_consent_logs "https://github.com/haranhd/te/blob/main/src/collections/ConsentLogs.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_company_pages,node_home,node_hero,node_network_map,node_service_pages toneBlue
class node_service_content,node_slug_field,node_site_globals,node_cms_config,node_admin_api,node_content_models,node_content_seed toneAmber
class node_careers,node_application_form,node_apply_route,node_jobs,node_applications,node_consent_settings,node_consent_helpers,node_withdrawal toneMint
class node_contact_page,node_contact_form,node_contact_leads,node_cookie_consent,node_consent_logs toneRose
class node_visitor toneIndigo
```

## Components

### Public Website

- [Company Pages](https://github.com/haranhd/te/tree/main/src/app/(frontend)): `src/app/(frontend)`
- [Home Page](https://github.com/haranhd/te/blob/main/src/app/(frontend)/page.tsx): `src/app/(frontend)/page.tsx`
- [Hero Section](https://github.com/haranhd/te/blob/main/src/components/HeroSection.tsx): `src/components/HeroSection.tsx`
- [Office Network Map](https://github.com/haranhd/te/blob/main/src/components/IndiaNetworkMap.tsx): `src/components/IndiaNetworkMap.tsx`
- [Service Pages](https://github.com/haranhd/te/tree/main/src/app/(frontend)/services): `src/app/(frontend)/services`

### Content Management

- [Services Collection](https://github.com/haranhd/te/blob/main/src/collections/Services.ts): `src/collections/Services.ts`
- [Slug Field](https://github.com/haranhd/te/blob/main/src/fields/slug.ts): `src/fields/slug.ts`
- [Site and Home Settings](https://github.com/haranhd/te/tree/main/src/globals): `src/globals`
- [Payload Configuration](https://github.com/haranhd/te/blob/main/src/payload.config.ts): `src/payload.config.ts`
- [Admin and Content API](https://github.com/haranhd/te/tree/main/src/app/(payload)): `src/app/(payload)`
- [Content Collections](https://github.com/haranhd/te/tree/main/src/collections): `src/collections`
- [Initial Content Seed](https://github.com/haranhd/te/blob/main/src/seed/seedData.ts): `src/seed/seedData.ts`

### Recruitment and Privacy

- [Careers Pages](https://github.com/haranhd/te/tree/main/src/app/(frontend)/careers): `src/app/(frontend)/careers`
- [Application Form](https://github.com/haranhd/te/blob/main/src/components/JobApplicationForm.tsx): `src/components/JobApplicationForm.tsx`
- [Application Handler](https://github.com/haranhd/te/blob/main/src/app/(frontend)/apply/route.ts): `src/app/(frontend)/apply/route.ts`
- [Jobs Collection](https://github.com/haranhd/te/blob/main/src/collections/Jobs.ts): `src/collections/Jobs.ts`
- [Job Applications](https://github.com/haranhd/te/blob/main/src/collections/JobApplications.ts): `src/collections/JobApplications.ts`
- [Consent Settings](https://github.com/haranhd/te/blob/main/src/globals/ConsentSettings.ts): `src/globals/ConsentSettings.ts`
- [Consent Email Helpers](https://github.com/haranhd/te/blob/main/src/lib/consent.ts): `src/lib/consent.ts`
- [Consent Withdrawal](https://github.com/haranhd/te/blob/main/src/app/(frontend)/withdraw-consent/route.ts): `src/app/(frontend)/withdraw-consent/route.ts`

### Visitor Engagement

- [Contact Page](https://github.com/haranhd/te/blob/main/src/app/(frontend)/contact/page.tsx): `src/app/(frontend)/contact/page.tsx`
- [Contact Form](https://github.com/haranhd/te/blob/main/src/components/ContactForm.tsx): `src/components/ContactForm.tsx`
- [Contact Leads](https://github.com/haranhd/te/blob/main/src/collections/ContactLeads.ts): `src/collections/ContactLeads.ts`
- [Cookie Consent](https://github.com/haranhd/te/blob/main/src/components/CookieConsent.tsx): `src/components/CookieConsent.tsx`
- [Consent Logs](https://github.com/haranhd/te/blob/main/src/collections/ConsentLogs.ts): `src/collections/ConsentLogs.ts`

### Other components

- **Visitor**

## Connections

- Visitor → Company Pages: browses
- Visitor → Home Page: opens
- Visitor → Service Pages: browses
- Visitor → Careers Pages: browses
- Visitor → Contact Page: opens
- Home Page → Services Collection: reads (evidence: `src/app/(frontend)/page.tsx`)
- Home Page → Site and Home Settings: reads (evidence: `src/app/(frontend)/page.tsx`)
- Home Page → Hero Section: renders (evidence: `src/app/(frontend)/page.tsx`)
- Home Page → Office Network Map: renders (evidence: `src/app/(frontend)/page.tsx`)
- Service Pages → Services Collection: renders from
- Services Collection → Slug Field: uses (evidence: `src/collections/Services.ts`)
- Payload Configuration → Content Collections: registers (evidence: `src/payload.config.ts`)
- Payload Configuration → Site and Home Settings: registers (evidence: `src/payload.config.ts`)
- Admin and Content API → Payload Configuration: serves
- Initial Content Seed → Content Collections: populates (evidence: `src/seed/seedData.ts`)
- Careers Pages → Application Form: provides
- Application Form → Application Handler: submits to
- Application Handler → Jobs Collection: checks (evidence: `src/app/(frontend)/apply/route.ts`)
- Application Handler → Consent Settings: gets notice
- Application Handler → Consent Email Helpers: calls (evidence: `src/app/(frontend)/apply/route.ts`)
- Application Handler → Job Applications: creates (evidence: `src/app/(frontend)/apply/route.ts`)
- Application Handler → Consent Email Helpers: emails via (evidence: `src/app/(frontend)/apply/route.ts`)
- Visitor → Consent Withdrawal: withdraws consent
- Consent Withdrawal → Job Applications: updates
- Contact Page → Contact Form: renders (evidence: `src/app/(frontend)/contact/page.tsx`)
- Contact Form → Contact Leads: submits to
- Visitor → Cookie Consent: sets preference
- Cookie Consent → Consent Logs: posts events
