Skip to main content
Version: v1 (Current)

AppUI

AppUI, published under the package name @gxp-dev/app-ui, provides Vue components, form helpers, theming and ExperienceFlow building blocks for attendee-facing GxP apps. It is optional: an app can use custom Vue components or combine AppUI with other libraries. App packaging, permissions and the host runtime contract still apply.

Use ModUI for dashboard configuration surfaces. Use the AppUI reference (repository reference: /appui) for exact exported props, events, slots and composables; choosing the right package does not make their APIs interchangeable.

Install and load styles​

pnpm add @gxp-dev/app-ui

The reviewed package requires Vue 3.5+ and an ES-module-capable build. Start GxP apps from the supported DevTools template so Vue and runtime context are supplied consistently. Import the complete styles once at app startup:

import '@gxp-dev/app-ui/styles'

Named imports come from the public root package. Do not deep-import a source path that is not in the package exports map. The installation guide covers supported peers and lazy media/scanning dependencies; the quick start covers app wiring.

Components and service access​

The library includes primitives, domain components, form helpers and experience pages. Consult the particular component contract: a local display component may need only props, while a capture page needs browser/device permissions and a data action needs an API integration.

AppUI does not automatically create a GxP session, a universal Pinia adapter, resource bindings or permission grants. The host supplies those services. useExperienceApi({ callApi }) is an optional adapter from an explicit operation/payload callback to named experience actions. In the GxP runtime, wire that callback through the supported runtime store and the dependency identifier declared by your app. Configure operation IDs and transform payloads for the actual endpoint schemas; the adapter’s default names are not proof that every operation exists or accepts its payload in your installed platform.

Use API adapter guidance and the dependency/API documentation (repository reference: ../developer-tools/README.md) for the intended execution context. Keep credentials and privileged operations server-side; a component import does not change API authorization. Test successful and denied requests with the intended attendee/project/portal bindings.

ExperienceFlow​

ExperienceFlow separates a navigation composable from its Vue renderer:

  • useExperience(config) manages pages, accumulated context, actions, busy/error state and navigation.
  • <ExperienceFlow :flow="flow" /> renders the current component and handles its next/back events and transitions.
  • useExperienceApi is optional; custom page actions can use the configured host services.

The current configuration uses a pages array, not the older conceptual slides example. Each page requires a unique name and a Vue component. Static/reactive props, a when(context) predicate, action and result key are optional. The flow exposes next, back, goTo, reset and retry; exact navigation/error semantics are documented in the flow guide.

This local flow has no backend action:

<script setup lang="ts">
import { ExperienceFlow, useExperience, WelcomePage, FinalPage } from '@gxp-dev/app-ui'
import '@gxp-dev/app-ui/styles'

const flow = useExperience({
pages: [
{ name: 'welcome', component: WelcomePage, action: false },
{ name: 'done', component: FinalPage, action: false },
],
})
</script>

<template>
<ExperienceFlow :flow="flow" />
</template>

action: false disables a component’s default action for that page. For a data workflow, add the real adapter/action, use its response shape deliberately, and handle failures. A page’s emitted data, stored result and persisted server record are different stages. Reset/retry are UI/action controls, not proof of backend idempotency or rollback.

ExperienceFlow is useful for kiosks and multi-step experiences, but it does not automatically install hardware listeners, pair a device, register an idle policy, authenticate attendees or implement every application-specific branch. Wire those requirements through the intended host/composables and test them. Use a custom state machine when its behavior fits the feature better; the library’s availability is not a universal architecture requirement.

Themes and overlays​

AppUI’s complete style entry includes utility/component CSS and a bridge from platform variables to semantic tokens, with fallbacks. The hosted portal can supply its branding variables; standalone apps can use ThemeWrapper and theme configuration.

ThemeWrapper scopes variables to its element and supports themed overlay placement. Load the full styles; style.css alone contains extracted component styles and is not equivalent to the complete style entry. Hosted apps should inherit their platform palette rather than importing the demo theme by default.

Theme inheritance applies to participating components and variables. Custom CSS, explicit overrides, separately mounted overlays or an incorrect host scope can still differ; verify the actual page and overlays after changing branding. Do not promise automatic pixel parity across kiosk, browser, print and companion targets.

Media, runtime and devices​

Camera/microphone features require secure browser contexts, user permission and allowed iframe/Permissions-Policy configuration where embedded. Scanning and QR dependencies must remain resolvable in the consuming build. A browser permission prompt is not equivalent to a paired hardware reader or printer.

The same app source can target supported host contexts, but context availability, authentication, API adapters, media permissions and hardware bridges must be verified in each one. A successful DevTools mock preview does not prove a live device, production portal or GXCompanion integration. See the module guides for the feature’s backend and delivery contracts.

Human and agent references​

The documentation includes exported component contracts, helpers, examples and ExperienceFlow guides. Storybook/catalog tooling and available MCP integrations can help an agent discover those contracts. Configure the actual tool connection and query the available package/version; installing AppUI does not automatically connect an MCP server or force every coding agent to use one.

Generated metadata helps catch unknown names, but it does not validate platform permissions, every backend operation, visual quality or real device behavior. Start with the AppUI introduction (repository reference: /appui) and the AI scaffolding guide, then check the exact component and runtime API before generating an app.

Troubleshooting and acceptance​

SymptomCheck
Unstyled componentsLoad the complete styles and inspect theme scope/variables.
Unknown export or propCheck the installed package version and current public contract, not an old source-file path.
API action fails in a preview/live portalCompare dependency identifier, runtime callback, operation ID, payload schema, session and permissions.
Flow will not advanceInspect page predicates, emitted next payload, busy/error state and the configured action result.
A retry duplicates a server actionAdd endpoint-level idempotency/recovery; UI retry does not supply it universally.
Capture/scanning failsCheck secure context, permission, iframe policy, dependencies and actual host/device support.
Preview works but companion does notValidate the device transport, runtime context and supported bridge separately.

Before release, verify imports/types and styles; test the flow without live writes; then exercise the intended session, authorized/denied API calls, network failure/retry, reset, theme overlays, responsive layout and real media/device requirements. Use a disposable project for persistent mutation acceptance.

Verification scope​

Reviewed AppUI source commit fc6bfb108634735f1657e533206c3f8702ad357d (0.1.7), public exports, flow types/renderer/adapter and the linked source-reviewed AppUI guides. Local source/type/component checks are distinct from npm registry availability, consuming-host versions and deployed API/device acceptance. No general portability or hardware guarantee follows from using the library.