Skip to content

Composite page editor V3 ​

V3 is the componentized production editor for composite operator pages. It turns function contracts into editable components and reuses the published renderer for preview, so the page an operator edits is the page the runtime will execute.

Editor capabilities ​

AreaCapability
Entry pointsCreate a composite page from the proposal inbox or edit an existing composite page.
Component panelFunction components grouped by resource, plus buttons, modals, containers, and text.
OutlineTree navigation with click-to-locate selection.
InsertionClick insertion, drag insertion, drop indicators, and contract-aware container children.
InstancesMultiple instances of the same function; automatic stable key allocation and rebinding.
CanvasGrid width adjustment, ordering, context menu, parent selection, copy, and delete.
SelectionShift-click accumulation and bulk deletion.
HistoryUndo and redo for tree changes with a 50-step snapshot window.
ModalsEnter a modal's inner canvas, edit several forms, and return through breadcrumbs.
PropertiesSchema-driven configuration and action tabs for the selected node.
EventsButton, table row, form success/failure, field, and text interactions.
Action chainsOrdered execution with abort on a failed execution step, plus refresh, modal close, navigation, and notification actions.
Data debuggingTry a function in the bottom panel and inspect the result before publishing.

Typical workflow ​

  1. Create a composite page in the current gameId + env scope.
  2. Drag a collection query into a table and enable automatic execution if appropriate.
  3. Add a detail modal, map row fields to its inputs, and wire row actions.
  4. Add operation forms and configure confirmation or refresh behavior.
  5. Preview with the published renderer and try the data panel.
  6. Save the proposal, resolve validation diagnostics, publish, and mount the page.

Compilation model ​

The editor serializes a CompositeSection tree into a PageSpec. The compiler:

  • assigns section keys for page state;
  • converts node props into typed page fields;
  • validates selector mappings and output shapes;
  • preserves refresh, visibility, and action-chain edges;
  • keeps dialogs as execution groups even when they are grouped for display.

Refresh edges (refreshOn) compile straight through to the published spec. At runtime the cascade is driven by a per-section result revision, so a same-state new upstream result (two consecutive successful runs with different data) cascades as well; a section whose refreshOn graph cycles back to itself is refused the cascade.

Published behavior is deterministic: hidden inline sections still execute according to their configuration, while rendering is filtered by visibleWhen.

Preview pipeline (B1) ​

Preview consumes the same generated spec as save and publish. Entering preview compiles the tree, posts the compiled sections to POST /api/v1/versioning/pages/composite/preview, and renders the returned generated spec through the production PageRenderer/CompositeRenderer — only the execution adapter is replaced. The mock executor synthesizes sample data from each binding's contract outputSchema, returns it as a synchronous result, and so exercises the real rendering, refresh, action-chain, and pagination paths. The endpoint runs the same generation chain as creation (contract lookup, binding assignment, static-section interleaving, template snapshot, publish-level selector validation) and writes no proposal, draft, or audit row, so it needs no pages:publish permission; its output is field-for-field identical to what saving and publishing would store.

The response's quality and diagnostics render inline in the preview pane, so generation diagnostics are visible before saving. Fallback: a tree that cannot be losslessly compiled (text nodes, non-card containers) or a failed preview request falls back to the legacy structural preview, with the blockers listed, so preview is never blank.

Refusal reasons render inline too: a canvas the generation chain refuses — missing pageKey, a missing or duplicate section key, a static section without form.jsonSchema, a section referencing an unregistered function, or no functional section left to generate — returns 400 with error=validation_failed and a details object whose keys are request-body field paths (pageKey, sections[i].key, sections[i].functionId, sections[i].form.jsonSchema, or bare sections), and the preview pane and the save/publish dialogs list those entries through the shared ErrorDetailList, so the operator can point at the offending section rather than reading one generic message. A contract lookup that fails for a database reason is not a canvas problem and stays a 500.

Data source switch (B1, 2026-10). The preview header carries a mock/real switch. Mock (default) keeps the mock executor described above. Real preview executes through the server-validated draft entry POST /api/v1/versioning/pages/composite/preview/execute: the pane posts the same generation input the preview endpoint received (page key, compiled sections, template snapshot) plus the bindingId and execution context, the server rebuilds the draft spec through the identical generation chain, re-runs publish-level selector validation, and then applies the same gates as a published page — permission check, approval gate, contract snapshot; the browser never submits functionId/route/scope. Switching the data source remounts the rendered page so results, pagination, and selections do not leak across modes.

