Repository navigation
test(mobile): cover design and motion tokens (#230) - #234
Merged
juancguerrerodev merged 1 commit intoDec 6, 2026
Merged
juancguerrerodev merged 1 commit into
juancguerrerodev merged 1 commit into
Conversation
Contributor
|
Thanks for all of these! Before they can merge, two things CONTRIBUTING.md asks for:
Once the template is filled in, I'll merge the ones that are ready: #234, #243, #244, #245, #247, #248, #249, #250, #251, #253, #254, #255. Two need a fix first, noted on #242 and #252. 🦀 |
This was referenced Dec 6, 2026
Contributor
Author
juancguerrerodev
force-pushed
the
test/design-motion-tokens
branch
from
December 6, 2026 07:57
16cfee9 to
915a811
Compare
Contributor
|
All 14 merged, thanks for filling in the templates! For next time: claim one issue at a time in a comment before you start, so the newcomers joining this week find some left. 🦀 |
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.
Closes #230
Adds
apps/mobile/src/tokens.test.tscovering Hermit mobile design tokens and motion tokens.What the tests cover
awhent=0and atbwhent=1; rounds at the midpoint (mix("#000000", "#FFFFFF", 0.5)->#808080); always answers in uppercase#RRGGBBeven with lowercase inputs; keeps every channel between the two inputs whiletis between 0 and 1.stagger.step, caps atstagger.max * stagger.step.pressunder 100,sheetis the longest.Verification
node --test --experimental-strip-types src/tokens.test.ts-> 7 passed, 0 failedTests only — no source files (
theme.ts,motion.ts) changed, per the issue constraints.Pull request template
What and why
Closes #230.
Adds tests for the mobile design and motion tokens, which had none.
Vision fit
Principle 7, small, typed and tested: the tokens every screen is built from now have tests.
Non-negotiables
Checklist
acceptedproposal.pnpm check:privacy,pnpm typecheck,pnpm lint,pnpm testandnode scripts/guard/check.mjs --patterns scripts/guard/patterns.txt. Gate note: privacy and guard pass on this checkout today; the rest was run per package as listed under AI agents, not as one root gate on this Windows machine, where unrelated pre-existing failures appear in the site badges, the devices table and mobile source scans.packages/copy, in es-419 and en, with matching keys and placeholders, and no em or en dashes.Model path
packages/model,agent,skillsoreval, the prompt, the router, tool descriptions, normalizers, examples or the model file.Screenshots
New dependencies and network calls
None. No new dependency and no new network call.
AI agents
What was run: node --test --experimental-strip-types apps/mobile/src/tokens.test.ts (7/7).