Brickheart

Bench build session 13NOV2026 keys strip camera canvas

: Written by a human with AI assistance.

Status: keys, strip, Camera, Cancel and the bucket build step built and tested by the owner; canvas grow toggle built but untested.

What changed in the code

  • Colour names (12) moved from site.option.colour.* to common.option.colour.<value>. The six bucket names are new in common.option.bucket.<value>, labelled with the capitalised values. The bench, site/tables.mjs and site/ui-keys.test.mjs read common. app/i18n.test.mjs declares both prefixes and bench.ts writes the keys as template literals so the key scan accepts them. Owner reports the key test passes. This replaces bench.bucket.* and bench.family.*, which were never in en.json.
  • Bucket order is now structural, functional, interaction, decorative, minifig, wheels (TYPES in bench.ts). No bucket sort was found in query.ts, so where the wall gets its order is Verify.
  • The scene background follows data-theme: cream #FFFDF8 in light, navy #1F2937 in dark, updating live.
  • Scene strip: a DOM row under the stage, hidden unless touchUi is true. Left to right: brand mark, Undo, Redo, Cancel, Camera, Canvas size, Delete kept apart. CSS is in app/css/bench.css. The old test button groups stay for the other modes.
  • Camera: a new camera act cycles four corner views (top/front/right, bottom/back/right, top/back/left, bottom/front/left). Positions are computed from the wall's z when pressed, back cameras 80 LDU in front of the wall, then fixed until the next press. Touch only, no history entry. The wall and iso buttons stay. This replaces camera history entries from the 9 Nov plan for the touch page.
  • Cancel: cancel() and Esc. It drops the hold if a part is in hand, else deselects. On touch a tile tap places at 0,0,0, so only deselect applies there.
  • Build: app/tools/add-bucket.mjs adds parts.bucket to the dist copy of the database, called from app/build.mjs. Owner reports it worked. It replaces the hand-patched column that every build lost.
  • Canvas grow toggle: 16, 32, 64, 128 studs, starting at 16. Camera distances scale with half the floor width and the far plane is raised. This replaces the 8, 16, 32, 64 steps of the 11 Nov brief.
  • Decided, not built: the first anchor is the middle of the front edge of the 16 by 16 (x 0, z +160). This replaces the 8-stud first anchor in the 11 Nov brief.
  • Owner's own commit: larger rounded filter buttons, and touch keeps its camera on select.

Untested

  • Canvas grow toggle, scaled cameras, grid position after a resize, and the far plane value (Verify, original not read).
  • The wall is still fixed at WALL_Z = -340, so it sits inside the floor at 64 and 128 studs until the floating wall exists.
  • The dark scene on a phone. Dimmed filter buttons still use light grey rgba(243,244,246,0.75) (Verify on navy).
  • better-sqlite3 installing on Cloudflare (Verify on first deploy).
  • Minimum canvas from the parts is not built (Open).
  • A ring toggle in the strip (Open).
  • Strip order and which modes show the strip: UAT decides.
  • Chinese for the 18 moved strings is left to the owner.

Next three steps

  1. Draw the first anchor marker at x 0, z +160 on the 16 by 16 floor.
  2. Build the floating wall and the minimum canvas size derived from the parts.
  3. Run UAT on the phone for strip order, Camera views and the dark scene.
  • Design: Bench design session 11NOV2026 attach ring anchors wall order, in the bench blog folder (Verify the link target).
  • Working rules: CLAUDE.md in the repo root.