How dan-carlo-villafranca/kaya-website works
KAYA is a browser-based marketplace connecting clients with job seekers. The visible workflow supports account registration or login, role-based routing, job-seeker profile completion, and a job-seeker dashboard; a separate search page filters sample worker listings. Supabase supplies authentication and profile records. The client dashboard is present in the tree, but its behavior is unsampled, and the search implementation shows local sample data rather than a backend query, so those links are not inferred.
Main entry points: supabase.js Supabase client · app.js Session guard · profile.js Profile editor · login.html Login & register
Components 14
Accounts & access
- Login & register
pages/login.html - Account auth
js/auth.js - Session guard
js/app.js - Supabase client
js/supabase.js
Worker profiles
- Profile form
pages/profile.html - Profile editor
js/profile.js - Profiles table
- Job-seeker dashboard
js/jobseeker-dashboard.js - Client dashboard
pages/client-dashboard.html
Marketplace
- Worker search
pages/search.html - Search & filters
js/search.js - Landing page
index.html
Other components
- Visitor
- Supabase
Connections 15
- Visitor → Login & register: opens
- Login & register → Account auth: submits credentials
- Account auth → Supabase client: authenticates via
js/auth.js - Supabase client → Supabase: auth and profile requests
js/supabase.js - Session guard → Supabase client: checks session
js/app.js - Session guard → Client dashboard: routes client
js/app.js - Session guard → Job-seeker dashboard: routes job seeker
js/app.js - Session guard → Profile form: requires completion
js/app.js - Profile form → Profile editor: loads form
- Profile editor → Supabase client: loads current user
js/profile.js - Profile editor → Profiles table: upserts profile
js/profile.js - Job-seeker dashboard → Supabase client: loads user profile
js/jobseeker-dashboard.js - Worker search → Search & filters: renders listings
- Visitor → Worker search: searches workers
- Visitor → Landing page: browses