Skip to content

stepper: the step slider counts from 0 - #159

Merged
martin-henz merged 2 commits into
mainfrom
stepper-slider-from-zero
Oct 9, 2026
Merged

martin-henz merged 2 commits into
mainfrom
stepper-slider-from-zero

Conversation

@martin-henz

Copy link
Copy Markdown
Member

The stepper's step slider now counts the steps taken from 0, like the e-stepper's and the CSE machine's: 0 is the start, the right end is the number of steps taken, and both ends are labelled (Blueprint's own labelling stopped short of the end). The label helper is shared with the e-stepper (sliderLabels, now in its own module so the e-stepper does not pull in the stepper's hotkey library).

  • A run of one step gets a valid disabled range (0 to 1).
  • The welcome text's even/odd note follows the numbering: odd-numbered steps highlight the next redex in yellow, even-numbered steps (after 0) the result in green.

The step limit now means the same in all three tools (the number at the right end never exceeds it): source-academy/py-slang#529.

Tests: the range, value and labels for a long run; stepping and the double arrows; a run of one step; the label values.

🤖 Generated with Claude Code

As in the e-stepper and the CSE machine: 0 is the start, the right end is the
number of steps taken, and both ends are labelled (the label helper is shared).
The welcome text's even/odd note follows the numbering.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@changeset-bot

changeset-bot Bot commented Oct 9, 2026 •

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: c3d0bc3

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

… welcome text

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@martin-henz
martin-henz merged commit 4e26b8e into main Oct 9, 2026
2 checks passed
@martin-henz
martin-henz deleted the stepper-slider-from-zero branch October 9, 2026 14:40
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