Brickheart

Bench gizmo: five modes and Attach preview 16NOV2026

: Written by a human with AI assistance.

Status: Move, Nudge, Rotate and Fine rotate tested on the phone, Attach works on anchors; blocked-part visuals, message bar and Check button not built (Open).

What changed in the code

  • Branch bench-gizmo. A Mode button on the touch strip steps through off, Attach, Rotate, Move, Fine rotate and Nudge. Each mode has its own colour family: blue, orange, yellow, purple, pink (Decided).
  • Move and Nudge: six cones in scene axes. Move is 1 stud or 1 brick, Nudge is half a stud or 1 plate. They reuse the move op (Decided, tested).
  • Rotate and Fine rotate: three square pyramids for pitch, yaw and roll, in 90 and 30 degree steps. New turn op, and history shows pitch, yaw and roll (Decided, tested).
  • Attach, target stage: two pyramids on +x and -x step the target's open connector types. Types no wall part can mate with are skipped, with a note in the msg area. Order is stud, open, other types, then hole, tube and post last. The first type is announced as soon as the mode is on (Decided).
  • Attach, preview stage: a wall tap in Attach mode previews the part uncommitted on the target. Yaw and flip are orange pyramids, mate-point cones are yellow. An arrow with nothing to do is hidden. Confirm commits one put op, Cancel drops the preview first (Decided).
  • New files: snap/open.ts, snap/lock.ts with tests (green), bench/gizmo.ts, bench/attach.ts.
  • Decided: all UI modes have the same features. Touch mode only differs in where the controls are reached. The page keeps #msg, #collide-status and the collision select. Touch gets a msg bar above the strip and a Check button in the strip.
  • Decided: blocked wall parts are shown as an ice cube, not a padlock.

Untested

  • The ice cube, the msg bar and the strip Check button were not written. app/css/bench.css was not read (Open).
  • The preview collision warning, the Confirm button and Cancel-drops-preview were not reported separately (Verify).
  • Underside holes are not blocked when a part sits below them. The cause was not read (Verify).
  • Attach with nothing selected shows no arrows, so the app looks broken (Open).
  • Connector type names are plain English and not translated (Open).
  • Ice cube scope: every locked tile while Attach is on with a target, chosen as the simpler option (Proposed).

Next three steps

  1. Ice cube on locked wall tiles. Read ldraw/geometry.ts for shared materials first.
  2. Msg bar and Check button for the touch strip. Read app/css/bench.css first.
  3. Merge bench-gizmo into main, then build the settings registry in LDU.
  • Design: Bench design session 11NOV2026 attach ring anchors wall order, in the bench blog folder (Verify the link target).
  • Previous post: Plan for the next session: attach in touch mode.
  • Working rules: CLAUDE.md in the repo root.