Skip to content

feat(tutorial): rework the start page and the stage list, and rename stages by what they build - #112

Merged
Rn86222 merged 17 commits into
mainfrom
feat/tutorial-list
Nov 20, 2026
Merged

Rn86222 merged 17 commits into
mainfrom
feat/tutorial-list

Conversation

@Rn86222

@Rn86222 Rn86222 commented Nov 20, 2026

Copy link
Copy Markdown
Contributor

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.

  • Start page: it opens with the app's name and the project's description, one sentence a line. The tutorial card is marked "New here? Start here." and says that its stages, counted from the stages, end in a stopwatch. The free mode card is marked "For those who know logic circuits". The app name is one constant, shared with the header.
  • Stage list:
    • The cards are in a grid, three in a row on a wide window, all the same height. The list is a little wider, so that every title fits on one line in three columns.
    • Each card shows its number in a large circle, as the grid alone does not tell the order. The stage page shows the same circle beside its title, and both read "Stage N" to screen readers.
    • The first stage not cleared is marked with an orange border and "Continue here". "Cleared" moved under the title.
    • The lead says that the stages build up to a stopwatch, and that a stage needing an earlier circuit hands it over as a finished part, so any stage can come first.
  • Stage titles name what the circuit does: stages 1 to 3 are "ON when both are ON", "ON when only A is ON" and "ON when just one is ON", and stage 8 and its base-6 sibling are "0–9 counter" and "0–5 counter", after the counter stage before them. The titles are also the names of the parts handed to later stages, so the texts that name those parts follow. Saved stages take the new names when opened.

Testing

  • npx vitest run (303 tests), npx tsc -p . and npx biome check src pass. New tests cover:
    • the next stage, also when stages were cleared out of order and when all are
    • every name a stage text marks being a pin, a part or a title, so that a renamed title cannot leave a text naming the old part
  • In the browser, in English and Japanese: the start page, the list with some stages cleared, the stage page's heading, and the parts handed over in stages 3 and 9.

🤖 Generated with Claude Code

Rn86222 and others added 17 commits November 21, 2026 01:03
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>
@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Nov 20, 2026 •

Copy link
Copy Markdown

Deploying create-cpu-c8345196-9409-4cce-afc4-389f413ad8ee with  Cloudflare Pages  Cloudflare Pages

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

View logs

@Rn86222
Rn86222 merged commit 9243213 into main Nov 20, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant