Commit fc7ca39
Deathgiver
feat(minigames): add prize win limits, win messages, and jackpot-only launch
- Cap each prize's total wins via a new `quantity` field; exhausted prizes
drop out of the draw pool under an advisory lock to prevent two concurrent
plays from both winning the last unit.
- Let each prize send its own win message (text or flow), mirroring the
existing lose-message flow.
- Restrict minigame creation to Jackpot for now, since it is the only type
with a working play experience; other types show as "coming soon".
- Fix `findDMByContact` to resolve the DM conversation for the channel the
player actually used, not just any DM for the contact.
- Move minigame page breadcrumb/tabs into a shared layout instead of
duplicating them per page.1 parent 8d36fde commit fc7ca39
63 files changed
Lines changed: 2745 additions & 702 deletions
File tree
- apps
- builder
- messages
- public/mini-game/jackpot
- src
- app
- minigames
- space/[workspaceId]/minigames
- [id]
- edit
- history
- components/data-table
- features
- dynamic-images
- minigames
- actions
- components
- play
- schemas
- worker/src/integration/handlers
- packages
- business
- __tests__
- src
- conversation
- minigame
- tag
- database/src/partials
- encryption
- __tests__
- src
- minigame-ui
- src/components
- variables/src
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5156 | 5156 | | |
5157 | 5157 | | |
5158 | 5158 | | |
5159 | | - | |
| 5159 | + | |
5160 | 5160 | | |
5161 | 5161 | | |
5162 | 5162 | | |
| |||
5166 | 5166 | | |
5167 | 5167 | | |
5168 | 5168 | | |
5169 | | - | |
| 5169 | + | |
| 5170 | + | |
5170 | 5171 | | |
5171 | 5172 | | |
5172 | 5173 | | |
| |||
5180 | 5181 | | |
5181 | 5182 | | |
5182 | 5183 | | |
| 5184 | + | |
| 5185 | + | |
5183 | 5186 | | |
| 5187 | + | |
5184 | 5188 | | |
5185 | 5189 | | |
5186 | 5190 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5156 | 5156 | | |
5157 | 5157 | | |
5158 | 5158 | | |
5159 | | - | |
| 5159 | + | |
5160 | 5160 | | |
5161 | 5161 | | |
5162 | 5162 | | |
| |||
5166 | 5166 | | |
5167 | 5167 | | |
5168 | 5168 | | |
5169 | | - | |
| 5169 | + | |
| 5170 | + | |
5170 | 5171 | | |
5171 | 5172 | | |
5172 | 5173 | | |
| |||
5180 | 5181 | | |
5181 | 5182 | | |
5182 | 5183 | | |
| 5184 | + | |
| 5185 | + | |
5183 | 5186 | | |
| 5187 | + | |
5184 | 5188 | | |
5185 | 5189 | | |
5186 | 5190 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5156 | 5156 | | |
5157 | 5157 | | |
5158 | 5158 | | |
5159 | | - | |
| 5159 | + | |
5160 | 5160 | | |
5161 | 5161 | | |
5162 | 5162 | | |
| |||
5166 | 5166 | | |
5167 | 5167 | | |
5168 | 5168 | | |
5169 | | - | |
| 5169 | + | |
| 5170 | + | |
5170 | 5171 | | |
5171 | 5172 | | |
5172 | 5173 | | |
| |||
5180 | 5181 | | |
5181 | 5182 | | |
5182 | 5183 | | |
| 5184 | + | |
| 5185 | + | |
5183 | 5186 | | |
| 5187 | + | |
5184 | 5188 | | |
5185 | 5189 | | |
5186 | 5190 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
58 | | - | |
| 58 | + | |
59 | 59 | | |
60 | 60 | | |
61 | 61 | | |
| |||
1161 | 1161 | | |
1162 | 1162 | | |
1163 | 1163 | | |
1164 | | - | |
| 1164 | + | |
1165 | 1165 | | |
1166 | 1166 | | |
1167 | 1167 | | |
| |||
5156 | 5156 | | |
5157 | 5157 | | |
5158 | 5158 | | |
5159 | | - | |
| 5159 | + | |
5160 | 5160 | | |
5161 | 5161 | | |
5162 | 5162 | | |
| |||
5166 | 5166 | | |
5167 | 5167 | | |
5168 | 5168 | | |
5169 | | - | |
| 5169 | + | |
| 5170 | + | |
5170 | 5171 | | |
5171 | 5172 | | |
5172 | 5173 | | |
| |||
5180 | 5181 | | |
5181 | 5182 | | |
5182 | 5183 | | |
| 5184 | + | |
| 5185 | + | |
5183 | 5186 | | |
| 5187 | + | |
5184 | 5188 | | |
5185 | 5189 | | |
5186 | 5190 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5156 | 5156 | | |
5157 | 5157 | | |
5158 | 5158 | | |
5159 | | - | |
| 5159 | + | |
5160 | 5160 | | |
5161 | 5161 | | |
5162 | 5162 | | |
| |||
5166 | 5166 | | |
5167 | 5167 | | |
5168 | 5168 | | |
5169 | | - | |
| 5169 | + | |
| 5170 | + | |
5170 | 5171 | | |
5171 | 5172 | | |
5172 | 5173 | | |
| |||
5180 | 5181 | | |
5181 | 5182 | | |
5182 | 5183 | | |
| 5184 | + | |
| 5185 | + | |
5183 | 5186 | | |
| 5187 | + | |
5184 | 5188 | | |
5185 | 5189 | | |
5186 | 5190 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5156 | 5156 | | |
5157 | 5157 | | |
5158 | 5158 | | |
5159 | | - | |
| 5159 | + | |
5160 | 5160 | | |
5161 | 5161 | | |
5162 | 5162 | | |
| |||
5166 | 5166 | | |
5167 | 5167 | | |
5168 | 5168 | | |
5169 | | - | |
| 5169 | + | |
| 5170 | + | |
5170 | 5171 | | |
5171 | 5172 | | |
5172 | 5173 | | |
| |||
5180 | 5181 | | |
5181 | 5182 | | |
5182 | 5183 | | |
| 5184 | + | |
| 5185 | + | |
5183 | 5186 | | |
| 5187 | + | |
5184 | 5188 | | |
5185 | 5189 | | |
5186 | 5190 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5156 | 5156 | | |
5157 | 5157 | | |
5158 | 5158 | | |
5159 | | - | |
| 5159 | + | |
5160 | 5160 | | |
5161 | 5161 | | |
5162 | 5162 | | |
| |||
5166 | 5166 | | |
5167 | 5167 | | |
5168 | 5168 | | |
5169 | | - | |
| 5169 | + | |
| 5170 | + | |
5170 | 5171 | | |
5171 | 5172 | | |
5172 | 5173 | | |
| |||
5180 | 5181 | | |
5181 | 5182 | | |
5182 | 5183 | | |
| 5184 | + | |
| 5185 | + | |
5183 | 5186 | | |
| 5187 | + | |
5184 | 5188 | | |
5185 | 5189 | | |
5186 | 5190 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5156 | 5156 | | |
5157 | 5157 | | |
5158 | 5158 | | |
5159 | | - | |
| 5159 | + | |
5160 | 5160 | | |
5161 | 5161 | | |
5162 | 5162 | | |
| |||
5166 | 5166 | | |
5167 | 5167 | | |
5168 | 5168 | | |
5169 | | - | |
| 5169 | + | |
| 5170 | + | |
5170 | 5171 | | |
5171 | 5172 | | |
5172 | 5173 | | |
| |||
5180 | 5181 | | |
5181 | 5182 | | |
5182 | 5183 | | |
| 5184 | + | |
| 5185 | + | |
5183 | 5186 | | |
| 5187 | + | |
5184 | 5188 | | |
5185 | 5189 | | |
5186 | 5190 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5156 | 5156 | | |
5157 | 5157 | | |
5158 | 5158 | | |
5159 | | - | |
| 5159 | + | |
5160 | 5160 | | |
5161 | 5161 | | |
5162 | 5162 | | |
| |||
5166 | 5166 | | |
5167 | 5167 | | |
5168 | 5168 | | |
5169 | | - | |
| 5169 | + | |
| 5170 | + | |
5170 | 5171 | | |
5171 | 5172 | | |
5172 | 5173 | | |
| |||
5180 | 5181 | | |
5181 | 5182 | | |
5182 | 5183 | | |
| 5184 | + | |
| 5185 | + | |
5183 | 5186 | | |
| 5187 | + | |
5184 | 5188 | | |
5185 | 5189 | | |
5186 | 5190 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5156 | 5156 | | |
5157 | 5157 | | |
5158 | 5158 | | |
5159 | | - | |
| 5159 | + | |
5160 | 5160 | | |
5161 | 5161 | | |
5162 | 5162 | | |
| |||
5166 | 5166 | | |
5167 | 5167 | | |
5168 | 5168 | | |
5169 | | - | |
| 5169 | + | |
| 5170 | + | |
5170 | 5171 | | |
5171 | 5172 | | |
5172 | 5173 | | |
| |||
5180 | 5181 | | |
5181 | 5182 | | |
5182 | 5183 | | |
| 5184 | + | |
| 5185 | + | |
5183 | 5186 | | |
| 5187 | + | |
5184 | 5188 | | |
5185 | 5189 | | |
5186 | 5190 | | |
| |||
0 commit comments