How intuit-a4a/frontend-page-prism works
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: routes.jsx Route table · project.ts Project service · inspiration.ts Inspiration service · Navbar.jsx Navbar
Components 18
App shell
- Route table
src/routes.jsx - App outlet
src/App.jsx - App layout
src/layouts/AppLayout.jsx - Page title
src/hooks/usePageTitle.jsx
Navigation
- Navbar
src/components/Navbar.jsx - Desktop navigation
src/components/DesktopNavigation.jsx - Mobile navigation
src/components/MobileNavigation.jsx - Mobile menu button
src/components/MobileMenuButton.jsx - UI button
src/components/Button.jsx
Project workflow
- Dashboard
src/pages/Dashboard.jsx - Projects page
src/pages/Projects.jsx - Project detail
src/pages/ProjectDetail.jsx - Project service
src/services/project.ts
Inspiration and storage
- Inspiration service
src/services/inspiration.ts - Domain schema
src/models/schema.ts - Mock latency
src/utils/mockLatency.js - IndexedDB
src/utils/indexedDB.ts
Other components
- App user
Connections 24
- App user → Route table: opens app
- Route table → App outlet: routes through
src/routes.jsx - App outlet → App layout: wraps outlet
src/App.jsx - App layout → Navbar: renders
src/layouts/AppLayout.jsx - App layout → Page title: gets title
src/layouts/AppLayout.jsx - Navbar → Desktop navigation: renders
src/components/Navbar.jsx - Navbar → Mobile navigation: renders
src/components/Navbar.jsx - Navbar → Mobile menu button: renders
src/components/Navbar.jsx - Route table → Dashboard: routes to
src/routes.jsx - Route table → Projects page: routes to
src/routes.jsx - Route table → Project detail: routes to
src/routes.jsx - Projects page → Project service: loads and creates
src/pages/Projects.jsx - Project detail → Project service: loads project
src/pages/ProjectDetail.jsx - Projects page → UI button: renders
src/pages/Projects.jsx - Project detail → UI button: renders
src/pages/ProjectDetail.jsx - Project service → IndexedDB: reads and writes
src/services/project.ts - Inspiration service → IndexedDB: reads and writes
src/services/inspiration.ts - Project service → Mock latency: simulates delay
src/services/project.ts - Inspiration service → Mock latency: simulates delay
src/services/inspiration.ts - Project service → Domain schema: uses types
src/services/project.ts - Inspiration service → Domain schema: uses types
src/services/inspiration.ts - IndexedDB → Domain schema: types records
src/utils/indexedDB.ts - App user → Inspiration service: captures screenshots
README.md - App user → Inspiration service: organizes inspirations
README.md