hikari 9db206ebbc
Node.js CI / CI (push) Successful in 21s
Security Scan and Upload / Security & DefectDojo Upload (push) Successful in 1m41s
feat: Update Error Notifications with ComponentsV2 (#14)
## Summary

This PR updates Rosalia's Discord error notifications to use Discord's Components V2 for a beautiful, organized display.

### Changes Made

- **Removed @mention** - Error notifications no longer ping anyone
- **Updated channel** - Notifications now go to the correct channel (1474606829504954511)
- **Implemented ComponentsV2** - Using Container (type 17) with Text Display (type 10) components
- **Visual improvements**:
  - Added accent color (#E91E63) for the container
  - Added separators (type 14) between sections
  - Organized content with headers for scope, message, and stack trace
  - Code blocks for message and stack trace

### Technical Changes

1. **`src/modules/pipeLog.ts`**:
   - Created `PipeErrorOptions` and `DiscordErrorPayloadOptions` interfaces
   - Refactored `pipeError` to accept options object
   - Extracted payload creation into `createDiscordErrorPayload` helper
   - Implemented ComponentsV2 structure with container, text displays, and separators

2. **`src/utils/errorHandler.ts`**:
   - Updated error handler to use new `pipeError` interface

3. **`src/server/serve.ts`**:
   - Updated `/error` webhook endpoint to use new interface

 Created by Hikari~ 🌸

Reviewed-on: #14
Co-authored-by: Hikari <hikari@nhcarrigan.com>
Co-committed-by: Hikari <hikari@nhcarrigan.com>
2026-02-20 20:08:45 -08:00
2025-02-10 18:59:48 -08:00
2025-12-22 19:16:14 +01:00
2025-02-10 18:59:48 -08:00
2025-02-10 18:59:48 -08:00
2025-07-19 16:22:38 -07:00
2025-02-10 18:59:48 -08:00
2025-02-10 18:59:48 -08:00
2025-02-10 18:59:48 -08:00
2025-02-10 18:59:48 -08:00

Rosalia Nightsong

This is a basic webserver and Matrix bot that allows us to pipe application logs and errors to our Matrix server.

Live Version

This page is currently deployed. View the live website.

Feedback and Bugs

If you have feedback or a bug report, please log a ticket on our forum.

Contributing

If you would like to contribute to the project, you may create a Pull Request containing your proposed changes and we will review it as soon as we are able! Please review our contributing guidelines first.

Code of Conduct

Before interacting with our community, please read our Code of Conduct.

License

This software is licensed under our global software license.

Copyright held by Naomi Carrigan.

Contact

We may be contacted through our Chat Server or via email at contact@nhcarrigan.com. -->

S
Description
A webserver to handle alerting us to application logs and errors.
https://alerts.nhcarrigan.com/
Readme 229 KiB
v1.0.0 Latest
2025-02-10 20:05:38 -08:00
Languages
TypeScript 99.7%
JavaScript 0.3%