Repository navigation
feat(tutorial): rework the start page and the stage list, and rename stages by what they build - #112
Merged
Merged
Conversation
Each card held only a number and a title across the whole width. Three in a row on a wide window fit every stage in view. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
In a grid, the small "Stage N" did not tell whether to read across or down. The number is read out as "Stage N" from a hidden copy, whose style is now shared with the controls of stage texts. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The cleared mark beside the title left too little width, so a short title such as "Both switches" wrapped. It is now under the title, the number's circle is a little smaller, and a long Japanese title wraps between phrases. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The digits sat low in their line, so they looked below the middle of the circle. Their box is now trimmed to the digits. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A title on two lines made its row taller than the others. The list is a little wider, so that every title fits on one line in three columns, and every row is as tall as the tallest when a narrow window wraps one. Comments that only restated the code are dropped. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The lead said to go from the top, which a grid no longer has, and did not say that the stages build up to a stopwatch. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The list showed a circled number and the stage page "Stage 7" in small grey text. Both now use one component, and the list's lead points at the number as it is shown. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The first stage not cleared yet gets a border in the tutorial colour and "Next stage" under its title, so that a player coming back to the list sees where to go on. No stage is marked once all are cleared. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The start page asked what to do without saying what the app is. It now opens with the app's name and the project's description, and the tutorial is marked for first-timers, with where it leads, and the free mode for those who know logic circuits. The page is narrower, as the cards hold short texts. The app name is one constant for the header and the page. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
"Starting from a pair of switches" meant nothing before the first stage. The card now tells the number of stages, counted from the stages, and that they end in a stopwatch. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
"Both switches" and the like named the inputs rather than what the circuit does, which also read oddly as the name of a part handed over. They are now "ON when both are ON" and so on. "One decimal digit" and "One base-6 digit", whose terms are taught only inside the stages, are now "0–9 counter" and "0–5 counter", after the counter stage before them. The texts that name these parts follow. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- The list's mark for the first stage not cleared reads "Continue here", as "Next stage" is the stage page's button to the following stage. - The lead says that only a stage needing an earlier circuit hands it over. - The start page's description takes the app name from its constant. - The free mode's audience label uses the darker green, which small text needs on white. - The stage page's heading holds the hidden "Stage N", so that moving by headings reads the number too. - A test checks that every name a stage text marks is a pin, a part or a title, so that renaming a title cannot leave a text naming the old part. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Deploying create-cpu-c8345196-9409-4cce-afc4-389f413ad8ee with
|
| Latest commit: |
2c8c002
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://72159f96.create-cpu-c8345196-9409-4cce-afc4-389f413ad8ee.pages.dev |
| Branch Preview URL: | https://feat-tutorial-list.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
A visitor who does not know logic circuits could not tell from the start page what the app is or which mode to choose, and the stage list was a column of wide cards that showed neither where the stages lead nor where to go on.
Testing
npx vitest run(303 tests),npx tsc -p .andnpx biome check srcpass. New tests cover:🤖 Generated with Claude Code