One shared runtime. The production CompositeRenderer and the editor preview pane no longer keep separate state machines: both consume the useCompositeRuntime hook (web/src/components/PageRenderer/compositeRuntime.tsx) — results ledger, revision-driven cascades, action chains, abort-on-failure, danger confirmation, form submit exits, and server pagination live there once. The three execution modes differ only in the injected execute adapter: mock synthesis, draft execute, and the published binding execute. This is what makes "same configuration behaves identically in mock preview, real preview, and the published page" hold by construction.

Boundary: real preview performs real function calls against the draft (operation functions and approval submissions have real side effects) but publishes nothing; the legacy structural fallback renderer (PreviewRuntime) keeps its own simpler interaction loop and is not yet on the shared hook; an autoRun failure in mock mode is recorded as a per-section error marker (surfaced via cascade policies) and does not raise the section-level failure alert, which is only set by explicit form submits. The preview pane shows validation failures by their wire field path (it addresses canvas inputs), which differs from the D2 execution-failure rendering that maps field errors to form field titles.

Component development ​

  • Register a component with its accepted props and child contract.
  • Separate schema-driven configuration from action configuration.
  • Implement round-trip serialization to preserve existing keys and references.
  • Test insertion, deletion, undo, redraw, publication, and decompilation.
  • Avoid component-specific logic in the runtime renderer; prefer typed PageSpec fields.

Later hardening ​

The page also records subsequent production hardening: selector diagnostics shared by save and publish, contract drift repair, template update notices, registration-derived rebuild warnings, workspace filtering, pagination pushdown, and expression binding. Consult the implementation tests listed in the guide before changing compiler or round-trip behavior.

Widget capability hints (SUI-020) ​

web/src/utils/widgetCapabilities.ts provides a shared, typed table for all 26 FormWidget values: accepted schema types, submitted value shape, fallback behavior, and whether a concrete renderer implementation exists. The form-presentation widget selector now attaches a native title hint per option (accepted types + value shape + fallback); all 12 option values are unchanged. Key verified facts: Switch maps to RJSF checkbox but submits a boolean; Code and JSON map to textarea and submit plain strings; Array/Object are renderer-managed composite fields; KeyValue uses a custom field; DateRange and RichText are declared-only, unimplemented, and fall back to the schema type default. See the PageSpec protocol and the page model.

Form presentation validation (SUI-021) ​

Before any save reaches the server, the browser runs the same form-presentation rules the server enforces on save and publish (web/src/utils/formValidation.ts): every form on the page (resource create/update/action forms, operation/task forms, report query form, every composite section form) is checked for unresolvable field keys (bare or JSON Pointer, SUI-019), duplicate keys, group key/field conflicts, invalid or schema-incompatible widgets (SUI-020 capability table), and widths outside 0–12. Invalid config is blocked with a per-entry message like resource.createForm.fields[2].width: …; a fully valid page saves and publishes unchanged. The server keeps one rule source (spec.ValidateFormPresentations), so proposals, publish, rollback preflight and validation endpoint all report the same codes. See the PageSpec protocol.

Date and time value serialization (SUI-022) ​

Date-type form fields inside composite section forms submit what the operator picked, not a UTC-folded instant: date submits the local calendar date YYYY-MM-DD, date-time submits RFC3339 with an explicit local offset (2026-01-31T08:30:45+08:00), time submits HH:mm:ss, and clearing a picker removes the key from the submitted payload entirely (previously a stale null survived into the request and failed schema validation). The antd theme's built-in date widget discarded the local offset and the core time widget mangled Dayjs values, so the SchemaFormRenderer registers three overrides (DateWidget/DateTimeWidget/TimeWidget) that both the format: date/date-time/time default path and the x-widget: DatePicker/TimePicker path resolve to. Seeds (default values, previously submitted values) display as local wall clock for naive DB-style strings and keep the instant for Z/offset strings. See the PageSpec protocol for the full serialization contract and boundaries (the contract follows the widget choice: x-widget: DatePicker on a format: date-time field submits date-only).

Enum label association (SUI-023) ​

Enum dropdown labels in section forms attach to values, never positions: numeric and boolean enum values (including false) get their declared labels, reordered x-enum-options/enumOptions declarations render in schema enum order, and values without a declared label fall back to the raw value string. Labels never change the submitted enum value — selecting an option by its visible label submits the raw value (the enum label chain is the GUX-017 one: schema hints resolve into ui:options.enumNames for the fixed rjsf runtime). See the PageSpec protocol.

