How hisanochana/ebony-pulse works
This is a factory production-performance portal for apparel operations. Its main workflow is recording shift output and categorized downtime, then reviewing production and managing records. The source index identifies the major UI, calculation, spreadsheet, and Firebase modules, but the README is empty and App.tsx was not sampled, so some page-to-page routing and unsampled integrations cannot be verified; those links are omitted.
Main entry points: googleSheetService.ts Google Sheets service · ShiftEntryForm.tsx Shift entry · MasterDataTable.tsx Master data table · FirestoreSyncModal.tsx Firestore sync controls
Components 21
Production Entry
- Shift entry
src/components/ShiftEntryForm.tsx - Downtime entry
src/components/DowntimeEntryPanel.tsx - Style downtime detail
src/components/StyleDowntimeBreakdownModal.tsx - Hours adjustment
src/components/HoursAdjustmentModal.tsx - Downtime code catalog
src/data/downtimeCodes.ts
Operations Review
- Production dashboard
src/components/ProductionStatusPage.tsx - Master data table
src/components/MasterDataTable.tsx - Entry ID requests
src/components/EntryIdRequestModal.tsx - Portal hub
src/components/PortalHub.tsx
Data Services
- Google Sheets service
src/services/googleSheetService.ts - CSV parser
src/utils/csvParser.ts - Firestore sync controls
src/components/FirestoreSyncModal.tsx - Firestore sync
src/services/firestoreSync.ts - Firebase clients
src/services/firebase.ts - Firebase authentication
src/services/firebaseAuth.ts
Shared Platform
- Portal app
src/App.tsx - Authentication
src/components/AuthModal.tsx - Initial production data
src/data/initialData.ts - Production calculations
src/utils/calculations.ts - Theme preferences
src/context/ThemeContext.tsx
Other components
- Factory operator
Connections 24
- Factory operator → Portal app: opens portal
- Shift entry → Production calculations: generates entry IDs
src/components/ShiftEntryForm.tsx - Shift entry → Downtime entry: renders
src/components/ShiftEntryForm.tsx - Shift entry → Style downtime detail: opens detail
src/components/ShiftEntryForm.tsx - Shift entry → Hours adjustment: opens adjustment
src/components/ShiftEntryForm.tsx - Shift entry → Google Sheets service: submits records
src/components/ShiftEntryForm.tsx - Downtime entry → Downtime code catalog: uses catalog
src/components/DowntimeEntryPanel.tsx - Downtime entry → Google Sheets service: uses service
src/components/DowntimeEntryPanel.tsx - Production dashboard → Initial production data: uses defaults
src/components/ProductionStatusPage.tsx - Production dashboard → Google Sheets service: uses service
src/components/ProductionStatusPage.tsx - Master data table → Production calculations: uses calculations
src/components/MasterDataTable.tsx - Master data table → Initial production data: uses defaults
src/components/MasterDataTable.tsx - Master data table → Google Sheets service: manages records
src/components/MasterDataTable.tsx - Master data table → Entry ID requests: renders requests
src/components/MasterDataTable.tsx - Master data table → Downtime code catalog: uses catalog
src/components/MasterDataTable.tsx - Google Sheets service → CSV parser: parses sheet data
src/services/googleSheetService.ts - Google Sheets service → Production calculations: normalizes records
src/services/googleSheetService.ts - Firestore sync controls → Firestore sync: invokes sync
src/components/FirestoreSyncModal.tsx - Firestore sync controls → Firebase clients: uses clients
src/components/FirestoreSyncModal.tsx - Firestore sync controls → Firebase authentication: uses authentication
src/components/FirestoreSyncModal.tsx - Firestore sync → Firebase clients: writes and reads
src/services/firestoreSync.ts - Authentication → Google Sheets service: checks server users
src/components/AuthModal.tsx - Authentication → Firebase authentication: uses authentication
src/components/AuthModal.tsx - Portal app → Theme preferences: wraps app
src/main.tsx