Objective
- On Attik-native jobs that use Spectora reports, the Inspector block on the client report should show only the inspector(s) associated with that specific report — not all inspectors assigned to the Attik job.
- When a client opens an additional report (one associated with a charge that has its own assigned inspector), only that report's inspector should appear in the Inspector block.
Background
- ATT-1606 fixed
ReportHeaderto preferreport.inspectorsfrom the Spectora report JSON over Attik job inspectors, with Attik inspectors as a fallback whenreport.inspectorsis empty. - The fallback condition in
ReportHeader.tsx(useAttikInspectorFallback) fires whenspectoraInspectorRows.length === 0. When it fires, it passes all Attik job-level inspectors — not just the one assigned to the relevant charge. - Spectora always populates
report.inspectorson 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. - In
page.tsx,inspectionInspectorsis passed toReportHeaderasserverInspection._inspectorId— the full set of job-level Attik inspector IDs, unfiltered by charge or report. - Reported June 23, 2026 by Sheryl Floyd via Google Chat: an additional report was showing both the primary HI and the additional service inspector in the Inspector block.
Product Decisions
Locked
- Report scope — Only the inspector(s) associated with the specific report should appear in the Inspector block. Inspectors assigned to other services on the same job should not appear.
- Fallback behavior — If
report.inspectorsis empty, fall back to the charge/event-assigned inspector from the Attik job (not all job-level inspectors). - Spectora sync —
report.inspectorsis 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. - No Attik-native report path — This issue applies only to Spectora reports rendered on Attik-native jobs. The Attik native report renderer (
/reports/v2/) is out of scope.
Scope
Frontend
attik-frontend/src/app/client/reports/components/ReportHeader.tsx— TheuseAttikInspectorFallbackbranch passes allinspectionInspectorswhenspectoraInspectorRowsis empty. This needs to be scoped to the charge/event-assigned inspector only.attik-frontend/src/app/client/reports/[slug]/page.tsx—inspectionInspectorsis currently passed asserverInspection._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 toReportHeader.
References
- ATT-1606 — Prior fix: prefer Spectora
report.inspectorsover Attik job inspectors inReportHeader - Attik-Field-Service-Solutions/attik-frontend#712 — ATT-1606 implementation
- Reported job: https://www.attik.ai/inspections/1008601330