mirror of
https://github.com/BreizhHardware/ntfy_alerts.git
synced 2026-05-09 08:15:36 +02:00
[PR #41] feat(notifications): Add test notification routes for NTFY, Discord, … #43
Labels
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
BreizhHardware/ntfy_alerts#43
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/BreizhHardware/ntfy_alerts/pull/41
Author: @BreizhHardware
Created: 8/21/2025
Status: 🔄 Open
Base:
dev← Head:fix/config-reset📝 Commits (1)
66400f2feat(notifications): Add test notification routes for NTFY, Discord, Slack, and Gotify📊 Changes
9 files changed (+647 additions, -60 deletions)
View changed files
📝
src/api.rs(+389 -1)📝
src/notifications/discord.rs(+25 -1)📝
src/notifications/gotify.rs(+29 -1)📝
src/notifications/ntfy.rs(+24 -1)📝
src/notifications/slack.rs(+24 -1)➕
web/layouts/auth.vue(+5 -0)📝
web/pages/login.vue(+50 -49)📝
web/pages/onboarding.vue(+6 -1)📝
web/pages/settings.vue(+95 -5)📄 Description
This pull request adds new API endpoints and backend logic to support sending test notifications through four different services (NTFY, Discord, Slack, Gotify), and refactors the login page to use a dedicated authentication layout for improved consistency and maintainability. The changes are grouped into backend (Rust API and notification logic) and frontend (Vue layout and login page) updates.
Backend: Notification Testing API
src/api.rsfor sending test notifications via NTFY, Discord, Slack, and Gotify, including authentication and settings checks. [1] [2]src/notifications/ntfy.rs,src/notifications/discord.rs,src/notifications/slack.rs, andsrc/notifications/gotify.rsto send test notifications with basic error handling and logging. [1] [2] [3] [4]Frontend: Layout and Login Page
auth.vuelayout for authentication pages, providing a consistent centered and styled background for login and onboarding.login.vueto use the new authentication layout, cleaned up markup, and improved error message display for better user experience. [1] [2] [3] [4]🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.