Skip to content

chore: add contact network diagnostics - #34

Merged
kamycoding merged 1 commit into
mainfrom
fix/contact-backend-production
Aug 11, 2026
Merged

chore: add contact network diagnostics#34
kamycoding merged 1 commit into
mainfrom
fix/contact-backend-production

Conversation

@kamycoding

Copy link
Copy Markdown
Owner

No description provided.

Copilot AI lite review requested due to automatic review settings August 11, 2026 19:14
@netlify

netlify Bot commented Aug 11, 2026

Copy link
Copy Markdown

Deploy Preview for fanciful-cannoli-268c0c ready!

Name Link
🔨 Latest commit 3d966f4
🔍 Latest deploy log https://app.netlify.com/projects/fanciful-cannoli-268c0c/deploys/6a7b74b269f331000891d9ad
😎 Deploy Preview https://deploy-preview-34--fanciful-cannoli-268c0c.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

@kamycoding
kamycoding merged commit 78aa99e into main Aug 11, 2026
4 of 5 checks passed
@kamycoding
kamycoding deleted the fix/contact-backend-production branch August 11, 2026 19:15

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds safe, allow-listed network diagnostics for contact email delivery failures (Brevo fetch), so operational logs contain actionable debugging details without exposing secrets or user-submitted content.

Changes:

  • Extend EmailDeliveryError to carry networkDiagnostics and sanitize network error details via an allow-list.
  • Include sanitized network diagnostics in the contact route’s logged diagnostics payload.
  • Update and add integration tests to validate diagnostics shape and ensure no secret/PII leakage.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.

File Description
server/test/contact.integration.test.ts Expands diagnostics assertions and adds a new test ensuring only allow-listed network diagnostics are preserved and secrets/PII are excluded.
server/src/services/email.service.ts Introduces EmailNetworkDiagnostics and sanitization helpers; attaches sanitized diagnostics to EmailDeliveryError for network failures.
server/src/routes/contact.route.ts Logs the new sanitized network diagnostics alongside existing delivery failure diagnostics.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

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.

2 participants