# gabdorado123/pasigspot architecture

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

- Interactive diagram: https://gitdiagram.com/gabdorado123/pasigspot
- Repository: https://github.com/gabdorado123/pasigspot

## Overview

PasigSpot is a React web app for discovering Pasig destinations, planning visits, and sharing reviews. Visitors enter through the routed app, browse destinations, open details, and can plan a commute or contribute reviews; signed-in users can save places, while administrators manage listings and ferry advisories. Its data layer uses browser storage and seeded local data. The supplied excerpts and source index support the main routes and several data/component links; unsampled page internals and integrations are not inferred.

Main entry points: [`src/App.jsx`](https://github.com/gabdorado123/pasigspot/blob/main/src/App.jsx) (Route App), [`src/data/pasigSpotsStore.js`](https://github.com/gabdorado123/pasigspot/blob/main/src/data/pasigSpotsStore.js) (Spot Store), [`src/pages/SpotDetailsPage.jsx`](https://github.com/gabdorado123/pasigspot/blob/main/src/pages/SpotDetailsPage.jsx) (Spot Details), [`src/pages/ExplorePage.jsx`](https://github.com/gabdorado123/pasigspot/blob/main/src/pages/ExplorePage.jsx) (Explore Places)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_app["Application Shell"]
  node_app["Route App<br/>[App.jsx]"]
end

subgraph group_discovery["Destination Discovery"]
  node_landing["Landing<br/>[LandingPage.jsx]"]
  node_explore["Explore Places<br/>[ExplorePage.jsx]"]
  node_spotdetails["Spot Details"]
  node_ferry["Ferry Guide<br/>[FerryGuidePage.jsx]"]
  node_commute["Commute Planner"]
  node_spotcard["Place Cards<br/>[SpotCard.jsx]"]
end

subgraph group_engagement["Visitor Engagement"]
  node_saved["Saved Places<br/>[SavedSpotsPage.jsx]"]
  node_profile["Profile<br/>[ProfilePage.jsx]"]
  node_settings["Account Settings"]
  node_admin["Admin Dashboard"]
  node_reviews["Tourist Reviews"]
end

subgraph group_data["Local Data"]
  node_spotstore[("Spot Store<br/>[pasigSpotsStore.js]")]
  node_seedspots["Seed Destinations<br/>[pasigSpots.js]"]
  node_reviewdata[("Review Data")]
  node_transitdata["Transit Data"]
end

subgraph group_shared["Shared UI"]
  node_navbar["Navigation Bar<br/>[NavBar.jsx]"]
  node_toast["Toast Provider<br/>[ToastContext.jsx]"]
  node_use_toast["Toast Hook<br/>[useToast.js]"]
  node_spotimage["Spot Image<br/>[SpotImage.jsx]"]
  node_confirm["Confirm Modal<br/>[ConfirmModal.jsx]"]
  node_loading["Loading UI"]
  node_banner["Cityscape Banner"]
end

node_visitor(("Visitor"))
node_storage[("Browser Storage")]

node_visitor -->|"opens"| node_app
node_app -->|"routes to"| node_landing
node_app -->|"routes to"| node_explore
node_app -->|"routes to"| node_spotdetails
node_app -->|"routes to"| node_ferry
node_app -->|"routes to"| node_saved
node_app -->|"routes to"| node_profile
node_app -->|"routes to"| node_settings
node_app -->|"routes to"| node_admin
node_app -->|"renders"| node_navbar
node_app -->|"provides"| node_toast
node_app -->|"reads spots"| node_spotstore
node_landing -->|"reads places"| node_spotstore
node_explore -->|"reads places"| node_spotstore
node_spotdetails -->|"renders"| node_commute
node_spotdetails -->|"renders"| node_reviews
node_spotdetails -->|"reads place"| node_spotstore
node_ferry -->|"reads advisory"| node_spotstore
node_commute -->|"reads routes"| node_transitdata
node_commute -->|"reads places"| node_spotstore
node_explore -->|"renders"| node_spotcard
node_reviews -->|"updates reviews"| node_reviewdata
node_admin -->|"saves places"| node_spotstore
node_spotstore -->|"loads defaults"| node_seedspots
node_spotstore -->|"reads and writes"| node_storage
node_reviewdata -->|"persists reviews"| node_storage
node_navbar -->|"reads places"| node_spotstore
node_reviews -->|"uses"| node_use_toast
node_use_toast -->|"reads context"| node_toast
node_toast -->|"exposes context"| node_use_toast
node_spotcard -->|"renders"| node_spotimage
node_spotdetails -->|"renders"| node_spotimage
node_admin -->|"renders"| node_spotimage
node_profile -->|"uses"| node_confirm
node_settings -->|"uses"| node_confirm
node_landing -->|"renders"| node_banner
node_explore -->|"renders"| node_banner
node_app -->|"renders"| node_loading

click node_app "https://github.com/gabdorado123/pasigspot/blob/main/src/App.jsx"
click node_landing "https://github.com/gabdorado123/pasigspot/blob/main/src/pages/LandingPage.jsx"
click node_explore "https://github.com/gabdorado123/pasigspot/blob/main/src/pages/ExplorePage.jsx"
click node_spotdetails "https://github.com/gabdorado123/pasigspot/blob/main/src/pages/SpotDetailsPage.jsx"
click node_ferry "https://github.com/gabdorado123/pasigspot/blob/main/src/pages/FerryGuidePage.jsx"
click node_commute "https://github.com/gabdorado123/pasigspot/blob/main/src/components/CommutePlannerCard.jsx"
click node_spotcard "https://github.com/gabdorado123/pasigspot/blob/main/src/components/SpotCard.jsx"
click node_saved "https://github.com/gabdorado123/pasigspot/blob/main/src/pages/SavedSpotsPage.jsx"
click node_profile "https://github.com/gabdorado123/pasigspot/blob/main/src/pages/ProfilePage.jsx"
click node_settings "https://github.com/gabdorado123/pasigspot/blob/main/src/pages/AccountSettingsPage.jsx"
click node_admin "https://github.com/gabdorado123/pasigspot/blob/main/src/pages/AdminDashboardPage.jsx"
click node_reviews "https://github.com/gabdorado123/pasigspot/blob/main/src/components/TouristReviewsSection.jsx"
click node_spotstore "https://github.com/gabdorado123/pasigspot/blob/main/src/data/pasigSpotsStore.js"
click node_seedspots "https://github.com/gabdorado123/pasigspot/blob/main/src/data/pasigSpots.js"
click node_reviewdata "https://github.com/gabdorado123/pasigspot/blob/main/src/data/pasigReviewsData.js"
click node_transitdata "https://github.com/gabdorado123/pasigspot/blob/main/src/data/pasigTransitData.js"
click node_navbar "https://github.com/gabdorado123/pasigspot/blob/main/src/components/NavBar.jsx"
click node_toast "https://github.com/gabdorado123/pasigspot/blob/main/src/context/ToastContext.jsx"
click node_use_toast "https://github.com/gabdorado123/pasigspot/blob/main/src/context/useToast.js"
click node_spotimage "https://github.com/gabdorado123/pasigspot/blob/main/src/components/SpotImage.jsx"
click node_confirm "https://github.com/gabdorado123/pasigspot/blob/main/src/components/ConfirmModal.jsx"
click node_loading "https://github.com/gabdorado123/pasigspot/blob/main/src/components/LoadingPrimitives.jsx"
click node_banner "https://github.com/gabdorado123/pasigspot/blob/main/src/components/PasigCityscapeBanner.jsx"

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_landing,node_explore,node_spotdetails,node_ferry,node_commute,node_spotcard,node_storage toneAmber
class node_saved,node_profile,node_settings,node_admin,node_reviews toneMint
class node_spotstore,node_seedspots,node_reviewdata,node_transitdata toneRose
class node_navbar,node_toast,node_use_toast,node_spotimage,node_confirm,node_loading,node_banner,node_visitor toneIndigo
```

## Components

### Application Shell

- [Route App](https://github.com/gabdorado123/pasigspot/blob/main/src/App.jsx): `src/App.jsx`

### Destination Discovery

- [Landing](https://github.com/gabdorado123/pasigspot/blob/main/src/pages/LandingPage.jsx): `src/pages/LandingPage.jsx`
- [Explore Places](https://github.com/gabdorado123/pasigspot/blob/main/src/pages/ExplorePage.jsx): `src/pages/ExplorePage.jsx`
- [Spot Details](https://github.com/gabdorado123/pasigspot/blob/main/src/pages/SpotDetailsPage.jsx): `src/pages/SpotDetailsPage.jsx`
- [Ferry Guide](https://github.com/gabdorado123/pasigspot/blob/main/src/pages/FerryGuidePage.jsx): `src/pages/FerryGuidePage.jsx`
- [Commute Planner](https://github.com/gabdorado123/pasigspot/blob/main/src/components/CommutePlannerCard.jsx): `src/components/CommutePlannerCard.jsx`
- [Place Cards](https://github.com/gabdorado123/pasigspot/blob/main/src/components/SpotCard.jsx): `src/components/SpotCard.jsx`

### Visitor Engagement

- [Saved Places](https://github.com/gabdorado123/pasigspot/blob/main/src/pages/SavedSpotsPage.jsx): `src/pages/SavedSpotsPage.jsx`
- [Profile](https://github.com/gabdorado123/pasigspot/blob/main/src/pages/ProfilePage.jsx): `src/pages/ProfilePage.jsx`
- [Account Settings](https://github.com/gabdorado123/pasigspot/blob/main/src/pages/AccountSettingsPage.jsx): `src/pages/AccountSettingsPage.jsx`
- [Admin Dashboard](https://github.com/gabdorado123/pasigspot/blob/main/src/pages/AdminDashboardPage.jsx): `src/pages/AdminDashboardPage.jsx`
- [Tourist Reviews](https://github.com/gabdorado123/pasigspot/blob/main/src/components/TouristReviewsSection.jsx): `src/components/TouristReviewsSection.jsx`

### Local Data

- [Spot Store](https://github.com/gabdorado123/pasigspot/blob/main/src/data/pasigSpotsStore.js): `src/data/pasigSpotsStore.js`
- [Seed Destinations](https://github.com/gabdorado123/pasigspot/blob/main/src/data/pasigSpots.js): `src/data/pasigSpots.js`
- [Review Data](https://github.com/gabdorado123/pasigspot/blob/main/src/data/pasigReviewsData.js): `src/data/pasigReviewsData.js`
- [Transit Data](https://github.com/gabdorado123/pasigspot/blob/main/src/data/pasigTransitData.js): `src/data/pasigTransitData.js`

### Shared UI

- [Navigation Bar](https://github.com/gabdorado123/pasigspot/blob/main/src/components/NavBar.jsx): `src/components/NavBar.jsx`
- [Toast Provider](https://github.com/gabdorado123/pasigspot/blob/main/src/context/ToastContext.jsx): `src/context/ToastContext.jsx`
- [Toast Hook](https://github.com/gabdorado123/pasigspot/blob/main/src/context/useToast.js): `src/context/useToast.js`
- [Spot Image](https://github.com/gabdorado123/pasigspot/blob/main/src/components/SpotImage.jsx): `src/components/SpotImage.jsx`
- [Confirm Modal](https://github.com/gabdorado123/pasigspot/blob/main/src/components/ConfirmModal.jsx): `src/components/ConfirmModal.jsx`
- [Loading UI](https://github.com/gabdorado123/pasigspot/blob/main/src/components/LoadingPrimitives.jsx): `src/components/LoadingPrimitives.jsx`
- [Cityscape Banner](https://github.com/gabdorado123/pasigspot/blob/main/src/components/PasigCityscapeBanner.jsx): `src/components/PasigCityscapeBanner.jsx`

### Other components

- **Visitor**
- **Browser Storage**

## Connections

- Visitor → Route App: opens
- Route App → Landing: routes to (evidence: `src/App.jsx`)
- Route App → Explore Places: routes to (evidence: `src/App.jsx`)
- Route App → Spot Details: routes to (evidence: `src/App.jsx`)
- Route App → Ferry Guide: routes to (evidence: `src/App.jsx`)
- Route App → Saved Places: routes to (evidence: `src/App.jsx`)
- Route App → Profile: routes to (evidence: `src/App.jsx`)
- Route App → Account Settings: routes to (evidence: `src/App.jsx`)
- Route App → Admin Dashboard: routes to (evidence: `src/App.jsx`)
- Route App → Navigation Bar: renders (evidence: `src/App.jsx`)
- Route App → Toast Provider: provides (evidence: `src/App.jsx`)
- Route App → Spot Store: reads spots (evidence: `src/App.jsx`)
- Landing → Spot Store: reads places (evidence: `src/pages/LandingPage.jsx`)
- Explore Places → Spot Store: reads places (evidence: `src/pages/ExplorePage.jsx`)
- Spot Details → Commute Planner: renders (evidence: `src/pages/SpotDetailsPage.jsx`)
- Spot Details → Tourist Reviews: renders (evidence: `src/pages/SpotDetailsPage.jsx`)
- Spot Details → Spot Store: reads place (evidence: `src/pages/SpotDetailsPage.jsx`)
- Ferry Guide → Spot Store: reads advisory (evidence: `src/pages/FerryGuidePage.jsx`)
- Commute Planner → Transit Data: reads routes (evidence: `src/components/CommutePlannerCard.jsx`)
- Commute Planner → Spot Store: reads places (evidence: `src/components/CommutePlannerCard.jsx`)
- Explore Places → Place Cards: renders (evidence: `src/pages/ExplorePage.jsx`)
- Tourist Reviews → Review Data: updates reviews (evidence: `src/components/TouristReviewsSection.jsx`)
- Admin Dashboard → Spot Store: saves places (evidence: `src/pages/AdminDashboardPage.jsx`)
- Spot Store → Seed Destinations: loads defaults (evidence: `src/data/pasigSpotsStore.js`)
- Spot Store → Browser Storage: reads and writes (evidence: `src/data/pasigSpotsStore.js`)
- Review Data → Browser Storage: persists reviews (evidence: `src/data/pasigReviewsData.js`)
- Navigation Bar → Spot Store: reads places (evidence: `src/components/NavBar.jsx`)
- Tourist Reviews → Toast Hook: uses (evidence: `src/components/TouristReviewsSection.jsx`)
- Toast Hook → Toast Provider: reads context (evidence: `src/context/useToast.js`)
- Toast Provider → Toast Hook: exposes context (evidence: `src/context/useToast.js`)
- Place Cards → Spot Image: renders (evidence: `src/components/SpotCard.jsx`)
- Spot Details → Spot Image: renders (evidence: `src/pages/SpotDetailsPage.jsx`)
- Admin Dashboard → Spot Image: renders (evidence: `src/pages/AdminDashboardPage.jsx`)
- Profile → Confirm Modal: uses (evidence: `src/pages/ProfilePage.jsx`)
- Account Settings → Confirm Modal: uses (evidence: `src/pages/AccountSettingsPage.jsx`)
- Landing → Cityscape Banner: renders (evidence: `src/pages/LandingPage.jsx`)
- Explore Places → Cityscape Banner: renders (evidence: `src/pages/ExplorePage.jsx`)
- Route App → Loading UI: renders (evidence: `src/App.jsx`)
