Repository navigation
feat(playback): the Gate path, a +N badge beside every token, the own-label rule and 24 pairs a step (v0.22.0) - #341
Merged
Merged
Conversation
…-label rule and 24 pairs a step (v0.22.0) Part of #330 (PR 1 of 3). Playback shows what moved where, as a presentation layer only: the engine, the RNG, files, share links, digests and simulation results are unchanged. - Every Gate output that carried a move this step is highlighted under its round token (deterministic and probabilistic); an untaken branch keeps its usual look. - The step's summed amount rides beside the token as a +N badge, from +1, in the label layer above every connection label; the connection's own label never moves and dims only while the token or badge covers it. - 24 token-and-badge pairs per step replace the 60 travelling-cue budget; past them a moved connection keeps its path highlight and arrival cue. - Outside the Focus set every playback cue on a connection follows its 0.26 dimming; cues inside a node keep full strength. - Reduced motion holds the moved paths, arrival tells and +N badges static for the step; forced colours tell the highlight by width, draw the badge as a system-colour pill and dash the cues outside the focus. Docs: simulation-playback §PB4.5 and new §PB4.6, large-graph-readability §LGR2.3, visual-language §VL9. Seven approved baselines replaced (run-distinction-states, play-depart x3 desktop and x3 phone). Release notes v0.22.0 in 18 languages.
Deploying cozy-loop-studio with
|
| Latest commit: |
3d310d1
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://75898517.cozy-loop-studio.pages.dev |
| Branch Preview URL: | https://feat-play-gate-path.cozy-loop-studio.pages.dev |
The release date is the Seoul day of the merge: the v0.22.0 entry in the release notes and its CHANGELOG heading move from 2026-10-08 to 2026-10-09. The README's v0.22.0 section carries no date.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Part of #330: the first of its three playback pull requests (v0.22.0). Playback now shows what moved where: the path a Gate took, every amount as a
+Nbadge beside its round token, the connection's own label rule, the 24-pair cap, and Focus mode winning on connections, with their reduced-motion and forced-colours forms. A presentation layer only: the engine, the RNG, files, share links, digests and simulation results are unchanged; Monte Carlo draws no tokens, as before.What changes
.pb-path--gate) under its round token, from its onset to settle; several can be at once. A branch with no move keeps its usual look.+Nbeside the round token. The round token still travels wherever it did. The step's summed amount always rides beside it as a badge, from+1; before, a bare number sat above the dot only when the amount was above 1. The badge lives in the label layer, above every connection label, pinnedltr; at L0 it is left out with the dot, as the dot already was..pb-path--over-cap) and its arrival cue.filter: opacity(), so it multiplies with their own animation); cues inside a node keep full strength.+Nbadges (at the target end, off the target node) stay, static, for the committed step, within the same 24 pairs.CanvasText), the badge is aCanvaspill with aCanvasTextborder, a covered label gives way while covered, and outside the focus set the highlight takes the1 5dash, the token turns hollow and the badge's border is dashed.Contract changes
docs/simulation-playback.md: §PB4.5 (24 pairs; past the cap, highlight and arrival cue) and the new §PB4.6 (Gate path,+Nbadge, label rule, Focus, reduced motion, forced colours).docs/large-graph-readability.md§LGR2.3: playback cues on a dimmed connection follow its dimming.docs/visual-language.md§VL9: the new motion and its reduced-motion form.examples/README.md: the playback fixture's cap and checklist.Tests
e2e/playback-gate-path.spec.ts(8 tests): the taken branch of a deterministic and of a probabilistic Gate is highlighted and carries its token and+N, the untaken one keeps its computed look; a split moving on every branch highlights each; the own label dims only while covered and never moves; Focus dims the cues of an out-of-focus connection and not of an in-focus one; the forced-colours forms; the reduced-motion static form, held through a pause and cleared on Reset; the committed values and the document digest equal a run without the cues.src/components/edges/playbackBadge.test.ts(8 tests): the badge text from+1, its place beside the token, the own-label overlap rule, the cap of 24.playback-caps-perfplayback-caps-perfplayback-caps-perfplayback-fixturecanvas-refresh-edges"one token per edge per step…" andplayback-choreography"several transfers on one edge…" read the badge instead of the old number;playback-caps-perf"MAX_PLAYBACK_TOKENS — a selected edge caps…" reads the badge;playback-fixture"the token walks the real d…" picks a Bézier edge among the 24 that carry a token (its oldzf40is now past the cap);large-graph-readability"VISUAL — a committed step…" has an updated baseline. The reduced-motion test incanvas-refresh-edgesalso checks the static+2.Baselines
Seven replaced, approved after an off (main
707fcc8) / on (this branch) capture of all 76, compared on every channel, each side also captured twice to separate noise:large-graph-readabilityrun-distinction-states-chromium(the step's badges, a covered label dimmed) andplayback-visualplay-depart-{light,dark,forced-colors}-L2on chromium and on mobile (the+3badge beside the departing token, where a bare3sat above it). Two that differed were left as they are as noise:frames-activity-chromium(it differs between two captures of the same tree on both sides) andko-desktop-app-chromium(3 px at the spot that varies between runs). The other 69 are byte-identical.Checks run locally
npx tsc -b, unit tests 3,279 passed, every sourcecheck:*, oxlint at its 39-warning baseline.Release
v0.22.0:
package.json, the release-note entry (five lines in 18 languages, 16 without native review; the Portuguese lines are identical in pt-BR and pt-PT),.changes/playback-gate-path.json,CHANGELOG.md,README.md. The release date is set to the Seoul day of the merge right before it.