Skip to content

Add WPush notification preset - #103

Open
greyair wants to merge 12 commits into
VrianCao:masterfrom
greyair:upstream/wpush-preset
Open

greyair wants to merge 12 commits into
VrianCao:masterfrom
greyair:upstream/wpush-preset

Conversation

@greyair

@greyair greyair commented Sep 21, 2026

Copy link
Copy Markdown

Summary

Add WPush (wpush.cn) as a built-in notification preset alongside Custom Webhook and Telegram.

This provides another notification delivery option while reusing Uptimer's existing event, template, timeout, and delivery-deduplication infrastructure.

Changes

  • add WPush channel configuration and validation
  • support API keys encrypted in D1 or referenced from a Worker Secret
  • send WPush messages through its form-encoded /api/v1/send API
  • sanitize API key material from Admin API responses
  • add WPush configuration UI with channel, option, URL, templates, timeout, and event filtering
  • add worker tests for delivery success/failure and secret handling
  • add admin tests for encrypted API key storage and edit preservation
  • document WPush configuration in English and Simplified Chinese

Test Plan

  • Worker delivery tests pass on the extracted implementation
  • Manually tested in a deployed fork with a real WPush API key
  • Upstream PR CI: pnpm lint, pnpm typecheck, pnpm test

Related Issues

Refs #76

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.

1 participant