How lorenadacup/website_casafinder works
CasaFinder is a Gumaca housing and rental portal. The principal workflow brings tenants and landlords into the app, lets them browse listings and nearby locations, and presents listing details; landlords also have profile and listing-management flows. The map combines local school, barangay, and street information. Account, listing, and approval operations use a Supabase-backed service. The README is empty, so capabilities are inferred from the source index and excerpts; some component connections are supported only by indexed references, not inspected call sites.
Main entry points: App.tsx Portal and workflows · NeighborhoodMap.tsx Neighborhood map · properties.ts Property listings · mapConstants.ts Map constants
Components 27
App and Accounts
- React entry
src/main.tsx - Portal and workflows
src/App.tsx - Tenant profile
src/components/TenantProfileModal.tsx - Landlord profile
src/components/LandlordProfileModal.tsx - Admin profile
src/components/LandlordAdminProfileModal.tsx - About information
src/components/AboutModal.tsx - Navigation information
src/components/NavInfoModal.tsx
Housing Listings
- Property listings
src/data/properties.ts - Demo listings
src/data/studentDemos.ts - Listing card
src/components/PropertyCard.tsx - Listing details
src/components/PropertyModal.tsx - Search results
src/components/SearchResults.tsx - Posting location
src/components/PostingLocationMap.tsx
Map and Places
- Neighborhood map
src/components/NeighborhoodMap.tsx - Map markers
src/components/MapMarkers.tsx - Map controls
src/components/MapControls.tsx - School editing
src/components/SchoolEditingSystem.tsx - Barangay boundaries
src/components/BarangayBoundarySystem.tsx - Arrow markers
src/components/ArrowMarkersSystem.tsx - Street information
src/components/StreetInfoPanel.tsx - Map constants
src/utils/mapConstants.ts - Schools and distances
src/utils/schoolDistances.ts - Street lookup
src/utils/streetInfo.ts
Shared Services
- Database service
src/utils/db.ts - Supabase client
src/utils/supabase.ts - Translations
src/utils/translations.ts
Other components
- Tenant or landlord
Connections 41
- Tenant or landlord → React entry: opens
- React entry → Portal and workflows: renders
src/main.tsx - Portal and workflows → Property listings: uses listings
src/App.tsx - Portal and workflows → Demo listings: uses demos
src/App.tsx - Portal and workflows → Database service: loads and saves
src/App.tsx - Portal and workflows → Listing details: opens details
src/App.tsx - Portal and workflows → Tenant profile: opens profile
src/App.tsx - Portal and workflows → Landlord profile: opens profile
src/App.tsx - Portal and workflows → Admin profile: uses
src/App.tsx - Portal and workflows → About information: uses
src/App.tsx - Portal and workflows → Navigation information: uses
src/App.tsx - Portal and workflows → Neighborhood map: renders
src/App.tsx - Portal and workflows → Posting location: uses
src/App.tsx - Portal and workflows → Translations: uses
src/App.tsx - Listing card → Property listings: reads listings
src/components/PropertyCard.tsx - Listing details → Property listings: reads listing
src/components/PropertyModal.tsx - Search results → Property listings: uses listing type
src/components/SearchResults.tsx - Landlord profile → Property listings: reads listings
src/components/LandlordProfileModal.tsx - Database service → Supabase client: queries
src/utils/db.ts - Database service → Property listings: maps listing data
src/utils/db.ts - Demo listings → Property listings: reuses listings
src/data/studentDemos.ts - Neighborhood map → Map constants: uses map config
src/components/NeighborhoodMap.tsx - Neighborhood map → Schools and distances: gets schools
src/components/NeighborhoodMap.tsx - Neighborhood map → Street lookup: looks up streets
src/components/NeighborhoodMap.tsx - Neighborhood map → Property listings: maps listings
src/components/NeighborhoodMap.tsx - Neighborhood map → Map controls: renders controls
src/components/NeighborhoodMap.tsx - Neighborhood map → Map markers: renders markers
src/components/NeighborhoodMap.tsx - Neighborhood map → School editing: renders editor
src/components/NeighborhoodMap.tsx - Neighborhood map → Street information: renders panel
src/components/NeighborhoodMap.tsx - Neighborhood map → Search results: renders results
src/components/NeighborhoodMap.tsx - Neighborhood map → Arrow markers: renders arrows
src/components/NeighborhoodMap.tsx - Neighborhood map → Barangay boundaries: renders boundaries
src/components/NeighborhoodMap.tsx - Map markers → Property listings: uses listings
src/components/MapMarkers.tsx - Map markers → Schools and distances: uses distances
src/components/MapMarkers.tsx - Map markers → Map constants: uses map config
src/components/MapMarkers.tsx - Map controls → Map constants: uses map config
src/components/MapControls.tsx - School editing → Schools and distances: edits school data
src/components/SchoolEditingSystem.tsx - Arrow markers → Map constants: uses map config
src/components/ArrowMarkersSystem.tsx - Street information → Street lookup: uses street info
src/components/StreetInfoPanel.tsx - Street lookup → Barangay boundaries: loads polygons
src/utils/streetInfo.ts - Schools and distances → Map constants: uses map constants
src/utils/schoolDistances.ts