How fph-dev89/traqhaccp works
TraqHACCP is a French PWA for a pâtisserie’s HACCP sanitary register. The main workflow boots the app, authenticates an establishment, loads its register, and renders operational views; staff then record and manage traceability data, which can synchronize with Supabase and support recall and inspection reporting. The graph also preserves documented offline operation and the product’s regulatory, settings, and DDPP-document capabilities. Several domain features are documented but their detailed implementation was not sampled, so their internal links are omitted.
Main entry points: state.js Register state and persistence · views.js Operational views · app.js App entry and navigation · modals.js Register forms
Components 23
App workflow
- App entry and navigation
js/patisserie/app.js - Establishment authentication
js/patisserie/auth.js - Operational views
js/patisserie/views.js - Audio and toast feedback
js/patisserie/audio-toast.js
Register operations
- Register forms
js/patisserie/modals.js - HACCP and recipe calculations
js/patisserie/calculations.js - Establishment settings
js/patisserie/settings.js - Register configuration
js/patisserie/settings-data.js - Label scanning
js/patisserie/ai-scanner.js
Data and platform
- Register state and persistence
js/patisserie/state.js - Cloud synchronization
js/patisserie/sync.js - Supabase client
src/infrastructure/supabase_client.js - Runtime configuration
src/infrastructure/config.js - Offline PWA cache
sw.js
Compliance and reporting
- Norm settings
js/patisserie/settings-norms.js - Regulatory thresholds
src/domain/haccp_norms.js - HACCP reference data
src/domain/constants.js - Product recall
js/patisserie/recall.js - DDPP documents
src/presentation/ddpp_documents.js - PDF report generation
src/presentation/ddpp_report.js - Register archive
src/presentation/archive_registre.js
Other components
- Pâtisserie staff
- Supabase service
Connections 39
- Pâtisserie staff → App entry and navigation: uses
README.md - App entry and navigation → Establishment authentication: initializes
js/patisserie/app.js - App entry and navigation → Operational views: renders
js/patisserie/app.js - App entry and navigation → Register forms: opens
js/patisserie/app.js - App entry and navigation → Product recall: invokes
js/patisserie/app.js - App entry and navigation → Audio and toast feedback: uses
js/patisserie/app.js - Establishment authentication → Supabase client: authenticates
js/patisserie/auth.js - Establishment authentication → Cloud synchronization: starts sync
js/patisserie/auth.js - Establishment authentication → Register state and persistence: loads establishment
js/patisserie/auth.js - Establishment authentication → Operational views: refreshes
js/patisserie/auth.js - Register forms → Register state and persistence: updates
js/patisserie/modals.js - Register forms → Operational views: refreshes
js/patisserie/modals.js - Register forms → HACCP and recipe calculations: calculates
js/patisserie/modals.js - Register forms → Label scanning: scans labels
js/patisserie/modals.js - Register forms → Audio and toast feedback: plays feedback
js/patisserie/modals.js - Operational views → Register state and persistence: reads
js/patisserie/views.js - Operational views → HACCP and recipe calculations: calculates metrics
js/patisserie/views.js - Operational views → Establishment settings: renders settings
js/patisserie/views.js - Operational views → Regulatory thresholds: reads thresholds
js/patisserie/views.js - Establishment settings → Register state and persistence: reads and saves
js/patisserie/settings.js - Establishment settings → Cloud synchronization: schedules upload
js/patisserie/settings.js - Establishment settings → Register configuration: uses
js/patisserie/settings.js - Establishment settings → Norm settings: uses
js/patisserie/settings.js - Establishment settings → HACCP reference data: uses
js/patisserie/settings.js - Norm settings → Regulatory thresholds: uses thresholds
js/patisserie/settings-norms.js - Register configuration → Register state and persistence: uses
js/patisserie/settings-data.js - Register configuration → HACCP reference data: uses
js/patisserie/settings-data.js - HACCP and recipe calculations → Register state and persistence: reads
js/patisserie/calculations.js - Product recall → Register state and persistence: reads register
js/patisserie/recall.js - Product recall → DDPP documents: uses
js/patisserie/recall.js - Product recall → PDF report generation: uses
js/patisserie/recall.js - DDPP documents → Regulatory thresholds: uses
src/presentation/ddpp_documents.js - DDPP documents → PDF report generation: builds documents
src/presentation/ddpp_documents.js - Register archive → PDF report generation: uses
src/presentation/archive_registre.js - Cloud synchronization → Supabase client: synchronizes via
js/patisserie/sync.js - Cloud synchronization → Register state and persistence: reads register
js/patisserie/sync.js - Supabase client → Runtime configuration: reads configuration
src/infrastructure/supabase_client.js - Supabase client → Supabase service: calls API
README.md - Offline PWA cache → Pâtisserie staff: supports offline use
README.md