Skip to content

Claude/gracious curie faz dz#26

Merged
SethMorrowSoftware merged 3 commits into
mainfrom
claude/gracious-curie-fazDz
Jun 5, 2026
Merged

Claude/gracious curie faz dz#26
SethMorrowSoftware merged 3 commits into
mainfrom
claude/gracious-curie-fazDz

Conversation

@SethMorrowSoftware
Copy link
Copy Markdown
Owner

No description provided.

claude added 3 commits June 5, 2026 15:57
The builder regenerated its entire ~200-control chrome on every preOpenCard
(startCB -> buildUI -> clearUI + recreate). Guard the build so it runs once and
persists with the saved stack:

- chromeBuilt() reports whether the palette group exists AND a stamped
  uUIVersion custom property matches kUIVersion. startCB builds + stamps only
  when it doesn't, so reopening a saved stack skips the rebuild entirely.
- Only the native physics world is recreated each open (it can't be
  serialised); layoutPalette re-applies accordion state to the persisted UI.
- prepArena reuses the arena graphics instead of duplicating them on reopen.
- rebuildCB forces a one-time regenerate after editing the builder; bumping
  kUIVersion makes any older saved stack rebuild itself once.

https://claude.ai/code/session_01XpBcQg2DbncrBcFZLHqhMj
Address three issues with the left palette:

- Re-categorize: Drag/Delete/Duplicate/Multiply move out of SHAPES into a new
  TOOLS category; SHAPES now holds only droppable parts (Box/Ball/Capsule/
  Polygon/Image/Anchor). Six categories: TOOLS, SHAPES, SPECIAL, TERRAIN,
  VEHICLES, JOINTS.
- Fix the "resizes weirdly" scrollbar: collapsed rows were left at stale
  positions, so the group's formattedHeight (and thus the native scrollbar
  thumb/range) was wrong. layoutPalette now parks collapsed rows at the top of
  the content so the scroll extent tracks only visible rows. The accordion is
  also single-open now (opening one category collapses the others), so the
  toolbox always fits the window and the scrollbar stays hidden.
- Make it pop: each category has an accent colour (categoryColor) that fills its
  header when open, tints the title when collapsed, and lights up the selected
  tool inside it, so the palette reads as distinct, colour-coded groups.

kUIVersion bumped to 2 so existing built stacks pick up the new layout once.

https://claude.ai/code/session_01XpBcQg2DbncrBcFZLHqhMj
The single-open accordion always fits the panel, but the native group scrollbar
could still flicker/resize: with build-once the group's rect was set just once,
so a stale height let the bar appear for taller categories and vanish for
shorter ones as you switched between them.

- layoutPalette re-asserts the group's viewport rect every layout (guards
  against a stale persisted height) and forces vScrollbar off; groupPalette
  builds it bar-free as well.
- Dropped the content-height conditional that toggled the bar, and reclaimed the
  16px scrollbar gutter so the palette padding is symmetric.

kUIVersion -> 3 so existing built stacks pick up the change once.

https://claude.ai/code/session_01XpBcQg2DbncrBcFZLHqhMj
@SethMorrowSoftware SethMorrowSoftware merged commit 830c2b8 into main Jun 5, 2026
3 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.

2 participants