How feluiz/agavepass works
1. Overall shape
- This is a React + TypeScript single-page invitation site for Danna’s XV, built with Vite and deployed through Firebase Hosting.
- The app is split into a public guest experience and a protected admin/operations area.
2. Public invitation experience
- The main guest-facing flow lives under src/pages/InvitationPage.tsx, likely assembled as the central landing/invitation screen.
- The README describes 6 intended sections: introduction, photo gallery, event details/location, Pinterest outfit inspiration, lodging suggestions, and countdown + WhatsApp RSVP.
3. Content and media subsystem
- Static assets are bundled in src/assets, including images and at least one music track (Dancing-Queen.mp3).
- FloatingPlayer.tsx suggests persistent background audio playback, which is part of the invitation ambiance rather than core navigation.
4. RSVP and guest interaction
- RSVP.tsx, RSVPModal.tsx, and ActionModal.tsx indicate a dedicated interaction flow for confirming attendance or triggering guest actions.
- The README’s “boton de confirmación por WhatsApp” suggests the RSVP path may ultimately hand off to WhatsApp rather than only storing responses locally.
5. Event and venue information
- EventsSelector.tsx, Accomodations.tsx, and VenueCheckIn.tsx point to multiple event-related pages:
- selecting among event details,
- showing lodging recommendations for out-of-town guests,
- and a check-in workflow for the venue or event staff.
- This implies the site supports both informational guest browsing and operational event management.
6. Admin subsystem
- AdminLogin.tsx, AdminDashboard.tsx, and layouts/AdminLayout.tsx define a separate admin experience.
- AdminAuthContext.tsx centralizes admin authentication state, while ProtectedRoute.tsx gates access to restricted routes.
- This is the main boundary between public invitation content and privileged operational tools.
7. App routing and composition
- src/main.tsx boots the app, and src/App.tsx is the likely route orchestrator.
- Pages are organized by route-level screens, while reusable pieces live in src/components, making the architecture fairly clean: pages for navigation targets, components for shared UI.
8. Firebase integration
- src/context/firebaseConfig.ts and the presence of the functions/ directory show Firebase is a real part of the architecture, not just hosting.
- The exact Firebase products are not explicit in the tree, but the project is set up for a client app plus serverless backend model.
9. Serverless backend
- functions/src/index.ts is the entry point for Firebase Cloud Functions.
- That backend is likely used for privileged or asynchronous workflows such as RSVP handling, event/admin actions, or data processing that should not live purely in the client.
10. Deployment boundary
- firebase.json, .firebaserc, and .firebase/hosting...cache indicate the site is configured for Firebase Hosting deployment.
- The frontend build is the primary deliverable, with Cloud Functions acting as the backend extension when needed.
11. Shared UI and state boundaries
- src/types/invitation.ts defines the domain model for invitation-related data.
- Shared state and app-wide behavior are concentrated in contexts and reusable components rather than duplicated across pages.
12. Diagramming takeaway
- A good architecture diagram should show:
- Guest browser → Firebase-hosted React app,
- public pages/components for invitation content and RSVP,
- a separate admin-authenticated branch for dashboard/check-in tools,
- and a Firebase Functions backend behind any privileged or server-side actions.
Main entry points: App.tsx App · InvitationPage.tsx Invitation · RSVP.tsx RSVP · index.ts Functions
Components 21
Frontend app
React/Vite client for the public invitation experience and admin UI.
- main.tsx · React app entrypoint
src/main.tsx - App · Route orchestration and top-level composition
src/App.tsx - Invitation · Primary public invitation experience
src/pages/InvitationPage.tsx - Landing · Alternate public landing screen
src/pages/AgavePassLanding.tsx - Events · Event details and selection flow
src/pages/EventsSelector.tsx - Lodging · Accommodation recommendations for guests
src/pages/Accomodations.tsx - Check-in · Venue or staff check-in workflow
src/pages/VenueCheckIn.tsx - RSVP · Attendance confirmation flow
src/components/RSVP.tsx - RSVP modal · RSVP interaction dialog
src/components/RSVPModal.tsx - Action modal · Generic action/confirmation dialog
src/components/ActionModal.tsx - Music player · Persistent background audio playback
src/components/FloatingPlayer.tsx - Admin login · Administrator sign-in screen
src/pages/AdminLogin.tsx - Dashboard · Operational admin console
src/pages/AdminDashboard.tsx - Admin layout · Shared frame for protected admin screens
src/layouts/AdminLayout.tsx - Protected route · Access gate for restricted routes
src/components/ProtectedRoute.tsx - Admin auth · Admin authentication state
src/context/AdminAuthContext.tsx - Firebase config · Client Firebase initialization
src/context/firebaseConfig.ts - Invitation types · Shared invitation data definitions
src/types/invitation.ts - Assets · Images and music used by the invitation
src/assets
Backend
Firebase Functions entry point for server-side workflows.
- Functions · Firebase serverless backend
functions/src/index.ts
Deployment
Firebase hosting and project configuration.
- Firebase Hosting · Hosting deployment and project setup
firebase.json
Connections 22
- main.tsx → App: boots · Client entry mounts the app shell
- App → Invitation: routes to · Primary guest experience
- App → Landing: routes to · Public landing entry
- App → Events: routes to · Event information flow
- App → Lodging: routes to · Guest lodging info
- App → Check-in: routes to · Operational venue flow
- App → Admin login: routes to · Admin sign-in
- App → Dashboard: routes to · Protected admin console
- Invitation → RSVP: uses · Invitation includes RSVP interaction
- RSVP → RSVP modal: opens · RSVP interaction is dialog-driven
- RSVP → Action modal: uses · Shared action confirmation UI
- Invitation → Music player: includes · Ambient audio player
- Invitation → Assets: loads · Photos and music assets
- App → Protected route: guards · Restricts admin-only routes
- Protected route → Admin auth: checks · Authorization state comes from context
- Dashboard → Admin layout: wrapped by · Admin screens share a common shell
- Admin auth → Firebase config: initializes from · Client auth depends on Firebase setup
- RSVP → Functions: may call · Server-side handling for RSVP or privileged actions
- Check-in → Functions: may call · Backend support for operational workflows
- App → Invitation types: shares · Common invitation domain model
- main.tsx → Firebase Hosting: deployed via · Frontend build is hosted on Firebase
- Functions → Firebase Hosting: paired with · Backend complements hosted client