Context
Once Mendraw and Glendix provide typed datasource snapshots, editable-value conversion, keyed React hosting, module initialization, and browser file/environment helpers, downstream projects need a clear recipe for data-heavy widgets that use those capabilities instead of adding project-local React/Mendix FFI.
MendixWidgetGleam is the reference widget and scaffolding CLI, so it is the right place to propagate that architecture.
Proposal
After the upstream capabilities are available:
- add a documented data-heavy/widget-integration recipe or reference example;
- show typed Mendix props/datasource handling with Mendraw;
- show props-driven keyed remounting and async external-module initialization with Glendix;
- show browser download/file selection without local Blob/input JavaScript;
- update generated-project guidance so local FFI remains a last-resort, typed platform boundary;
- keep the existing simple template lean rather than adding all dependencies to every generated project.
Acceptance
- Reference source and docs follow the existing “widget logic/UI in Gleam” rule.
- Generated simple projects do not gain unnecessary dependencies or boilerplate.
- Any new optional recipe builds and tests successfully.
- Downstream widget-build and family E2E paths pass when the change affects widget output.
Context
Once Mendraw and Glendix provide typed datasource snapshots, editable-value conversion, keyed React hosting, module initialization, and browser file/environment helpers, downstream projects need a clear recipe for data-heavy widgets that use those capabilities instead of adding project-local React/Mendix FFI.
MendixWidgetGleam is the reference widget and scaffolding CLI, so it is the right place to propagate that architecture.
Proposal
After the upstream capabilities are available:
Acceptance