Form copy follows the current locale (SUI-024) ​

Section form copy — field titles, descriptions, placeholders, group titles, enum labels, the submit button — renders in the operator's current language and falls back through one unified chain (current locale → zh/en cross-fallback → the explicit fallback). Switching language without a page reload swaps the visible copy in place (the renderer listens for the locale-change broadcast); values already typed into the form survive the switch. See the PageSpec protocol.

Default form derivation parity (SUI-025) ​

Section forms with no presentation config render as the standard vertical form: the derivation shared by the Go generator and the debug page emits no fields/groups for a hintless schema (the wire carries only layout: vertical), and the renderer fills in type-default widgets at render time (numbers, switches, date pickers, dropdowns, long-text areas) via deriveDefaultPresentationSpec. Debug preview and published rendering hit the same fallback, so what you preview is what publishes. Placeholders no longer appear automatically — declare x-placeholder; titles still fall back to the field key's humanized form. See the PageSpec protocol.

JSON editing for non-object-root requests (SUI-026) ​

A section whose bound contract declares a non-object root (array, a bare scalar, null) can no longer be expressed, so the section renders the JSON editor instead of the bare execute button: the operator edits the whole request payload as one text block, sees the concrete reason (the declared root type), and submits through the same validator and execute chain as structured forms — the array/scalar goes to the binding verbatim and merges into page state as { values: payload }. The same editor backs operation pages and dialogs via the shared SchemaFormRenderer. See the PageSpec protocol.

Per-instance field IDs (SUI-027) ​

Two sections of one contract (same schema) on a composite page, or the dual preview, each get their own field-id namespace: labels, error text, and descriptions bind to the instance they belong to instead of the first match in the DOM, and re-rendering one instance does not renumber the other. See the PageSpec protocol.

Form width and responsive layout (SUI-028) ​

Field width in a section's form presentation is a 12-column protocol value; the renderer multiplies it by two for antd's 24-column grid (width: 6 shows as a half-row field). Without an explicit width, the standard type-derived layout applies (layout: grid uses a half row); width: 0 and out-of-range legacy values are treated as unset. Narrow screens (<768px) give every field a full row; from 768px fields take at least half a row and from 992px the full declared span. Group containers and long-text fields stay readable and operable across both sizes, while input, validation, and submit behavior are unchanged. See the PageSpec protocol.

Editing form groups in Page Studio (SUI-029) ​

FormPresentationEditor (the form tab of operation/task/report/resource pages and composite section forms) now owns group presentation: add a group, edit its key and localized title, drag to reorder, delete it, toggle collapsible/collapsed, and assign fields by multi-select (a field already owned by another group is disabled). Edits go into the draft's form.groups and read back in the same order when the draft is reopened; SUI-021 validation still blocks saving a duplicate key, unknown field, or field claimed by two groups. See the PageSpec protocol.

Named display variants (SUI-031, protocol only) ​

The named display-variant protocol is now defined in the PageSpec protocol: one form can carry several named presentations (the canonical pair is a standard vertical form and a compact grid) that share the schema, the bindings, and all call governance, differing only in SUI-045 display-only overrides. Storage has landed (SUI-032: variants persist with the form in the existing draft/snapshot tables), publish validation too (SUI-033: the web client mirrors the server rules in web/src/utils/formValidation.ts — variant key uniqueness, defaultVariant resolution, illegal call-affecting overrides and schema resolution are flagged before save; the server additionally re-resolves variant keys against the current contract on publish and rollback preflight), Page Studio management with SUI-034 (see the next section), and default resolution with SUI-035: the rendered form now applies the published defaultVariant — SchemaFormRenderer's effective-spec step merges the named style through the same resolveVariantPresentation rule, with a base → derived-vertical fallback for missing defaults and unchanged rendering for old pages and unresolvable keys. Published-form switching has landed with SUI-036: a rendered form declaring more than one style shows an in-session switcher (antd Segmented) above the form; picking a style substitutes the explicit choice for the published default at the head of the same resolution chain.

Managing named display styles in Page Studio (SUI-034) ​

