Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
8a47b0b
feat(navigation): create NativePhone navigation profiles
UrazAkgultan Aug 28, 2026
12c12f0
feat(navigation): write bottom bar menu items for NativePhone profiles
UrazAkgultan Aug 31, 2026
597a95d
fix(navigation): correct Texts.Items marker for MENU ITEM captions
UrazAkgultan Aug 31, 2026
fd147df
feat(navigation): read and write glyph icons on native bottom bar items
UrazAkgultan Aug 31, 2026
a8569cb
fix(version): stamp local dev builds with git revision instead of a b…
UrazAkgultan Sep 1, 2026
9654029
docs(navigation): add the mdl 1 header to the native profile examples
UrazAkgultan Nov 4, 2026
578c5a6
Describe a native mobile widget by its own keyword
karahanharunn Nov 20, 2026
d61b273
Read the native Image's switch-computed hide list from its editorConfig
karahanharunn Nov 20, 2026
08daffe
Write allowUpload, onChange and raw enum captions into generated widg…
karahanharunn Nov 20, 2026
4883fac
Accept a native widget's own editable setting in check
karahanharunn Nov 20, 2026
2d5f403
Warn about a required pluggable-widget setting left unset (MDL-WIDGET56)
karahanharunn Nov 20, 2026
def3655
Warn about a pluggable widget on a page of the other platform (MDL-WI…
karahanharunn Nov 20, 2026
cc36738
Merge pull request #1 from UrazAkgultan/feature/native-mobile-pluggab…
karahanharunn Nov 20, 2026
c19340f
check: type an if by its branches, a date token among them (#2508)
claude Nov 21, 2026
cbbfdee
widget describe: say when an editorConfig's hide rules were not read …
claude Nov 21, 2026
d36523e
fix(report traceability): document anchors reach their callees, calcu…
claude Nov 21, 2026
df51923
docker check, fix widgets: say which values update-widgets resets (#2…
claude Nov 22, 2026
5b44568
Merge remote-tracking branch 'origin/main' into claude/issue-triage-p…
claude Nov 22, 2026
d105aff
Merge mendixlabs/mxcli#1912: NativePhone navigation profiles and nati…
claude Nov 22, 2026
5bdaf4a
Refuse to replace a native bottom bar holding items mxcli cannot restate
claude Nov 22, 2026
db23e15
Merge pull request #2515 from ako/integrate/mendixlabs-1912
ako Nov 22, 2026
748df9b
Merge pull request #2516 from ako/claude/issue-triage-prioritization-…
ako Nov 22, 2026
1e48d09
Merge pull request #2514 from ako/claude/gifted-fermi-2udffj
ako Nov 22, 2026
54ce4a5
fix(report map): integration ports by outbound clients, name or docum…
claude Nov 21, 2026
c4bae6e
Merge pull request #2517 from ako/claude/gifted-fermi-2udffj
ako Nov 22, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"area": "cmd/mxcli", "date": "2026-11-21", "symptom": "report map flags a module that only publishes a REST feed as an integration module, and misses the app's real integration ports (Int_HR, Int_Planning) because they run on mock adapters with no client yet", "cause": "the integration flag was any integration artefact count (mappings, JSON structures, published and consumed services), and nothing else", "file": "`cmd/mxcli/projectreport/softwaremap.go` (integrationWhy, addIntegrationSystems), `softwaremap_render.go` (applyPurposes)", "insight": "Direction matters: outbound clients make a port, a published API does not. Ports are built against mocks long before the real connection exists, so name and documentation conventions — and an annotation override — are needed to find them early. Saying why each was flagged makes a wrong convention visible", "refs": ["ako/mxcli#2505"], "test": "TestMapRecognisesIntegrationPorts"}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"area": "cmd/mxcli", "date": "2026-11-21", "symptom": "report traceability shows 0 microflow tests for a requirement anchored on a published REST service whose handler's sub-microflow a test calls, and can never link a test to a calculated attribute", "cause": "document anchors (REST service, page, workflow, …) got only the microflows they name, without the same-module callee expansion a microflow anchor gets; a calculated attribute got only its calculation microflow, which no flow calls", "file": "`cmd/mxcli/projectreport/traceability.go` (footprint, sameModuleClosure, calculatedFootprint)", "insight": "Every anchor kind should reach the same depth: the expansion belongs after the per-kind query, not in one case. For a calculated attribute the 'caller' is the runtime on retrieval, so the retrievers of its entity are the honest (approximate) footprint", "refs": ["ako/mxcli#2504"], "test": "TestTraceabilityFootprintReachesCalleesAndCalculation"}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"area": "cmd-mxcli", "date": "2026-11-22", "refs": ["ako/mxcli#2507"], "ce": ["CE0463"], "symptom": "A page script set `notationLanguage` and `showNotationInput` on a spectator ChessBoard (`playerColor: '''none'''`), which the widget's editorConfig hides: CE0463 at 'previewBoard', labelled by docker check \"stale widget definition — `mxcli fix widgets` fixes it\". fix widgets cleared it by resetting both to their defaults and said only \"1 unit(s) changed\"; the next diff showed the values pending again.", "file": "cmd/mxcli/docker/widget_values.go widgetPropertyValues / widgetValueChanges (used by check.go recheckCE0463 and harvest.go applyHarvest → HarvestResult.ValueChanges, printed by cmd_fix.go reportFix). Test: cmd/mxcli/docker/widget_values_2507_test.go", "cause": "The re-check decided stale vs persisting only by whether the CE0463 cleared after update-widgets; update-widgets clears this one by resetting values (the widget's type stays byte-identical), which nothing compared.", "insight": "**Compare widget values by property key with $IDs, pointers and key order removed**: update-widgets re-saves a DataGrid2 DataSource with its keys sorted, and without the key-order normalisation 24 of mxchess's widgets read as changed. In fix widgets, compare only the units the harvest writes, and control on the clean project: 0 units changed, no values listed (measured on mxchess, 11.15.0)."}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"area": "mdl/executor", "date": "2026-11-17", "symptom": "every native Image (Native Mobile Resources 12.6.0) mxcli created failed mx check 11.13.0 with CE0463 — its `imageUrl` text template was written with a template where mx update-widgets writes none", "cause": "the Image's editorConfig hides the image-source properties it is not using with hidePropertiesIn(t, v, function(s){switch(s){case \"image\": return L.filter(p => \"imageObject\" !== p); …; default: return L}}(v.datasource)) — a list computed by a switch in an immediately-invoked function, which the extractor could not read, so no rule hid imageUrl under the default source", "file": "mdl/executor/editorconfig_iife_switch.go (iifeSwitchHideRules), mdl/executor/editorconfig_extract.go (extractVisibilityRulesFromJS)", "fix": "read that exact shape — unguarded, at a function's statement level, each case keeping one member of a known string-array constant, default the whole list — as one `notin` rule per member over the cases that keep it; any other shape stays unread", "insight": "diffing the stored widget against a copy run through `mx update-widgets` named the exact property (Object.imageUrl TextTemplate set vs null) — but the Type was identical, so the cause was visibility, not the definition. A CE0463 with a clean Type diff points at editorConfig", "refs": [], "test": "mdl/executor/editorconfig_iife_switch_test.go"}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"area": "mdl/executor", "date": "2026-11-17", "symptom": "`check` refused `nativeslider s1 (editable: 'default')` with \"`Editable: default` is not an Editable value [MDL-WIDGET19]\" — the form describe prints — so a native page with a slider, range slider, rating or toggle buttons could not be described and re-run", "cause": "those native widgets declare an `editable` enumeration of their own (default | never) and no Editability system property; exec writes `editable:` to that key (the CustomWidget's Editable stays Always), but validateConsumableConditional judged the name as the core Editable", "file": "mdl/executor/validate_widgets.go (validateConsumableConditional), mdl/executor/pluggable_own_core_name.go (defDeclaresOwnKey)", "fix": "skip the core Editable value check when the widget's definition maps an `editable` key of its own; validatePluggableEnumValues judges the value against the package's keys", "insight": "same class as ako/mxcli#2180 (a widget's own key spelled like a core name), but `editable` is deliberately not in pages.coreNamesPluggableKeysShadow because a CustomWidget stores Editable itself — so only check was wrong; exec already wrote the own key. Dumping the stored CustomWidget (Editable: Always) settled which layer to touch", "refs": ["ako/mxcli#2180"], "test": "mdl/executor/native_editable_own_property_test.go"}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"area": "mdl/executor", "date": "2026-11-17", "symptom": "with Native Mobile Resources installed, describe printed a native widget left at its defaults under the last segment of its id: `nativegallery`/`nativebadge`/`nativeimage` came out as the web `gallery`/`badge`/`image` (re-run rebuilt the page with the WEB widget, check clean), and `activityindicator`, `backgroundgradient`, `notifications`, `qrcode`, `repeater`, `safeareaview`, `signature` were refused on re-run (MDL-WIDGET25); a native gallery with a data source was described as the web gallery too", "cause": "extractCustomWidgetType's default returned the id's last segment, which routes describe — `gallery`/`image` landed in the web widgets' dedicated branches — and the bare branch (a pluggable widget with no non-default content) printed that segment instead of asking pluggableWidgetHeader, which the generic branch already used", "file": "mdl/executor/cmd_pages_describe_pluggable.go (extractCustomWidgetType), mdl/executor/cmd_pages_describe_output.go (bare custom-widget branch)", "fix": "a last segment naming a dedicated branch is routed as `customwidget`; the bare branch names a widget with no branch of its own through pluggableWidgetHeader (definition keyword where it round-trips, else the id form)", "insight": "#1463 fixed the native/web keyword collision at init and load time but not on the way out: describe had a second, independent name derivation. Probing every widget of a package (39 pages, describe -> check -> exec) found it in minutes where the one-widget repro hid it: only widgets left at their defaults took the bare branch, so a widget with any setting described correctly", "refs": [], "test": "mdl/executor/describe_native_widget_keyword_test.go"}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"area": "mdl-executor", "date": "2026-11-21", "refs": ["ako/mxcli#2507"], "ce": ["CE0463"], "symptom": "`mxcli widget describe` of project-local widgets (com.knightshift.widgets.ChessBoard / ChessClock) said `Dynamic property rules (0): (none discovered)` although each .mpk's editorConfig.js hides property groups through a local `hideProperties(…)` helper; script values in those hidden properties were CE0463 for a month.", "file": "mdl/executor/widget_describe.go rulesFromProject / ruleCoverageText. Test: mdl/executor/widget_rule_coverage_2507_test.go", "cause": "The extractor counts only the toolkit helpers (hidePropertyIn, hidePropertiesIn, hideNestedPropertiesIn); a local helper gives total 0, and a 0 total printed no coverage line at all, indistinguishable from a widget with no editorConfig.", "insight": "**Report \"rules exist, not read\" separately from \"no rules\"**: a zero count with no denominator is read as a fact about the widget. Checking for the editorConfig.js itself is the cheap way to give the zero a denominator."}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"area": "mdl/exprcheck", "date": "2026-11-21", "refs": ["ako/mxcli#2508"], "ce": ["CE0117"], "symptom": "`change $P (CreatedAt = if $P/CreatedAt = empty then [%CurrentDateTime%] else $P/CreatedAt)` failed check with E009 \"the value assigned to it is a String\"; mxbuild builds it (0 errors). The bare `change $P (CreatedAt = [%CurrentDateTime%])` passed.", "file": "mdl/exprcheck/func_checker.go argKind. Test: mdl/exprcheck/target_kind_if_token_2508_test.go", "cause": "argKind typed a top-level date token as DateTime and sent everything else to inferKind, which calls every token a String; an `if` reached inferKind, whose first known branch (the token) made the whole `if` a String.", "insight": "**A refinement applied only at the root does not reach into the expressions that contain it**: argKind's token rule had to recurse into `if` branches and parentheses. Combine branches so that `empty`/unknown say nothing and disagreement is unknown, never a provable mismatch. The same change makes the reverse case — a DateTime `if` assigned to a String — refused, which it was not before."}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"area": "modelsdk", "date": "2026-11-17", "symptom": "native Signature, Bottom sheet and Maps (Native Mobile Resources 12.6.0) created by mxcli failed mx check 11.13.0 with CE0463 on every instance", "cause": "the definition generated from the .mpk differed from mx update-widgets in three attributes: AllowUpload false where the image property declares allowUpload=\"true\" (not parsed at all); OnChangeProperty \"\" where the attribute declares onChange (parsed, but createDefaultValueType hard-coded \"\"); an enumeration caption trimmed where Mendix stores the element text verbatim, trailing newline and indentation included", "file": "modelsdk/widgets/mpk/mpk.go (AllowUpload, EnumValue.RawCaption), modelsdk/widgets/augment.go (createDefaultValueType, buildEnumValuesArray, syncDefinitionAttrs)", "fix": "parse allowUpload; write p.AllowUpload and p.OnChange into the generated ValueType and sync AllowUpload onto augmented templates; keep the raw caption beside the trimmed one and write the raw one", "insight": "mx check runs on macOS through Docker: debian:bookworm-slim plus libicu72, libuuid1, libfreetype6, fontconfig, with LD_PRELOAD of libuuid.so.1 and libfreetype.so.6 (libSkiaSharp does not link uuid). A baseline mx check of the untouched fixture is what separates the 4 new CE0463 from the 105 the fixture already had", "refs": [], "test": "modelsdk/widgets/native_definition_attrs_test.go, modelsdk/widgets/mpk/native_attrs_test.go"}
2 changes: 1 addition & 1 deletion .claude/skills/mendix/custom-widgets/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ If a widget you have installed is not found, extract its definition:
mxcli widget init -p app.mpr
```

The keyword is the widget id's last segment; a **native** widget (`com.mendix.widget.native.*`) is prefixed `native` (`nativeimage`, `nativebadge`).
The keyword is the widget id's last segment; a **native** widget (`com.mendix.widget.native.*`) is prefixed `native` (`nativeimage`, `nativebadge`). Native widgets' required settings, platform, slots and own `editable`: [reference/native-widgets.md](reference/native-widgets.md).
A project definition never takes a built-in keyword (`image`, `radiobuttons`, …) for another widget id: it warns and stays `pluggablewidget '<id>'`; delete a stale native `image.def.json` / `radiobuttons.def.json` and re-run `widget init` (mendixlabs/mxcli#1463).

## Built-in Pluggable Widgets
Expand Down
17 changes: 17 additions & 0 deletions .claude/skills/mendix/custom-widgets/reference/native-widgets.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# Native mobile widgets

Supporting reference for [custom-widgets](../SKILL.md).

The 39 widgets of Native Mobile Resources (`nativegallery`, `nativeslider`, `nativebottomsheet`, `nativebarchart`, …) need no template in mxcli. After `widget init`, each one is built from the project's own `.mpk` file.

- **Set what the widget requires.** `check` warns (MDL-WIDGET56) about each required setting left out: a gallery's data source, a slider's attribute, a repeater's `template { … }` content, a chart's series. mxbuild fails the build on each with CE0642.
- **Use them on native pages only.** `check` warns (MDL-WIDGET55) about a native widget on a web page, and about a web widget (`combobox`, `datagrid`, `image`, …) on a native page.
- **Slot names come from the definition.** A native gallery's item slot is `template { … }`, not `content`; `check` lists a widget's slots when one is wrong (MDL-WIDGET26).
- **Slider, Range slider, Rating, Toggle buttons:** `editable:` is the widget's own setting, `default` or `never`. It is not the core `Editable`.

```sql
nativegallery g1 (datasource: database from Module.Item, phoneColumns: 2) {
template { dynamictext t1 (Content: '{1}', ContentParams: ({1} = Title)) }
}
nativeslider s1 (valueAttribute: Score, editable: never)
```
Loading
Loading