Add match result webhook configuration to profile page#738
Open
tetsuo-matsumura wants to merge 1 commit into
Open
Add match result webhook configuration to profile page#738tetsuo-matsumura wants to merge 1 commit into
tetsuo-matsumura wants to merge 1 commit into
Conversation
Adds a webhook URL field to the user profile page. Players can save a public https URL that will receive their match result payload after each game finishes. Saving an empty value clears the webhook. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
10 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds a webhook URL field to the user profile page, allowing players to configure a personal endpoint that receives their match result payload after each game finishes.
src/interface/API/MatchResultWebhookAPI.php.ts— new request/response types for the webhook APIsrc/interface/API/UserProfileAPI.php.ts— addedmatchResultWebhookUrl?: stringto the profile response shapesrc/appConstants.ts— addedMATCH_RESULT_WEBHOOKendpoint toURL_END_POINTsrc/features/api/apiSlice.ts— addedsetMatchResultWebhookRTK Query mutation (useSetMatchResultWebhookMutation)src/routes/user/profile/index.tsx— webhook section with pre-populated input (synced from profile data viauseEffect), save handler with toast feedback, placed after the Patreon sectionsrc/routes/user/profile/profile.module.css—webhookSectionandwebhookInputRowstyles matching the existing Patreon/Metafy card styleBackend PR
This is the frontend half of the feature. The backend changes (new API endpoint, database migration, match-end delivery logic, SSRF validation) are in:
Talishar/Talishar#1391 — Add user-configurable match result webhooks
The backend PR also includes a small update to
UserProfileAPI.phpto returnmatchResultWebhookUrlin the profile response, which is what pre-populates the input field here.Test plan
/user/profilewhile logged in — webhook input renders in the left column after Patreon🤖 Generated with Claude Code