How dzuy/landclub-platform works
Land Club is a property-discovery site with a staff content-management and member-access workspace. Visitors browse published property content; staff manage drafts, previews, publication, and revision history. Supporting capabilities include structured property facts, Notion synchronization, invitations and role assignments, member properties, profiles, and club events. The graph emphasizes these product stages and their storage/auth boundaries. Some implementation files were not sampled, so uncertain subsystem connections are omitted rather than inferred.
Main entry points: repository.ts Property repository · staff.ts Staff authorization · discovery-home.tsx Public discovery · client.ts Auth client
Components 22
Property discovery
- Public discovery
src/components/discovery-home.tsx - Property detail
src/components/property-page.tsx
Property content
- Property repository
src/lib/repository.ts - Property database
src/lib/database.ts - Property facts
src/lib/property-facts.ts - Notion sync
src/lib/notion-sync.ts - Revision history
src/lib/database.ts
Identity and membership
- Sign-in actions
src/app/signin/actions.ts - Auth client
src/lib/auth/client.ts - User identity
src/lib/auth/identity.ts - Staff authorization
src/lib/staff.ts - Invitations and roles
src/lib/invitations.ts - Supabase Auth
Staff workspace
- Member directory
src/app/staff/members/page.tsx - Property editor
src/components/property-editor.tsx - Property actions
src/app/staff/properties/actions.ts - Club events
src/lib/events.ts - Event management
src/app/staff/manage-events/actions.ts - Member properties
src/lib/member-properties.ts - Staff profile
src/lib/profile.ts
Other components
- Visitor
- Staff user
Connections 20
- Visitor → Public discovery: browses
- Public discovery → Property repository: reads published
- Property repository → Property database: queries
src/lib/repository.ts - Public discovery → Property detail: opens property
- Staff user → Sign-in actions: signs in
- Sign-in actions → Auth client: authenticates
src/app/signin/actions.ts - Auth client → Supabase Auth: uses
- User identity → Auth client: gets user
src/lib/auth/identity.ts - Staff authorization → User identity: checks identity
src/lib/staff.ts - Staff authorization → Invitations and roles: checks roles
src/lib/staff.ts - Member directory → Staff authorization: requires staff
src/app/staff/members/page.tsx - Member directory → Invitations and roles: loads invitations
src/app/staff/members/page.tsx - Property editor → Property actions: submits edits
src/components/property-editor.tsx - Property editor → Property facts: edits facts
src/components/property-editor.tsx - Property actions → Property repository: saves drafts
- Property repository → Revision history: records revisions
src/lib/repository.ts - Notion sync → Property repository: syncs property data
- Event management → Club events: manages events
src/app/staff/manage-events/actions.ts - Member properties → Property repository: reads properties
- Staff profile → Staff authorization: requires staff