Matt
2cb0b99314
feat(uat-batch-13): activity feed resolves user UUIDs to display names
...
Audit-log rows with user-FK diffs (assignedTo, ownerId, reassignedTo,
createdBy, addedBy, changedBy, transferredBy) previously rendered the
raw user UUID in the activity feed (e.g. "→ mEcsLxo5kyFMyhbOSehxJjY…").
Same gap on the row's actor — the rep had no idea who did what.
- getRecentActivity collects all userIds referenced by either the row's
actor (auditLogs.userId) or by user-FK diff values, then bulk-fetches
user_profiles in a single query. Output rows now carry an
`actorName` field and have their `oldValue`/`newValue` swapped for
display names on user-FK fields.
- Unknown / deleted users fall back to "Unknown user (#short-uuid)" so
the audit trail stays useful for forensics.
- ActivityItem client type extended with `actorName`. Existing
consumers still read the raw `userId` for forensics + deep-link.
tsc clean. 1419/1419 vitest pass.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com >
2026-05-21 18:14:21 +02:00
..
2026-05-14 14:53:58 +02:00
2026-05-13 12:27:08 +02:00
2026-05-04 22:57:01 +02:00
2026-05-14 14:56:58 +02:00
2026-05-06 14:57:24 +02:00
2026-05-20 15:56:11 +02:00
2026-05-07 20:58:34 +02:00
2026-05-18 13:28:50 +02:00
2026-05-07 21:02:12 +02:00
2026-05-14 15:47:49 +02:00
2026-05-05 04:07:03 +02:00
2026-05-12 21:13:10 +02:00
2026-05-12 21:32:19 +02:00
2026-05-15 01:18:13 +02:00
2026-05-12 18:29:03 +02:00
2026-05-14 23:55:22 +02:00
2026-05-21 18:11:17 +02:00
2026-05-14 03:38:16 +02:00
2026-05-06 14:58:47 +02:00
2026-05-15 01:18:13 +02:00
2026-05-15 01:18:13 +02:00
2026-05-18 18:22:36 +02:00
2026-05-05 20:48:13 +02:00
2026-05-14 15:19:38 +02:00
2026-05-18 16:18:03 +02:00
2026-05-13 12:27:08 +02:00
2026-05-13 12:27:08 +02:00
2026-05-18 13:28:50 +02:00
2026-05-12 18:16:18 +02:00
2026-05-14 03:39:21 +02:00
2026-05-18 13:28:50 +02:00
2026-05-21 18:14:21 +02:00
2026-05-18 14:57:55 +02:00
2026-05-18 13:28:50 +02:00
2026-05-20 15:54:10 +02:00
2026-05-13 13:47:33 +02:00
2026-05-18 13:28:50 +02:00
2026-05-05 21:19:39 +02:00
2026-05-13 14:03:27 +02:00
2026-05-13 12:34:23 +02:00
2026-05-10 16:53:51 +02:00
2026-05-05 21:19:39 +02:00
2026-05-20 15:56:11 +02:00
2026-05-18 13:28:50 +02:00
2026-05-12 21:11:23 +02:00
2026-05-18 18:22:36 +02:00
2026-05-21 17:41:02 +02:00
2026-05-18 13:28:50 +02:00
2026-05-12 18:35:56 +02:00
2026-05-04 22:57:01 +02:00
2026-05-14 15:24:38 +02:00
2026-05-05 20:18:05 +02:00
2026-05-07 20:59:28 +02:00
2026-05-04 22:57:01 +02:00
2026-05-18 13:28:50 +02:00
2026-05-18 17:09:19 +02:00
2026-05-18 18:22:36 +02:00
2026-05-06 14:57:24 +02:00
2026-05-13 12:07:57 +02:00
2026-05-04 22:57:01 +02:00
2026-05-12 21:34:39 +02:00
2026-05-13 13:02:38 +02:00
2026-05-21 17:34:59 +02:00
2026-05-14 15:42:21 +02:00
2026-05-21 17:01:35 +02:00
2026-05-05 20:48:13 +02:00
2026-05-13 11:50:07 +02:00
2026-05-14 22:39:16 +02:00
2026-05-13 12:58:58 +02:00
2026-05-13 13:02:38 +02:00
2026-05-18 13:28:50 +02:00
2026-05-14 03:39:21 +02:00
2026-05-05 20:41:23 +02:00
2026-05-20 15:56:11 +02:00
2026-05-18 13:28:50 +02:00
2026-05-12 20:51:49 +02:00
2026-05-12 16:52:35 +02:00
2026-05-18 13:28:50 +02:00
2026-05-18 13:28:50 +02:00
2026-05-13 13:02:38 +02:00
2026-05-13 12:27:08 +02:00
2026-05-05 20:18:05 +02:00
2026-05-18 13:28:50 +02:00
2026-05-18 15:12:28 +02:00
2026-05-18 13:28:50 +02:00
2026-05-18 13:28:50 +02:00
2026-05-13 12:15:46 +02:00
2026-05-09 04:16:42 +02:00
2026-05-18 18:22:36 +02:00
2026-05-21 17:47:38 +02:00
2026-05-07 20:58:34 +02:00
2026-05-04 22:57:01 +02:00
2026-05-13 12:07:57 +02:00
2026-05-18 16:18:03 +02:00
2026-05-18 18:22:36 +02:00
2026-05-18 18:22:36 +02:00
2026-05-13 12:07:57 +02:00
2026-04-28 19:00:57 +02:00
2026-05-08 02:20:27 +02:00
2026-05-05 20:48:13 +02:00
2026-04-29 01:58:42 +02:00
2026-05-18 13:28:50 +02:00
2026-05-11 13:01:47 +02:00
2026-05-21 16:50:58 +02:00
2026-05-18 13:28:50 +02:00
2026-05-18 13:28:50 +02:00
2026-05-13 12:58:58 +02:00
2026-05-21 18:01:17 +02:00
2026-05-07 21:02:12 +02:00
2026-04-29 01:58:42 +02:00
2026-05-20 15:53:41 +02:00
2026-05-20 15:53:41 +02:00
2026-05-13 12:54:29 +02:00
2026-05-13 13:02:38 +02:00
2026-05-05 04:20:38 +02:00
2026-05-18 13:28:50 +02:00
2026-05-21 18:06:41 +02:00