Skip to content

Learn: a goals HUD over the simulator; the rail shows the mission pack, the mission, then the objectives - #126

Merged
david-firia merged 8 commits into
mainfrom
demo-hud
Nov 24, 2026
Merged

david-firia merged 8 commits into
mainfrom
demo-hud

Conversation

@david-firia

Copy link
Copy Markdown
Contributor

From David's review of the demo mission (Nov 24), points 10 and 11.

  • Goals HUD (10). At the lower left of the simulator, as CodeSpace had it: "Objective 1: Drive", its goals with a box each, ticked as they are met, and a count. Folded (the ☰ button) it is a row of boxes with each goal in its tooltip. It opens where the view has room, folds where it is short, and is not shown where the view is too short for it (a phone with the coach up); the student's choice is kept. A guided mission shows its chapter's steps as goals (a step's new goal, or the first sentence of its words); an ordinary objective shows its goals. It takes no drag: turning the camera over it still works.
  • Rail (11). Top to bottom: the mission pack's picture ("Mission pack: ..." in its tooltip), the mission's ("Mission 1: ..."), then the objectives ("Objective 1 of 2: ..."). The pictures are the packs' avatar, which the converted CodeSpace packs already carry. The demo carries CodeSpace's demonstration pack picture (FL_DevicesAvatar.png) and its CodeBot demo picture (Cb2Icon-128.png), at 96 px; TRADEMARKS.md lists them with the other Firia Labs artwork a fork replaces.

The demo step added by #123 ("These blocks are your program") will want a goal ("Read your program") once both are in; I will add it when merging main into whichever lands second.

Tests: learn-demo, learn-journey, learn-guided, learn-ui, learn-drawer, i18n, a11y pass locally.

🤖 Generated with Claude Code

david-firia and others added 4 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>
…e on a capable machine, and the demo watches CodeBot's front

- Auto realism starts, the first time, from the graphics chip WebGL names
  (Low in software, Medium for a phone's or Chromebook's chip or one it does
  not know, High for a recent laptop's, Ultra for a graphics card), and does
  not count its first three seconds (the room loading, shaders compiling),
  which could leave it at Low for good. A level kept by the older Auto is
  not trusted.
- A mission's `sim` is read at last, as a guided mission begins: its room,
  course and now camera, `{ "mode": "chase", "turn": 150 }`, degrees round
  from behind the robot. The demo starts in chase, looking obliquely at
  CodeBot's front, and follows it as it drives.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…r; the rail shows the mission pack, the mission, then the objectives

- The goals HUD (learn/hud.js), at the lower left of the simulator as in
  CodeSpace: the objective and its goals, ticked as they are met; folded, a
  box per goal with its words in the tooltip. Open where the view has room,
  folded where it is short, gone where shorter still; the choice is kept.
  A journey shows its chapter's steps (a step's new `goal`, or the first
  sentence of its words); an ordinary objective its goals. A drag over it
  still turns the camera.
- The guided rail, top to bottom: the pack's picture (tooltip "Mission pack:
  ..."), the mission's ("Mission 1: ..."), then the objectives ("Objective 1
  of 2: ..."), from the packs' `avatar`. The demo carries CodeSpace's
  demonstration pack picture and its CodeBot demo picture.

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 98a2176):

https://firialabs-open-editor--pr126-demo-hud-klnlto18.web.app

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

🔥 via Firebase Hosting GitHub Action 🌎

Sign: 81259a1fec315ca1af3747d225d9c7424890be3e

david-firia and others added 4 commits November 24, 2026 09:46
# Conflicts:
#	docs/mission-packs.md
#	tests/learn-demo.mjs
# Conflicts:
#	public/learn/demo/DEMO.json
#	src/learn/learn.js
#	src/sim/sim-device.js
# Conflicts:
#	public/learn/demo/DEMO.json
#	src/learn/learn.js
#	src/learn/pack.js
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@david-firia
david-firia merged commit f9d0258 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