Skip to content

Sync ako/mxcli: NativePhone navigation and native widgets (#1912) + bottom-bar guard; update-widgets resets named; check and report fixes - #1920

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

Conversation

@ako

@ako ako commented Nov 22, 2026

Copy link
Copy Markdown
Collaborator

Syncs ako/mxcli:main into upstream: 18 commits since #1919 — #1912 as submitted (NativePhone navigation and native mobile pluggable widgets), a guard on top of it, and check, widget and report fixes.

Native mobile: #1912 (by Uraz Akgultan and karahanharunn)

Included at its submitted head, so merging this with a merge commit marks #1912 merged.

  • Navigation: create NativePhone navigation profiles, write their bottom bar menu items, and read and write glyph icons on those items; the Texts.Items marker for menu item captions is corrected.
  • Native pluggable widgets: a native mobile widget is described by its own keyword; the native Image's switch-computed hide list is read from its editorConfig; check accepts a native widget's own editable setting; generated widget types carry allowUpload, onChange and raw enum captions.
  • New warnings: MDL-WIDGET55 for a pluggable widget on a page of the other platform, and MDL-WIDGET56 for a required pluggable-widget setting left unset.
  • Local dev builds are stamped with the git revision instead of a bare fallback.

Follow-up on top: a native bottom bar holding items mxcli cannot restate is refused instead of replaced. #1912's menu clause replaces the bar's items whole, with items of four keys pinned against one fixture, so a stored item with any other key, a non-glyph icon or another $Type would have been lost silently. An empty bar, or one of pinned-shape items, is replaced as before.

Widgets: what update-widgets resets

  • docker check and fix widgets say which values update-widgets resets. A CE0463 caused by a script value in a property the widget's editorConfig hides was labelled "stale widget definition — fix widgets fixes it", but update-widgets clears it by resetting the value to the widget's default, so fix widgets dropped what the script set without a word. Property values are now compared before and after, and the reset ones are named.
  • widget describe says when an editorConfig's hide rules were not read (a widget hiding properties through its own helper printed "none discovered", indistinguishable from one that hides nothing).

check

  • An if is typed by its branches, so if … then [%CurrentDateTime%] else $P/CreatedAt assigned to a DateTime member is no longer refused as a String (E009). mxbuild 11.12.6 builds the reported microflow with 0 errors.

Reports

  • traceability: a document anchor (a published REST service, page, workflow, scheduled event, service or mapping) reaches its microflows' same-module callees, and a calculated attribute its retrievers, as a microflow anchor already did.
  • map: a module is an integration port by its outbound clients, name or documentation, not by holding any integration artefact (a module that only publishes a calendar feed was one; the app's real ports, still on mock adapters, were not)

UrazAkgultan and others added 25 commits November 3, 2026 09:13
The skills conformance test (TestSkillsTeachMDL1) requires every complete
script in a skill to start with `mdl 1;`. The two NativePhone examples
added on this branch predated that rule on main.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…et types

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…DGET55)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…le-widgets

Native mobile pluggable widgets: describe, check and CE0463 fixes
`if … then [%CurrentDateTime%] else $P/CreatedAt` assigned to a DateTime
member was refused as a String (E009): argKind typed only a top-level
date token, and an if went to inferKind, which calls every token a
String. An if is now typed through argKind branch by branch: empty or
unknown branches say nothing, disagreeing ones are unknown. mxbuild
11.12.6 builds the reported microflow with 0 errors; a DateTime if
assigned to a String is now refused, as it should be.

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

A widget whose editorConfig.js hides properties through its own helper
(a local hideProperties(...) filtering by key) printed "Dynamic property
rules (0): (none discovered)", indistinguishable from a widget that
hides nothing. describe now says the editorConfig.js is there and none
of its hide calls is one mxcli reads, and what that means (a hidden
property set to other than its default is CE0463).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_011oK82qrr1WnXxq1eRn7qRJ
…lated attributes their retrievers

Two footprints were narrower than a microflow anchor's:
- a published REST service (and a page, workflow, scheduled event,
  published or consumed service, mapping) got only the microflows it
  names, without their same-module callees, so a test that calls a
  handler's sub-microflow directly proved nothing;
- a calculated attribute got only its calculation microflow, which the
  runtime runs and no flow calls, so no test could ever be linked. Its
  footprint is now its entity's calculation microflows plus the
  microflows that retrieve the entity (the runtime calculates it on
  retrieval), marked approximate.

The shared-helper cut still applies to both.

Fixes #2504

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

A CE0463 caused by a script value in a property the widget's
editorConfig hides was labelled "stale widget definition — fix widgets
fixes it"; update-widgets clears it by resetting the value to the
widget's default (the type stays byte-identical), so fix widgets
dropped what the script set without a word. Widget property values are
now compared before and after the tool, by key, with $IDs, pointers and
key order removed. docker check labels such a CE0463 with the
properties it resets and does not offer fix widgets for it; fix widgets
lists every value it replaced. Measured on mxchess (11.15.0): the
spectator board's notationLanguage, showNotationInput are named, and the
clean project reports nothing.

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

# Conflicts:
#	CHANGELOG.md
mendixlabs#1912 lets a menu clause write a native profile's bottom
bar. It replaces BottomBarItems whole, with items of four keys pinned
against one configured fixture, so a stored item with any other key, a
non-glyph icon or another $Type would lose it silently. Such a bar is now
refused with what it holds; an empty bar, or one of pinned-shape items, is
replaced as before.

Also moves the NativePhone CHANGELOG entry from the released 0.21.0
section, where the branch's September base put it, to Unreleased, and
drops its commit SHAs, which do not exist in this history.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QiMsnXa9crge2qnSk9S7Zn
Integrate mendixlabs#1912: NativePhone navigation profiles and native mobile pluggable widgets
…24rqgv

check: type an if by its branches; docker check and fix widgets name the values update-widgets resets
fix(report traceability): document anchors reach their callees, calculated attributes their retrievers
…entation

The map flagged any module with an integration artefact — a mapping, a
JSON structure, a published or consumed service — as an integration
module. So a module that only publishes a calendar feed was one, while
Int_HR and Int_Planning, the app's ports to HR and planning, were not:
they run on mock adapters and have no client yet.

A module is now an integration port when it holds outbound clients
(consumed REST, OData or MCP, a database connection, business events),
when its name follows a port convention (Int_*, *Connector,
*Integration, *Adapter), or when its documentation says so ("Port to …",
"Integration with …", "Adapter for …", "Wraps …"). Each says why, on the
systems list and the page. An annotation `module:<Name>` with status
`integration` or `not integration` decides where the conventions do not
fit. Publishing an API alone no longer counts: the systems list shows
the published service.

Fixes #2505

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_011oK82qTgUsRMETmzvjS27w
fix(report map): integration ports by outbound clients, name or documentation
@ako
ako merged commit d5f5eef 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.

4 participants