Skip to content

fix(POR-22667): handle platform question validation errors in notification-center - #1430

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

fix(POR-22667): handle platform question validation errors in notification-center#1430
cursor[bot] wants to merge 1 commit into
mainfrom
cursor/por-22667-cursor-automated-triage-response-eb21

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 API errors (e.g. invalid field value for questions with title only) show a user-friendly SilentError instead of an unhandled request error in Sentry
  • Return early when token payload lacks notificationId
  • Use safeParse for CTA params with a friendly message when the notification is not task-linked

Testing Criteria

  • ESLint on changed file — no new issues
  • Verified fix matches the established defensive pattern from POR-22642–POR-22665 (try/catch + SilentError + safeParse)

Notes

  • Linear: POR-22667 — unhandled request error: invalid field value for questions with title only
  • The error string does not exist in tasks-app source or dependencies — it originates from the Assembly platform when loading notification details (likely a question/form entity with only a title and missing required fields)
  • Platform team should investigate the notification's referenced question/form entity in Sentry (workspace/notification IDs). Check for malformed question definitions or notifications routed to Tasks that reference non-task entities.
  • Same class of issue as other /notification-center platform errors (POR-22642–POR-22665)

Impact & Surface Area of Change

  • /notification-center server component only — IU notification deep-link entry point
  • No API route or client component changes
Open in Web View Automation 

…ation-center

Wrap notification fetch in try/catch and use safeParse for CTA params so
platform errors (e.g. invalid field value for questions with title only)
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-22667

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

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