From ad79e644e36d745882228e8c11dfab8a872e14d1 Mon Sep 17 00:00:00 2001 From: Damien Simonin Feugas Date: Sat, 17 Dec 2022 23:23:03 +0100 Subject: [PATCH] feat(web): selects meshes by clicking on their size/quantity indicator (#121) --- TODO.md | 1 - apps/web/src/components/Label.svelte | 14 ++++- .../(auth)/game/[gameId]/GameHand.svelte | 7 ++- .../(auth)/game/[gameId]/Indicators.svelte | 3 +- apps/web/src/stores/indicators.js | 14 ++++- .../game/[gameid]/Indicators.tools.svelte | 10 +++- .../__snapshots__/Indicators.tools.shot | 12 ++-- apps/web/tests/stores/indicators.test.js | 58 +++++++++++++++++-- 8 files changed, 101 insertions(+), 18 deletions(-) diff --git a/TODO.md b/TODO.md index 2fc6a2eb..4440b0ad 100644 --- a/TODO.md +++ b/TODO.md @@ -95,7 +95,6 @@ AssertionError: expected 2nd "spy" call to have been called with [ 'anima' ] - detailable/stackable behavior: preview a stack of meshes - hide/distinguish non-connected participants - is this right? given an active selection, when it anchors with other items, then items are part of the selection -- click on stack size to select all/select stack on push? - option to invite players with url - distribute multiple meshes to players' hand - shortcuts cheatsheet diff --git a/apps/web/src/components/Label.svelte b/apps/web/src/components/Label.svelte index ed871794..c0a9a137 100644 --- a/apps/web/src/components/Label.svelte +++ b/apps/web/src/components/Label.svelte @@ -1,13 +1,23 @@
{content}
@@ -15,7 +25,7 @@