ModUI
ModUI is GxP’s configuration-driven dashboard UI system. The extracted package is named @gxp-dev/mod-ui; the main platform also contains its own ModUI wrappers and builders. Identify the implementation you are using before copying props, schemas, save handlers or imports between them.
Choose the right surface
| Task | Start here |
|---|---|
| Configure dashboard tabs, cards, fields and page saves in the platform | ModUI page configuration |
| Edit a schema through the platform’s current v2 visual builder | Visual builder |
| Render fields/cards in the platform | FormField, dispatch map, FormCard |
| Build a platform list, selection or bulk workflow | DataTable and configuration reference |
| Consume the extracted package in a supported Vue host | Package getting started |
| Build an attendee-facing app | AppUI and AppUI installation |
| Configure registration, quizzes or printed badges | Use the module-specific guides below; these have distinct builders and runtime contracts. |
A matching label does not mean identical implementations. In the platform, FormField’s form-builder dispatches to the v2 visual builder while FormCard’s form-builder uses a separate card editor. Registration uses RegFormBuilderWrapper. Quiz and badge authoring have their own models, validation and delivery paths. Do not treat them as three interchangeable modes of one component or infer feature availability from a palette entry.
Package architecture
At the reviewed package source, @gxp-dev/mod-ui exports:
- Definitions, defaults and editor metadata for cards and elements.
- Vue UI primitives, card/element renderers, registries, loaders, condition evaluation and form-data binding.
- Package
IndexPageandShowPage, plus Pinia form and builder stores. - M1/M2 adapters, fragment converters and snippet reference helpers.
- Builder/category entrypoints for forms, quizzes, objects, grids, dependencies and other supported library components.
Use public exports from the installed package manifest. The root barrel does not export every concrete renderer; category/subpath exports are a separate contract. A source file path mentioned in a comment is not automatically an allowed package export. Definition metadata and registry entries describe known components, not proof that every integration is implemented and released in your host.
The package’s ShowPage uses config and its form-data-store contract. The platform wrapper’s ShowPage uses showConfig/showItem and its own model/save integration. They are not drop-in substitutions. The package’s public adapters help translate supported schemas, but they do not promise lossless conversion of arbitrary legacy options or JavaScript functions.
Install and integrate
pnpm add @gxp-dev/mod-ui
For standalone peer setup and complete examples, follow package installation and initialization. Use an existing platform host’s Vue/Pinia setup or install Pinia once in a standalone supported host. Check the installed package’s peers; although its metadata declares Vue 3.4+, the reviewed TextInput uses Vue’s useTemplateRef, so the maintained examples use Vue 3.5. Do not assume the declared minimum establishes every component’s compatibility.
Named imports and category exports are explicit:
import { ShowPage, useFormDataStore } from '@gxp-dev/mod-ui'
import { TextInput } from '@gxp-dev/mod-ui/input'
The package imports its shared style layer. Configure themes and dependency loading using the package guide rather than installing the obsolete global ComponentKit plugin pattern. Give independent forms/store instances distinct IDs and handle lifecycle cleanup in the owning integration.
Components edit local form state and emit intent; your host supplies authorized services, persistence and error handling. Installing the package does not create a login, project permissions, a platform API token or an update endpoint. Follow the exact event signature of the selected component; a Save label or local preview is not a database write.
Builders, preview and conversion
The current platform visual builder edits an M2 graph with root/cards/elements and can write converted M1 configuration to a parent model. Its actual load precedence, subKey wrapping, save hook and deletion limits are documented in the builder guide. The extracted package has its own stores/adapters and must be integrated according to its package contract.
Preview is useful for layout and interaction checks in the editor’s environment. It does not establish pixel-identical portal, email, printed badge, device or production output. Fonts, theme variables, browser permissions, installed plugin versions, rendering engines and hardware remain acceptance checks for each target. A badge preview does not prove a printer or GXCompanion is paired and operational.
The package can be versioned separately, but a package change reaches users only when the consuming application installs/builds/deploys it. Extraction does not automatically deploy new dashboard code or guarantee that one builder cannot regress another shared renderer.
Module-specific configuration
- Attendee fields and registration: field ownership and registration behavior.
- Forms and surveys: response collection and reporting; use the actual form and portal integration.
- Quizzing: banks, attempts, scoring and supported authenticated workflows.
- Badge printing: template, credentials, access point and delivery/device setup.
- Collections: collection types, schemas, records and their actual configuration surfaces.
These module guides establish their own supported behavior. Avoid a fixed “upcoming” table based on the older package extraction plan; use source-verified module documentation and test the installed release.
Permissions and troubleshooting
Frontend visibility/condition/editor flags are presentation controls. Enforce project/team scoping, field validation, asset access and mutation permissions in the server endpoint. Back up existing schemas before conversion and verify the saved/reloaded form, including false/zero values, nested fields, conditions and unsupported properties.
| Symptom | Check |
|---|---|
| Copied example has unknown props or events | Confirm package component versus platform wrapper and the installed version. |
| A renderer import fails | Check the package’s exports map, supported category barrel and build output. |
| Editing works but saving does not | Inspect local model changes, emitted intent, actual host service and server validation. |
| Preview differs from the target | Test its real renderer, theme/assets, version, device and output pipeline. |
| Schema changes disappear or affect another editor | Inspect conversion/subKey replacement and independent form/store IDs. |
| Hidden UI still allows an API call | Enforce backend permissions; UI flags do not authorize resources. |
Verification scope
Reviewed package commit a57bc7fe8eb3f1aec2581be52388520463a7d6bf (2.0.41) and platform commit 3b48eb675f7c8e3c4f0b87d0cd613fa7fb371093, with the linked source-reviewed component/builder/module guides. Package source, public APIs and selected local example tests do not prove npm registry publication, consuming-host upgrades, all builder modes or production device output. Those remain release and environment acceptance checks.