App Configuration and Packaging
Define what project admins can customize, what data the app depends on, and what files the platform needs to render it. Keep source configuration, version configuration and installation values aligned.
Source files
The current scaffold uses an app manifest and a configuration document:
app-manifest.json
configuration.json
app-instructions.md
default-styling.css
src/Plugin.vue
src/public/
The manifest contains app identity, manifest version, settings, strings, assets, dependencies and source-file references. The configuration document defines the admin-facing forms. Instructions describe how consumers configure/use the app; default styling supplies its optional baseline styles.
A representative manifest header is:
{
"manifest_version": 3,
"name": "My App",
"version": "1.0.0",
"asset_dir": "/src/public",
"configurationFile": "configuration.json",
"appInstructionsFile": "app-instructions.md",
"defaultStylingFile": "default-styling.css",
"settings": {},
"strings": {"default": {}},
"assets": {},
"dependencies": [],
"permissions": []
}
This is a starting shape, not a declaration of access to any project data. Add actual catalog-supported dependencies and matching configuration selectors as the app needs them.
App configuration versus navigation
In Settings → Configuration, author the app's configuration schema and its separate navigation fields schema. App fields describe configurable options and resource selectors for the installation. The current Settings navigation builder saves a version navigation_flags document. Rule-specific values are stored separately as nav_config; their validation consults version nav_fields_schema where present. These are distinct stored fields. Do not assume editing navigation_flags automatically supplies the rule-validation schema or merges route values into app settings.
For rule fields, open the dashboard plugin-version editor at /{team}/plugins/pages/{page}/versions/{version} on the dashboard host, select Nav Fields → Navigation Fields Schema, and edit a draft. Here {page} is the app slug and {version} is its version route value. This editor writes nav_fields_schema; it is a different surface from the current Developer Hub Settings navigation builder. Published/global-read-only versions disable the editor.
For a minimal workflow, add a text input whose field name is badge, save the version schema, then use a page/form or portal-link audience rule to set nav_config.badge to the desired label. Verify that the portal theme or page component reads that field. The rule validator checks declared top-level element names when the schema supplies any; absent schemas or schemas with no declared names skip that key restriction, so an empty schema is not a deny-all rule. See group permissions for rule configuration and evaluation.
The local configuration.json uses the scaffold's supported form-builder structure, including additionalTabs for admin plugin configuration. Use the existing builder/schema tools rather than inventing a flat settings JSON as a replacement for the form document.
Settings controls and save boundaries
Choose the intended variant and draft in the title's version switcher before editing. The Settings workspace has nine sections:
| Section | Persistence and scope |
|---|---|
| General | App identity, descriptions, repository URL, icon and color; use Save changes |
| Configuration | App Configuration, Advanced Settings Configuration and Nav Configuration builders; use Save changes |
| Form Template | Template capability, form type and question schema; use Save changes |
| Documentation | Selected draft README; use Save changes |
| Screenshots | App-wide listing images; upload/delete immediately through their own controls |
| Assets | Selected-version files; upload/delete separately from Save changes |
| Dependencies | Selected draft declarations and resource scopes; use Save changes |
| Features, Tags & Flags | App-wide required features/tags and version runtime/configuration flags; use Save changes |
| Variants | Separate create/archive requests; these are not saved by the shared button |
The shared save submits app identity and the loaded version's editable configuration together, including fields from sections other than the visible one. Switching sections does not commit those changes. Copy any unsaved schema, JSON and text edits somewhere safe, then save and reload before changing the variant/version or leaving the page. Verify both identity and version fields after recovery from an uncertain response; an unsaved edit is not evidence of persisted state.
Read-only viewers cannot use mutating Settings handlers. A published selection disables the shared editor, while app-wide screenshot and variant controls use management permission independently of the selected version's read-only state. App-wide images are not historical version snapshots. Confirm the intended scope before deleting one.
The Features, Tags & Flags runtime switch controls the selected draft's inject_data_store value. It does not declare dependencies or grant permission to project records. Invalid JSON in Configuration flags produces a warning and omits that field from the save; other fields can still save. Therefore a successful shared save does not prove a malformed flags edit persisted. When the Form Template capability is enabled, a successfully parsed flags payload also receives the selected form_type.
The General color field describes alpha support, but the reviewed update validator accepts six hexadecimal digits after #. Use a value such as #3D3DFF if an eight-digit value is rejected. The Repository URL identity field is descriptive metadata; changing it does not reconfigure the managed repository or copy source.
Dependency cards and the shared save
At develop commit 25e1564 (reviewed 2026-10-19), Dependencies uses the same card-draft logic as the dashboard version editor. Choose Add dependency or edit a card, select the model, records and per-action scopes, then choose Done on that card. Done updates the Settings page's dependency array; use the outer Save changes to persist it to the selected draft version. An unfinished card draft is separate from that array, so the shared save is not proof its in-progress edits were included. Cancel drops that card's edits.
Choosing Done replaces that card's declaration in the page's dependency array while preserving the other loaded cards. The newer conversion retains extra metadata such as key, permissionKey and parentRelation; it normalizes one legacy identifier to singular and preserves multiple identifiers until the record selector changes. Changing the model resets its old permissions/events. Inspect the persisted version after changing models or selectors, especially when migrating older declarations. Published/read-only Settings pass their read-only state into the dependency editor.
The offered catalog excludes entries/permissions marked unavailable and includes supported own scopes and related parent models. An option's presence is not an endpoint-acceptance result. See scope and compatibility details, and verify the installed binding and denied cases before publication. These develop editor changes do not alter the bundle-import normalization described below or establish production availability.
AI enrichment
General → Enrich with AI queues analysis and can overwrite app descriptions, configuration features and discovery keywords. Its confirmation offers an additional documentation overwrite. Preserve the original text, save outstanding edits first and refresh after processing; a queued message does not mean the generated content has been saved or reviewed.
This action sends the app identity and optional README choice, without the Settings version_id. The controller and queued job resolve the app's current version, independently of the draft/version selected in Settings. Confirm the app record’s current_version_id through an authorized app-data inspection or with the platform team before using it, particularly when editing a different variant. If you cannot confirm that target, defer enrichment. Do not use the selected Settings badge as proof of the enrichment target. Confirm the actual app metadata and current-version documentation afterward, then recheck factual accuracy and intended publication. If the target is unsuitable, edit the intended draft manually instead.
Bind resources by identifier
For every named dependency, expose its installation binding under dependency_list.<identifier>. For agenda_source, the form field's name is dependency_list.agenda_source; runtime code looks up the agenda_source key in dependencyList. The installation's chosen project value resolves that binding; the dependency declaration supplies supported actions/events. Discover the selector route and value field from the catalog's binding metadata rather than assuming a numeric ID.
At runtime, the portal initializes the data store with both the installation's projectPage.dependency_list as dependencyList and the selected version's dependencies declarations. Saving the schema or naming a dependency does not save a project resource into that list. Save the installation configuration and reload it to verify the selected value persisted.
Binding values are compared using the dependency's configured key; the shared scope resolver falls back to the model's route key when no non-empty key is declared. A selector may therefore need a slug rather than a numeric ID. Match the catalog metadata and actual resource, not the field's visual label.
Keep record and tag bindings distinct. Scope tokens can represent tag constraints or a parent dependency; a parent reference is not a project ID. The resolver uses permissionKey as a stable slot address when declared, with identifier fallbacks, and can scope a child through a bound parent. Unresolved parent scopes match no records. Multiple identifier tokens are alternatives (OR), not a requirement that every binding match. A wildcard deliberately broadens scope; do not replace a missing selector with one just to make preview data appear. Confirm the actual resource and intended actions are part of the installed project. See permissions and dependencies for the detailed declaration contract.
Forms, surveys and quizzes
If an app uses form or quiz APIs, the scaffold/agent conventions require formTemplate: true in app-manifest.json. This declaration is separate from optional starter questions and from the platform version's is_form_template flag. Verify all relevant fields after import rather than assuming the manifest declaration alone provisions a form.
Starter questions belong in the configuration document's formTemplate root array. Admin plugin configuration remains in additionalTabs. An app can use form APIs without shipping prepopulated questions, but it still needs the capability declaration and declared form dependencies.
The reviewed local bundle-processing path stores the manifest in app_manifest and configuration in version settings; it does not set is_form_template from the manifest flag. Verify or enable the version's form-template setting in the Developer Hub before publishing. The project page installation controller checks that version flag: a form-template app installs as ProjectForm and additionally requires form-create permission. Without the version flag, that installation path uses the ordinary page branch.
For a form installation, the form service translates non-empty settings.formTemplate content into its form definition, copies version assets into the project and seeds sections/fields. Empty or omitted starter content does not supply questions. Check the installed form's question editor and response behavior; a successfully uploaded package is not proof that a form was created.
Strings and assets
Use the runtime's strings and asset bindings so project admins can customize the experience. Keep development placeholders separate from packaged assets. The packager reads asset_dir and puts those files into the app package; referenced instructions/configuration/styles are processed into their packaged files.
The build writes the package as dist/<plugin-name>.gxpapp and stages its contents under dist/build/. Referenced source files are normalized as follows:
| Source reference | Packaged filename |
|---|---|
appInstructionsFile | appInstructions.md |
defaultStylingFile | default-styling.css |
configurationFile | configuration.json |
The staged manifest removes the optional source-reference and inline-content keys after processing them. Inspect the staged files, not just the original manifest, when debugging an import. The packager also supports inline appInstructions, defaultStyling and configuration; a configured file reference takes precedence over its inline alternative. A missing referenced optional file logs a warning, and missing asset directories can be informational rather than a failed build. Consequently, packaging success alone does not prove the form schema, instructions, styles or assets were included.
Settings exposes app documentation, screenshots and version assets separately. Screenshots/listing content explain the app; they are not a substitute for runtime files required by the package.
Bundle-to-version mapping
The current local bundle processor writes these files into the selected draft version:
| Package content | Version result |
|---|---|
app-manifest.json | app_manifest |
plugin.es.js | Uploaded runtime JavaScript file |
Optional style.css | Uploaded compiled style file |
Optional assets/ | Processed version assets |
Optional default-styling.css | style text |
appInstructions.md (or legacy app-instructions.md) | readme; first recognized file wins |
Valid configuration.json | settings |
Valid object-shaped configuration-flags.json | configuration_flags |
Non-empty manifest dependencies | Normalized version dependency declarations |
Invalid JSON in configuration is logged and skipped. Invalid/non-object configuration flags are also skipped. An absent optional file does not necessarily clear the existing version field. In particular, the processor only replaces dependencies when the manifest list is non-empty; do not assume importing dependencies: [] removes old grants/declarations. Review the stored version after re-import and use the supported settings editor for intentional changes.
Dependency permission strings pass through normalization. Permission objects are reduced to their permission string; an object with action: viewAny additionally produces a <permission>:viewAny entry. The stored representation can therefore differ from source JSON. Confirm identifiers, scopes and allowed operations in the installed context rather than treating normalization as authorization.
The processor locks and rechecks the version before writing. A version with either published status or a non-null publication timestamp is not editable through this import path; a queued import is not permission to change a version published in the meantime.
Version and installation scope
Select the intended variant and version before editing Settings. App identity is app-wide; dependencies, schemas and assets can belong to a version. The current Settings UI sends the selected version_id with version edits, and the server verifies that it belongs to the app. Callers omitting that ID fall back to the app's current-version pointer; do not omit it when integrating a selected-version editor.
The settings endpoint checks team ownership and update authorization. Published-version updates are rejected by the server with 403, not merely disabled by the UI. Continue changes in a draft and publish another release. Public/global-default app flags are reserved for super admins; ordinary team updates do not grant those platform-wide states. App-wide fields and selected-version fields share a transaction, so an attempted published-version write can reject the combined save.
In a project, configure the chosen release and resolve selectors to real resources. A different installed release may have different schemas or bindings, so review configuration when upgrading. A portal link with no rules inherits its linked page/form's rules. As soon as it has its own rules, that whole rule set replaces the inherited set for the link; it is not an additive override of selected parent rules.
For an allowed caller, matching allow rules contribute nav_config in ascending sort order. Later keys win through a shallow merge: a later nested object replaces the earlier value for that key rather than recursively merging its children. A denied gate yields no navigation configuration. Test both intended and excluded audiences after adding link-specific rules.
The render service supplies the resolved value as a separate navConfig page prop. App defaults and installation custom_settings form a separate shallow configuration merge, with installation values taking precedence. Navigation configuration is not an automatic deep merge into the app's settings or a grant to fetch a resource. Confirm the consuming component actually reads the relevant field.
Validate and deliver
Validate configuration and manifest together with the toolkit:
gxdev lint --all
npm run build
Run the test script configured by your app as well; do not assume every scaffold defines an npm test script. The lint command discovers the standard configuration.json and app-manifest.json targets that exist in the project. If neither exists, it reports that fact and returns; check the lint output and selected project directory rather than treating any successful exit as proof both files were validated.
Before upload, inspect dist/build/ and the .gxpapp archive for the expected manifest, runtime build, normalized configuration/instruction/style files and referenced assets. Then install the intended release into a controlled project, save each resource selector, reload configuration and verify the app uses those values.
The lint step checks supported configuration syntax; it does not prove API authorization or installed behavior. Review the resulting package and complete the hub's build and release process. Test the configuration forms and actual attendee journey in a project with permitted and denied audiences.
Troubleshooting
| Symptom | Check |
|---|---|
| Settings changed a different version | Selected variant/version and the submitted version_id; legacy callers target current version when it is omitted |
| Save rejected with 403 | Update permission and whether the selected version is published; create a draft for changes |
| Installed app has no configuration form | Manifest reference, build warnings and staged configuration.json; a local file alone is not proof it was packaged |
| Instructions/styles missing after upload | Normalized output filenames and whether a missing file reference prevented the inline alternative from being used |
| Selector saves but API access fails | Dependency identifier, actual project resource binding/key and declared actions; a schema field does not grant access |
| A link lost page-level audience behavior | Its own rules replace the inherited set; reproduce the full intended rule set for that link |
| Nested navigation options disappeared | Rule values merge shallowly; later keys replace entire nested values |
| Navigation editor did not constrain rule fields | navigation_flags and rule-validation nav_fields_schema are separate version fields |
| Form app installs as an ordinary page | Check the stored version’s is_form_template; the reviewed local processor does not derive it from the manifest flag |
| Form app has no starter questions | Inspect version settings.formTemplate and the installed form definition; capability alone supplies no questions |
| Re-import retained old settings or dependencies | Optional absent/invalid files can be skipped, and an empty manifest dependency list does not clear version dependencies |
| Flags edit disappeared after a successful save | Correct the JSON warning; malformed flags are omitted while other fields can save |
| AI enrichment changed unexpected documentation | Compare the app current-version pointer with the Settings selection; enrichment does not send that selection |
| Lint appeared to do nothing | Correct project directory, discovered targets and lint output |
Verification scope
Manifest/scaffold shape, packager optional-file handling, lint target discovery and Developer Hub settings version targeting were reviewed against current toolkit/platform source on 2026-10-14. Package import, rendering, installed resource authorization and attendee journeys still need project acceptance; schema validation alone does not establish them.