Add Vote Rewards Settings tab to admin panel#47
Merged
Conversation
UI surface for the VoteRewardsFeature backend that landed in #46: - New "Vote Rewards" tab in SettingsView (admin-only, value="9") - Master enable toggle + per-provider config block (enabled, API key, server ID, poll interval, reward type, points amount, broadcast template) - Recent grants audit table at the bottom (datetime, provider, player, steam id, reward type+value) - VipGift and CdKey reward types are present as Select options but their associated input fields are disabled with a "(not yet implemented)" hint so admins know choosing them won't grant — backend throws NotImplementedException for these until the v1.5 dispatch lands Wired up: - frontend/src/api/voterewards.ts — REST client - VoteRewardsSettings, VoteProviderSettings, VoteGrant types - ChatCommandSettings extended with voteEnabled / voteCooldownSeconds to match the C# settings POCO - en.ts has the canonical strings; ja/ko/zh-CN/zh-TW carry English placeholders with a "translations TBD" comment so vue-tsc's structural check passes — native translations are a follow-up Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
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
Admin-panel UI for the VoteRewardsFeature backend that landed in #46. Now you can configure providers, set reward amounts, and watch grants come in without curling the REST endpoints.
Files
The non-English locale files just mirror the English strings for now — `vue-tsc`'s structural type-check requires the same shape across all locales, so translating later is a clean follow-up that doesn't block this work.
Test plan
🤖 Generated with Claude Code