feat(client): use the shared ProposalDiff in the activity undo card (#363 follow-up) #370
No reviewers
Labels
No labels
area:auth
area:ci
area:db
area:infra
area:native
area:pwa
area:service
epic
feature
foundation
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
james/carol!370
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "363-followup-activity-diff"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Completes the "both places" intent of #363. That PR extracted a shared
<ProposalDiff>and wired it into the chat confirmation card — but the activity undo card (#356/#357) wasn't merged on #363's base, so it still rendered its diff as raw pretty-printed JSON.Now that both are in:
<ProposalDiff diff={pending.diff} action={pending.action} />.renderDiffhelper, the localDESTRUCTIVE_ACTIONSset, and the unusedstyles.diff—DESTRUCTIVE_ACTIONSis imported from the shared module too.So the undo confirmation now shows the same readable field-level diff (old → new rows, destructive tinting) as the chat card.
Verification (local)
typecheck✓ ·lint✓ ·test✓ 172 · semgrep ✓ 0 findingsNet diff is small (one screen). Visual parity with the chat card is worth a glance, but the shared component is already tested.
🤖 Generated with Claude Code
📊 Test coverage
Patch coverage: no testable lines changed.
Overall (
app/,lib/,db/, excluding UI per ADR-0019):Soft thresholds per ADR-0019. Coverage is informational and does not block merge.