# ps-copilot-sandbox/copilot-intermediate-gallery-repo architecture

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

- Interactive diagram: https://gitdiagram.com/ps-copilot-sandbox/copilot-intermediate-gallery-repo
- Repository: https://github.com/ps-copilot-sandbox/copilot-intermediate-gallery-repo

## Overview

This is a demo-oriented photo gallery and portfolio UI. Visitors browse, search, and filter mock photos; the home and upload pages also expose a simulated upload flow, while an admin page presents mock gallery statistics and actions. Shared presentation components support these routes. The sampled runtime shows no persistent storage, real upload service, or client-sharing backend, so advertised optimization and proofing capabilities are UI-level claims rather than verified processing stages.

Main entry points: [`src/app/page.tsx`](https://github.com/ps-copilot-sandbox/copilot-intermediate-gallery-repo/blob/main/src/app/page.tsx) (Home page), [`src/app/gallery/page.tsx`](https://github.com/ps-copilot-sandbox/copilot-intermediate-gallery-repo/blob/main/src/app/gallery/page.tsx) (Gallery page), [`src/components/ui`](https://github.com/ps-copilot-sandbox/copilot-intermediate-gallery-repo/tree/main/src/components/ui) (Shared UI components), [`src/app/admin/page.tsx`](https://github.com/ps-copilot-sandbox/copilot-intermediate-gallery-repo/blob/main/src/app/admin/page.tsx) (Admin dashboard)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_routes["App routes"]
  node_home["Home page<br/>[page.tsx]"]
  node_gallery_page["Gallery page<br/>[page.tsx]"]
  node_admin["Admin dashboard<br/>[page.tsx]"]
  node_upload_page["Upload page<br/>[page.tsx]"]
end

subgraph group_gallery["Gallery experience"]
  node_gallery_grid["Gallery grid<br/>[GalleryGrid.tsx]"]
  node_photo_data["Photo catalog<br/>[mock-photo-data.ts]"]
  node_tag_data["Tag options<br/>[mock-tag-data.ts]"]
end

subgraph group_upload["Upload experience"]
  node_upload_zone["Upload drop zone<br/>[UploadZone.tsx]"]
end

subgraph group_shared["Shared UI and data"]
  node_ui["Shared UI components"]
  node_admin_data["Admin sample data<br/>[mock-admin-data.ts]"]
  node_feature_data["Home feature data"]
end

node_visitor(("Visitor"))

node_visitor -->|"opens"| node_home
node_visitor -->|"opens"| node_gallery_page
node_visitor -->|"opens"| node_admin
node_visitor -->|"opens"| node_upload_page
node_home -->|"renders"| node_gallery_grid
node_home -->|"renders"| node_upload_zone
node_home -->|"reads"| node_feature_data
node_gallery_page -->|"renders"| node_gallery_grid
node_gallery_page -->|"reads"| node_tag_data
node_gallery_page -->|"renders"| node_ui
node_gallery_grid -->|"filters and displays"| node_photo_data
node_admin -->|"reads"| node_admin_data
node_admin -->|"renders"| node_ui
node_upload_page -->|"renders"| node_upload_zone
node_upload_page -->|"renders"| node_ui
node_home -->|"renders"| node_ui

click node_home "https://github.com/ps-copilot-sandbox/copilot-intermediate-gallery-repo/blob/main/src/app/page.tsx"
click node_gallery_page "https://github.com/ps-copilot-sandbox/copilot-intermediate-gallery-repo/blob/main/src/app/gallery/page.tsx"
click node_admin "https://github.com/ps-copilot-sandbox/copilot-intermediate-gallery-repo/blob/main/src/app/admin/page.tsx"
click node_upload_page "https://github.com/ps-copilot-sandbox/copilot-intermediate-gallery-repo/blob/main/src/app/upload/page.tsx"
click node_gallery_grid "https://github.com/ps-copilot-sandbox/copilot-intermediate-gallery-repo/blob/main/src/components/gallery/GalleryGrid.tsx"
click node_photo_data "https://github.com/ps-copilot-sandbox/copilot-intermediate-gallery-repo/blob/main/src/lib/mock-photo-data.ts"
click node_tag_data "https://github.com/ps-copilot-sandbox/copilot-intermediate-gallery-repo/blob/main/src/lib/mock-tag-data.ts"
click node_upload_zone "https://github.com/ps-copilot-sandbox/copilot-intermediate-gallery-repo/blob/main/src/components/upload/UploadZone.tsx"
click node_ui "https://github.com/ps-copilot-sandbox/copilot-intermediate-gallery-repo/tree/main/src/components/ui"
click node_admin_data "https://github.com/ps-copilot-sandbox/copilot-intermediate-gallery-repo/blob/main/src/lib/mock-admin-data.ts"
click node_feature_data "https://github.com/ps-copilot-sandbox/copilot-intermediate-gallery-repo/blob/main/src/lib/mock-feature-card-data.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_home,node_gallery_page,node_admin,node_upload_page toneBlue
class node_gallery_grid,node_photo_data,node_tag_data toneAmber
class node_upload_zone toneMint
class node_ui,node_admin_data,node_feature_data toneRose
class node_visitor toneIndigo
```

## Components

### App routes

- [Home page](https://github.com/ps-copilot-sandbox/copilot-intermediate-gallery-repo/blob/main/src/app/page.tsx): `src/app/page.tsx`
- [Gallery page](https://github.com/ps-copilot-sandbox/copilot-intermediate-gallery-repo/blob/main/src/app/gallery/page.tsx): `src/app/gallery/page.tsx`
- [Admin dashboard](https://github.com/ps-copilot-sandbox/copilot-intermediate-gallery-repo/blob/main/src/app/admin/page.tsx): `src/app/admin/page.tsx`
- [Upload page](https://github.com/ps-copilot-sandbox/copilot-intermediate-gallery-repo/blob/main/src/app/upload/page.tsx): `src/app/upload/page.tsx`

### Gallery experience

- [Gallery grid](https://github.com/ps-copilot-sandbox/copilot-intermediate-gallery-repo/blob/main/src/components/gallery/GalleryGrid.tsx): `src/components/gallery/GalleryGrid.tsx`
- [Photo catalog](https://github.com/ps-copilot-sandbox/copilot-intermediate-gallery-repo/blob/main/src/lib/mock-photo-data.ts): `src/lib/mock-photo-data.ts`
- [Tag options](https://github.com/ps-copilot-sandbox/copilot-intermediate-gallery-repo/blob/main/src/lib/mock-tag-data.ts): `src/lib/mock-tag-data.ts`

### Upload experience

- [Upload drop zone](https://github.com/ps-copilot-sandbox/copilot-intermediate-gallery-repo/blob/main/src/components/upload/UploadZone.tsx): `src/components/upload/UploadZone.tsx`

### Shared UI and data

- [Shared UI components](https://github.com/ps-copilot-sandbox/copilot-intermediate-gallery-repo/tree/main/src/components/ui): `src/components/ui`
- [Admin sample data](https://github.com/ps-copilot-sandbox/copilot-intermediate-gallery-repo/blob/main/src/lib/mock-admin-data.ts): `src/lib/mock-admin-data.ts`
- [Home feature data](https://github.com/ps-copilot-sandbox/copilot-intermediate-gallery-repo/blob/main/src/lib/mock-feature-card-data.ts): `src/lib/mock-feature-card-data.ts`

### Other components

- **Visitor**

## Connections

- Visitor → Home page: opens
- Visitor → Gallery page: opens
- Visitor → Admin dashboard: opens
- Visitor → Upload page: opens
- Home page → Gallery grid: renders (evidence: `src/app/page.tsx`)
- Home page → Upload drop zone: renders (evidence: `src/app/page.tsx`)
- Home page → Home feature data: reads (evidence: `src/app/page.tsx`)
- Gallery page → Gallery grid: renders (evidence: `src/app/gallery/page.tsx`)
- Gallery page → Tag options: reads (evidence: `src/app/gallery/page.tsx`)
- Gallery page → Shared UI components: renders (evidence: `src/app/gallery/page.tsx`)
- Gallery grid → Photo catalog: filters and displays (evidence: `src/components/gallery/GalleryGrid.tsx`)
- Admin dashboard → Admin sample data: reads (evidence: `src/app/admin/page.tsx`)
- Admin dashboard → Shared UI components: renders (evidence: `src/app/admin/page.tsx`)
- Upload page → Upload drop zone: renders (evidence: `src/app/upload/page.tsx`)
- Upload page → Shared UI components: renders (evidence: `src/app/upload/page.tsx`)
- Home page → Shared UI components: renders (evidence: `src/app/page.tsx`)
