Commit 05f1c22
committed
feat(admin/webhooks): add/edit/delete UI with template editor and presets
New /admin/webhooks page lets a super-admin manage webhook subscriptions
without touching tinyice.json by hand. Replaces the legacy add/delete
form (which is still wired for backward compatibility).
- Sidebar entry + AdminLayout route under /admin/webhooks.
- List view shows enabled/disabled state, method, subscribed events,
and per-row Test/Enable/Edit/Delete actions.
- Modal editor with: optional Name, URL, HTTP method, Content-Type,
per-event subscription checkboxes, repeating header rows, large
body-template textarea, and a click-to-insert placeholder helper
driven by /api/webhooks/meta (so the available variables stay in
sync with what the server actually emits per event).
- Preset dropdown applies a verified template (Discord, Slack, MS
Teams, Telegram, ntfy, Pushover, TuneIn AIR, etc.) without
overwriting a URL the operator has already typed.
- Test button POSTs to /api/webhooks/test to fire a sample payload
for the webhook's first subscribed event — useful for verifying
the template before relying on a real track change to trigger it.1 parent a9a3e7e commit 05f1c22
29 files changed
Lines changed: 772 additions & 82 deletions
File tree
- server/frontend
- dist
- assets
- src/entries
- src
- components
- pages/admin
Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
0 commit comments