How dgnoleto/escala-do-reino works
Escala do Reino is a church-access and worship-planning web application. The implemented user journey begins with sign-in, authorized access checking, and selecting or creating a church; members can then be managed and invited. Worship planning and live-service operation are preserved as a prototype and are not integrated with the database or exposed in the current flow. The graph keeps those product stages distinct from the shipped access workflows. Relationships reflect the excerpts, SOURCE INDEX references, and README; unsampled implementation details are not assumed.
Main entry points: App.jsx Application router · ChurchHomePage.jsx Church home · MembersPage.jsx Member management · invitationCommandService.js Invitation commands
Components 22
App entry and access
- Application router
src/App.jsx - Sign-in
src/components/LoginPage.jsx - Auth and access state
src/context/AuthContext.jsx
Church access governance
- Access pending
src/components/AccessPendingPage.jsx - Invitation redemption
src/components/InvitationFlowPage.jsx - Church home
src/components/ChurchHomePage.jsx - Create church
src/components/CreateChurchModal.jsx - Member management
src/components/MembersPage.jsx - Invitation administration
src/components/AdminInvitationsTab.jsx - Access requests
src/components/AdminRequestsTab.jsx
Worship prototype
- Worship state
src/context/AppContext.jsx - Worship planning
src/components/PlanningView.jsx - Teams and roles
src/components/TeamsPage.jsx - Live service console
src/components/LiveConsole.jsx - Service schedule
src/components/ScheduleView.jsx
Command services
- Supabase client
src/lib/supabaseClient.js - Church commands
src/utils/churchCommandService.js - Invitation commands
src/utils/invitationCommandService.js - Member commands
src/utils/memberCommandService.js - Liturgical commands
src/utils/liturgicalCommandService.js
Other components
- Church user
- Supabase Auth and RPC
Connections 30
- Church user → Application router: uses
README.md - Application router → Sign-in: routes to
src/App.jsx - Sign-in → Auth and access state: signs in through
src/context/AuthContext.jsx - Auth and access state → Supabase client: uses
src/context/AuthContext.jsx - Supabase client → Supabase Auth and RPC: creates client
src/lib/supabaseClient.js - Application router → Access pending: routes to
src/App.jsx - Application router → Invitation redemption: routes to
src/App.jsx - Application router → Church home: routes to
src/App.jsx - Auth and access state → Supabase Auth and RPC: checks access
src/context/AuthContext.jsx - Church home → Create church: opens
src/components/ChurchHomePage.jsx - Create church → Church commands: dispatches creation
src/components/CreateChurchModal.jsx - Church commands → Supabase Auth and RPC: calls RPC
src/utils/churchCommandService.js - Church home → Member management: opens
src/components/ChurchHomePage.jsx - Member management → Member commands: dispatches member actions
src/components/MembersPage.jsx - Member commands → Supabase Auth and RPC: submits RPC
src/utils/memberCommandService.js - Member management → Invitation administration: renders
src/components/MembersPage.jsx - Member management → Access requests: renders
src/components/MembersPage.jsx - Invitation administration → Invitation commands: uses
src/components/AdminInvitationsTab.jsx - Access requests → Invitation commands: uses
src/components/AdminRequestsTab.jsx - Invitation redemption → Invitation commands: uses
src/components/InvitationFlowPage.jsx - Invitation commands → Supabase Auth and RPC: supports invite RPC workflows
README.md - Church home → Teams and roles: opens
src/components/ChurchHomePage.jsx - Teams and roles → Liturgical commands: dispatches team actions
src/components/TeamsPage.jsx - Liturgical commands → Supabase Auth and RPC: calls RPC
src/utils/liturgicalCommandService.js - Application router → Worship planning: routes to
src/App.jsx - Application router → Live service console: routes to
src/App.jsx - Application router → Service schedule: routes to
src/App.jsx - Worship planning → Worship state: uses state
src/components/PlanningView.jsx - Live service console → Worship state: uses state
src/components/LiveConsole.jsx - Service schedule → Worship state: uses state
src/components/ScheduleView.jsx