How jaishilautomation-maker/automation works
This is a factory-operations web app spanning production, stores, pulveriser operations and laboratory quality control. Staff enter and review operational records; lab workflows additionally create batches, finalize QC, generate emailed reports, and exchange finalized QC records with the A-20 system. The tree and sampled routes establish these server-side integrations, but most page implementations were not sampled, so page-to-storage wiring is shown only where documented, not inferred across the product.
Main entry points: generate-filled-report.ts Report builder · notify/route.ts Notification API · send/route.ts QC exchange sender · retry-pending/route.ts Exchange retries
Components 26
Factory Operations
- Operations dashboard
app/(app)/dashboard/page.tsx - Production records
app/(app)/operator/page.tsx - Maintenance
app/(app)/maintenance/page.tsx - Breakdown records
app/(app)/breakdown/page.tsx - Packing operations
app/(app)/packing-breakdown/page.tsx - Production job cards
app/(app)/production-job-card/page.tsx - Stores management
app/(app)/stores/page.tsx - Pulveriser workflows
app/(app)/pulveriser/production/page.tsx
Lab Quality
- QC workflows
app/(app)/lab-qc/page.tsx - QC records and search
app/(app)/lab-qc/records/page.tsx - QC imports
app/(app)/lab-qc/qc-imports/page.tsx - Batch creation API
app/api/lab-qc/create-batch/route.ts - Report generation API
app/api/lab-qc/generate-report/route.ts - Report builder
lib/reports/generate-filled-report.ts
Identity and Data
- Authentication
app/(auth)/login/page.tsx - User profile API
app/api/auth/profile/route.ts - Supabase
External Integrations
- Notification API
app/api/notify/route.ts - Sheets synchronization
lib/notifications/sheets-sync.ts - Email service
- Google Sheets
- QC exchange sender
app/api/qc-exchange/send/route.ts - QC exchange receiver
app/api/qc-exchange/receive/route.ts - Exchange retries
app/api/qc-exchange/retry-pending/route.ts - A-20 system
Other components
- Factory staff
Connections 26
- Factory staff → Authentication: signs in
- Factory staff → Operations dashboard: uses
- Factory staff → Production records: records
- Factory staff → Maintenance: records
- Factory staff → Breakdown records: records
- Factory staff → Packing operations: records
- Factory staff → Production job cards: records
- Factory staff → Stores management: manages
- Factory staff → Pulveriser workflows: operates
- Factory staff → QC workflows: records
- Factory staff → QC records and search: reviews
- Factory staff → QC imports: reviews
- Batch creation API → Supabase: creates batch and QC rows
- Report generation API → Report builder: generates report
- Report builder → Supabase: reads record
- Report builder → Email service: emails report
- User profile API → Supabase: reads profile
- Notification API → Email service: sends email
- Notification API → Sheets synchronization: dispatches sheet sync
- Sheets synchronization → Google Sheets: writes rows
- QC exchange sender → Supabase: writes exchange log
- QC exchange sender → A-20 system: sends signed QC
- A-20 system → QC exchange receiver: posts QC payload
- QC exchange receiver → Supabase: stores imported QC
- Exchange retries → Supabase: reads pending log
- Exchange retries → A-20 system: retries delivery