The form tab of operation/task/report/resource pages gains a named display styles card below the field groups (SUI-034). An administrator can:

  • Add a style — new keys are variant-N, auto-incremented to stay unique within the form (form_variant_key_conflict is prevented up front).
  • Rename a style — editing the key updates variants[i].key; renaming the current default syncs defaultVariant so it always resolves to a declared key.
  • Delete a style — removing the default clears defaultVariant (back to the base presentation); removing any other style leaves the default untouched.
  • Set / unset the default — one click toggles defaultVariant; the default style carries a tag in the card header.
  • Per-field presentation overrides — for each base field: grid width (1–12, SUI-028) and widget swap. Clearing a value removes that override key (inherit base); a field entry that loses all its overrides is removed entirely. Overrides imported from the API (e.g. label) are preserved on edit.
  • Preview each style — the eye toggle renders the style through SchemaFormRenderer with the merged presentation (resolveVariantPresentation in web/src/utils/formVariants.ts, the same merge rule the renderer's published-default resolution reuses since SUI-035). The preview passes the explicitly chosen style with variants/defaultVariant stripped so the renderer chain cannot double-apply, and is disabled so preview input never looks submittable.

Everything persists in the draft FormPresentationSpec and reads back on reopen; concurrent editing keeps using the existing draft-revision conflict handling. Saved drafts run through the SUI-033 validation mirror, so a stale key, an unknown default, or a call-affecting override is flagged before the server rejects the save.

Style vs. binding operation. A style only changes presentation — layout, column width, widget, copy. It never changes what is fetched or submitted: taking playerId from the selected row is a binding selector operation (configured on the binding, outside the form presentation), and no style can alter the request payload — both facts are stated in the editor hint copy. The two acceptance probes: adjust the form column count is a style operation (per-field width override in the styles card); take playerId from the selected row is a binding operation (binding selector), and the styles card is deliberately silent about it.

Published-form switching (SUI-036). At runtime every published form carrying more than one style — operation/task/report/resource forms and composite section forms alike, since they all render through SchemaFormRenderer — shows a small style switcher above the form. Switching changes only the visible presentation: input values and validation errors survive the switch, and because no style can touch jsonSchema, both styles submit identical payloads and produce identical confirm entries. The operator's choice is session-only — it resets on remount and is not persisted; a durable, cross-device style preference is a separate open decision.

Known boundaries. The editor manages the key/title/layout/width/widget override subset and the default; button overrides (submitButton/cancelButton), per-variant groups, label/placeholder/description overrides, and variant-only fields are wire-legal (SUI-031) but have no editor UI yet — they can be authored via the API and remain visible/previewable here. The composite editor's section form config is still schema-only and does not expose the styles card, though a composite section form whose variants were API-authored still gets the runtime switcher. Default resolution (SUI-035) and the runtime style switch (SUI-036) have landed.

Polymorphic branches (SUI-042). When a published form schema declares a root discriminator over oneOf/anyOf branches, the runtime form renders a branch selector above the fields. Picking a branch swaps the rendered and validated fields to that branch, keeps values of shared keys, presets the discriminator value, and drops keys the new branch does not declare; the request payload therefore contains only branch-allowed fields. An initialValues discriminator value selects its branch on first render; a schema whose branches cannot be valued (missing mapping/const/enum, dangling ref, duplicate values) degrades to the full-request JSON editor with a reason instead of guessing semantics. Plain oneOf/anyOf without a discriminator and nested discriminators are unchanged. The editor has no branch-authoring UI: branches come from the function contract schema.

Debug-page style reuse (SUI-043 decision, 2026-11-26) ​

The function invocation workbench (web/src/pages/Functions/Invoke) is a debug surface, not a published page: it derives its form from the live function descriptor with derivePresentationSpec and executes through the direct invoke API. It has no pageKey and no Binding, so it cannot identify a published form position on its own. Decision: no automatic style lookup from the debug page. Instead, an operator who wants a published style chooses a published page explicitly (a "style source" selector limited to pages bound to the selected function in the current game/env scope), and the workbench uses that page's published FormPresentationSpec for the form position whose bindingContracts[].functionId equals the selected function. The choice is session state and is shown as a source label next to the form; clearing it returns to the descriptor-derived form.

Page/form location. Pages arrive from GET /api/v1/console/pages (already scoped to X-Game-ID/X-Env and gated by console read permission). Filter by bindingContracts[].functionId === selectedFunctionId; each candidate page then locates its form by canonical path — operation.form for operation pages, resource.actions.<actionKey>.form for resource action pages (matching by the action's bindingId to the function), composite.sections.<sectionKey>.form for composite sections, task.form/report.queryForm for task/report pages. When several form positions on one page bind the same function, the selector lists them as separate entries (pageKey + canonical form path). Only the presentation (layout/groups/fields/variants/defaultVariant + submitButton/cancelButton) is reused; the live descriptor's jsonSchema stays the source of truth for validation and dispatch, so a stale published schema can never weaken the debug page's contract. A published style may not change jsonSchema, visibility, defaults, validation rules, or the Binding (SUI-045), so this substitution is display-only by construction.

Scope, permission, and fallback. Reads go through the existing console read gate (admin:all/console:read/pages:read/function:invoke) and the current game/env scope — the debug page never reads drafts or other scopes, and the published page's execution governance is not reused (debug execution keeps its own invoke path). If no published page binds the function, the selector states that no style source exists and the workbench keeps derivePresentationSpec's hints-derived form (the existing behavior); unresolvable source pages and stale/removed pages are skipped with a diagnostic rather than silently changing the form. The runtime style switcher (SUI-036) remains available inside the reused presentation — choosing a style there is session-only, independent of the source selection. This decision is documentation-only: the selector itself is not implemented by SUI-043; it is a follow-up UI task.

Theme appearance scope (SUI-044 decision, 2026-11-26) ​

Decision: colors and fonts are not part of style (variant) configuration; density already is, structurally, through the existing display-only keys. A style (FormPresentationSpec.variants[i], SUI-031) says how a form is arranged, not what colors it uses. The variant field whitelist (variantFieldKnownKeys in internal/dashboard/spec/form_presentation.go, mirrored by unknownVariantOverrideKeys in web/src/utils/formValidation.ts) is exactly the SUI-045 display-only set — per field widget/label/placeholder/description/role/unit/perTarget/width/order/enumOptions/remoteOptions/widgetProps, plus page-level layout/groups/submitButton/cancelButton. No color, font, or density-token key is declared there, and publish validation rejects any unknown key (form_variant_illegal_override).

Density is in scope — structurally. "Compact" vs "standard" is a layout statement, not a theme token: a compact style is layout: grid plus reduced per-field width (the SUI-028 12-column protocol value, doubled for antd's 24-column grid), order/groups (collapsible/collapsed) for chunking, and widget swaps (TextArea for Input). The canonical variant pair (SUI-031) is exactly a layout/width override, so density already rides the existing display-only set — no new wire field and no new token are needed for it. Fallbacks are the existing ones: an absent layout follows the derived standard vertical form (SUI-025); an absent/out-of-range width follows the SUI-028 rule (type-derived span, 0 and out-of-range treated as unset); an absent groups means the fields keep their base order.

Colors and fonts are out of scope, deliberately.

  • Themes are a personal runtime preference, not page data: preset (blue/inkpink) × mode (light/dark/system) lives in browser localStorage (croupier-theme/croupier-theme-preset, set under System Settings → Appearance), with antd tokens from web/src/utils/antdThemeConfig.ts pushed by <ThemeSync> and CSS variables from web/src/global.less switched through <html data-preset>/<html data-theme>. A published style freezing one admin's color choice into every viewer's browser would fight that preference and the AA contrast red line enforced by the CI a11y sweep (web/e2e/a11y-dashboard.spec.ts, four theme combinations).
  • antd 6's dark algorithm re-processes hex seeds through its palette (#4096ff → #3983dc, #b8556b → #9f4b5e), so a stored hex does not render to the same value in dark mode. Only token references are stable across light and dark — a future per-form accent can therefore only ever be a semantic role resolved at runtime, never a literal.
  • Adding appearance keys would also mean a new wire surface (Go validator + web mirror + editor UI + docs) for a capability with no recorded operator demand — the same trigger discipline as the SUI-038 server-preference deferral.

If per-form appearance is ever demanded (deferred, pre-designed, not scheduled): a variant may name semantic roles — accent (→ antd colorPrimary / CSS var --brand-2), surface (→ colorBgContainer / --app-panel-bg), text (→ colorText / --app-text-strong), secondary (→ colorTextSecondary / --app-text-secondary) — resolved at render time from the current theme; a role that resolves to nothing falls back to the base presentation (the same fallback chain as an unresolvable variant key). Fonts stay app-level (fontFamily is a global antd token); there is no per-form font mechanism, and the CJK/Latin stack plus user-zoom accessibility argues against one. Any such extension must re-run the four-combination contrast matrix below and pass the CI a11y sweep before it ships.

Readability across light and dark (verified). The same style is theme-agnostic — it carries no colors, so it inherits the current theme's tokens. web/src/utils/__tests__/themeContrast.test.ts runs getAntdThemeConfig through antd 6 theme.getDesignToken for all four combinations (the rendered values, not the declared seeds) and asserts WCAG AA (≥4.5:1) on the text/control pairs a form actually renders. Measured ratios (antd 6.6.0 getDesignToken on the production configs, 2026-11-26):

combinationlink on surfacesecondary on surfaceplaceholder on surfacewhite on primary button
blue · light6.16:1 (#0958d9 on #ffffff)7.00:17.00:16.16:1 (#0958d9)
blue · dark6.18:1 (#5c99dc on #141414)9.81:17.57:15.19:1 (#1668dc)
inkpink · light7.16:1 (#93394d on #ffffff)7.00:17.00:17.16:1 (#93394d)
inkpink · dark5.47:1 (#5c99dc on #1e1e32)9.01:17.07:15.77:1 (#9f4b5e)

All four combinations clear 4.5:1 in both modes, so the same compact/standard style stays readable under light and dark. Boundaries: the tightest pair is the dark blue primary button (#1668dc, 5.19:1 — still AA); the a11y e2e sweep covers the shell (ProLayout/menu) on real pages while the unit test covers the antd form-control tokens; neither covers game-specific embedded webviews outside the app's own theme context. This decision is documentation-only plus that one regression test: no production code, wire field, or editor UI changed.

Known boundaries ​

  • No new widget implementations landed in SUI-020: DateRange and RichText remain declared-only and silently fall back to the type default; Code/JSON remain plain textarea strings and do not parse or validate content. Capability hints are informational only and do not change submission values.

  • Container rendering intentionally simplifies very deep descendant layout.

  • Text components are editor aids and do not publish runtime content.

  • Preview data is an editor-only debugging aid; published pages have no mock fallback.

  • Preview (B1) renders the server-generated spec through the production renderer on the shared useCompositeRuntime hook; the data source switches between a mock executor and a server-validated draft execute entry. Real preview exercises operation functions and approval flows against the draft (real side effects, nothing published), so it must be used on test games. A tree that cannot be losslessly compiled (text nodes, non-card containers) or a failed preview request falls back to the legacy structural preview and lists the blockers — the preview is then structural rather than publish-identical, and that fallback renderer keeps its own interaction loop rather than the shared hook.

  • Execution requires a bound runtime contract and a published page binding.

  • Table pagination is configurable from the table component's "server-side pagination" setting (D3): enabling it compiles to table.pagination on the published section (enabled plus optional defaultSize and pageSizes, clamped to [1, 200] at compile time and deduplicated ascending). The generator does not infer pagination for composite sections (no resource-semantics context), so it stays off unless explicitly enabled, and a setting that is unset or disabled keeps the pre-D3 client-side pagination. When enabled the renderer requests page/pageSize with a renderer-derived offset=(page-1)*pageSize, uses the response total verbatim or, when absent, estimates the bound as "a full page means a next page may exist" and closes off on a partial page, resets to page 1 when the upstream filter input changes, and keeps the current page on a post-operation refresh. The bound function must actually consume page/pageSize: the platform passes extra input keys through, so a function that ignores them returns the full set on every page (identical page contents, an inflated page count). Cursor pagination and a per-table totalKey are not supported, server-side filter pushdown is not implemented (composite filtering goes through the query-form refreshOn cascade — column sorting does push down, see the next bullet), and tables rendered inside a dialog do not paginate.

  • Table column sorting (D3) is not an editor setting: the generator marks a column sortable iff the bound function's output schema types it number or datetime, so the table component's column list (a key pick) exposes no per-column sortable toggle — a column is sortable exactly when its dataType qualifies at publish time. With client-side pagination the sort runs locally over the returned rows (number by value, other dataTypes by string code point, missing values last); with server-side pagination enabled the header click re-runs the section with sortBy/sortOrder appended to the request and resets to page 1 (the bound function must actually consume the two keys — the platform passes extra input keys through, so a function that ignores them returns an unsorted page while the UI shows a sort arrow). Sorting never enters the section's filter fingerprint, so it does not raise the row-selection stale warning; a dialog-rendered table renders its columns verbatim (no header sort UI); the order is two-valued asc/desc only (no cancel state, no multi-column sort) and does not persist across a page reload.

  • Table column semantics (D5) are not editor settings: the renderer derives them from the bound contract's output-schema x-* hints. x-field-role="identity" collapses to a pinned, copyable identity column; x-enum-options renders the column as colored status tags; x-field-unit appends the unit to the header and to number cell values; dataType="datetime" cells render with an explicit browser-local timezone label (UTC±HH:MM). A dialog-rendered table keeps the semantic cell rendering but no header sort UI. The danger confirmation picks the same semantics up from the target form's FormFieldSpec.role/unit (identity bold + first, expiry red, amount/quantity unit suffix); a field declared x-field-per-target additionally shows a batch total (value × selected-target count, unit and role reused) when a table-section danger action has more than one selected target — only declared per-target fields aggregate, non-declared fields never multiply (no semantic guessing). Boundaries: units are display-only (no scaling or conversion), roles other than identity do not change column layout, and the timezone label is the browser's local offset (no game-level tz configuration). Form dropdown labels use the same hints contract: the schema form renderer resolves schema-level x-enum-options (falling back to schema enumNames, then raw values) into ui:options.enumNames for the fixed rjsf runtime — declaring labels via schema-level enumNames alone leaves the dropdown showing raw enum values (GUX-017).

  • Table row selection is configurable from the table component's "row selection" setting (D2): enabling multi-select compiles to table.selection on the published section (multiple plus an optional identityKey pick from the output schema). The generator does not infer row selection for composite sections (no resource-semantics context), so it stays off unless explicitly enabled, and a setting that is unset or disabled keeps the pre-D2 single-row radio (the rowSelected event semantics are unchanged). When multiple the published table renders checkbox multi-select plus a selection bar above the table: a "selected N item(s)" count, a "M visible on this page" count shown only when some selected rows are not on the current page, a "view target list" entry listing every selected row (identity column first, up to three display columns total), a "clear selection" action, and a stale-selection warning when the section's filter inputs change after a selection (pagination is not a filter change). The selected rows write the section's runtime selectedRow (first row) and selectedRows (all rows), so {{...selectedRows.x}} expressions and server-side input assignments read them. Row identity resolves selection.identityKey → table.identityKey → the row's id/key → the row itself; the same identity drives the rowKey, the target list, and the counts. Boundaries: a dialog-rendered table has no selection bar; the "visible on this page" count is computed over the section's items (the current result page under server-side pagination, the full result set under client-side pagination — where it matches the selected count and the hint is not shown), so cross-page verification is only meaningful with server-side pagination plus a stable identity column; the target list caps at three display columns; the target review reaches the selection bar and the target list only — the danger confirmation itself shows no target entries (a danger action's own parameters already carry the target values); and rowSelected fires with the first selected row on every change, not with the whole selection.

  • Dangerous actions confirm before executing (D2): the confirm body lists the target modal's prefilled parameters by field title (enum values as option labels, no raw field keys) and the chain steps; with a targetSection the modal and its chain proceed only after the user confirms, and a pure-chain danger button confirms before running. Boundaries: openModal chain steps carry no danger flag. The danger confirmation covers the prefilled parameters, but the modal's parameters stay editable: on submit the final values are compared against the confirmed parameters over the union of keys (adding, removing, or rewriting any parameter counts as a change; empty values normalize to "not filled"), and a change re-confirms with the final values, an unchanged submit executes straight through, and cancelling the re-confirm executes nothing and keeps the dialog with the edited values. The re-confirm applies only to dialogs opened by a danger action (non-danger opens carry no baseline, so edits submit immediately), and the baseline expires when the dialog closes or the next one opens. The standalone operation page's own confirm dialog (OperationPageRenderer) follows the same field-title/enum/unit rendering for its pending parameters (no raw field keys), sharing the composite confirm's entry rendering.

  • Execution feedback splits submission outcomes (D4): a synchronous result is business success (fires the success event, re-runs onSuccessRefresh targets, and closes the dialog); an approval result shows "submitted for approval" with the approval id and a link to the approvals center, and a task result shows "task submitted" with the task id — neither closes the dialog, fires the success event, or refreshes targets. A failure keeps the dialog and its entered values open and lists the stable error code, the server message, and field-level errors by field title. Field-level errors from a server details map are injected under the matching form control through the shared form renderer's externalErrors prop (RJSF extraErrors, __errors per field), so they render as control-level messages rather than a separate list; only form-external fields (not present in the section schema) remain in the feedback summary. Boundaries: a failed submit keeps the entered values for correction (inline form sections are exempt from the card skeleton while submitting — the skeleton would unmount the form and drop those values — and the in-flight state is carried by the form's disabled), the operation page's task result carries an explicit "query execution status" entry (an onQueryTaskStatus prop querying the task status API, rendering the status tag, progress, and message/error in the result panel) — the query is in-page, and the panel also provides a "go to task center" link (/ops/jobs); the approval link is a fixed /approvals route.

  • Execution idempotency (D4) boundaries: page binding execution sends an Idempotency-Key header (published and draft-preview alike), and the server guarantees a key executes at most once within its claim window — a completed key replays the stored result (replayed: true in the response; the success toast becomes "returned the server-recorded result (not re-executed)"), a key still in flight gets 409 idempotency_key_in_use (result unknown — retry the same request later), and the same key with different content gets 409 idempotency_key_reused; without the header idempotency is entirely off. The client keeps one key per execution intent (page + binding + context): a synchronous result releases it (the next identical submit is a new intent), approval/task results keep it for 10 minutes (a resubmit replays the same approval/task id instead of creating a duplicate). Not implemented: a failed dispatch leaves the claim running for the full 15-minute window (the result is genuinely unknown — retries inside the window get the 409, not a silent re-run); the key lives in per-tab memory only (a page reload generates a fresh key, and a cache-evicted retry degrades to a new intent); reclaiming an abandoned claim after the window is a real re-execution, not a replay; a replayed synchronous result is announced the same way on the operation page (OperationPageRenderer) — the success toast and the result card title both swap to the "returned the server-recorded result" wording, replacing any configured resultView.successMessage.

  • Execution feedback on transport failure (D4): a timeout or network interruption during a write dispatch is presented as "execution result unknown" (a warning) rather than "execution failed" — the request may have reached the server, so the user must not blindly resubmit; safe retry goes through the idempotency key (a completed key replays the recorded result, an in-flight key returns 409), and the stage bar does not fall to a submit-stage error because the outcome is genuinely unknown. A server-answered HTTP error (any response body, including a 504 whose message says "timeout") is a known outcome and stays an error.

  • Multi-stage status feedback on operation pages (D1): after a submit the operation page renders a compact Steps bar above the result card, derived from the same state that drives the result itself — submit → approval → execution (describeOperationStages in web/src/components/PageRenderer/operationStages.ts). A synchronous success finishes both stages; a task result keeps execution in progress until the queried task status resolves it — the operation page's task-status query feeds the same derivation, so a completed task finishes the execution stage and a failed/cancelled one ends it in error (before any query it stays in progress); an approval result tracks the queried approval status (in progress until granted, error when rejected or expired) and the execution stage advances only after the approval is granted (finished for a synchronous continuation, in progress when the continuation becomes a task). A submit failure ends at the submit stage in error and does not render stages the flow never reached; resetting the result clears the bar. The bar is the shared OperationStageBar (web/src/components/PageRenderer/OperationStageBar.tsx), now also rendered by CompositeRenderer (inside the per-section feedback, derived from the section's running/failure/pending state — the composite does not query approval status, so a pending approval shows as in progress) and by TaskPageRenderer (a completed task finishes the execution stage, a running/pending task keeps it in progress, and a failed/cancelled task is an execution-stage error since the submit already succeeded — this last case is executeError in the derivation). Boundaries: it is a purely additive rendering layer, so there is no PageSpec field, no editor setting, and publishing is unchanged; the bar repeats no information (approval id, task id, and the failure reason stay in the result card); the approval stage is derived only from the queried status, so before the first status query it stays in progress; the composite's approval stage cannot advance beyond in progress because there is no approval-status query channel there.

  • Nested form field paths (SUI-019): FormFieldSpec.key (and every groups.fields entry) is a field identifier accepting either the legacy bare top-level property name or a JSON Pointer (RFC 6901) — object subfields as /address/city, array items as /tags/-/label, with ~0/~1 escaping so keys containing dots or slashes resolve unambiguously. derivePresentationSpec now emits pointer keys for nested fields that carry hints (no hints → the nested structure renders as one whole field, unchanged), and the renderer applies label/description/required/visibility to the resolved node and hides them by path exactly like top-level fields. Boundaries: pointer keys stay out of ui:order (rjsf accepts root property names only), value delete/set on array-item paths is a no-op because arrays submit and project as a whole, a pointer that resolves nowhere is reported instead of silently dropped (promoted to a save/publish blocker in SUI-021), and editor-side editing of nested/group fields is SUI-029. See the PageSpec protocol.