Skip to content

Commit 05f1c22

Browse files
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

server/frontend/dist/assets/EqBars-CRjfCsnK.js renamed to server/frontend/dist/assets/EqBars-B2lVBKYV.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

server/frontend/dist/assets/Nav-BtsakN9y.js renamed to server/frontend/dist/assets/Nav-DoSHOOIY.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

server/frontend/dist/assets/StreamCard-Bj2PWXxi.js renamed to server/frontend/dist/assets/StreamCard-DQfhVKzv.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

server/frontend/dist/assets/VolumeKnob-UNtePFue.js renamed to server/frontend/dist/assets/VolumeKnob-BNUCuL8s.js

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

Comments
 (0)