Skip to content

feat(jollity-app): rework the post-game flow - #59

Merged
Nemanya8 merged 7 commits into
mainfrom
nm-draw-collectables
Nov 25, 2026
Merged

Nemanya8 merged 7 commits into
mainfrom
nm-draw-collectables

Conversation

@Nemanya8

Copy link
Copy Markdown
Collaborator

Prize draw

  • When the draw ends, the player holds the stage to gather it into the collectables' bubble. The bubble is carried over the navigation to /chest (components/carried-bubble.tsx, lib/chest-scene/carry.ts), so the chest opens with the same bubble the draw closed into.
  • A timeline under the ending (components/draw/draw-timeline.tsx), and a name ticker for who is playing (lib/draw/wheel/name-ticker.ts).
  • Friends: the player's contacts among the entrants are marked in a colour each, and the ticker visits them before the spin.
    • The contacts come from TrUAPI's contacts.usernames(), which hosts serve only to dim2 (lib/host/contacts.ts). The read starts when the draw screen opens.
    • A contact must match an entrant's whole username, so alice.07 isn't alice.
    • At most six are marked.
    • The wheel stands only for the friends it actually finds. The stand stops growing once the visit begins or the wheel turns, so a spin never runs back.
  • The player's own time at the coin has its own bound (COIN_WAIT_MS, 5 min), separate from the animation's progress timer (rule D7 in lib/draw/draw-screen.ts).
  • The hold's scene, its warp and the bubble's film are framework-free in lib/draw/hold/ (architecture rule 6).

Chest

  • The collectables float in the bubble by their share (lib/chest-scene/float.ts), over a starfield. An opened piece is shown as its page image.
  • The Pocket closes when you drag the open book's cover across it. Each piece the cover's edge sweeps past drops into its cell. Let go past CLAIM_AT and the cover shuts on the rest by itself (components/pocket/pocket-claim.tsx, lib/pocket/book.ts, motion.ts, fx.ts). This replaces the swipe. Continue is hidden while the Pocket is up.
  • The Pocket's frame loop is framework-free in lib/pocket/scene.ts (architecture rule 6), as the chest's is in lib/chest-scene/engine.ts. The component keeps only the book's markup and its gestures, and lib/pocket/scene.test.ts tests the loop in jsdom.

Fixes

  • The prize coin's guilloche moiréd on phones. PRIZE_LOOK now cuts it at half the rings and shallower, and the shipped 1 and 10 CASH bakes were rebuilt. The good-luck coin is unchanged.
  • A hard load of /chest, /game or /prize-draw on a host that serves the root index.html for those paths left home's prerendered loading screen in the page, which pushed the real page off screen. FrontDoor now removes that leftover markup before it routes home first (dropStrayHome in lib/front-door.ts, with jsdom tests).

@Nemanya8
Nemanya8 requested a review from a team as a code owner November 25, 2026 09:21
@github-actions

Copy link
Copy Markdown

dim2-pr59-sandbox00 · logs

Network Mobile / Desktop Web
Previewnet dim2-pr59-sandbox00.testnet https://dim2-pr59-sandbox00.testnet.li

No Paseo preview: add the deploy-paseo label to deploy one.

@Nemanya8
Nemanya8 merged commit d62eef1 into main Nov 25, 2026
9 checks passed
@Nemanya8
Nemanya8 deleted the nm-draw-collectables branch November 25, 2026 09:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant