Skip to content

Demo: look around is 45 degrees, snapped in means snapped in, demo.py is not saved over and over - #124

Merged
david-firia merged 3 commits into
mainfrom
demo-checks
Nov 24, 2026
Merged

david-firia merged 3 commits into
mainfrom
demo-checks

Conversation

@david-firia

Copy link
Copy Markdown
Contributor

From David's review of the demo mission (Nov 24), points 5, 7 and 9.

  • Look around (5). The orbit event is the camera turned 45 degrees in all (drag or arrow keys), counted from the step that asks for it, not the first touch of a drag.
  • Snapped in (7). In blocks, a guide step's checks see only blocks snapped into the program (under its start, a function or an event). The LED block met the step while still being dragged from the palette, or dropped loose. Ordinary objectives' goals are unchanged.
  • demo.py (9). demo/demo.py is replaced without asking when it holds only what the demo last left there; changed by the student since, they are asked to save theirs, as before. Only the demo: every other mission's file stays the student's, done with the guide or not.

An independent reviewer read the demo.py change for ways to lose work. It found one (a file opened mid-demo could be recorded as the demo's): fixed, the record is only the demo's own file and is consulted only when the demo asks. The learn-demo tests for this fail on main.

Tests: learn-demo, learn-journey, learn-guided, sim-ui, sim-browser, smoke, files pass locally.

🤖 Generated with Claude Code

david-firia and others added 2 commits November 24, 2026 08:45
…s snapped in, demo.py is not saved over and over

- The `orbit` event is the camera turned 45 degrees in all, by drag or arrow
  key, not the first touch of a drag.
- A guide's step checks, in blocks, only the blocks snapped into the program
  (hanging from its start, a function or an event): the LED block met the
  step while still being dragged from the palette, or dropped loose.
- demo/demo.py is replaced without asking when it holds only what the demo
  left there; changed by the student since, they are asked as before. Other
  missions' files are unchanged: always theirs.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…e demo asks, a folder's name in its key; turning counts from each step

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@github-actions

github-actions Bot commented Nov 24, 2026 •

Copy link
Copy Markdown

Visit the preview URL for this PR (updated for commit 24b1f3d):

https://firialabs-open-editor--pr124-demo-checks-wa92p2iz.web.app

(expires Tue, 01 Dec 2026 16:10:54 GMT)

🔥 via Firebase Hosting GitHub Action 🌎

Sign: 81259a1fec315ca1af3747d225d9c7424890be3e

# Conflicts:
#	docs/mission-packs.md
#	tests/learn-demo.mjs
@david-firia
david-firia merged commit 3e714e3 into main Nov 24, 2026
4 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