buildChangesForInsert() in src/util/functions/activity/changesBuilder.ts, which records only status (“Job created with status …”). datetime is defined in FIELD_LABELS and handled on update via buildGenericChangeDescription() in descriptionUtils.ts (“Inspection rescheduled”), not on insert.src/events/bullmq/activityLinkWorker.ts → buildChangesForInsert / buildChangesArray → Activity model (src/models/activitySchema.ts). Display: src/components/activityFeed/ActivityFeed.tsx, InspectionActivityFeed.tsx.datetime + endtime, formatted address, and/or inspector assignment in the same activity row vs. separate “scheduled for” line; timezone display should match inspection/company TZ patterns used elsewhere in the feed.Backend
src/util/functions/activity/changesBuilder.ts — buildChangesForInsert() for inspection entity type.src/util/functions/activity/descriptionUtils.ts — datetime labeling; reuse or extend for insert copy.src/util/functions/activity/constants.ts — FIELD_LABELS, IGNORED_UPDATE_KEYS, COLLECTION_TRACKED_FIELDS.src/events/bullmq/activityLinkWorker.ts — inspection insert activity creation path.src/models/activitySchema.ts — activity changes[] shape consumed by the UI.Frontend
src/components/activityFeed/ActivityFeed.tsx and src/app/tools/inspections/[id]/components/InspectionActivityFeed.tsx — ensure new insert change fields render readably (may already support generic before/after if backend sends them).src/util/functions/activity/changesBuilder.tsPlease authenticate to join the conversation.
Planned
Main App
9 days ago
Linear
Get notified by email when there are changes.
Planned
Main App
9 days ago
Linear
Get notified by email when there are changes.