attik-frontend/src/components/task-check/IsPublished.tsx) keys off inspection-level published: false, not per-report readiness; that does not answer "which individual reports are still open" when publishing rules are finer-grained than the job flag.event-inspection-report-status maps to inspection.reports.status and triggers an extra reports $lookup when building the lightweight inspection projection (attik-backend/src/routes/worklist.ts, with EVENT_INSPECTION_REPORT_ATTRIBUTES and related comments around the inspection join).event-inspection-report-status in attik-frontend/src/components/conditions/templatingData.ts—there is no parallel first-class condition key scoped to native inspection worklists in that file from the audit performed for this write-up.getInspectionPopulationPipeline in attik-backend/src/util/functions/aggregation/inspectionPopulation.ts supports includeReports (and populate including 'reports'), but the inspection worklist population branches in buildWorklistPopulationStages (attik-backend/src/routes/worklist.ts) call getInspectionPopulationPipeline with charges, payments, events, and people—without turning on includeReports in those branches—so list rows may not currently carry full report documents for UI breakdown unless something else populates them.attik-frontend/src/components/task-check/SingleJobsDropdown.tsx (payment notes, people, activity)—there is no report summary block there today, which is the natural place for the secondary "which reports are pending" detail if product wants it inline.Example from the request:
attik-backend/src/routes/worklist.ts owns buildWorklistFilterStages, separateConditions, requiresPopulation, buildWorklistPopulationStages, and GET /worklist/:id/data. Any inspection-type worklist rule that references report status or per-template publish state will need to fit this pipeline (including when conditions must run pre- vs post- population, and whether a reports join similar to the event path is required for inspections).attik-backend/src/models/worklistSchema.ts continues to store type, conditions, limit, sort, etc.; new semantics likely extend conditions and/or aggregation behavior rather than the minimal schema fields alone (decision needed on whether template id is encoded in the condition attribute key vs. structured values).attik-frontend/src/components/task-check/WorklistResolver.tsx and SingleJobsBar / SingleJobsDropdown; authoring uses attik-frontend/src/app/tools/work/NewWorklistDrawer.tsx and attik-frontend/src/components/conditions/Conditions with options driven from templatingData.ts.SingleJobsDropdown.tsx (or a child component) to show pending report identifiers when the populated inspection payload includes enough report metadata—decision needed on whether that requires always loading reports for this list or only when the row is expanded.attik-frontend/src/app/tools/work/[[...type]]/page.tsx, only as user-authored conditions, or both.limit up to 500 on the worklist model) vs. looser filters plus client-side refinement (not prescribing an approach—flag the tradeoff).attik-backend/src/routes/worklist.tsattik-backend/src/util/functions/aggregation/inspectionPopulation.tsattik-frontend/src/components/conditions/templatingData.tsattik-frontend/src/components/task-check/SingleJobsDropdown.tsxPlease authenticate to join the conversation.
Next Up
Main App
About 1 month ago
Linear
Get notified by email when there are changes.
Next Up
Main App
About 1 month ago
Linear
Get notified by email when there are changes.