feat: add tile matcher + games layer#5
Merged
Conversation
Contributor
Author
|
@moT01 Seeing as we are moving fast and breaking things, I added this. If you do not have a completely different idea, then feel free to merge. |
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
What changes? Why?
Details
Component -
TileMatcherpairsmodel: one face → duplicated (classic concentration), two faces → related match (term↔definition). Deck size = 2 × pairs.length.Styling - .tile-matcher* BEM appended to
components.cssusing existing tokens; 3D rotateY flip mirroring the Modal transform pattern; handles flip / no-flip / faces-open modes.Layer wiring - new
src/games/barrel, added toindex.ts,tsup.config.ts,./gamesexport inpackage.json, andLAYER_SUBPATHSinpackage.test.ts. Build emitsdist/games.{js,cjs,d.ts,d.cts}.Docs -
category:'game'enum,tile-matcher.mdx, showcase + demo island.Changeset -
.changeset/tile-matcher-game.mdon uikit + uikit-css.Type of change
Pre-flight checklist
pnpm changesetadded (skip forchore/docs/test/ci-only PRs)pnpm test,pnpm typecheck,pnpm lint,pnpm format:checkclean locallypnpm test:visual:updateon macOS;Linux goldens regenerated via the Playwright Docker image — see
docs/runbooks/deploy-docs.md)
apps/docs/public/{_headers,_redirects,robots.txt}unchanged orrebaselined deliberately
docs/adr/README.md)
Screenshots / GIF