Skip to content

fix(notifications): 1433 - link payment-revoked notifications to their event - #1451

Draft
leahpeker wants to merge 1 commit into
mainfrom
fix-payment-revoked-notification-link
Draft

leahpeker wants to merge 1 commit into
mainfrom
fix-payment-revoked-notification-link

Conversation

@leahpeker

Copy link
Copy Markdown
Collaborator

Overview

The backend already attached the event to payment-revoked notifications, but the frontend had no PaymentRevoked case in notificationTarget, so it fell through to null and the row rendered as non-clickable. A guest told their payment "needs attention" had no way to reach the event to reconfirm.

Adds the missing notification type to the frontend mirror and routes it to /events/{eventId}, exactly as the other event-scoped notification types already do.

Note: the issue body was empty, so the intended behaviour was inferred from the surrounding code — specifically that every other event-scoped notification type already links to its event, and this one was the only omission.

Test plan

  • make agent-frontend-test — 156 files, 1274 passed
  • make agent-frontend-lint, make agent-frontend-typecheck
  • Verified the backend sets event=event and emits the exact string payment_revoked, so eventId is populated
  • Regression test added and mutation-checked: it fails when the new case is removed
  • Revoke a payment confirmation as a host, then click the guest's notification

Closes #1433

🤖 Generated with Claude Code

… (Issue 1433)

The backend already set `event` on payment-revoked notifications, but the
frontend had no `PaymentRevoked` case in `notificationTarget`, so it fell
through to `null` and the row was not clickable. A guest told their payment
needed attention had no way to reach the event to reconfirm.

Closes #1433
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Make payment-revoked notifications link to their event

1 participant