How imad-18/windshield-quality-checker works
Windshield Quality Checker is a quality-control and traceability application: an operator starts a windshield test, the backend streams measurement readings, evaluates the result, records it, and may print a label. A separate dashboard provides historical results, statistics, and export. The README contains only the product title, so dashboard capabilities are supported by the sampled source rather than README documentation. Some internal modules were not excerpted; links to them rely on the SOURCE INDEX or are omitted where invocation is not shown.
Main entry points: app.py Test API · home.component.ts Test Screen · database.py Database Sessions · measurement.py Measurement
Components 20
Operator Interface
- Test Screen
windshield-tester/src/app/components/windshield-home/home.component.ts - App Shell
windshield-tester/src/app/app.component.ts - App Routes
windshield-tester/src/app/app.routes.ts - Dashboard View
windshield-tester/src/app/components/windshield-dashboard/dashboard.component.ts - Dashboard Client
windshield-tester/src/app/components/windshield-dashboard/dashboard.service.ts
Test Execution
- Test API
backend/app.py - Measurement
backend/measurement.py - Evaluation
backend/evaluation.py - Label Printer
backend/printer.py
Records and Reporting
- Dashboard API
backend/dashboard_router.py - Database Sessions
backend/database.py - Test Record Model
backend/models.py - Test Records
backend/models.py
Device and Preferences
- Runtime Settings
backend/config.py - Translations
windshield-tester/src/app/services/translate.service.ts - Translation Pipe
windshield-tester/src/app/pipes/translate.pipe.ts - Theme Preferences
windshield-tester/src/app/services/theme.service.ts
Other components
- Operator
- Power Supply
- Label Printer Device
Connections 25
- Operator → Test Screen: starts test
windshield-tester/src/app/components/windshield-home/home.component.ts - App Routes → Test Screen: routes to
windshield-tester/src/app/app.routes.ts - App Routes → Dashboard View: routes to
windshield-tester/src/app/app.routes.ts - Test Screen → Test API: streams test
windshield-tester/src/app/components/windshield-home/home.component.ts - Test API → Measurement: reads readings
backend/app.py - Test API → Evaluation: evaluates readings
backend/app.py - Test API → Database Sessions: stores test
backend/app.py - Test API → Label Printer: prints label
backend/app.py - Measurement → Power Supply: reads device
- Label Printer → Label Printer Device: prints to
- Test API → Dashboard API: registers routes
backend/app.py - Dashboard View → Dashboard Client: requests data
windshield-tester/src/app/components/windshield-dashboard/dashboard.component.ts - Dashboard Client → Dashboard API: calls endpoints
- Dashboard API → Database Sessions: queries records
backend/dashboard_router.py - Database Sessions → Test Record Model: creates tables
backend/database.py - Database Sessions → Test Records: persists rows
backend/database.py - Test Record Model → Test Records: defines schema
backend/models.py - App Shell → Theme Preferences: uses preferences
windshield-tester/src/app/app.component.ts - App Shell → Translations: selects language
windshield-tester/src/app/app.component.ts - Test Screen → Theme Preferences: uses preferences
windshield-tester/src/app/components/windshield-home/home.component.ts - Test Screen → Translations: selects language
windshield-tester/src/app/components/windshield-home/home.component.ts - Translation Pipe → Translations: translates text
windshield-tester/src/app/pipes/translate.pipe.ts - Measurement → Runtime Settings: reads settings
backend/measurement.py - Evaluation → Runtime Settings: reads settings
backend/evaluation.py - Label Printer → Runtime Settings: reads settings
backend/printer.py