Skip to main content

Lucky Wheel

1. What this page does​

The Lucky Wheel page allows administrators to configure and manage the interactive promotional wheel in the lobby. Administrators can set spin costs in tickets or diamonds, configure up to 16 wheel slots, calibrate odds weights for each slot, configure suspenseful spin animations (such as near misses, stopping just short, or rolling back), test the experience via live preview demo spins, and fulfill big physical prizes won by players. It also provides performance analytics and spin history.

The page consists of two main tabs:

  • Wheel & Prizes tab — Wheel configuration and prize slots editor.
  • Report & Spin History tab — Performance report and spin history logs.

2. Before you start​

  • Required Permissions:
    • You must have the 'Spinner' permission in Roles to view, modify prize slots, adjust spin tricks, and save wheel settings.
    • You must have the 'Spinner - report and history' permission in Roles to access analytics reports, view spin logs, and mark big prizes as delivered.
  • Prerequisites:
    • Prize Slots: Plan at least 2 slots (up to 16 slots) across 4 reward types:
      • Physical Prizes: Tangible gifts such as smartphones or gold bars (requires a label and a full prize name).
      • Points: Loyalty points credited directly to the player's wallet.
      • Tickets: Wheel tickets credited directly to the player's wallet for future spins.
      • Diamonds (Score): Diamond balance credited directly to the player's wallet.
    • Images: Prepare square transparent PNG or WebP images (600x600 px recommended, at least 400x400 px) for custom prize artwork.
  • Key Rules:
    • The wheel must have at least 2 slots, and at least 1 slot must have odds greater than 0.
    • Points, tickets, and diamonds are automatically credited upon winning. Physical prizes require administrative fulfillment and manual confirmation (Mark as delivered).

3. Screen layout​

The interface is structured into two main tabs:

  1. Wheel & Prizes Tab:
    • Hero Card: Displays wheel status, total slots count, cost per spin, last updater, and a theme-matching glow preview.
    • Wheel Settings Card: Inputs for Wheel Name (Thai/English), price per spin in tickets, price per spin in diamonds, and the Open to players active switch.
    • Wheel Slots List: Cards for each slot arranged clockwise from the pointer, featuring drag-and-drop handles, reordering arrows, and an Add slot button.
    • Spin Tricks Card: Sliders for spin duration (3–9 seconds) and 3 suspense animations (Near miss, Stops just short, Crosses then rolls back) with individual Show me demo buttons.
    • Player View & Prize Ladder: Interactive live wheel rendered in site theme colors, big prize rankings, and a Try a spin demo button.
    • Delete Wheel Setup Card: Located at the bottom; allows deleting the wheel configuration when inactive.
  2. Report & Spin History Tab:
    • Summary Metric Cards: Total spins, unique players, currency paid (tickets and diamonds), rewards given out, and big prizes won.
    • Daily and Hourly Spin Charts: Line charts tracking spin activity over time.
    • Breakdown Tables: Prizes won summary table and Top 10 claimant players.
    • Spin History Section: Sub-tabs for Points & tickets and Big prizes (with filters: All, Not handed over yet, Handed over) and a CSV export button.

4. Search and filters​

Filters on Report & Spin History Tab​

Field / FilterTypeOptions / How to useResult
Period / Date RangeQuick preset buttonsChoose: Today, 7 days, 30 days, or CustomFilters summary cards, charts, and history tables by date range.
Search player...Text inputType a player usernameFilters history table to show spins made by that user.
Paid WithDropdownSelect: All, Tickets, or DiamondsFilters history table by currency used to spin.
Delivery Status TabsFilter tabsSelect: All, Not handed over yet, or Handed overFilters big prize records by fulfillment status.
RefreshButtonClick the refresh buttonInstantly reloads the latest report and table data.

5. Data tables​

1. Big Prizes Delivery Table (Report & History Tab > Big Prizes)​

ColumnWhat you seeMeaningBadge or Symbol
Date & TimeTimestamp (e.g. 21/10/2026, 17:15)Time when the player spun and won the prizeStandard date/time format
PlayerPlayer username (e.g. lucky_winner)Account that won the big physical prizeBold username text
PrizeThumbnail image and prize namePhysical prize won by the playerThumbnail and bold title
Paid WithTicket or diamond cost paidCurrency spent for the spin• Blue: Wheel ticket
• Purple: Diamond
Delivery StatusDelivery badgePhysical delivery tracking status• Orange (Pending): Awaiting shipment/handover
• Green (Delivered): Handed over to player
Handled ByAdmin username and timestampRecord of who marked the prize as deliveredUsername and timestamp
ActionsMark as delivered buttonAction button to confirm fulfillmentPinned button on pending records

