feat: Update Error Notifications with ComponentsV2 #14

Merged
naomi merged 3 commits from feat/errors into main 2026-02-20 20:08:45 -08:00

3 Commits

Author SHA1 Message Date
hikari c28069e7b0 chore: pin fastify-raw-body dependency to exact version
Node.js CI / CI (pull_request) Successful in 23s
Security Scan and Upload / Security & DefectDojo Upload (pull_request) Successful in 1m3s
Pinned fastify-raw-body from ^5.0.0 to 5.0.0 to ensure consistent
dependency versions across all environments.

Changes:
- Pinned fastify-raw-body to 5.0.0
- Regenerated pnpm-lock.yaml
2026-02-20 20:06:46 -08:00
hikari 0f7ab59889 feat: add media container with error image to notifications
Node.js CI / CI (pull_request) Failing after 8s
Security Scan and Upload / Security & DefectDojo Upload (pull_request) Successful in 1m6s
Added a Media Container component (type 9) with a Media Image accessory
(type 11) to display an error image alongside the error header in Discord
notifications. This creates a more visually appealing and informative
error alert.

Changes:
- Created createMediaContainer helper function to generate the media
  container with error image
- Updated createDiscordErrorPayload to use the media container
- Extracted helper to reduce function length and improve code organization
2026-02-20 19:58:25 -08:00
hikari 637fdcf997 feat: update error notifications with ComponentsV2
Node.js CI / CI (pull_request) Failing after 10s
Security Scan and Upload / Security & DefectDojo Upload (pull_request) Successful in 1m2s
Updated Discord error notifications to use Components V2 with a beautiful
container layout. Changes include:

- Removed @mention from error notifications
- Updated channel ID to 1474606829504954511
- Implemented Container component (type 17) with Text Display components (type 10)
- Added accent color (#E91E63) and separators for visual appeal
- Organized error information with headers for scope, message, and stack trace
- Refactored pipeError to use options object for better code organization
2026-02-20 19:52:44 -08:00