Skip to content

fix(POR-22654): handle platform notification lookup errors in notification-center - #1419

Draft
cursor[bot] wants to merge 1 commit into
mainfrom
cursor/por-22654-cursor-automated-triage-response-4e0f
Draft

fix(POR-22654): handle platform notification lookup errors in notification-center#1419
cursor[bot] wants to merge 1 commit into
mainfrom
cursor/por-22654-cursor-automated-triage-response-4e0f

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. DynamoDB ValidationException when loading notification details by id) show a user-friendly SilentError instead of an unhandled request error in Sentry
  • Return early when token payload lacks notificationId or carries a non-UUID value
  • 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-22650 (try/catch + SilentError + safeParse + UUID guard)

Notes

  • Linear: POR-22654 — Unable to get notification details by its id: ValidationException: Condition parameter type does not match schema type
  • The error string originates from the Assembly platform notification service (DynamoDB lookup by notification id); not from tasks-app code
  • Same class of issue as other notification-center platform errors (entity type mapping, domain validation, etc.)

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-center fetch in try/catch with SilentError when the
platform fails to load notification details (e.g. DynamoDB ValidationException).
Validate notificationId as UUID before calling the platform API.

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

linear-code Bot commented Aug 22, 2026

Copy link
Copy Markdown

POR-22654

@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 Building Building Preview Aug 22, 2026 4:16am

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