2. General Spin Log Table (Report & History Tab > Points & Tickets)​

ColumnWhat you seeMeaningBadge or Symbol
Date & TimeDate and time of spinTimestamp of transactionStandard date format
PlayerPlayer usernameAccount that performed the spinUsername text
Reward WonReward type and amount (e.g. +50 Points)Currency credited to wallet• Orange: Points
• Blue: Tickets
• Purple: Diamonds
Paid WithCurrency and amount spentCost deducted for the spinBlue or purple badge

6. Step-by-step​

1. Setting up a new lucky wheel​

  1. Navigate to Activities > Lucky wheel in the Wheel & prizes tab.
  2. If no wheel exists yet, the screen displays setup steps. Click Set up the wheel.
  3. In the Wheel settings card:
    • Enter Wheel name (Thai) (required, e.g. วงล้อนำโชคเศรษฐี).
    • Enter Wheel name (English) (optional, e.g. Millionaire Lucky Wheel).
    • Enter Price per spin (tickets) (e.g. 1).
    • Enter Price per spin (diamonds) (e.g. 10).
    • Keep the Open to players switch off while configuring slots.
  4. Proceed to configure slots as described in Step 2.

2. Adding and configuring wheel slots​

  1. Under Wheel slots, click Add slot (the wheel must have between 2 and 16 slots).
  2. Click the pencil icon or expand the slot card to configure fields:
    • Reward type: Choose Prize (Physical), Points, Tickets, or Diamonds.
    • Label on the wheel: Enter a concise label (max 60 characters, e.g. iPhone 17 or 100 Points).
    • For Prize (Physical):
      • Enter Prize name: Full description of the item (e.g. iPhone 17 Pro Max 256GB).
      • Select Big prize rank: Priority rank (Prize 1 appears most prominently in the prize ladder).
      • Upload Image on the wheel: Transparent square PNG/WebP up to 5 MB.
    • For Points, Tickets, or Diamonds:
      • Enter Amount: Whole number greater than 0.
    • Odds weight: Enter a probability weight value (e.g. 15). The percentage share relative to all slots is calculated automatically (e.g. currently 5.2%).
  3. Click Done to collapse the card.

3. Reordering wheel slots​

  1. Slots appear in clockwise order starting from the pointer at 12 o'clock.
  2. Reorder slots by:
    • Clicking and dragging the 6-dots handle up or down.
    • Using the Move up and Move down arrow buttons on each card.
  3. Observe the live preview on the right update its sector order immediately. Interleave big physical prizes with standard rewards so that trick animations can trigger.

4. Configuring spin tricks and demo spins​

  1. Scroll down to the Spin tricks card:
    • Adjust the Spin length slider between 3.0 and 9.0 seconds (default is 5.2 seconds).
    • Calibrate the frequency percentage for the 3 tease tricks:
      • Near miss: Wheel lands on the big prize before the winner, pointer quivers, then creeps to the winning slot.
      • Stops just short: Wheel decelerates and stops just before the big prize next to it.
      • Crosses, then rolls back: Wheel crosses into the big prize, holds briefly, then rolls back into the winning slot.
  2. Click Show me beside any trick to preview its animation on the wheel canvas.
  3. In the Player view box on the right, click Try a spin to run a simulated spin (draws according to your odds and plays configured tricks without consuming currency or logging data).
  4. When satisfied, toggle Open to players to Open (Green).
  5. Click Save on the bottom action bar.

5. Fulfilling big physical prizes​

  1. When a player wins a physical prize, the system records the transaction with status Not handed over yet.
  2. Go to Report & spin history and select the Big prizes tab.
  3. Click the Not handed over yet filter tile.
  4. Review the winning player username and prize details.
  5. Once physical delivery or shipment is complete, click Mark as delivered on that row.
  6. In the confirmation dialog, verify the recipient information and confirm.
  7. Status updates to Handed over (Green), stamped with your username and timestamp.

