Skip to content

fix(POR-22643): handle platform domain errors in notification-center - #1410

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

fix(POR-22643): handle platform domain errors in notification-center#1410
cursor[bot] wants to merge 1 commit into
mainfrom
cursor/por-22643-cursor-automated-triage-response-7168

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. must be either portal or email domain) 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
  • Lint/prettier on changed file (no new issues)

Notes

  • Linear: POR-22643
  • Root cause appears to be platform domain validation failing when an IU opens a notification via Tasks' /notification-center (workspace custom domain misconfiguration or non-task notification routed to Tasks). This PR reduces Sentry noise and improves UX; platform/domain configuration may still need manual follow-up.
  • Related: POR-22642 / PR fix(POR-22642): handle non-task notifications gracefully in notification-center #1409 (same defensive pattern for a different platform error message)

Impact & Surface Area of Change

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

Wrap notification-center fetch in try/catch so platform API errors
(e.g. must be either portal or email domain) render a user-friendly
SilentError instead of an unhandled Next.js request error in Sentry.
@linear-code

linear-code Bot commented Aug 22, 2026

Copy link
Copy Markdown

POR-22643

@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:47am

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