Repository navigation
feat(tutorial): draw names, values and controls in stage texts as on screen - #111
Merged
Merged
Conversation
… on screen
Stage texts mark pin and part names as {Start}, values as [ON] or
[0011], and controls as <check> or <play>. Names are bold, values look
as in the tables, and controls are drawn like the real buttons and
icons, smaller and not clickable. The labels of text buttons come from
the same messages as the buttons. Tests check that every stage text
parses and that both languages mark the same values and controls.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A value of OFFs or 0s was plain like the text around it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The buttons in stage texts copied the real ones' colours, so a change to a real button would not reach them. The looks of Check, the two Apply buttons and Auto are now defined once, used by the real controls, and drawn in stage texts with the same components, smaller and inert. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Roboto was named first but never loaded, so English fell back to the system's fonts, most of which have no weight 500. Stage texts set names in 500, which then looked the same as the text around them. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Goals that explain several things are split into paragraphs: what to build, what the parts already placed are for, and what Check looks at. - Steps are further apart. - Names are set in weight 500, lighter than values, as some steps name a pin or a part every few words. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ines even - The controls drawn in stage texts were inert, which also hid their labels from screen readers. They are now hidden from screen readers and out of the tab order, with the label read from a hidden copy. - Their own size overrides the padding of the shared look, so that the Const Apply button no longer makes its line taller. - The sx of a shared look is merged with any other, not replaced. - The FlipFlop's first output in the counter stage is four bits. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Deploying create-cpu-c8345196-9409-4cce-afc4-389f413ad8ee with
|
| Latest commit: |
eb381ea
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://c6c46d4a.create-cpu-c8345196-9409-4cce-afc4-389f413ad8ee.pages.dev |
| Branch Preview URL: | https://feat-stage-text-markup.create-cpu-c8345196-9409-4cce-afc4-389f413ad8ee.pages.dev |
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
In the stage texts, pin and part names, values such as ON and 0011, and buttons such as Check were all set like the text around them, which made the long texts of the later stages hard to follow.
{Start}, values as[ON]or[0011], and controls as<check>or<play>.Not in this PR
Testing
npx vitest run(299 tests),npx tsc -p .andnpx biome check srcpass.🤖 Generated with Claude Code