feat(viewer): the moves a model takes shown as moving pictures #54

Merged
dawid merged 1 commit from gesture-coach into main 2026-11-18 13:40:55 +00:00
Owner

The gestures were explained only in the status line, and that wasn't enough to find out how to
flick or twist. Now they're shown:

  • How-to card: the first time a model that takes moves is seen on a device, a card above its
    buttons plays a small animated picture of each move (tap, flick, shake, twist, tilt) with a
    line saying what to do, 2.6 s each.
  • ? after the model's buttons plays the card again.
  • Buttons: each action button carries the still picture of its move, so the button and the
    move look alike. The help's list of moves has the pictures too.
  • Moves come from MODEL_GUIDES (actions, plus tilt: true for the attitude indicator, the
    maze and the penguin).
  • SVG built in js/coach.js, animated by style.css (the CSP allows no inline styles);
    prefers-reduced-motion stops the animation.
  • Which models have shown their card is kept in localStorage (wristmark.coached); the
    privacy page (English and German) says so.

Docs: docs/dev/interaction.md ("Built: showing the moves"), docs/user/guide.md.
Viewer tests pass (74 of 74).

The gestures were explained only in the status line, and that wasn't enough to find out how to flick or twist. Now they're shown: - **How-to card:** the first time a model that takes moves is seen on a device, a card above its buttons plays a small animated picture of each move (tap, flick, shake, twist, tilt) with a line saying what to do, 2.6 s each. - **?** after the model's buttons plays the card again. - **Buttons:** each action button carries the still picture of its move, so the button and the move look alike. The help's list of moves has the pictures too. - **Moves** come from `MODEL_GUIDES` (actions, plus `tilt: true` for the attitude indicator, the maze and the penguin). - SVG built in `js/coach.js`, animated by `style.css` (the CSP allows no inline styles); `prefers-reduced-motion` stops the animation. - Which models have shown their card is kept in `localStorage` (`wristmark.coached`); the privacy page (English and German) says so. Docs: `docs/dev/interaction.md` ("Built: showing the moves"), `docs/user/guide.md`. Viewer tests pass (74 of 74).
feat(viewer): the moves a model takes shown as moving pictures
All checks were successful
CI / checks (pull_request) Successful in 35s
CI / relay (pull_request) Successful in 1m29s
CI / e2e (pull_request) Successful in 1m50s
CI / image (pull_request) Successful in 57s
CI / android (pull_request) Successful in 2m3s
CI / watch (pull_request) Successful in 2m52s
9140d01c60
The first time a model is seen, a card above its buttons plays a small animated picture of each
move it takes (tap, flick, shake, twist, tilt) with a line saying what to do; ? next to the
buttons plays it again. Each action button and the help's list of moves carry the same picture.
Which models have shown it is kept in localStorage; the privacy page says so.
dawid merged commit 2d826781c8 into main 2026-11-18 13:40:55 +00:00
dawid deleted branch gesture-coach 2026-11-18 13:40:55 +00:00
Sign in to join this conversation.
No description provided.