How trngclone-lab9262/prompt-weaver works
DYNAMO VIETNAM MC - MES is a role-aware manufacturing execution interface for production control. The user enters through the landing page, signs in or registers, and authenticated users reach a workspace for production monitoring and shop-floor workflows. Documented capabilities include Plan vs Actual timelines and KPIs, machine status, Shinko lists, work orders, personal jobs, imports, and audit history. The sampled code confirms Supabase-backed authentication and role lookup, plus timeline rendering; feature-page data wiring was not sampled, so those connections are intentionally not asserted.
Main entry points: AppShell.tsx Application Shell · client.ts Supabase Client · route.tsx Authenticated Guard · index.tsx Landing Page
Components 19
Access and Workspace
- Landing Page
src/routes/index.tsx - Sign-in / Signup
src/routes/auth.tsx - Authenticated Guard
src/routes/_authenticated/route.tsx - Application Shell
src/components/AppShell.tsx
Production Monitoring
- Dashboard and KPIs
src/routes/_authenticated/dashboard.tsx - Production Timeline
src/routes/_authenticated/timeline.tsx - Timeline Renderer
src/components/Timeline.tsx - Machine Status
src/routes/_authenticated/machines.tsx - Shinko List
src/routes/_authenticated/shinko.tsx
Shop Floor Operations
- Work Orders
src/routes/_authenticated/work-orders.tsx - My Jobs
src/routes/_authenticated/my-jobs.tsx - Production Import
src/routes/_authenticated/import.tsx - Audit History
src/routes/_authenticated/audit.tsx
Shared Services
- Session and Roles
src/hooks/useAuth.ts - MES Domain Helpers
src/lib/mes.ts - CSV Mapping
src/lib/csv-map.ts - Supabase Client
src/integrations/supabase/client.ts
Other components
- MES User
- Supabase Service
Connections 15
- MES User → Landing Page: opens
- Landing Page → Sign-in / Signup: signs in
- Sign-in / Signup → Supabase Client: authenticates
- Authenticated Guard → Supabase Client: checks user
- Authenticated Guard → Application Shell: renders
- Application Shell → Dashboard and KPIs: hosts route
- Application Shell → Production Timeline: hosts route
- Application Shell → Machine Status: hosts route
- Application Shell → Shinko List: hosts route
- Application Shell → Work Orders: hosts route
- Application Shell → My Jobs: hosts route
- Application Shell → Production Import: hosts route
- Application Shell → Audit History: hosts route
- Session and Roles → Supabase Client: reads session and roles
- Supabase Client → Supabase Service: queries