ReportHeader to prefer report.inspectors from the Spectora report JSON over Attik job inspectors, with Attik inspectors as a fallback when report.inspectors is empty.ReportHeader.tsx (useAttikInspectorFallback) fires when spectoraInspectorRows.length === 0. When it fires, it passes all Attik job-level inspectors — not just the one assigned to the relevant charge.report.inspectors on reports regardless of type. When the value is empty on an Attik-native job, the cause is in the display or data-passing layer, not Spectora sync.page.tsx, inspectionInspectors is passed to ReportHeader as serverInspection._inspectorId — the full set of job-level Attik inspector IDs, unfiltered by charge or report.report.inspectors is empty, fall back to the charge/event-assigned inspector from the Attik job (not all job-level inspectors).report.inspectors is always populated by Spectora regardless of report type. Empty values indicate a display or data-passing issue, not a sync gap. No backend sync changes required./reports/v2/) is out of scope.attik-frontend/src/app/client/reports/components/ReportHeader.tsx — The useAttikInspectorFallback branch passes all inspectionInspectors when spectoraInspectorRows is empty. This needs to be scoped to the charge/event-assigned inspector only.attik-frontend/src/app/client/reports/[slug]/page.tsx — inspectionInspectors is currently passed as serverInspection._inspectorId (all job-level inspectors). The charge/event assignment for this specific report needs to be resolved here or in a helper before being passed to ReportHeader.report.inspectors over Attik job inspectors in ReportHeaderPlease authenticate to join the conversation.
Planned
Main App
About 19 hours ago
Linear
Get notified by email when there are changes.
Planned
Main App
About 19 hours ago
Linear
Get notified by email when there are changes.