Skip to content

fix(POR-22646): handle platform company entity errors in notification-center - #1412

Draft
cursor[bot] wants to merge 1 commit into
mainfrom
cursor/por-22646-cursor-automated-triage-response-7fe5
Draft

fix(POR-22646): handle platform company entity errors in notification-center#1412
cursor[bot] wants to merge 1 commit into
mainfrom
cursor/por-22646-cursor-automated-triage-response-7fe5

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 company 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
  • Lint/prettier on changed file (no new issues)

Notes

Impact & Surface Area of Change

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

…-center

Wrap notification fetch in try/catch so platform errors like "No entity type
for company found" render a user-friendly SilentError instead of an unhandled
Next.js request error in Sentry. Also guard missing notificationId and
non-task CTA params with safeParse.

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

linear-code Bot commented Aug 22, 2026

Copy link
Copy Markdown

POR-22646

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

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