# intuit-a4a/frontend-page-prism architecture

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

- Interactive diagram: https://gitdiagram.com/intuit-a4a/frontend-page-prism
- Repository: https://github.com/intuit-a4a/frontend-page-prism

## Overview

Page Prism is a browser app for collecting and organizing visual inspiration in projects. Users open the dashboard or project list, create or view a project, and can inspect its inspiration details; the README also describes capturing website screenshots and editing project and inspiration details. Project and inspiration services persist records in IndexedDB, with optional simulated latency. The supplied excerpts show project-page calls and service storage behavior, but not screenshot capture or the full editing flow, so those links are not asserted.

Main entry points: [`src/routes.jsx`](https://github.com/intuit-a4a/frontend-page-prism/blob/main/src/routes.jsx) (Route table), [`src/services/project.ts`](https://github.com/intuit-a4a/frontend-page-prism/blob/main/src/services/project.ts) (Project service), [`src/services/inspiration.ts`](https://github.com/intuit-a4a/frontend-page-prism/blob/main/src/services/inspiration.ts) (Inspiration service), [`src/components/Navbar.jsx`](https://github.com/intuit-a4a/frontend-page-prism/blob/main/src/components/Navbar.jsx) (Navbar)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_shell["App shell"]
  node_routes["Route table<br/>[routes.jsx]"]
  node_app["App outlet<br/>[App.jsx]"]
  node_layout["App layout<br/>[AppLayout.jsx]"]
  node_title["Page title<br/>[usePageTitle.jsx]"]
end

subgraph group_navigation["Navigation"]
  node_navbar["Navbar<br/>[Navbar.jsx]"]
  node_desktopnav["Desktop navigation"]
  node_mobilenav["Mobile navigation"]
  node_menu["Mobile menu button"]
  node_button["UI button<br/>[Button.jsx]"]
end

subgraph group_projects["Project workflow"]
  node_dashboard["Dashboard<br/>[Dashboard.jsx]"]
  node_projects["Projects page<br/>[Projects.jsx]"]
  node_detail["Project detail<br/>[ProjectDetail.jsx]"]
  node_projectservice["Project service<br/>[project.ts]"]
end

subgraph group_data["Inspiration and storage"]
  node_inspiration["Inspiration service<br/>[inspiration.ts]"]
  node_schema["Domain schema<br/>[schema.ts]"]
  node_latency["Mock latency<br/>[mockLatency.js]"]
  node_db[("IndexedDB<br/>[indexedDB.ts]")]
end

node_visitor(("App user"))

node_visitor -->|"opens app"| node_routes
node_routes -->|"routes through"| node_app
node_app -->|"wraps outlet"| node_layout
node_layout -->|"renders"| node_navbar
node_layout -->|"gets title"| node_title
node_navbar -->|"renders"| node_desktopnav
node_navbar -->|"renders"| node_mobilenav
node_navbar -->|"renders"| node_menu
node_routes -->|"routes to"| node_dashboard
node_routes -->|"routes to"| node_projects
node_routes -->|"routes to"| node_detail
node_projects -->|"loads and creates"| node_projectservice
node_detail -->|"loads project"| node_projectservice
node_projects -->|"renders"| node_button
node_detail -->|"renders"| node_button
node_projectservice -->|"reads and writes"| node_db
node_inspiration -->|"reads and writes"| node_db
node_projectservice -->|"simulates delay"| node_latency
node_inspiration -->|"simulates delay"| node_latency
node_projectservice -->|"uses types"| node_schema
node_inspiration -->|"uses types"| node_schema
node_db -->|"types records"| node_schema
node_visitor -.->|"captures screenshots"| node_inspiration
node_visitor -.->|"organizes inspirations"| node_inspiration

click node_routes "https://github.com/intuit-a4a/frontend-page-prism/blob/main/src/routes.jsx"
click node_app "https://github.com/intuit-a4a/frontend-page-prism/blob/main/src/App.jsx"
click node_layout "https://github.com/intuit-a4a/frontend-page-prism/blob/main/src/layouts/AppLayout.jsx"
click node_title "https://github.com/intuit-a4a/frontend-page-prism/blob/main/src/hooks/usePageTitle.jsx"
click node_navbar "https://github.com/intuit-a4a/frontend-page-prism/blob/main/src/components/Navbar.jsx"
click node_desktopnav "https://github.com/intuit-a4a/frontend-page-prism/blob/main/src/components/DesktopNavigation.jsx"
click node_mobilenav "https://github.com/intuit-a4a/frontend-page-prism/blob/main/src/components/MobileNavigation.jsx"
click node_menu "https://github.com/intuit-a4a/frontend-page-prism/blob/main/src/components/MobileMenuButton.jsx"
click node_button "https://github.com/intuit-a4a/frontend-page-prism/blob/main/src/components/Button.jsx"
click node_dashboard "https://github.com/intuit-a4a/frontend-page-prism/blob/main/src/pages/Dashboard.jsx"
click node_projects "https://github.com/intuit-a4a/frontend-page-prism/blob/main/src/pages/Projects.jsx"
click node_detail "https://github.com/intuit-a4a/frontend-page-prism/blob/main/src/pages/ProjectDetail.jsx"
click node_projectservice "https://github.com/intuit-a4a/frontend-page-prism/blob/main/src/services/project.ts"
click node_inspiration "https://github.com/intuit-a4a/frontend-page-prism/blob/main/src/services/inspiration.ts"
click node_schema "https://github.com/intuit-a4a/frontend-page-prism/blob/main/src/models/schema.ts"
click node_latency "https://github.com/intuit-a4a/frontend-page-prism/blob/main/src/utils/mockLatency.js"
click node_db "https://github.com/intuit-a4a/frontend-page-prism/blob/main/src/utils/indexedDB.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_routes,node_app,node_layout,node_title,node_visitor toneBlue
class node_navbar,node_desktopnav,node_mobilenav,node_menu,node_button toneAmber
class node_dashboard,node_projects,node_detail,node_projectservice toneMint
class node_inspiration,node_schema,node_latency,node_db toneRose
```

## Components

### App shell

- [Route table](https://github.com/intuit-a4a/frontend-page-prism/blob/main/src/routes.jsx): `src/routes.jsx`
- [App outlet](https://github.com/intuit-a4a/frontend-page-prism/blob/main/src/App.jsx): `src/App.jsx`
- [App layout](https://github.com/intuit-a4a/frontend-page-prism/blob/main/src/layouts/AppLayout.jsx): `src/layouts/AppLayout.jsx`
- [Page title](https://github.com/intuit-a4a/frontend-page-prism/blob/main/src/hooks/usePageTitle.jsx): `src/hooks/usePageTitle.jsx`

### Navigation

- [Navbar](https://github.com/intuit-a4a/frontend-page-prism/blob/main/src/components/Navbar.jsx): `src/components/Navbar.jsx`
- [Desktop navigation](https://github.com/intuit-a4a/frontend-page-prism/blob/main/src/components/DesktopNavigation.jsx): `src/components/DesktopNavigation.jsx`
- [Mobile navigation](https://github.com/intuit-a4a/frontend-page-prism/blob/main/src/components/MobileNavigation.jsx): `src/components/MobileNavigation.jsx`
- [Mobile menu button](https://github.com/intuit-a4a/frontend-page-prism/blob/main/src/components/MobileMenuButton.jsx): `src/components/MobileMenuButton.jsx`
- [UI button](https://github.com/intuit-a4a/frontend-page-prism/blob/main/src/components/Button.jsx): `src/components/Button.jsx`

### Project workflow

- [Dashboard](https://github.com/intuit-a4a/frontend-page-prism/blob/main/src/pages/Dashboard.jsx): `src/pages/Dashboard.jsx`
- [Projects page](https://github.com/intuit-a4a/frontend-page-prism/blob/main/src/pages/Projects.jsx): `src/pages/Projects.jsx`
- [Project detail](https://github.com/intuit-a4a/frontend-page-prism/blob/main/src/pages/ProjectDetail.jsx): `src/pages/ProjectDetail.jsx`
- [Project service](https://github.com/intuit-a4a/frontend-page-prism/blob/main/src/services/project.ts): `src/services/project.ts`

### Inspiration and storage

- [Inspiration service](https://github.com/intuit-a4a/frontend-page-prism/blob/main/src/services/inspiration.ts): `src/services/inspiration.ts`
- [Domain schema](https://github.com/intuit-a4a/frontend-page-prism/blob/main/src/models/schema.ts): `src/models/schema.ts`
- [Mock latency](https://github.com/intuit-a4a/frontend-page-prism/blob/main/src/utils/mockLatency.js): `src/utils/mockLatency.js`
- [IndexedDB](https://github.com/intuit-a4a/frontend-page-prism/blob/main/src/utils/indexedDB.ts): `src/utils/indexedDB.ts`

### Other components

- **App user**

## Connections

- App user → Route table: opens app
- Route table → App outlet: routes through (evidence: `src/routes.jsx`)
- App outlet → App layout: wraps outlet (evidence: `src/App.jsx`)
- App layout → Navbar: renders (evidence: `src/layouts/AppLayout.jsx`)
- App layout → Page title: gets title (evidence: `src/layouts/AppLayout.jsx`)
- Navbar → Desktop navigation: renders (evidence: `src/components/Navbar.jsx`)
- Navbar → Mobile navigation: renders (evidence: `src/components/Navbar.jsx`)
- Navbar → Mobile menu button: renders (evidence: `src/components/Navbar.jsx`)
- Route table → Dashboard: routes to (evidence: `src/routes.jsx`)
- Route table → Projects page: routes to (evidence: `src/routes.jsx`)
- Route table → Project detail: routes to (evidence: `src/routes.jsx`)
- Projects page → Project service: loads and creates (evidence: `src/pages/Projects.jsx`)
- Project detail → Project service: loads project (evidence: `src/pages/ProjectDetail.jsx`)
- Projects page → UI button: renders (evidence: `src/pages/Projects.jsx`)
- Project detail → UI button: renders (evidence: `src/pages/ProjectDetail.jsx`)
- Project service → IndexedDB: reads and writes (evidence: `src/services/project.ts`)
- Inspiration service → IndexedDB: reads and writes (evidence: `src/services/inspiration.ts`)
- Project service → Mock latency: simulates delay (evidence: `src/services/project.ts`)
- Inspiration service → Mock latency: simulates delay (evidence: `src/services/inspiration.ts`)
- Project service → Domain schema: uses types (evidence: `src/services/project.ts`)
- Inspiration service → Domain schema: uses types (evidence: `src/services/inspiration.ts`)
- IndexedDB → Domain schema: types records (evidence: `src/utils/indexedDB.ts`)
- App user → Inspiration service: captures screenshots (evidence: `README.md`)
- App user → Inspiration service: organizes inspirations (evidence: `README.md`)
