# pennypenny135-coder/workplatform2 architecture

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

- Interactive diagram: https://gitdiagram.com/pennypenny135-coder/workplatform2
- Repository: https://github.com/pennypenny135-coder/workplatform2

## Overview

This is a browser-based work-management app for tasks, calendar events, projects, contacts, and notes, with dashboards, reports, settings, and data import/export. Users enter through the app shell, select a workspace, and manage records through forms backed by shared application state and browser storage. The graph includes the documented page and import/export capabilities; source excerpts are partial, so uncertain page-to-form and settings integration calls are not asserted as verified flows.

Main entry points: [`src/App.tsx`](https://github.com/pennypenny135-coder/workplatform2/blob/main/src/App.tsx) (App router), [`src/app/AppContext.tsx`](https://github.com/pennypenny135-coder/workplatform2/blob/main/src/app/AppContext.tsx) (App state), [`src/pages/SettingsPage.tsx`](https://github.com/pennypenny135-coder/workplatform2/blob/main/src/pages/SettingsPage.tsx) (Settings), [`src/components/forms`](https://github.com/pennypenny135-coder/workplatform2/tree/main/src/components/forms) (Record forms)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_shell["Application shell"]
  node_app["App router<br/>[App.tsx]"]
  node_layout["App layout<br/>[AppLayout.tsx]"]
end

subgraph group_workspaces["Workspaces"]
  node_dashboard["Dashboard<br/>[DashboardPage.tsx]"]
  node_tasks["Tasks<br/>[TasksPage.tsx]"]
  node_calendar["Calendar<br/>[CalendarPage.tsx]"]
  node_projects["Projects<br/>[ProjectsPage.tsx]"]
  node_contacts["Contacts<br/>[ContactsPage.tsx]"]
  node_notes["Notes<br/>[NotesPage.tsx]"]
  node_reports["Reports<br/>[ReportsPage.tsx]"]
  node_settings["Settings<br/>[SettingsPage.tsx]"]
end

subgraph group_entry["Record entry"]
  node_quickadd["Quick add<br/>[QuickAddMenu.tsx]"]
  node_forms["Record forms"]
end

subgraph group_state["State and persistence"]
  node_context["App state<br/>[AppContext.tsx]"]
  node_storage[("Local storage<br/>[storageService.ts]")]
  node_seed["Demo data<br/>[seedData.ts]"]
  node_calendarimport["Calendar import"]
end

subgraph group_support["Shared support"]
  node_ui["UI primitives"]
  node_dates["Date utilities<br/>[dateUtils.ts]"]
end

node_user(("User"))

node_user -->|"opens"| node_app
node_app -->|"provides state"| node_context
node_app -->|"renders"| node_layout
node_app -->|"routes to"| node_dashboard
node_app -->|"routes to"| node_tasks
node_app -->|"routes to"| node_calendar
node_app -->|"routes to"| node_projects
node_app -->|"routes to"| node_contacts
node_app -->|"routes to"| node_notes
node_app -->|"routes to"| node_reports
node_app -->|"routes to"| node_settings
node_context -->|"loads and saves"| node_storage
node_context -->|"seeds first run"| node_seed
node_quickadd -->|"renders"| node_forms
node_forms -.->|"updates state"| node_context
node_settings -.->|"uses importer"| node_calendarimport
node_settings -.->|"exports data"| node_storage

click node_app "https://github.com/pennypenny135-coder/workplatform2/blob/main/src/App.tsx"
click node_layout "https://github.com/pennypenny135-coder/workplatform2/blob/main/src/layouts/AppLayout.tsx"
click node_dashboard "https://github.com/pennypenny135-coder/workplatform2/blob/main/src/pages/DashboardPage.tsx"
click node_tasks "https://github.com/pennypenny135-coder/workplatform2/blob/main/src/pages/TasksPage.tsx"
click node_calendar "https://github.com/pennypenny135-coder/workplatform2/blob/main/src/pages/CalendarPage.tsx"
click node_projects "https://github.com/pennypenny135-coder/workplatform2/blob/main/src/pages/ProjectsPage.tsx"
click node_contacts "https://github.com/pennypenny135-coder/workplatform2/blob/main/src/pages/ContactsPage.tsx"
click node_notes "https://github.com/pennypenny135-coder/workplatform2/blob/main/src/pages/NotesPage.tsx"
click node_reports "https://github.com/pennypenny135-coder/workplatform2/blob/main/src/pages/ReportsPage.tsx"
click node_settings "https://github.com/pennypenny135-coder/workplatform2/blob/main/src/pages/SettingsPage.tsx"
click node_quickadd "https://github.com/pennypenny135-coder/workplatform2/blob/main/src/components/QuickAddMenu.tsx"
click node_forms "https://github.com/pennypenny135-coder/workplatform2/tree/main/src/components/forms"
click node_context "https://github.com/pennypenny135-coder/workplatform2/blob/main/src/app/AppContext.tsx"
click node_storage "https://github.com/pennypenny135-coder/workplatform2/blob/main/src/services/storageService.ts"
click node_seed "https://github.com/pennypenny135-coder/workplatform2/blob/main/src/data/seedData.ts"
click node_calendarimport "https://github.com/pennypenny135-coder/workplatform2/blob/main/src/services/calendarImportAdapter.ts"
click node_ui "https://github.com/pennypenny135-coder/workplatform2/tree/main/src/components/ui"
click node_dates "https://github.com/pennypenny135-coder/workplatform2/blob/main/src/utils/dateUtils.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_app,node_layout,node_user toneBlue
class node_dashboard,node_tasks,node_calendar,node_projects,node_contacts,node_notes,node_reports,node_settings toneAmber
class node_quickadd,node_forms toneMint
class node_context,node_storage,node_seed,node_calendarimport toneRose
class node_ui,node_dates toneIndigo
```

## Components

### Application shell

- [App router](https://github.com/pennypenny135-coder/workplatform2/blob/main/src/App.tsx): `src/App.tsx`
- [App layout](https://github.com/pennypenny135-coder/workplatform2/blob/main/src/layouts/AppLayout.tsx): `src/layouts/AppLayout.tsx`

### Workspaces

- [Dashboard](https://github.com/pennypenny135-coder/workplatform2/blob/main/src/pages/DashboardPage.tsx): `src/pages/DashboardPage.tsx`
- [Tasks](https://github.com/pennypenny135-coder/workplatform2/blob/main/src/pages/TasksPage.tsx): `src/pages/TasksPage.tsx`
- [Calendar](https://github.com/pennypenny135-coder/workplatform2/blob/main/src/pages/CalendarPage.tsx): `src/pages/CalendarPage.tsx`
- [Projects](https://github.com/pennypenny135-coder/workplatform2/blob/main/src/pages/ProjectsPage.tsx): `src/pages/ProjectsPage.tsx`
- [Contacts](https://github.com/pennypenny135-coder/workplatform2/blob/main/src/pages/ContactsPage.tsx): `src/pages/ContactsPage.tsx`
- [Notes](https://github.com/pennypenny135-coder/workplatform2/blob/main/src/pages/NotesPage.tsx): `src/pages/NotesPage.tsx`
- [Reports](https://github.com/pennypenny135-coder/workplatform2/blob/main/src/pages/ReportsPage.tsx): `src/pages/ReportsPage.tsx`
- [Settings](https://github.com/pennypenny135-coder/workplatform2/blob/main/src/pages/SettingsPage.tsx): `src/pages/SettingsPage.tsx`

### Record entry

- [Quick add](https://github.com/pennypenny135-coder/workplatform2/blob/main/src/components/QuickAddMenu.tsx): `src/components/QuickAddMenu.tsx`
- [Record forms](https://github.com/pennypenny135-coder/workplatform2/tree/main/src/components/forms): `src/components/forms`

### State and persistence

- [App state](https://github.com/pennypenny135-coder/workplatform2/blob/main/src/app/AppContext.tsx): `src/app/AppContext.tsx`
- [Local storage](https://github.com/pennypenny135-coder/workplatform2/blob/main/src/services/storageService.ts): `src/services/storageService.ts`
- [Demo data](https://github.com/pennypenny135-coder/workplatform2/blob/main/src/data/seedData.ts): `src/data/seedData.ts`
- [Calendar import](https://github.com/pennypenny135-coder/workplatform2/blob/main/src/services/calendarImportAdapter.ts): `src/services/calendarImportAdapter.ts`

### Shared support

- [UI primitives](https://github.com/pennypenny135-coder/workplatform2/tree/main/src/components/ui): `src/components/ui`
- [Date utilities](https://github.com/pennypenny135-coder/workplatform2/blob/main/src/utils/dateUtils.ts): `src/utils/dateUtils.ts`

### Other components

- **User**

## Connections

- User → App router: opens
- App router → App state: provides state (evidence: `src/App.tsx`)
- App router → App layout: renders (evidence: `src/App.tsx`)
- App router → Dashboard: routes to (evidence: `src/App.tsx`)
- App router → Tasks: routes to (evidence: `src/App.tsx`)
- App router → Calendar: routes to (evidence: `src/App.tsx`)
- App router → Projects: routes to (evidence: `src/App.tsx`)
- App router → Contacts: routes to (evidence: `src/App.tsx`)
- App router → Notes: routes to (evidence: `src/App.tsx`)
- App router → Reports: routes to (evidence: `src/App.tsx`)
- App router → Settings: routes to (evidence: `src/App.tsx`)
- App state → Local storage: loads and saves (evidence: `src/app/AppContext.tsx`)
- App state → Demo data: seeds first run (evidence: `src/app/AppContext.tsx`)
- Quick add → Record forms: renders (evidence: `src/components/QuickAddMenu.tsx`)
- Record forms → App state: updates state (evidence: `src/components/forms/TaskForm.tsx`)
- Settings → Calendar import: uses importer (evidence: `src/pages/SettingsPage.tsx`)
- Settings → Local storage: exports data (evidence: `src/pages/SettingsPage.tsx`)
