feat: add Pushover notification channel
Adds Pushover as a new notification channel, allowing users to receive push notifications on their devices via the Pushover API. Backend: provider, type registration, validation, service wiring Frontend: form UI with app token and user key fields, validation, i18n Tests: full unit test suite (15 tests, 100% coverage on provider) Closes #3445 Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
1 parent
2be1b48995
commit
97353bc7d2
13 files changed
+313
-3
No files matched your search
@@ -56,6 +56,12 @@ const telegramSchema = baseSchema.extend({
|
||||
accessToken: z.string().min(1, "Bot token is required"),
|
||||
});
|
||||
|
||||
const pushoverSchema = baseSchema.extend({
|
||||
type: z.literal("pushover"),
|
||||
address: z.string().min(1, "User key is required"),
|
||||
accessToken: z.string().min(1, "App token is required"),
|
||||
});
|
||||
|
||||
export const notificationSchema = z.discriminatedUnion("type", [
|
||||
emailSchema,
|
||||
slackSchema,
|
||||
@@ -65,6 +71,7 @@ export const notificationSchema = z.discriminatedUnion("type", [
|
||||
matrixSchema,
|
||||
teamsSchema,
|
||||
telegramSchema,
|
||||
pushoverSchema,
|
||||
]);
|
||||
|
||||
export type NotificationFormData = z.infer<typeof notificationSchema>;
|
||||
Reference in new issue
Block a user