Skip to content

Stage, compare and explore boolean and choice parameters in Design variants - #48

Merged
CenturyMesh merged 1 commit into
mainfrom
claude/variants-choices
Nov 18, 2026
Merged

CenturyMesh merged 1 commit into
mainfrom
claude/variants-choices

Conversation

@CenturyMesh

Copy link
Copy Markdown
Owner

Problem and resulting behavior

In Studio, the Design variants window treated every program parameter as a number. Edit value rejected a text choice ("Enter a finite numeric value"), accepted any number for a boolean or numeric choice and failed later, and Explore values read numbers only. Typed parameters therefore had to be compared and saved through the tool.

The window now follows the parameter kind:

  • Parameter list: shows On/Off or the chosen value with the declared list. A row wider than the list scrolls sideways.
  • Edit value: keeps the numeric editor for a number, switches a boolean, and opens the declared list of a numeric or text choice.
  • Explore values:
    • Opens on the selected parameter with its own trial values: minimum, current and maximum for a number, every declared value for a boolean or choice.
    • Choosing another parameter offers that parameter's values.
    • Reads On/Off words and listed texts. A listed text that holds a comma is matched whole.
    • No trial values means every declared value. An unlisted value stays a failed trial, as in the tool.
  • Results: each exploration row and thumbnail names the value it tried, so "Trial 2" is no longer its only label.

Scope and contracts

  • Related issue: none.
  • Roadmap IDs: B.02 and G.03 (both stay Parcial).
  • Relevant compatibility, geometry, revision or persistence behavior:
    • No change to the design_variants tool, the document format or release.json; this is not a new distributable iteration.
    • parametricProgramParameterKinds exposes the engine's existing kind rule so the window does not restate it. It returns what validate and inspect already report as parameter_kinds.
    • Staged values are the forms the tool stores: a number, 1/0 for a boolean, the listed text for a text choice.
    • A choice is taken by its position in the declared list, not by the text the dialog returns.
    • Text goes to and from the shared field dialog in the system code page, so accented choice text shows and is typed correctly.
    • The explore guidance was shortened to fit the two lines the shared dialog shows; the previous text was already cut there.
  • Remaining limitations:
    • Choice text outside the system code page can be picked from its list and explored from the offered values, but not typed as a trial value.
    • The shared dialog still cuts the Trial values (comma separated) label.
    • Program source cannot be edited in Studio.

Verification

Local, MSVC Release with OCCT and -DARK_TEST_STUDIO_LIVE=ON:

  • studio-design-variants-ui passes. Its new section installs a second program with a boolean, a numeric choice and a text choice whose list holds a comma, an accent and a letter outside the Western code page.
    • Each value is staged from the window's own controls.
    • Preview reports the exact 16800 mm3 volume and 12 mm height of the staged choices without publishing.
    • Apply publishes one revision and the generated objects match the choices.
    • Two named variants are saved with text and 1/0 values, compared, loaded and reopened from disk.
    • Exploration covers listed, comma-holding, unlisted, offered, emptied, boolean-word and rejected trial values, and publishes nothing.
  • parametric-programs passes, including a new check of the exposed kinds against the compile report.
  • design_variants, studio-program-hud-ui, studio-parametric-hud-ui, studio-parametric-graph-ui, studio-parametric-authoring-ui, studio-parametric-role-ui, studio-geometry-nodes-ui, studio-team-blockers-ui, release-evidence and release-metadata pass.
  • Inspected captures: .typed, .typed-choice-dialog, .typed-explore and .typed-explore-dialog (1160x780), and the existing .compact (980x700).

Not run: the full native and Studio suites, and any live provider. Hosted CI runs no Studio UI checks, so the UI evidence above is local only.

Review checklist

  • The change follows AGENTS.md and relevant module contracts.
  • Document edits retain revision checks, atomicity and explicit rejection.
  • Applicable tests/checks ran; evidence and limitations are recorded above.
  • Documentation and affected roadmap status reflect the final behavior.
  • No credentials, private user documents or unauthorized third-party content are included.
  • Dependency notices are preserved and any new dependency's terms are identified.
  • Release identity, if changed, comes from release.json; document versions change only when required by persisted features.

🤖 Generated with Claude Code

…ndow (B.02, G.03)

The Design variants window treated every program parameter as a number. Edit
value rejected a text choice ("Enter a finite numeric value"), accepted any
number for a boolean or numeric choice and failed later, and Explore values
read numbers only, so typed parameters were compared and saved through the
tool.

- The parameter list shows On/Off or the chosen value with the declared list.
  A row wider than the list scrolls sideways instead of being cut.
- Edit value keeps the numeric editor for a number, switches a boolean and
  opens the declared list of a numeric or text choice, taken by position.
- Explore values opens on the selected parameter with its own trial values
  (min, current and max, or every declared value) and offers another
  parameter's values when that parameter is chosen. It reads On/Off words and
  listed texts; a listed text holding a comma is matched whole. No trial
  values, or the offered ones left unchanged, means every declared value. An
  unlisted value stays a failed trial, as in the tool.
- Result rows and thumbnails name the value each trial tried.
- The explore guidance now fits the two lines the shared dialog shows.
- Text goes to and from the shared field dialog in the system code page, so
  accented choice text shows and is typed correctly.

parametricProgramParameterKinds exposes the engine's own kind rule so the
window does not restate it. The tool, the document format and release.json
are unchanged: this is not a new distributable iteration.

Local evidence, MSVC Release with OCCT:
- studio-design-variants-ui installs a second program with a boolean, a
  numeric choice and a text choice whose list holds a comma, an accent and a
  letter outside the Western code page. Each is staged from the window's
  controls; Preview reports the exact 16800 mm3 volume and 12 mm height of the
  staged choices; Apply publishes one revision with matching objects; two
  named variants are saved with text and 1/0 values, compared, loaded and
  reopened from disk; exploration covers listed, comma-holding, unlisted,
  offered, emptied, boolean-word and rejected trial values without publishing.
- Captures .typed, .typed-choice-dialog, .typed-explore and
  .typed-explore-dialog were inspected, with the existing .compact capture.
- parametric-programs checks the exposed kinds against the compile report.
- design_variants, parametric-programs, studio-program-hud-ui,
  -parametric-hud-ui, -parametric-graph-ui, -parametric-authoring-ui,
  -parametric-role-ui, -geometry-nodes-ui, -team-blockers-ui, release-evidence
  and release-metadata pass.

Not run: the full native and Studio suites, and any live provider. Hosted CI
runs no Studio UI checks. Text outside the system code page can be picked and
explored from the offered values but not typed as a trial value. The Trial
values label is still cut by the shared dialog.

Co-Authored-By: Claude Fable 5.2 <[email protected]>
@CenturyMesh
CenturyMesh merged commit 2c47e37 into main Nov 18, 2026
5 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