# peakatx/internal-tool-hub-1- architecture

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

- Interactive diagram: https://gitdiagram.com/peakatx/internal-tool-hub-1-
- Repository: https://github.com/peakatx/internal-tool-hub-1-

## Overview

AfroTechXcel is a Google Apps Script staff dashboard backed by Google Sheets. Users enter through the web app and use staff, task, report, attendance, and finance screens; server-side feature modules enforce access and domain rules. The README documents the major integrations and capabilities, but no source excerpts were supplied, so relationships below are limited to those it states explicitly. The dashboard UI is paired with its corresponding server module as documented; individual request-routing details are not shown.

Main entry points: [`src/Finance.gs`](https://github.com/peakatx/internal-tool-hub-1-/blob/main/src/Finance.gs) (Finance management), [`src/Code.gs`](https://github.com/peakatx/internal-tool-hub-1-/blob/main/src/Code.gs) (Apps Script web app), [`src/StaffDirectory.gs`](https://github.com/peakatx/internal-tool-hub-1-/blob/main/src/StaffDirectory.gs) (Staff directory), [`src/Tasks.gs`](https://github.com/peakatx/internal-tool-hub-1-/blob/main/src/Tasks.gs) (Task management)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_entry["Web app"]
  node_apps_script["Apps Script web app<br/>[Code.gs]"]
  node_page_shell["Dashboard shell<br/>[Index.html]"]
end

subgraph group_core["Shared services"]
  node_schema["Sheet schema<br/>[Schema.gs]"]
  node_config["Configuration<br/>[Config.gs]"]
  node_auth["Access control<br/>[Auth.gs]"]
  node_utilities["Shared utilities<br/>[Utils.gs]"]
end

subgraph group_people_work["People and work"]
  node_staff_ui["Staff directory UI"]
  node_staff["Staff directory<br/>[StaffDirectory.gs]"]
  node_tasks_ui["Tasks UI<br/>[Tasks.html]"]
  node_tasks["Task management<br/>[Tasks.gs]"]
  node_attendance_ui["Attendance UI<br/>[Attendance.html]"]
  node_attendance["Attendance tracking<br/>[Attendance.gs]"]
end

subgraph group_operations["Reports and finance"]
  node_reports_ui["Reports UI<br/>[Reports.html]"]
  node_reports["Weekly reports<br/>[Reports.gs]"]
  node_finance_ui["Finance UI<br/>[Finance.html]"]
  node_finance["Finance management<br/>[Finance.gs]"]
  node_triggers["Scheduled jobs<br/>[Triggers.gs]"]
end

node_staff_user(("Staff user"))
node_sheets[("Google Sheets")]
node_google_identity(("Google identity"))
node_drive[("Google Drive")]
node_mail["Email service"]

node_staff_user -->|"uses"| node_apps_script
node_apps_script -->|"serves"| node_page_shell
node_staff_user -->|"authenticates with"| node_google_identity
node_schema -->|"sets up"| node_sheets
node_staff -->|"reads and writes"| node_sheets
node_tasks -->|"reads and writes"| node_sheets
node_attendance -->|"reads and writes"| node_sheets
node_reports -->|"reads and writes"| node_sheets
node_finance -->|"reads and writes"| node_sheets
node_auth -->|"checks identity"| node_google_identity
node_staff_ui -->|"uses"| node_staff
node_tasks_ui -->|"uses"| node_tasks
node_attendance_ui -->|"uses"| node_attendance
node_reports_ui -->|"uses"| node_reports
node_finance_ui -->|"uses"| node_finance
node_finance -->|"stores receipts"| node_drive
node_finance -->|"emails submitters"| node_mail
node_triggers -->|"sends reminders"| node_mail

click node_apps_script "https://github.com/peakatx/internal-tool-hub-1-/blob/main/src/Code.gs"
click node_page_shell "https://github.com/peakatx/internal-tool-hub-1-/blob/main/src/ui/Index.html"
click node_schema "https://github.com/peakatx/internal-tool-hub-1-/blob/main/src/Schema.gs"
click node_config "https://github.com/peakatx/internal-tool-hub-1-/blob/main/src/Config.gs"
click node_auth "https://github.com/peakatx/internal-tool-hub-1-/blob/main/src/Auth.gs"
click node_utilities "https://github.com/peakatx/internal-tool-hub-1-/blob/main/src/Utils.gs"
click node_staff_ui "https://github.com/peakatx/internal-tool-hub-1-/blob/main/src/ui/StaffDirectory.html"
click node_staff "https://github.com/peakatx/internal-tool-hub-1-/blob/main/src/StaffDirectory.gs"
click node_tasks_ui "https://github.com/peakatx/internal-tool-hub-1-/blob/main/src/ui/Tasks.html"
click node_tasks "https://github.com/peakatx/internal-tool-hub-1-/blob/main/src/Tasks.gs"
click node_attendance_ui "https://github.com/peakatx/internal-tool-hub-1-/blob/main/src/ui/Attendance.html"
click node_attendance "https://github.com/peakatx/internal-tool-hub-1-/blob/main/src/Attendance.gs"
click node_reports_ui "https://github.com/peakatx/internal-tool-hub-1-/blob/main/src/ui/Reports.html"
click node_reports "https://github.com/peakatx/internal-tool-hub-1-/blob/main/src/Reports.gs"
click node_finance_ui "https://github.com/peakatx/internal-tool-hub-1-/blob/main/src/ui/Finance.html"
click node_finance "https://github.com/peakatx/internal-tool-hub-1-/blob/main/src/Finance.gs"
click node_triggers "https://github.com/peakatx/internal-tool-hub-1-/blob/main/src/Triggers.gs"

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_apps_script,node_page_shell,node_staff_user toneBlue
class node_schema,node_config,node_auth,node_utilities,node_sheets,node_drive toneAmber
class node_staff_ui,node_staff,node_tasks_ui,node_tasks,node_attendance_ui,node_attendance toneMint
class node_reports_ui,node_reports,node_finance_ui,node_finance,node_triggers toneRose
class node_google_identity,node_mail toneIndigo
```

## Components

### Web app

- [Apps Script web app](https://github.com/peakatx/internal-tool-hub-1-/blob/main/src/Code.gs): `src/Code.gs`
- [Dashboard shell](https://github.com/peakatx/internal-tool-hub-1-/blob/main/src/ui/Index.html): `src/ui/Index.html`

### Shared services

- [Sheet schema](https://github.com/peakatx/internal-tool-hub-1-/blob/main/src/Schema.gs): `src/Schema.gs`
- [Configuration](https://github.com/peakatx/internal-tool-hub-1-/blob/main/src/Config.gs): `src/Config.gs`
- [Access control](https://github.com/peakatx/internal-tool-hub-1-/blob/main/src/Auth.gs): `src/Auth.gs`
- [Shared utilities](https://github.com/peakatx/internal-tool-hub-1-/blob/main/src/Utils.gs): `src/Utils.gs`

### People and work

- [Staff directory UI](https://github.com/peakatx/internal-tool-hub-1-/blob/main/src/ui/StaffDirectory.html): `src/ui/StaffDirectory.html`
- [Staff directory](https://github.com/peakatx/internal-tool-hub-1-/blob/main/src/StaffDirectory.gs): `src/StaffDirectory.gs`
- [Tasks UI](https://github.com/peakatx/internal-tool-hub-1-/blob/main/src/ui/Tasks.html): `src/ui/Tasks.html`
- [Task management](https://github.com/peakatx/internal-tool-hub-1-/blob/main/src/Tasks.gs): `src/Tasks.gs`
- [Attendance UI](https://github.com/peakatx/internal-tool-hub-1-/blob/main/src/ui/Attendance.html): `src/ui/Attendance.html`
- [Attendance tracking](https://github.com/peakatx/internal-tool-hub-1-/blob/main/src/Attendance.gs): `src/Attendance.gs`

### Reports and finance

- [Reports UI](https://github.com/peakatx/internal-tool-hub-1-/blob/main/src/ui/Reports.html): `src/ui/Reports.html`
- [Weekly reports](https://github.com/peakatx/internal-tool-hub-1-/blob/main/src/Reports.gs): `src/Reports.gs`
- [Finance UI](https://github.com/peakatx/internal-tool-hub-1-/blob/main/src/ui/Finance.html): `src/ui/Finance.html`
- [Finance management](https://github.com/peakatx/internal-tool-hub-1-/blob/main/src/Finance.gs): `src/Finance.gs`
- [Scheduled jobs](https://github.com/peakatx/internal-tool-hub-1-/blob/main/src/Triggers.gs): `src/Triggers.gs`

### Other components

- **Staff user**
- **Google Sheets**
- **Google identity**
- **Google Drive**
- **Email service**

## Connections

- Staff user → Apps Script web app: uses (evidence: `README.md`)
- Apps Script web app → Dashboard shell: serves (evidence: `README.md`)
- Staff user → Google identity: authenticates with (evidence: `README.md`)
- Sheet schema → Google Sheets: sets up (evidence: `README.md`)
- Staff directory → Google Sheets: reads and writes (evidence: `README.md`)
- Task management → Google Sheets: reads and writes (evidence: `README.md`)
- Attendance tracking → Google Sheets: reads and writes (evidence: `README.md`)
- Weekly reports → Google Sheets: reads and writes (evidence: `README.md`)
- Finance management → Google Sheets: reads and writes (evidence: `README.md`)
- Access control → Google identity: checks identity (evidence: `README.md`)
- Staff directory UI → Staff directory: uses (evidence: `README.md`)
- Tasks UI → Task management: uses (evidence: `README.md`)
- Attendance UI → Attendance tracking: uses (evidence: `README.md`)
- Reports UI → Weekly reports: uses (evidence: `README.md`)
- Finance UI → Finance management: uses (evidence: `README.md`)
- Finance management → Google Drive: stores receipts (evidence: `README.md`)
- Finance management → Email service: emails submitters (evidence: `README.md`)
- Scheduled jobs → Email service: sends reminders (evidence: `README.md`)
