# 221twoseven/project-scheduler architecture

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

- Interactive diagram: https://gitdiagram.com/221twoseven/project-scheduler
- Repository: https://github.com/221twoseven/project-scheduler

## Overview

Timeline is a browser-based project scheduling dashboard: staff and managers sign in, load shared SharePoint data, and work with projects, phases, staff, and to-dos across timeline and calendar views. Local edits synchronize back to SharePoint, while polling picks up others’ changes. The README describes the runtime as a single-file app, so its internal components all point to index.html; their finer implementation boundaries and calls were not independently verified in source excerpts.

Main entry points: [`index.html`](https://github.com/221twoseven/project-scheduler/blob/main/index.html) (In-memory state)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_entry["App entry"]
  node_app["Timeline app<br/>[index.html]"]
end

subgraph group_identity["Identity and data access"]
  node_signin["Entra sign-in<br/>[index.html]"]
  node_site["SharePoint site lookup<br/>[index.html]"]
  node_listload["List loading<br/>[index.html]"]
  node_state["In-memory state<br/>[index.html]"]
end

subgraph group_planning["Scheduling workspace"]
  node_projects["Projects and phases<br/>[index.html]"]
  node_people["Staff schedules<br/>[index.html]"]
  node_todos["To-dos<br/>[index.html]"]
  node_timeline["Timeline view<br/>[index.html]"]
  node_calendar["Calendar view<br/>[index.html]"]
end

subgraph group_sync["Synchronization"]
  node_poll["Change polling<br/>[index.html]"]
  node_writes["Edit synchronization<br/>[index.html]"]
  node_feedback["Sync status and undo<br/>[index.html]"]
end

node_staff(("Staff and managers"))
node_graph{{"Microsoft Graph"}}
node_lists[("SharePoint Lists")]

node_staff -->|"uses"| node_app
node_app -->|"signs in"| node_signin
node_signin -->|"resolves site"| node_site
node_site -->|"enables loading"| node_listload
node_listload -->|"reads lists"| node_graph
node_graph -->|"reads"| node_lists
node_listload -->|"loads into"| node_state
node_state -->|"supplies data"| node_projects
node_state -->|"supplies data"| node_people
node_state -->|"supplies data"| node_todos
node_projects -->|"shown on"| node_timeline
node_people -->|"shown on"| node_timeline
node_todos -->|"shown on"| node_timeline
node_staff -->|"views"| node_calendar
node_app -->|"polls every 90s"| node_poll
node_poll -->|"checks changes"| node_graph
node_staff -->|"edits locally"| node_writes
node_writes -->|"writes changes"| node_graph
node_graph -->|"updates"| node_lists
node_writes -->|"reports sync"| node_feedback

click node_app "https://github.com/221twoseven/project-scheduler/blob/main/index.html"
click node_signin "https://github.com/221twoseven/project-scheduler/blob/main/index.html"
click node_site "https://github.com/221twoseven/project-scheduler/blob/main/index.html"
click node_listload "https://github.com/221twoseven/project-scheduler/blob/main/index.html"
click node_state "https://github.com/221twoseven/project-scheduler/blob/main/index.html"
click node_projects "https://github.com/221twoseven/project-scheduler/blob/main/index.html"
click node_people "https://github.com/221twoseven/project-scheduler/blob/main/index.html"
click node_todos "https://github.com/221twoseven/project-scheduler/blob/main/index.html"
click node_timeline "https://github.com/221twoseven/project-scheduler/blob/main/index.html"
click node_calendar "https://github.com/221twoseven/project-scheduler/blob/main/index.html"
click node_poll "https://github.com/221twoseven/project-scheduler/blob/main/index.html"
click node_writes "https://github.com/221twoseven/project-scheduler/blob/main/index.html"
click node_feedback "https://github.com/221twoseven/project-scheduler/blob/main/index.html"

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 toneBlue
class node_signin,node_site,node_listload,node_state,node_lists toneAmber
class node_projects,node_people,node_todos,node_timeline,node_calendar toneMint
class node_poll,node_writes,node_feedback toneRose
class node_staff,node_graph toneIndigo
```

## Components

### App entry

- [Timeline app](https://github.com/221twoseven/project-scheduler/blob/main/index.html): `index.html`

### Identity and data access

- [Entra sign-in](https://github.com/221twoseven/project-scheduler/blob/main/index.html): `index.html`
- [SharePoint site lookup](https://github.com/221twoseven/project-scheduler/blob/main/index.html): `index.html`
- [List loading](https://github.com/221twoseven/project-scheduler/blob/main/index.html): `index.html`
- [In-memory state](https://github.com/221twoseven/project-scheduler/blob/main/index.html): `index.html`

### Scheduling workspace

- [Projects and phases](https://github.com/221twoseven/project-scheduler/blob/main/index.html): `index.html`
- [Staff schedules](https://github.com/221twoseven/project-scheduler/blob/main/index.html): `index.html`
- [To-dos](https://github.com/221twoseven/project-scheduler/blob/main/index.html): `index.html`
- [Timeline view](https://github.com/221twoseven/project-scheduler/blob/main/index.html): `index.html`
- [Calendar view](https://github.com/221twoseven/project-scheduler/blob/main/index.html): `index.html`

### Synchronization

- [Change polling](https://github.com/221twoseven/project-scheduler/blob/main/index.html): `index.html`
- [Edit synchronization](https://github.com/221twoseven/project-scheduler/blob/main/index.html): `index.html`
- [Sync status and undo](https://github.com/221twoseven/project-scheduler/blob/main/index.html): `index.html`

### Other components

- **Staff and managers**
- **Microsoft Graph**
- **SharePoint Lists**

## Connections

- Staff and managers → Timeline app: uses (evidence: `README.md`)
- Timeline app → Entra sign-in: signs in (evidence: `README.md`)
- Entra sign-in → SharePoint site lookup: resolves site (evidence: `README.md`)
- SharePoint site lookup → List loading: enables loading (evidence: `README.md`)
- List loading → Microsoft Graph: reads lists (evidence: `README.md`)
- Microsoft Graph → SharePoint Lists: reads (evidence: `README.md`)
- List loading → In-memory state: loads into (evidence: `README.md`)
- In-memory state → Projects and phases: supplies data (evidence: `README.md`)
- In-memory state → Staff schedules: supplies data (evidence: `README.md`)
- In-memory state → To-dos: supplies data (evidence: `README.md`)
- Projects and phases → Timeline view: shown on (evidence: `README.md`)
- Staff schedules → Timeline view: shown on (evidence: `README.md`)
- To-dos → Timeline view: shown on (evidence: `README.md`)
- Staff and managers → Calendar view: views (evidence: `README.md`)
- Timeline app → Change polling: polls every 90s (evidence: `README.md`)
- Change polling → Microsoft Graph: checks changes (evidence: `README.md`)
- Staff and managers → Edit synchronization: edits locally (evidence: `README.md`)
- Edit synchronization → Microsoft Graph: writes changes (evidence: `README.md`)
- Microsoft Graph → SharePoint Lists: updates (evidence: `README.md`)
- Edit synchronization → Sync status and undo: reports sync (evidence: `README.md`)
