Skip to content

fix(POR-22659): handle platform LineItems validation errors in notification-center - #1423

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

fix(POR-22659): handle platform LineItems validation errors in notification-center#1423
cursor[bot] wants to merge 1 commit into
mainfrom
cursor/por-22659-cursor-automated-triage-response-4d23

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. LineItems total needs to be greater than 0.5) 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-22643/POR-22646 (try/catch + SilentError + safeParse)

Notes

  • Linear: POR-22659 — unhandled request error: LineItems total needs to be greater than 0.5
  • The error string originates from the Assembly platform billing/invoicing validation when invoice line items total ≤ $0.50 (minimum charge threshold); not from tasks-app code
  • Platform team should investigate why an invoice/notification is being created with sub-minimum line item totals (manual intervention)
  • Same class of issue as POR-22650/POR-22651/POR-22652 (platform errors surfacing via /notification-center)

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 

…cation-center

Wrap notification fetch in try/catch so platform billing validation errors
(e.g. LineItems total below minimum) show a user-friendly SilentError
instead of an unhandled request error 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-22659

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

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