fix(rerun): show live re-run state and fix rule resolution feedback 3 months ago
Authored
grim 7/20/2026, 7:21:36 PM Materialize a queued run at enqueue so activity updates immediately, pick the
latest run per event so re-runs replace the old verdict, list rules in the
confirm dialog, and make cooldown env-driven with a staff exempt flag. Parentf7a8ede
24 files changed
.env.example +6 −0 apps/web/src/components/activity/activity-stack.tsx +104 −10 apps/web/src/components/admin/admin-users-page.tsx +55 −2 apps/web/src/components/runs/run-page.tsx +31 −11 apps/web/src/lib/activity.functions.ts +194 −19 apps/web/src/lib/admin.functions.ts +13 −0 apps/web/src/lib/rerun-rules-line.test.ts +32 −0 apps/web/src/lib/server-fn-classification.ts +2 −0 apps/worker/src/jobs/rerun.ts
+44
−2
apps/worker/src/jobs/run-workflows.ts +48 −10
apps/worker/src/rerun.integration.test.ts +129 −10
packages/auth/src/server.ts +10 −0
packages/db/drizzle/0012_pink_shriek.sql +1 −0
packages/db/drizzle/meta/0012_snapshot.json +2088 −0
packages/db/drizzle/meta/_journal.json +7 −0
packages/db/src/index.ts +2 −0
packages/db/src/queue.test.ts +39 −0
packages/db/src/queue.ts +32 −2
packages/db/src/schema/auth.ts +9 −0
packages/db/src/schema/runs.ts +4 −1
packages/db/src/services/activity.integration.test.ts +44 −0
packages/db/src/services/events.ts +38 −7
packages/db/src/services/runs.ts +66 −2
packages/db/src/services/staff.ts +41 −0