How sergilozada/controlbienesraices-villahermosa works
Control Bienes Raíces is a real-estate administration app for client, lot, and installment tracking. Users enter through Firebase authentication by default (or choose local mode at /welcome), then use a dashboard to register and manage clients, track payments, and view delinquency reports, payment statistics, and income projections. The Firebase context owns cloud client operations; the local context maintains browser-local data. README capability statements support the feature branches, but unsampled implementation details and some dashboard wiring are not asserted.
Main entry points: FirebaseAuthContext.tsx Firebase auth and clients · FirebaseDashboard.tsx Cloud dashboard · Dashboard.tsx Local dashboard · ClientList.tsx Client and payment records
Components 18
Application entry
- App routing
src/App.tsx - Firebase login
src/pages/FirebaseLogin.tsx - Local login
src/pages/Login.tsx - Cloud dashboard
src/pages/FirebaseDashboard.tsx - Local dashboard
src/pages/Dashboard.tsx
Authentication and data
- Firebase auth and clients
src/context/FirebaseAuthContext.tsx - Local auth and clients
src/context/AuthContext.tsx - Firebase setup
src/services/firebase.ts
Client and payment management
- Client registration
src/components/FirebaseClientForm.tsx - Client and payment records
src/components/ClientList.tsx - Payment schedule
src/config/paymentSchedule.ts - Schedule migration rules
src/types/paymentMigration.ts
Financial insights
- Debtor report
src/components/DelinquentClientsReport.tsx - Income projection
src/components/ProjectionView.tsx - Payment statistics
src/components/StatsView.tsx
Shared interface
- UI primitives
src/components/ui
Other components
- Administrator
- Firebase services
Connections 30
- Administrator → App routing: opens
src/App.tsx - App routing → Firebase login: routes unauthenticated
src/App.tsx - App routing → Cloud dashboard: routes authenticated
src/App.tsx - App routing → Local login: selects local mode
src/App.tsx - App routing → Local dashboard: selects local mode
src/App.tsx - Firebase login → Firebase auth and clients: authenticates with
src/pages/FirebaseLogin.tsx - Local login → Local auth and clients: authenticates with
src/pages/Login.tsx - Cloud dashboard → Firebase auth and clients: reads cloud state
src/pages/FirebaseDashboard.tsx - Local dashboard → Local auth and clients: reads local state
src/pages/Dashboard.tsx - Firebase auth and clients → Firebase setup: uses configuration
src/context/FirebaseAuthContext.tsx - Firebase auth and clients → Firebase services: reads and writes
src/context/FirebaseAuthContext.tsx - Cloud dashboard → Client registration: renders
src/pages/FirebaseDashboard.tsx - Cloud dashboard → Client and payment records: renders
src/pages/FirebaseDashboard.tsx - Cloud dashboard → Debtor report: renders
src/pages/FirebaseDashboard.tsx - Cloud dashboard → Income projection: renders
src/pages/FirebaseDashboard.tsx - Cloud dashboard → Payment statistics: renders
src/pages/FirebaseDashboard.tsx - Local dashboard → Client registration: renders
- Local dashboard → Client and payment records: renders
src/pages/Dashboard.tsx - Local dashboard → Debtor report: renders
src/pages/Dashboard.tsx - Local dashboard → Income projection: renders
src/pages/Dashboard.tsx - Local dashboard → Payment statistics: renders
src/pages/Dashboard.tsx - Client registration → Firebase auth and clients: submits client data
src/components/FirebaseClientForm.tsx - Client and payment records → Firebase auth and clients: uses client state
src/components/ClientList.tsx - Client and payment records → Payment schedule: uses schedule rules
src/components/ClientList.tsx - Client and payment records → Schedule migration rules: uses migration rules
src/components/ClientList.tsx - Debtor report → Firebase auth and clients: reads client data
src/components/DelinquentClientsReport.tsx - Income projection → Firebase auth and clients: reads client data
src/components/ProjectionView.tsx - Payment statistics → Firebase auth and clients: reads client data
src/components/StatsView.tsx - Firebase login → UI primitives: uses controls
src/pages/FirebaseLogin.tsx - Client and payment records → UI primitives: uses controls
src/components/ClientList.tsx