Skip to content

Sync ako/mxcli: drop-down filter CE0463 and MDL-WIDGET56 false positives fixed; brain batch verdicts; fmt-check fix - #1925

Merged
ako merged 13 commits into
mendixlabs:mainfrom
ako:main
Nov 22, 2026
Merged

ako merged 13 commits into
mendixlabs:mainfrom
ako:main

Conversation

@ako

@ako ako commented Nov 22, 2026

Copy link
Copy Markdown
Collaborator

Syncs ako/mxcli:main into upstream: 5 commits since the v0.33.0 release — two widget fixes that clear false CE0463s and warnings, a brain batch-capture gap, and a formatting fix upstream's main needs.

Widgets

  • A Data grid Drop-down filter no longer fails CE0463. Every drop-down filter mxcli created failed mx check: its editorConfig hides emptyOptionCaption behind (filterable || multiSelect), a disjunctive guard the extractor didn't read, so the text was never nulled while hidden — and while visible, Studio Pro stores the shipped default text where mxcli wrote an empty one. Such guards are now read as one rule per disjunct, and a visible, unset text property gets the widget's default text. Measured on mx check 11.14.0: 68 pages copied from a test app went from 9 × CE0463 to 0.
  • MDL-WIDGET56 judges a widget's mode with the values exec writes. A combo box bound with attribute: was warned about 12 required properties of its association and database modes, and a drop-down filter about refEntity, refSearchAttr and linkedDs, though mxbuild builds both clean. Unset keys now take the template's written values before the hide rules are judged, a key with any value counts as set, and an isLinked data source is skipped.

Brain and reports

  • brain capture --from-json items take accepts, changes and partly_meets, written exactly as the flags write them, so a decision that accepts a lint finding or changes a requirement can be captured in a batch. Validated per item before anything is queued.
  • The report-tests and report-traceability docs show the journey-log record's pages field, the only proof for a requirement anchored at a page fed only by database data sources.

Formatting

splice_handler_test.go is restored to the pinned toolchain's gofmt output. The v0.33.0 release's style: gofmt splice_handler_test.go (70a6ba454) used a different gofmt, so upstream's main currently fails make fmt-check; this fixes it

claude and others added 13 commits November 22, 2026 13:28
Every Data grid Drop-down filter mxcli created failed mx check with
CE0463. Its editorConfig hides emptyOptionCaption behind
`(filterable||multiSelect)`, a disjunctive guard the extractor did not
lift, so the text template was never nulled while hidden; and while
visible Studio Pro stores the shipped default text, where mxcli wrote an
empty template.

- lift a statement-level `(A||B…)&&hide(P)` as one rule per disjunct
- carry DefaultTranslations on top-level property entries and use them
  when filling a visible, unset conditional text template
- give the embedded template's emptyOptionCaption the shipped text

Measured on mx check 11.14.0, 68 testapp pages copied as new pages:
CE0463 9 -> 0, no new errors.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QiMsnXa9crge2qnSk9S7Zn
fix: drop-down filter emptyOptionCaption follows its visibility (#2518)
Brings in upstream's v0.33.0 release commit and its gofmt of
splice_handler_test.go. CHANGELOG resolved by hand: upstream's file
verbatim, with the one entry merged on the fork after the release
(#2518) kept under [Unreleased].

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AeAyg3qx2my26Q8cvGyW5z
Upstream's 70a6ba4 reformatted it with a gofmt other than the pinned
toolchain's, the same change as 1365ba4 before v0.31.0, so the merged
tree fails make fmt-check. This restores the fork's version.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AeAyg3qx2my26Q8cvGyW5z
…uirement

A requirement anchored at a page fed only by database data sources runs no
microflow, so the only proof is a journey whose log lists the page in
`pages`. The report-tests skill and the report tests / traceability help
showed a record without it, so following the docs left such a requirement
"nothing to reach" with no way out.

- report-tests skill: the full record as the example, with a field table
  (step, pages, message, run, browserMs, the meta line).
- report-traceability skill and both commands' help: name `pages` and show
  the record.
- The "nothing to reach" cell of a page-anchored requirement now says a
  journey proves it by listing the page in `pages`; the limits text names
  the field.
- A test pins the skills' examples to `pages`.

Fixes #2526

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_011oK82qTgUsRMETmzvjS27w
…writes

A combo box bound with attribute: was warned about 12 required properties
of its association and database modes, and a drop-down filter about
refEntity, refSearchAttr and linkedDs; mxbuild builds both clean.

- Unset keys take the template's written values before the hide rules are
  judged, so source/optionsSourceType are known.
- A key with any value counts as set (attribute: sets attributeEnumeration).
- An isLinked datasource is skipped; the grid fills it.
- The editorConfig extractor reads a hide inside a function invoked as a
  ternary's then-branch under that ternary's condition.

Closes #2523

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_011oK82qrr1WnXxq1eRn7qRJ
`capture --from-json` refused any item carrying "accepts" (unknown
field), so a decision accepting a lint finding, or changing or partly
meeting a requirement, could only be captured one at a time with the
flags. The three options had no batch spelling.

- BatchItem gains `accepts`, `changes` and `partly_meets`: string
  arrays in the flags' "<value>[:<reason>]" form, snake_case like every
  other brain JSON key. They are written exactly as the flags write
  them (verdicts, then acceptances), so the two spellings of one
  decision produce the same entry.
- Validated per item before anything is queued, with the flags' own
  refusals: an acceptance on a requirement or open question, a verdict
  on a requirement, a bad rule id, a requirement the plan lacks.
- The requirement-id check moves from applyVerdictFlags into
  brain.CheckRequirementIDs, shared by both paths, and checks the id's
  shape first ("nope" is not an id, not a missing requirement). Its
  message now says a staged requirement must be promoted first.
- BuildBatch's last parameter becomes BatchChecks (source normaliser
  plus known requirement ids).
- `staged --json` reports `accepts` and `verdicts` as `list --json`
  already does.
- The BatchItem comment claimed staged/list output could be fed back
  in; it cannot (id, kind, date and shard are refused). Corrected
  rather than extended: a round trip needs its own design.

Fixes #2524

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_011oK82sxYNXAhaYkijzRwae
…24rqgv

fix(check): MDL-WIDGET56 judges a widget's mode with the values exec writes
CHANGELOG: keep both [Unreleased] Fixed entries (MDL-WIDGET56 mode fix
and #2518).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AeAyg3qx2my26Q8cvGyW5z
docs(report): the journey-log record's `pages` proves a page-only requirement
brain: --from-json items take accepts, changes and partly_meets
Merge upstream v0.33.0 into main; re-gofmt splice_handler_test.go with the pinned toolchain
@ako
ako merged commit a3fb30f into mendixlabs:main Nov 22, 2026
15 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