Skip to content

fix(POR-22642): handle non-task notifications gracefully in notification-center - #1409

Draft
cursor[bot] wants to merge 1 commit into
mainfrom
cursor/por-22642-cursor-automated-triage-response-7786
Draft

fix(POR-22642): handle non-task notifications gracefully in notification-center#1409
cursor[bot] wants to merge 1 commit into
mainfrom
cursor/por-22642-cursor-automated-triage-response-7786

Conversation

@cursor

@cursor cursor Bot commented Aug 22, 2026

Copy link
Copy Markdown
Contributor

Changes

  • Wrap /notification-center notification fetch in try/catch so platform errors (e.g. No entity type for invoice found) render a user-friendly SilentError instead of an unhandled Next.js request error in Sentry
  • Return early when the token payload has no notificationId
  • Use safeParse for in-product CTA params and show a clear message when the notification is not task-linked

Testing Criteria

  • Code review of /notification-center error paths: invalid token, missing notificationId, API failure, non-task CTA params, missing taskId redirect
  • Typecheck/lint on changed file (no new issues)

Notes

  • Linear: POR-22642
  • Root cause appears to be invoice notifications routed to Tasks' notification-center; platform has no invoice entity mapping for this app. This PR reduces Sentry noise and improves UX; platform routing may still need a follow-up.

Impact & Surface Area of Change

  • src/app/notification-center/page.tsx only — IU notification deep-link entry point
Open in Web View Automation 

…ion-center

Wrap notification fetch in try/catch so platform errors (e.g. invoice entity
type not supported) surface as a user-friendly SilentError instead of an
unhandled request error in Sentry. Use safeParse for CTA params.

Co-authored-by: Neil Raina <makeitraina@users.noreply.github.com>
@linear-code

linear-code Bot commented Aug 22, 2026

Copy link
Copy Markdown

POR-22642

@vercel

vercel Bot commented Aug 22, 2026

Copy link
Copy Markdown
Contributor

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
tasks-app Ready Ready Preview Aug 22, 2026 3:43am

Request Review

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.

1 participant