feat: add Sentry error capture to page title and image plugin (#82)#89
Conversation
Co-authored-by: Ona <no-reply@ona.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
✅ UI verification passed — design spec compliance confirmed. Summary: This PR adds Sentry error capture to Static analysis: No color tokens, typography, spacing, component usage, button variants, loading states, transitions, accessibility, or border changes detected. Visual verification: Playwright screenshots of the editor page ( |
|
✅ Post-merge verification passed. Ad-hoc smoke tests — all passed:
E2E test suite — 16 passed, 7 failed, 4 skipped. The 7 failures are pre-existing and tracked by #85 (editor link tests, drag reorder, Cmd+B shortcut, page-crud duplicate selector). None are related to the Sentry error capture changes in this PR. |
Closes #82
What
Adds Sentry error capture to the remaining editor-adjacent components that were silently dropping errors.
Changes
src/components/page-title.tsxcaptureSupabaseError(error, "page.title.save")in theelsebranch when the Supabase title update fails. Previously, save failures were silently ignored.src/components/editor/image-plugin.tsxSentry.captureExceptionin a.catch()handler on the drop-to-upload promise chain, which previously had no error handling for unhandled rejections.openImagePicker's upload call in atry/catchwithSentry.captureExceptionfor the same reason.Already handled (no changes needed)
page-menu.tsx: Already hasSentry.captureExceptionandcaptureSupabaseErrorfrom PR feat: add Sentry error capture to API routes and sidebar components (#81) #86 (issue Add Sentry error capture to API routes and sidebar components #81).sentry.test.ts: Already empty — no entries to remove.Acceptance Criteria Verification
page-title.tsx: title save failure captured viacaptureSupabaseErrorpage-menu.tsx: export and import catch blocks already useSentry.captureException(from feat: add Sentry error capture to API routes and sidebar components (#81) #86)image-plugin.tsx: upload failure captured viaSentry.captureException+captureSupabaseErrorconsole.errorwithout an accompanying Sentry call in changed filespnpm lint && pnpm typecheck && pnpm testpass (51/51 tests)