Add multi-select to claim the tier reward items on the dashboard and quantity selector for the donation shop#17
Open
achenxu wants to merge 1 commit into
Open
Add multi-select to claim the tier reward items on the dashboard and quantity selector for the donation shop#17achenxu wants to merge 1 commit into
achenxu wants to merge 1 commit into
Conversation
## Multi-Select Tier Rewards **Features:** - Added checkbox selection for tier bonus rewards - Bulk claim multiple rewards at once with "Claim Selected" button - "Select All" / "Deselect All" toggle button - Smart selection tracking per game account - Styled with XileRO design patterns (purple/blue gradients, amber accents) **Technical:** - Added `selectedRewardIds` array property to Dashboard component - New `toggleSelectAll()` method for bulk selection - New `claimSelectedRewards()` method for batch claiming - Enhanced UI with checkboxes and dynamic buttons ## Quantity Selector for Donate Shop **Features:** - Up/down arrow buttons to adjust purchase quantity - Number input with min/max validation - Real-time total cost calculation - Stock limit enforcement - Disabled state when stock is insufficient **Technical:** - Added `purchaseQuantity` property to DonateShop component - New `incrementQuantity()` and `decrementQuantity()` methods - Updated purchase flow to handle multiple quantities - Creates separate purchase records for each quantity - Enhanced UI with quantity controls and cost preview **Files Changed:** - app/Livewire/Auth/Dashboard.php - resources/views/livewire/auth/partials/game-account-card.blade.php - app/Livewire/DonateShop.php - resources/views/livewire/donate-shop.blade.php
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.
Multi-Select Tier Rewards
Features:
Technical:
selectedRewardIdsarray property to Dashboard componenttoggleSelectAll()method for bulk selectionclaimSelectedRewards()method for batch claimingQuantity Selector for Donate Shop
Features:
Technical:
purchaseQuantityproperty to DonateShop componentincrementQuantity()anddecrementQuantity()methodsFiles Changed: