Retrieves the complete operator step view data for a specific process step instance. This is the primary data source for the Step View page (/parts/step/[stepId]), providing everything needed to render the advancement panel, serial list, notes, and navigation controls in a single request.
The endpoint scans all jobs and paths to locate the step by ID, then assembles an aggregated response containing:
Job context — The WorkQueueJob object with job/path names, serial IDs at the step, navigation to previous/next steps, and whether this is the final step.
Notes — All step notes attached to this step (same data as GET /api/notes/step/:id).
Previous step WIP — For non-first steps with zero serials at the current step, the count of serials at the previous step is included. This helps the UI show "X parts coming soon" context.
The endpoint performs a full scan of all jobs → paths → steps to locate the step by ID. This is acceptable for the expected data volumes but could become slow with thousands of jobs.
The previousStepWipCount field is only included when the current step has zero serials and is not the first step. This provides "coming soon" context for empty downstream steps.
First steps (order 0) do not have previousStepId or previousStepName fields.
Final steps have isFinalStep: true and do not have nextStepId, nextStepName, or nextStepLocation fields.
The serialIds array contains the IDs of serials whose currentStepIndex matches this step's order within the path. Completed and scrapped serials are not included.