Add worker kiosk barcode scanning (TC-07 to TC-09)
Summary
- Added a worker kiosk interface with station selection and production-job barcode entry
- Added validation for active production-job barcodes
- Added validation that the barcode is scanned at the assigned production station
- Displayed the job name, barcode, production instruction, photo reference, and required parts after a valid scan
- Added clear error messages for unknown barcodes and incorrect stations
- Added Worker Kiosk links to the administrative navigation
- Kept barcode scanning read-only so rejected scans do not modify production data
Revised Test Cases
TC-07 — Valid barcode at the correct station
When the barcode of an active production job is scanned at the station assigned to its current production step, the worker kiosk displays:
- Production job name and barcode
- Assigned station
- Step number
- Production instruction
- Instruction photo reference, when available
- Required parts and quantities
For the current increment, the first configured production step is treated as the current step. Production-step progression will be implemented in the next increment.
TC-08 — Unknown barcode
When an unrecognized barcode is entered, the worker kiosk displays Barcode not recognized. No job, step, barcode, inventory, or production status is changed.
TC-09 — Valid barcode at the wrong station
When a valid active-job barcode is scanned at a station other than the station assigned to its current step, the worker kiosk displays This job is not ready at this station. Production instructions are not displayed, and no production data is changed.
Verification
Automated test suite:
python -m pytest -v
Result:
9 passed
This includes TC-01 through TC-09, with no regression in the existing job-creation and inventory-activation tests.
Manual verification completed:
- Valid active-job barcode at Station 1 displayed the correct instruction and required part
- Unknown barcode displayed the expected error
- Valid barcode scanned at the wrong station displayed the expected station error
- Worker kiosk navigation links opened successfully