How yakasama64652/va-client-tracker works
This repository is a company intranet and set of role-specific portals, with a Victory Volcano employee-recognition app embedded as a separate React experience. The main supported flow is PH Director sign-in handing identity to Victory Volcano, whose UI loads employee data and persists app state through a server endpoint. Other documented API responsibilities include session validation, portal access, training, and VA social/game features. Many top-level HTML pages are present but unsampled, so their internal flows are not inferred.
Main entry points: va-session.js VA and recognition API · App.jsx Recognition and social UI · storage.ts App state storage · main.tsx App entry and boundary
Components 19
Company Portals
- PH Director sign-in
index.html - Role-specific portals
VADashboard.html - Training portal
TrainingDept.html
Victory Volcano
- App entry and boundary
victory volcano/src/main.tsx - Recognition and social UI
victory volcano/src/App.jsx - Employee lookup
victory volcano/src/data/repositories.ts - Anniversary PDF import
victory volcano/src/lib/pdfImport.js - App integrations config
victory volcano/src/lib/config.ts - Recognition domain models
victory volcano/src/types/domain.ts - App state storage
victory volcano/src/lib/storage.ts
Server API
- Portal login and access APIs
api/teamlead-session.js - Session and access checks
api/_session.js - VA and recognition API
api/va-session.js - Mail relay helper
api/_mail.js
External Services
- Supabase data service
- Google identity
- Apps Script mail relay
- Browser local storage
Other components
- Company employees
Connections 18
- Company employees → PH Director sign-in: signs in
- PH Director sign-in → App entry and boundary: hands off identity
- App entry and boundary → Recognition and social UI: mounts
victory volcano/src/main.tsx - App entry and boundary → App state storage: installs storage
victory volcano/src/main.tsx - Recognition and social UI → Employee lookup: loads roster
victory volcano/src/App.jsx - Recognition and social UI → Anniversary PDF import: parses anniversaries
victory volcano/src/App.jsx - Recognition and social UI → App state storage: reads and writes
victory volcano/src/App.jsx - Employee lookup → VA and recognition API: requests employees
victory volcano/src/data/repositories.ts - App state storage → VA and recognition API: sends KV actions
victory volcano/src/lib/storage.ts - App state storage → Browser local storage: falls back to
victory volcano/src/lib/storage.ts - VA and recognition API → Session and access checks: verifies tokens
api/va-session.js - VA and recognition API → Supabase data service: reads and writes
api/va-session.js - Session and access checks → Supabase data service: checks access
api/_session.js - Portal login and access APIs → Session and access checks: mints and verifies
api/teamlead-session.js - Portal login and access APIs → Google identity: validates identity
api/teamlead-session.js - Training portal → Apps Script mail relay: sends task mail
- Mail relay helper → Apps Script mail relay: forwards mail
api/_mail.js - VA and recognition API → Supabase data service: serves feed and scores
api/va-session.js