Brickheart

Bench pair buttons, Place and the ice cube 20NOV2026

: Written by a human with AI assistance.

Status: touch msg bar, collision bar, ice cube and offline fix done and tested; pair buttons and Place built with three faults (Open).

What changed in the code

  • Work is on main. The deploy to Cloudflare was sucessful.
  • Touch: #msg-bar mirrors #msg above the strip, and a second Check collisions button sits in the strip. #collide-bar above the stage mirrors #collide-status through a MutationObserver. Both bars are readable by screen readers (Decided, tested).
  • Ice cube: makeTile adds a hidden box per tile, the size of the tile's longest side, so every ice is the same size. lockedStems() in attach.ts and refreshIce() in bench.ts show it while Attach is on and a part is selected, and refresh it on every type step (Decided, tested).
  • build.mjs adds /offline.html to the precache list only if the walk has not listed it. This fixes the Cache.addAll duplicate error (Decided, tested).
  • anchors.ts: Pt has an optional y (default 0). New sideAnchor(target, side) puts a virtual anchor one stud outside a side, at the target's bottom, on the stud nearest the middle. A tie goes back, then right. New seatsOnAnchor, and seatOnAnchor now returns its first pose. side-anchor.test.ts passes: a plate seats level on all four sides of a 2x4 brick (Decided, tested).
  • attach.ts: startPlace(row, side) holds the part on the virtual anchor, as kind touch, so it commits unjoined. Yaw is the four quarter turns (Decided).
  • gizmo.ts: the single Mode button is replaced by three pair buttons, Attach/Place, Move/Nudge and Rotate/Twist. A press on an active pair switches to the other mode of the pair. A press on an inactive pair takes the mode the button shows. Place is a sixth mode at index 5. Off still exists (Decided).
  • Place model (Decided): side first, then the wall part, same order as Attach. Default side is behind. The blue side squares are not built.
  • Reverted: sending collision results through msg(). It broke picking after a type cycle and the cause was not found. #collide-status stays its own element (Decided).

Untested

  • Open: an Attach seating step is not confirmed by a mode change or a tap in the scene. It still needs Confirm. The model says any action button or a tap on empty space confirms.
  • Open: Place seating shows arrows that do nothing. Only yaw works. I assumed the flip and mate-point arrows would hide, which was wrong. The cause is not read.
  • Open: the virtual anchor refuses some wall parts, but it shouldnt (no ice shows for them).
  • Open: app should start in attach mode.
  • Verify: scene "back" against behind in relate.ts. Checked from test numbers only.
  • Twist still shows the text "Fine rotate". bench.status.collidePending is now unused in en.json.

Next three steps

  1. Seating exits: pair buttons, Place, Attach and a tap on empty space confirm. The new part stays selected in Attach, and the camera returns to iso.
  2. Place seating shows only the yaw arrow, and wall parts the virtual anchor refuses get ice.
  3. Blue side squares, with Attach/place as the default mode when a part is selected.