Menu

Audit kitchen exhaust scope and photo evidence in TypeScript
📰

Audit kitchen exhaust scope and photo evidence in TypeScript

DEV Community: typescript·eth shihao·4 days ago
#pEu4ubeU
Long article (1579 words) — no AI summary yet.
Reading 0:00
15s threshold

The crew marks a duct section cleaned , but the photo index contains only its before photo. The same job records a rooftop fan as inaccessible . Both records need follow-up. One needs an after photo and the other needs an access plan.

Bind each photo to its system and component

Use the pair (systemId, componentId) as the scope key. Two kitchens can both have a HOOD-01 . Each photo ID resolves to one system, component, and capture phase. A reference to P-06 , the after photo for KITCHEN-B/HOOD-01 , fails when attached to KITCHEN-A/HOOD-01 . An unknown photo ID or a duplicate index entry also fails before the audit issues a queue.

System / component Reported status Attached photos Follow-up

KITCHEN-A/HOOD-01 cleaned P-01 before, P-02 after

KITCHEN-A/DUCT-02 cleaned P-03 before MISSING_AFTER_PHOTO

KITCHEN-A/ROOF-FAN-01 inaccessible P-04 before INACCESSIBLE

KITCHEN-B/HOOD-01 cleaned P-05 before, P-06 after

Freeze the follow-up queue for each audit

The fixture asks for both phases when a component is…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.