6. Deleting the wheel setup​

  1. To remove the wheel entirely, toggle the Open to players switch to Closed (Gray) and click Save.
  2. Scroll to the bottom card: Delete setup.
  3. Click the red Delete setup button and confirm in the dialog.
  4. The wheel configuration is cleared, returning the page to the initial setup state (past spin history remains saved in the database).

7. Edit / Add forms​

1. Wheel Settings Fields​

FieldRequired?What to enterExampleRules & Constraints
Wheel name (Thai)RequiredTitle in Thaiวงล้อนำโชคเศรษฐีMax 100 characters
Wheel name (English)OptionalTitle in EnglishMillionaire Lucky WheelMax 100 characters (falls back to Thai name if empty)
Price per spin (tickets)RequiredTickets deducted per spin1Whole number >= 0
Price per spin (diamonds)RequiredDiamonds deducted per spin10Whole number >= 0
Open to playersRequiredActive status switchOpen (Green)On or Off

2. Slot Form Fields​

FieldRequired?What to enterExampleRules & Constraints
Reward typeRequiredSlot reward categoryPrizeChoose: Prize, Points, Tickets, or Diamonds
Label on wheelRequiredText printed on wheel segmentiPhone 17Max 60 characters
Prize nameRequired (if Prize)Complete item titleiPhone 17 Pro Max 256GBMax 100 characters
Big prize rankRequired (if Prize)Priority rank in prize ladderPrize 1Number from 1 to physical prize count
AmountRequired (if numeric)Reward quantity100Whole number > 0
Odds weightRequiredProbability weight value15Number >= 0; share % calculated automatically
Image on wheelOptionalCustom segment artworkUpload fileTransparent PNG/WebP up to 5 MB

8. Popups and dialogs (Popup / Modal)​

1. Confirm Prize Delivery Dialog​

  • When it opens: When clicking Mark as delivered on a pending big prize record.
  • What you see: Prize name, player username, and confirmation note that the action is final.
  • What to do: Ensure physical delivery is complete, then confirm.
  • Result: Status changes permanently to Handed over.

2. Delete Wheel Setup Confirmation Dialog​

  • When it opens: When clicking Delete setup while the wheel is inactive.
  • What you see: Warning prompt stating wheel configuration and slots will be cleared.
  • What to do: Confirm deletion.
  • Result: Deletes active wheel setup while preserving historical spin logs.

3. Version Conflict Dialog​

  • When it opens: When saving wheel settings or slots that were modified by another administrator in the interim.
  • What you see: Outdated version alert.
  • What to do: Click Load latest to pull the latest changes, then re-apply edits.
  • Result: Prevents concurrent edit overwrites.

9. Statuses and badges​

1. Lucky Wheel Operational Status​

Status BadgeColorMeaningNext Action
OpenGreenWheel is active and accessible to players in the lobby.Normal operation.
ClosedGrayWheel is closed; players see it is not open yet.Toggle switch to open when ready.

2. Big Prize Delivery Statuses​

Status BadgeColorMeaningNext Action
Pending (Not handed over yet)OrangePlayer won a physical prize; awaiting delivery.Fulfill item and click Mark as delivered.
Delivered (Handed over)GreenStaff confirmed physical prize was handed to player.Terminal fulfilled state.

3. Reward Type Colors & Badges​

Reward TypeTone ColorIconFulfillment Method
Prize (Physical)PinkGift boxManual delivery by staff
PointsOrangeStarInstant wallet credit
TicketsBlueTicketInstant wallet credit
Diamonds (Score)PurpleSparklesInstant wallet credit

10. Frequently asked questions / Troubleshooting​

  • Why does saving fail with red borders around slots?
    • Verify two fundamental requirements:
      1. The wheel must have at least 2 slots (up to 16).
      2. At least 1 slot must have an odds weight greater than 0.
      • Also ensure all required slot fields (such as prize name for physical items) are completely filled.
  • Why does a trick animation show "No everyday prize sits next to a big prize in this position"?
    • Suspense tricks (near miss, stops just short, roll back) only trigger when a winning standard prize sits immediately adjacent to a big physical prize on the wheel rim. Reorder slots so that physical prizes alternate with standard rewards.
  • Why can't I click Delete Setup?
    • The delete button is disabled while the wheel is active. Switch Open to players to Closed (Gray), click Save, and then the delete button will become active.
  • Can a delivered prize status be undone?
    • No. Once marked as delivered, the record is permanently sealed with the fulfilling administrator's username and timestamp.