InspectionActivityFeed → ActivityFeed on /tools/inspections/[id]) already receives some payment events.paymentStream.ts enqueues activity for payment insert/update/delete; activityLinkWorker.ts attaches them to the parent inspection; paymentHandlers.ts formats descriptions.PaymentHistoryList (/client/job/[slug]/pay) lists payment rows (amount, date, type, status) — not a step-by-step attempt audit trail.status / amount updates (paymentHandlers.ts).isn.orderStatus / statusHistory, Guardian statusHistory) often produce no activity row because buildChangesFromPaymentEvents ignores those fields and the worker skips “no meaningful changes.”Payment document are not represented anywhere in activity.Backend — Activity / payments today
attik-backend/src/events/streamHandlers/paymentStream.ts → enqueueActivityLinkFromChange in attik-backend/src/util/functions/activity/enqueueActivityLinkFromChange.ts.attik-backend/src/events/bullmq/activityLinkWorker.ts (payment events roll up to inspection-{id}; Activity created with _inspectionId).attik-backend/src/util/functions/activity/paymentHandlers.ts.attik-backend/src/util/functions/activity/ACTIVITY_SYSTEM_README.md.isn / guardian / refunds): attik-backend/src/models/paymentSchema.ts; PAC webhook history in attik-backend/src/routes/webhooks/flexfund/flexfundWebhook.ts.PaymentActivity (or similar) collection and API vs hybrid.Frontend — Workorder
attik-frontend/src/app/tools/inspections/[id]/components/InspectionActivityFeed.tsx, attik-frontend/src/components/activityFeed/ActivityFeed.tsx.attik-frontend/src/app/tools/inspections/[id]/components/ServicesPayments.tsx.InspectionWorkorderShell.tsx, page.tsx (activityFeedContent).Frontend — Client portal (optional)
attik-frontend/src/app/client/job/[slug]/pay/PaymentHistoryList.tsx — summary list only; decision needed whether client-facing attempt log is in scope.Out of scope unless expanded
attik-backend/src/util/functions/activity/paymentHandlers.ts, attik-backend/src/events/bullmq/activityLinkWorker.tsattik-backend/src/events/streamHandlers/paymentStream.tsattik-frontend/src/app/tools/inspections/[id]/components/InspectionActivityFeed.tsxPlease authenticate to join the conversation.
Planned
Main App
5 days ago
Linear
Get notified by email when there are changes.
Planned
Main App
5 days ago
Linear
Get notified by email when there are changes.