Add App Router error boundaries, Sentry monitoring, and PII scrubbing… - #119
Add App Router error boundaries, Sentry monitoring, and PII scrubbing…#119Victorjonah-prog wants to merge 3 commits into
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (2)
🚧 Files skipped from review as they are similar to previous changes (2)
WalkthroughAdds Sentry monitoring across client, server, and edge runtimes; introduces PII scrubbing and optional source-map uploads; adds App Router error boundaries; captures payment failures; and removes sensitive debug logging. ChangesSentry monitoring
Estimated code review effort: 3 (Moderate) | ~25 minutes Possibly related issues
Possibly related PRs
Sequence Diagram(s)sequenceDiagram
participant AppRouter
participant DashboardError
participant Sentry
participant sentryBeforeSend
AppRouter->>DashboardError: provide error and reset
DashboardError->>Sentry: captureException(error)
Sentry->>sentryBeforeSend: sanitize captured event
sentryBeforeSend-->>Sentry: return event or null
DashboardError-->>AppRouter: render Report ID and Try again
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Warning There were issues while running some tools. Please review the errors and either fix the tool's configuration or disable the tool if it's a critical failure. 🔧 ESLint
ESLint install timed out. The project may have too many dependencies for the sandbox. Comment |
There was a problem hiding this comment.
Actionable comments posted: 2
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@hooks/useStellarDonation.js`:
- Around line 102-107: Update the Sentry.captureException call in
useStellarDonation so its feature tag uses "stellar-donation" instead of
"stellar-payment", allowing donation failures to be distinguished in Sentry
queries and alerts.
In `@sentry.shared.config.js`:
- Around line 84-96: Update sentry.shared.config.js:84-96 in scrubExtra to
recursively scrub nested objects and arrays, including string values, while
continuing to remove sensitive cookie keys at every relevant object level.
Update sentry.shared.config.js:140-147 in sentryBeforeSendTransaction to pass
transaction extras through scrubExtra, matching the error-event PII handling;
both sites require changes.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Pro Plus
Run ID: 63746c7d-2b65-4909-81dc-46cb3cb4da2b
⛔ Files ignored due to path filters (1)
package-lock.jsonis excluded by!**/package-lock.json
📒 Files selected for processing (20)
.env.example.github/workflows/ci.ymlapp/dashboard/courses/error.jsxapp/dashboard/error.jsxapp/dashboard/library/error.jsxapp/error.jsxapp/global-error.jsxcomponents/DebugAuthLogs.jsxhooks/useAuth.jshooks/useStellarDonation.jshooks/useStellarPayment.jsinstrumentation-client.jsinstrumentation.jslib/config/axios.config.jslib/config/req.header.config.jsnext.config.mjspackage.jsonsentry.edge.config.jssentry.server.config.jssentry.shared.config.js
💤 Files with no reviewable changes (3)
- lib/config/req.header.config.js
- components/DebugAuthLogs.jsx
- hooks/useAuth.js
|
@Victorjonah-prog is attempting to deploy a commit to the Deen Bridge Team on Vercel. A member of the Team first needs to authorize it. |
… (closes #109)
Summary by CodeRabbit