From c0ea1b93236348a0dee39d710ce5d3c84d382514 Mon Sep 17 00:00:00 2001 From: orchestrator-agent <20+orchestrator-agent@code.cubecraftcreations.com> Date: Wed, 7 Oct 2026 01:44:21 -0400 Subject: [PATCH] Try it and Pass animations (Discover deck) (#106) Co-authored-by: orchestrator-agent <20+orchestrator-agent@code.cubecraftcreations.com> --- web/src/discover/DeckCard.tsx | 5 +- web/src/discover/DiscoverPage.module.css | 10 ++ web/src/discover/DiscoverPage.test.tsx | 187 ++++++++++++++++++++++- web/src/discover/DiscoverPage.tsx | 101 +++++++++--- web/src/discover/motion.test.ts | 176 +++++++++++++++++++++ web/src/discover/motion.ts | 142 +++++++++++++++++ web/src/test/animate.ts | 52 +++++++ 7 files changed, 652 insertions(+), 21 deletions(-) create mode 100644 web/src/discover/motion.test.ts create mode 100644 web/src/discover/motion.ts create mode 100644 web/src/test/animate.ts diff --git a/web/src/discover/DeckCard.tsx b/web/src/discover/DeckCard.tsx index 7d3df64..6c2cb2d 100644 --- a/web/src/discover/DeckCard.tsx +++ b/web/src/discover/DeckCard.tsx @@ -17,7 +17,7 @@ export type DeckCardProps = { // DeckCard is one Side quest in the deck. Only the top card is read out and // reachable; the cards behind it are the stack's edge, kept rendered so they // can be promoted. Its "Try it!" and "Pass" stamps stay hidden until a -// decision shows them. +// decision shows them, and its shade until Pass folds it (see motion.ts). export function DeckCard({ quest, depth }: DeckCardProps) { const top = depth === 0 const titleId = `side-quest-${quest.id}` @@ -38,12 +38,13 @@ export function DeckCard({ quest, depth }: DeckCardProps) { Why this? {quest.reason}

-