Skip to content

fix(POR-22655): handle platform ContractTemplate.fields unmarshaling errors in notification-center - #1421

Draft
cursor[bot] wants to merge 1 commit into
mainfrom
cursor/por-22655-cursor-automated-triage-response-30e2
Draft

fix(POR-22655): handle platform ContractTemplate.fields unmarshaling errors in notification-center#1421
cursor[bot] wants to merge 1 commit into
mainfrom
cursor/por-22655-cursor-automated-triage-response-30e2

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 Go unmarshaling errors (ContractTemplate.fields object vs []contracts.ContractField array mismatch) surface as a user-facing SilentError instead of an unhandled request error in the Tasks Sentry project.
  • Return null early when token payload lacks notificationId instead of throwing.
  • Use safeParse for CTA params so non-task notifications fail gracefully.

Testing Criteria

  • yarn lint:check src/app/notification-center/page.tsx passes (no new errors)
  • Verified change matches established defensive pattern from related POR-2265x fixes

Notes

Impact & Surface Area of Change

  • /notification-center route only — IU in-product notification deep-link redirect flow.
  • On platform API failure, user sees "This notification could not be opened in Tasks" instead of a 500/unhandled error.
Open in Web View Automation 

…errors in notification-center

Wrap notification fetch in try/catch so platform Go unmarshaling errors
(ContractTemplate.fields object vs array mismatch) surface as SilentError
instead of unhandled request errors in Sentry.

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

linear-code Bot commented Aug 22, 2026

Copy link
Copy Markdown

POR-22655

@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 4:33am

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