@praxisui/dynamic-form 10.0.0-rc.6 → 10.0.0-rc.60
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +162 -4
- package/ai/component-registry.json +2655 -333
- package/docs/custom-fields-enterprise-review.md +229 -0
- package/docs/dynamic-form-authoring-document-semantics.md +74 -2
- package/docs/dynamic-form-stepper-implementation-plan.md +111 -0
- package/docs/evidence/form-authoring-635-20261023/final-review.md +46 -0
- package/docs/evidence/form-authoring-635-20261023/independent-review-vb-form.md +50 -0
- package/docs/evidence/form-authoring-635-20261023/validation.md +76 -0
- package/docs/evidence/p1-authoring-20261022/validation.md +134 -0
- package/docs/governed-page-widget-adapter.md +58 -0
- package/docs/hot-metadata-updates.md +24 -2
- package/docs/schema-driven-layout-materialization-rfc.md +20 -20
- package/fesm2022/praxisui-dynamic-form.mjs +10553 -1329
- package/package.json +8 -8
- package/src/lib/config-editor/praxis-dynamic-form-config-editor.json-api.md +14 -5
- package/src/lib/layout-editor/praxis-layout-editor.json-api.md +8 -0
- package/src/lib/praxis-dynamic-form.json-api.md +67 -20
- package/types/praxisui-dynamic-form.d.ts +528 -45
- package/fesm2022/praxisui-dynamic-form-dynamic-form-agentic-authoring-turn-flow-w9V0aQ9B.mjs +0 -539
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: "Conditional form authoring — issue 635 validation"
|
|
3
|
+
doc_type: "guide"
|
|
4
|
+
component: "praxis-dynamic-form"
|
|
5
|
+
status: "validated"
|
|
6
|
+
owner: "praxis-ui"
|
|
7
|
+
last_updated: "2026-10-23"
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
# Conditional form authoring — issue 635
|
|
11
|
+
|
|
12
|
+
The subsequent [final PR review](final-review.md) records additional ownership and Angular input regressions found and corrected before integration, final source hashes and fresh focal/build gates. Browser screenshots below belong to the original PR head; they were not rerun during that final review.
|
|
13
|
+
|
|
14
|
+
The change was implemented in an isolated checkout on main `51075de81704596606bb578ab681124df5ae8493`. Unrelated changes in the original checkout were preserved. Classification: cross-library public behavior, with an additive optional `conditionState` argument on the existing `RuleBuilderService.updateNode` API. No new rule model, endpoint, AI contract, workspace configuration, dependency or public-api export was introduced.
|
|
15
|
+
|
|
16
|
+
## Canonical inventory and impact
|
|
17
|
+
|
|
18
|
+
Existing canonical property effects, graph drafts, host operator registry, diagnostics and persistence already cover the requested behavior. Summaries/status scopes are `ja-suportado-so-ux`; replacement, graph transfer and standalone hydration were `suportado-parcialmente`. An atomic node plus complete owned condition-graph update was missing from the existing service operation: the optional existing RuleBuilderState argument supplies that operation without a parallel contract. Complete conditions derive from fresh graph fields; incomplete descendants must not become an unconditional or partial condition.
|
|
19
|
+
|
|
20
|
+
Owners: Visual Builder for authoring/history and Dynamic Form for the canonical document, diagnostics and persistence. Direct consumers are the Form config editor, authoring diagnostics and the All Fields showcase. Form→builder now produces one propertyRule per rule, retaining every target, both branches, identity and authoring/semantic metadata. Existing legacy ingestion remains; new authoring does not generate legacy conditional-validator nodes.
|
|
21
|
+
|
|
22
|
+
Presentation formRules and formCommandRules retain separate channels. Core access policy remains authoritative; formHidden/access filters were preserved. Source builds include a direct consumer and the official dependency closure. No backend schema, business rule or HTTP corpus changed.
|
|
23
|
+
|
|
24
|
+
## Automated gates
|
|
25
|
+
|
|
26
|
+
| Gate | Result |
|
|
27
|
+
| --- | --- |
|
|
28
|
+
| Visual Builder: field condition, wizard, rule editor/list, target selector, service and summary | 88 passed |
|
|
29
|
+
| Form config editor, converters and diagnostics | 121 passed |
|
|
30
|
+
| Final mounted ConfigEditor diagnostic-scope guard | 69 passed (overlaps the preceding lane) |
|
|
31
|
+
| Standalone field metadata roundtrip, first/external config hydration | 67 passed |
|
|
32
|
+
| Official production dependency closure through Dynamic Form and Page Builder consumer | Passed |
|
|
33
|
+
| Final Visual Builder and Dynamic Form production builds | Passed |
|
|
34
|
+
| Purity and changed-document frontmatter | Passed |
|
|
35
|
+
|
|
36
|
+
These are focal unit/component lanes, not unique-test totals or a full release certification. The mounted Material stepper tests cover backward/forward navigation and linear blocking; real FieldConditionEditor debounce and canonical own echoes are exercised. Atomic graph tests cover incomplete descendants, cycles, shared nodes, removal, selection and undo. Host initialValue updates/clears during storage/hooks preserve the latest local authority without schema/entity HTTP. Existing remote-authority guards remain intact.
|
|
37
|
+
|
|
38
|
+
Logs in this folder contain the raw focal outcomes with terminal control sequences and trailing display padding removed. Historical failures were diagnosed before rerun; no test configuration or TypeScript strictness was weakened. The full test suite and screen-reader/assistive-technology certification were not run.
|
|
39
|
+
|
|
40
|
+
## Browser validation
|
|
41
|
+
|
|
42
|
+
Chrome via visible UI on official UI4003/API8088, frozen task checkout. No DOM state injection, fetch, mocks or JSON were used to author the simple rule. The real library All Fields example was used: Toggle and URL were renamed to Ativo and Foto (URL) through the visible Metadata Editor. This is a local form example using real remote config persistence; it is not certification of the Quickstart Foto upload or its backend field-access policy.
|
|
43
|
+
|
|
44
|
+
The analyst task used target selection, Visual condition Ativo = Sim, visible/required true and false branches, readable review and Save. The review and list describe all four effects. The runtime false branch hides Foto; the true branch exposes a required input with aria-required=true. Sample-data preview evaluates the two branches separately and explicitly states its limits.
|
|
45
|
+
|
|
46
|
+
Verified scenarios include incomplete draft/disabled saving with stale accepted effects and diagnostics withheld, repaired draft, keyboard target/Boolean choices and Next/Anterior, JSON replacement and advanced runtime-only if condition, exact advanced Save/reload with both branches, and subsequent restoration of the simple rule. Merely selecting a rule and navigating leaves Sem alterações. Closing returns focus to Configurar formulário.
|
|
47
|
+
|
|
48
|
+
Reset was confirmed through its visible dialog: it restores the opened document in the editor and this host also clears persisted keys. A read-only GET returned404 afterward. Reload consequently returned to the host example, as intended; the rule was then authored and saved again. Final persisted receipt returned200/version5 with one rule, toggle===true and both visible/required branches intact. This does not certify ETag conflict handling or concurrent saves.
|
|
49
|
+
|
|
50
|
+
At390×844 the section selector, footer actions and effect controls fit; review content is readable by vertical scrolling. This is an agent simulation, not a human usability study: no human task-time or comprehension score is claimed. Multiple internal scroll areas remain a usability limit for small screens.
|
|
51
|
+
|
|
52
|
+
## Independent review and derived guidance
|
|
53
|
+
|
|
54
|
+
Each implementation area was reviewed by a different agent. Root reviewed Visual Builder, runtime and converter changes; the VB author independently reviewed root ConfigEditor, panel, docs/i18n and the latest initialValue fix; the runtime author independently reviewed VB metadata preservation and root selection signature. Review covered canonical authority, replacement, both branches, ownership/history, consumers, source/test evidence and docs.
|
|
55
|
+
|
|
56
|
+
Owner documentation was updated. The Visual Builder README is synchronized by the official vendor helper in praxis-ui-landing-page PR268; vendor75/docs25/guides145/sitemap gates passed, with the existing Cron Mermaid warning. No AI manifest/catalog, exported model or HTTP semantic surface changed, so registry/corpus generation was unnecessary.
|
|
57
|
+
|
|
58
|
+
Skills: atualizar-existente for five existing skills in canonical praxis-codex-skills PR836, including document roundtrip, Form authoring settings and Visual Builder rules/graph/JSON Logic. No new skill was introduced. Standalone runtime guidance was already adequate in the canonical schema/runtime skill. Canonical skills PR836 was integrated at e13f4b4d1a0ed1bc127f15105cefc5f2eeb9524f. Official selective sync validated5/5 affected skills and preserved all783 files outside scope and unrelated local drifts. Landing PR268 remains open for review, without deployment.
|
|
59
|
+
|
|
60
|
+
## Final visual receipts
|
|
61
|
+
|
|
62
|
+
The last PT retest confirmed Condition stayed selected after fresh Visual activation, saving was disabled, and both accepted diagnostics (including the empty placeholder) and stale effects were absent. Repair restored current diagnostics and effects. Immediate Boolean edit→Next and Anterior both worked. JSON formRules=[] with residual formRulesState produced zero rows and the empty diagnostic; replacing it with the complete document restored one editable rule. The test draft was discarded and focus returned to Configure form. No additional configuration was saved during this last retest.
|
|
63
|
+
|
|
64
|
+
English was exercised using the official providePraxisI18nConfig provider on the same UI origin. New summaries/status/preview copy and Yes were localized. The temporary host file was restored exactly: app.config.ts SHA256 bdf1dbc425b4d9babfa76b78a2f913ce36095d3e500d74d344ea5dd8bb251718. Host business labels and some existing metadata/control labels remain Portuguese; a whole-platform translation audit is not claimed. The final display-only diagnostic guard was then retested in PT and the mounted component lane.
|
|
65
|
+
|
|
66
|
+

|
|
67
|
+
|
|
68
|
+

|
|
69
|
+
|
|
70
|
+

|
|
71
|
+
|
|
72
|
+

|
|
73
|
+
|
|
74
|
+

|
|
75
|
+
|
|
76
|
+

|
|
@@ -0,0 +1,134 @@
|
|
|
1
|
+
# P1 form authoring — issues #631, #632 and #633
|
|
2
|
+
|
|
3
|
+
Classification: public behavior change with cross-library consumers. Canonical owners are Dynamic Form (rules bridge, form client/context and hydration) and Metadata Editor (cascade authoring). No exported type, endpoint, workspace configuration or dependency change.
|
|
4
|
+
|
|
5
|
+
## Scope and compatibility
|
|
6
|
+
|
|
7
|
+
- Preserve wizard JSON Logic and both property branches through Apply/Save/reopen. Invalid graphs remain available for repair and cannot silently become unconditional rules.
|
|
8
|
+
- Preserve non-identity cascade filter maps and extraction paths. Table rows own the current edit draft; suggestions fill missing mappings.
|
|
9
|
+
- Give each mounted form its own mutable CRUD client and editor context. This is a breaking beta DI correction; ancestor GenericCrudService replacements must migrate to supported component inputs or component-level test overrides. Shared HTTP infrastructure remains inherited.
|
|
10
|
+
- Make the Quickstart dependency demo a local relationship explorer. Selectors query real resources individually; fields are omitted from domain payloads. Its new document identities avoid inheriting old schema-backed connections.
|
|
11
|
+
- Open field customization from the current canonical materialization, rather than stale selection/render snapshots.
|
|
12
|
+
|
|
13
|
+
Existing contracts cover these behaviors: already supported but incorrectly materialized. No parallel contract or new authoring vocabulary was introduced.
|
|
14
|
+
|
|
15
|
+
## Review and gate resolution
|
|
16
|
+
|
|
17
|
+
The implementation was isolated on main 8da9401a8; unrelated dirty checkout changes and unrelated documentation hunks were excluded. Reviewers different from the authors inspected conversion/diagnostics, cascade editing, DI ownership, demo and both remaining gates.
|
|
18
|
+
|
|
19
|
+
The old label test conflated a selected snapshot with the current materialization. Regression tests now preserve the Cargo expectation while giving the canonical document/presentation that label, and making selection/cache explicitly obsolete.
|
|
20
|
+
|
|
21
|
+
The earlier host-test compilation failure involved a nullable assertion in an unrelated dirty test. That test is absent from this main baseline; the demo target is compiled and executed without importing the unrelated changes or altering TypeScript configuration.
|
|
22
|
+
|
|
23
|
+
Additional review covered deleting the last invalid rule, repairing through the properties panel, diagnostics for conditions outside the graph subset and loading rules without formRulesState. Valid runtime-only conditions must remain intact; invalid conditions must remain blocked. JSON Logic var:'' is a valid root-data reference, not an invalid field path.
|
|
24
|
+
|
|
25
|
+
## Validation
|
|
26
|
+
|
|
27
|
+
All selected gates passed on the isolated source tree:
|
|
28
|
+
|
|
29
|
+
| Gate | Result |
|
|
30
|
+
| --- | --- |
|
|
31
|
+
| Rule converters, configuration editor, diagnostics and isolation | 114 passed |
|
|
32
|
+
| Dynamic Form main/config/editorial/presentation/manifest/hydration/protocol | 334 passed |
|
|
33
|
+
| Cascade service and tab | 17 passed |
|
|
34
|
+
| CRUD dialog host consumer | 50 passed |
|
|
35
|
+
| Additional DI consumers: entity selection, schema recovery, layout tabs, presentation preset and widget editor | 77 passed |
|
|
36
|
+
| Dependency demo host target | 1 passed |
|
|
37
|
+
| Official build helper: Metadata Editor, Dynamic Form, CRUD + dependency closure | Passed |
|
|
38
|
+
| Final Dynamic Form and CRUD builds after gate repairs | Passed |
|
|
39
|
+
| Published documentation assets | Passed, 5 packages |
|
|
40
|
+
| MatSelect content model and diff whitespace | Passed |
|
|
41
|
+
|
|
42
|
+
The isolated dependency tree was installed using npm ci. No broad full-test-suite
|
|
43
|
+
or release certification is claimed. Counts represent separate lanes, not a
|
|
44
|
+
claim about unique test coverage.
|
|
45
|
+
|
|
46
|
+
Exact focal spec includes and commands are reproducible from the changed spec
|
|
47
|
+
paths; the main lane also includes first/external hydration, authoring protocol
|
|
48
|
+
and the authoring manifest. Builds use development configuration. Artifact logs
|
|
49
|
+
are retained in the workspace under artifacts/form-p1-fixes-20261022/clean-*.log.
|
|
50
|
+
|
|
51
|
+
## Final local browser smoke
|
|
52
|
+
|
|
53
|
+
The isolated checkout was served frozen on official UI4003, with its proxy
|
|
54
|
+
explicitly directed to unavailable local API8088. This smoke exercised the local
|
|
55
|
+
editor only and did not attempt option loading or domain submission.
|
|
56
|
+
|
|
57
|
+
Through the visible JSON tab of dependency-fields-demo, a malformed condition
|
|
58
|
+
(`{"===": []}`) produced an invalid-condition diagnostic and disabled Apply and
|
|
59
|
+
Save. Correcting the document by removing rule/state through the same JSON tab
|
|
60
|
+
re-enabled both buttons. Drafts were cancelled and tabs closed; nothing was
|
|
61
|
+
saved to the host or remote configuration.
|
|
62
|
+
|
|
63
|
+

|
|
64
|
+
|
|
65
|
+

|
|
66
|
+
|
|
67
|
+
The native confirmation for the visual Remove button could not be accepted by
|
|
68
|
+
the browser-control adapter because its focus command timed out. That attempt
|
|
69
|
+
was abandoned and its tab closed. Visual deletion via that button is not claimed
|
|
70
|
+
as passed; the component regression covers deletion and reopen. The rule list
|
|
71
|
+
also retained a stale row after JSON replacement while canonical diagnostics
|
|
72
|
+
were empty: the remaining UI coherence work belongs to #635. The screenshots
|
|
73
|
+
record this limit rather than hiding it.
|
|
74
|
+
|
|
75
|
+
Tests are unit/component tests using ChromeHeadless, without a database. Dependency builds use the official build-libs helper and its dependency closure. No release workflow, deployment or domain mutation is performed.
|
|
76
|
+
|
|
77
|
+
## Earlier visual audit evidence
|
|
78
|
+
|
|
79
|
+
The analyst journeys were repeated in Chrome on the previous shared source snapshot, using official UI4003/API8088 and assigned remote Neon branches with runtime identities/TLS. Those screenshots are historical visual evidence, not proof of this isolated revision. Current revision validation is listed separately above.
|
|
80
|
+
|
|
81
|
+
- #631: wizard Ativo=true/false controlled Foto visibility and required state; persisted expression and both effects survived reload.
|
|
82
|
+
- #632: Cargo/Departamento non-identity mapping survived explicit Edit, Save, Apply and reload.
|
|
83
|
+
- #633: RH, Base/Equipe/Membro and Ameaça/Missão/Incidente/Indenização chains completed with real filtered option requests; parent replacement/clear emptied descendants; no-result search and sibling-tab independence were checked.
|
|
84
|
+
- CRUD native Add dialog loaded its command schema and was closed without submission.
|
|
85
|
+
|
|
86
|
+
Limits retained: Foto originally arrived formHidden and required temporary exposure in the visible JSON editor. After reload the target catalog again omitted it, a remaining #635 issue. Structural dotted mapping proof does not certify backend acceptance of that filter. No narrow-screen, screen-reader, adverse-latency, remote ETag/concurrency or latest-release certification is claimed.
|
|
87
|
+
|
|
88
|
+
Detailed original audit artifacts are retained in the workspace artifacts/form-p1-fixes-20261022 directory and linked from the issue discussions. No credentials/network headers are published.
|
|
89
|
+
|
|
90
|
+
## Derived artifacts and skills
|
|
91
|
+
|
|
92
|
+
README/JSON API owner documentation explains DI migration and the explorer; Metadata Editor README explains lossless cascade editing. No public-api, AI operation/path, manifest shape, HTTP corpus or landing-page contract changed, so no parallel derived contract was created. Authoring manifest tests and published documentation asset checks cover the existing surfaces.
|
|
93
|
+
|
|
94
|
+
Canonical cascade and runtime DI skill updates were previously integrated through praxis-codex-skills#826 and #827 and selectively synchronized. Existing form roundtrip guidance remains adequate: formRulesState is derived, canonical rules are preserved, and runtime discovery does not own persisted semantics. The additional gate repairs enforce that existing guidance.
|
|
95
|
+
|
|
96
|
+
## Final review before integration — 2026-10-23
|
|
97
|
+
|
|
98
|
+
A new independent review of cad84dd00 found and corrected three cases before
|
|
99
|
+
integration:
|
|
100
|
+
|
|
101
|
+
- A missing or targetless rule root was silently dropped, so the new empty-rule
|
|
102
|
+
branch could delete the last accepted rules. Projection now rejects every
|
|
103
|
+
referenced invalid root, including a mixed valid/invalid graph. The editor
|
|
104
|
+
keeps the accepted document and invalid draft and blocks saving; an explicit
|
|
105
|
+
rootNodes=[] still supports intentional deletion.
|
|
106
|
+
- Blocking diagnostics used a built-in-only JSON Logic instance and rejected a
|
|
107
|
+
valid host operator. Editor diagnostics and command validation now share the
|
|
108
|
+
injected runtime service. A real registered operator is tested through runtime
|
|
109
|
+
evaluation and editor Save/reopen; unknown operators and invalid arity fail.
|
|
110
|
+
- Removing a cascade dependency retained its extraction override record. The
|
|
111
|
+
save path now removes both mapping and extraction override for removed
|
|
112
|
+
dependencies; save/reopen/re-add and last-dependency/default cases are covered.
|
|
113
|
+
|
|
114
|
+
An additional consumer inventory found four test fixtures still providing the
|
|
115
|
+
CRUD mock in the ancestor injector. They now use the documented component-level
|
|
116
|
+
replacement. The entity-selection fixture also supplies the current HttpResponse
|
|
117
|
+
read API while preserving request, error and cancellation assertions. The widget
|
|
118
|
+
editor fixture does not mount Dynamic Form and was intentionally left unchanged.
|
|
119
|
+
|
|
120
|
+
Before/after evidence: missing-root regressions failed before the fix; the host
|
|
121
|
+
operator regression failed before registry propagation; the extra DI lane had
|
|
122
|
+
19 failures before fixture updates and finished 77/77. Final focused rules lane
|
|
123
|
+
114/114 and cascades 17/17 passed. The 334-test form lane, 50-test CRUD lane and demo lane were also rerun after
|
|
124
|
+
the production repairs and passed. All three owner/consumer builds were rerun after production repairs.
|
|
125
|
+
No database or remote release workflow was required for these review repairs.
|
|
126
|
+
|
|
127
|
+
The earlier native-dialog/browser and #635 limitations remain unchanged. They
|
|
128
|
+
are not presented as newly validated by these unit/component regressions.
|
|
129
|
+
|
|
130
|
+
The two narrowly scoped guidance additions were independently reviewed and
|
|
131
|
+
integrated through praxis-codex-skills#829 (merge fb0fb5c). Both affected skills
|
|
132
|
+
were selectively synchronized and audited; the other 787 installed skill files
|
|
133
|
+
remained byte-identical and seven unrelated drifts were preserved. No new skill
|
|
134
|
+
or public contract was introduced.
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
# Dynamic Form em páginas governadas
|
|
2
|
+
|
|
3
|
+
O adapter do owner mantém `definition.inputs.config` como a única fonte de configuração do filho.
|
|
4
|
+
A página guarda autoria; o documento nativo é reconstruído a partir desses inputs. A projeção de
|
|
5
|
+
execução é transitória e nunca deve ser gravada de volta no documento da página.
|
|
6
|
+
|
|
7
|
+
O perfil inicial vem do contrato P0 `page-publication-p0` de `praxis-config-starter` (PR #506).
|
|
8
|
+
Core valida estrutura, referências, limites e exige validators dos owners. Este adapter valida o
|
|
9
|
+
perfil nativo local; não autoriza uma fonte, registra uma seed ou substitui a admissão no servidor.
|
|
10
|
+
|
|
11
|
+
`decodeDynamicFormPageInputs` reconstrói `praxis.dynamic-form.editor` v1:
|
|
12
|
+
config, bindings presentes (`mode`, `emptyState`, `presentationModeGlobal`) e contexto presente
|
|
13
|
+
(`backConfig`, `presentation`, `schemaPrefs`). Schema prefs só existe se algum dos três inputs
|
|
14
|
+
`notifyIfOutdated`, `snoozeMs`, `autoOpenSettingsOnOutdated` estiver presente. Ausência, `false`,
|
|
15
|
+
zero, objeto vazio admitido e `null` são preservados. Null em objetos mesclados de config é negado;
|
|
16
|
+
null dentro de arrays atômicos permanece autoria. `layoutScope` não cabe neste perfil.
|
|
17
|
+
|
|
18
|
+
Os cinco modos nativos são `create`, `edit`, `view`, `presentation` e `dossier`. O editor visual
|
|
19
|
+
continua preferindo os três modos de operação com `presentationModeGlobal` separado. Abrir um
|
|
20
|
+
documento nativo dos demais modos não deve convertê-lo. Filter Form mantém somente seus três modos.
|
|
21
|
+
|
|
22
|
+
`encodeDynamicFormPageInputs` é a projeção inversa sem defaults. Campos fora do perfil,
|
|
23
|
+
blocos vazios sem representação nos inputs, identidade/storage e dados de execução recebem
|
|
24
|
+
diagnóstico. O adapter não filtra silenciosamente autoria incompatível.
|
|
25
|
+
|
|
26
|
+
`projectDynamicFormPageEditorChanges(authoredInputs, editorBaseline, editorValue)` aplica apenas
|
|
27
|
+
deltas explícitos sobre a autoria original usando o reconciliador nativo do owner. Capture o
|
|
28
|
+
baseline após a normalização/montagem do editor e preserve-o durante aquela sessão. Alterar
|
|
29
|
+
bindings ou contexto do mesmo widget retorna `seed.replacement-required`; a página precisa
|
|
30
|
+
substituir o widget com nova key e nova fonte admitida. A API de projeção altera somente o draft
|
|
31
|
+
que o chamador recebe; ela não salva preferências nem persiste a página.
|
|
32
|
+
|
|
33
|
+
`materializeDynamicFormPageRuntimeInputs(inputs, pageId, widgetKey)` usa o helper canônico Core para
|
|
34
|
+
identidades `page:<pageId>:widget:<widgetKey>`, projeta `configPersistenceStrategy: 'volatile'`
|
|
35
|
+
e desabilita customização/copiloto independentes no filho. Submit e dados continuam nos contratos
|
|
36
|
+
de domínio existentes. Não existe input runtime `authoringDocument`.
|
|
37
|
+
|
|
38
|
+
A estratégia `volatile` impede leitura, gravação e limpeza de preferências próprias e conexão
|
|
39
|
+
persistida. O Form preserva identidade operacional para montar o formulário, mas as trilhas de
|
|
40
|
+
config/bindings/contexto/schema preferences ficam sem I/O de storage.
|
|
41
|
+
Defaults visuais/materializações transitórias permanecem internos ao runtime e ao editor.
|
|
42
|
+
|
|
43
|
+
Limites: JSON lossless, 256 KiB UTF-8 e profundidade 64 pelo helper Core compartilhado; o documento
|
|
44
|
+
integral da página também tem o mesmo orçamento. Não há host publicado, endpoint de publicação,
|
|
45
|
+
fonte admitida, banco ou release novos neste incremento. A integração Page Builder/host governado
|
|
46
|
+
é trabalho posterior; os wrappers comuns continuam atendendo os fluxos não governados existentes.
|
|
47
|
+
|
|
48
|
+
`volatile` também exclui overlays pessoais de configuração global nos defaults/estado de autoria
|
|
49
|
+
que o owner consome. A instância compartilhada `GlobalConfigService` pode ler sua chave global;
|
|
50
|
+
isso não é prova de zero leitura na aplicação. Tenant, cache, locale e CSP continuam infraestrutura
|
|
51
|
+
do host. O gate comprova ausência de I/O nas chaves do filho e ausência de influência da autoria
|
|
52
|
+
pessoal sobre a configuração publicada. Em Table, `TableDefaultsProvider.getDefaults(id,
|
|
53
|
+
{ includeGlobal: false })` preserva defaults nativos sem duplicá-los; mudanças globais e reset
|
|
54
|
+
seguem a mesma política, inclusive o fallback de timezone usado em regras JSON Logic.
|
|
55
|
+
|
|
56
|
+
Respostas e filas de preferências capturam a geração, a identidade e a estratégia do filho. Trocar identidade, documento ou estratégia (inclusive A → volatile → A), ou destruir a instância, invalida a continuação antiga antes do próximo I/O ou da materialização. Uma requisição já enviada não é cancelada retroativamente. Respostas tardias de erro também passam pelo mesmo fence.
|
|
57
|
+
|
|
58
|
+
O fence segue a chave do recurso: conexão, inputs e schema preferences usam identidade do owner e geração do host; apresentação acrescenta a chave `form-pres:<id>:<mode>`. Hidratar mode/path das próprias preferências iniciais não troca o owner. Eventos de inputs do host invalidam a geração e iniciam uma resolução atual. Schema, config e escritas também capturam os bindings de runtime.
|
|
@@ -19,11 +19,10 @@ tags:
|
|
|
19
19
|
- "hot-metadata"
|
|
20
20
|
- "runtime"
|
|
21
21
|
- "dynamic-fields"
|
|
22
|
-
last_updated: "2026-
|
|
22
|
+
last_updated: "2026-11-01"
|
|
23
23
|
toc: true
|
|
24
24
|
sidebar: true
|
|
25
25
|
related_docs:
|
|
26
|
-
- "dynamic-form-overview"
|
|
27
26
|
- "praxis-dynamic-form-json-api"
|
|
28
27
|
- "dynamic-fields-host-custom-field-guide"
|
|
29
28
|
keywords:
|
|
@@ -50,6 +49,13 @@ flowchart LR
|
|
|
50
49
|
Runtime --> Rebuild["buildFormFromConfig como fallback"]
|
|
51
50
|
```
|
|
52
51
|
|
|
52
|
+
Em create com objeto `initialValue` explícito (inclusive `{}`), o seed continua
|
|
53
|
+
autoritativo durante rebuilds: preservar edições compatíveis sem ressuscitar
|
|
54
|
+
defaults em campos omitidos ou novos. `false`/`null` não equivalem à ausência do
|
|
55
|
+
seed. Create sem objeto seed mantém os defaults ordinários. Consulte o contrato
|
|
56
|
+
de valores iniciais no README e na API do Form; não implementar política de
|
|
57
|
+
cópia de domínio no handler de metadata.
|
|
58
|
+
|
|
53
59
|
## Pre-requisitos
|
|
54
60
|
|
|
55
61
|
- entendimento basico de `FormConfig`, `FieldMetadata` e `DynamicFieldLoaderDirective`
|
|
@@ -95,6 +101,22 @@ Regra operacional:
|
|
|
95
101
|
- se o loader da coluna for localizado, apenas ele e atualizado;
|
|
96
102
|
- se o loader nao puder ser localizado, o runtime usa fallback seguro de rebuild do form.
|
|
97
103
|
|
|
104
|
+
## Saved configuration after request schema removal
|
|
105
|
+
|
|
106
|
+
When reconciling saved configuration with the current request schema, Core retains
|
|
107
|
+
removed schema-backed fields for authored layout continuity, but marks them hidden,
|
|
108
|
+
disabled and `submitPolicy: "omit"`. A required orphan with a null value therefore
|
|
109
|
+
does not invalidate the group, and a value still returned by the read projection
|
|
110
|
+
cannot reenter the request payload through `getRawValue()`.
|
|
111
|
+
|
|
112
|
+
A field whose `source` is absent is schema-backed for this reconciliation. Explicit
|
|
113
|
+
`source: "local"` fields preserve existing local/transient policies and may opt into
|
|
114
|
+
submission with `submitPolicy: "include"`. Hidden fields still present in the request
|
|
115
|
+
schema remain submit-eligible; do not turn all hidden controls into omitted fields.
|
|
116
|
+
If the server publishes a retained field again, current server validation, visibility,
|
|
117
|
+
enabled state and submit semantics replace the orphan state. No host payload strip,
|
|
118
|
+
new flag or layout deletion is needed.
|
|
119
|
+
|
|
98
120
|
## Melhorias no DynamicFieldLoader
|
|
99
121
|
|
|
100
122
|
O guard de rerender do loader passou a incluir no snapshot:
|
|
@@ -22,9 +22,9 @@ Specialized review approved the direction and blocked implementation readiness u
|
|
|
22
22
|
|
|
23
23
|
Praxis Dynamic Form already consumes backend metadata and can generate form layouts from schema-derived fields. In practice, hosts still repeat `FormConfig.sections` locally for read-only detail views and for create/edit command forms, even when the backend DTOs publish `x-ui` metadata such as `group`, `order`, `width`, labels, help text, read-only hints and presentation metadata.
|
|
24
24
|
|
|
25
|
-
The
|
|
25
|
+
The Workforce migration exposed this as a recurring platform issue. The `WF-00034` screen for codigos de frequencia currently needs local section configs for detail and command forms although the Java DTOs already publish grouped metadata. The same pattern appears in other migrated forms, including regras de frequencia, tipos de rubrica and vinculos funcionais.
|
|
26
26
|
|
|
27
|
-
This is not an
|
|
27
|
+
This is not an Workforce-only design problem. If every migrated screen must author local `FormConfig.sections`, the platform loses the main benefit of schema-driven UI: one canonical backend contract feeding many hosts consistently.
|
|
28
28
|
|
|
29
29
|
## Classification
|
|
30
30
|
|
|
@@ -35,9 +35,9 @@ The affected public surface is the Dynamic Form layout contract around schema ma
|
|
|
35
35
|
## Impact Map
|
|
36
36
|
|
|
37
37
|
- Canonical subprojects affected: `praxis-ui-angular`, primarily `@praxisui/dynamic-form` and `@praxisui/core`.
|
|
38
|
-
- Consumers impacted: `
|
|
38
|
+
- Consumers impacted: `workforce-web`, `@praxisui/crud`, surface action launchers, official examples, playgrounds and any host using `schemaUrl`, `resourcePath` or local `FormConfig`.
|
|
39
39
|
- Public docs potentially affected: Dynamic Form README, JSON API docs, authoring docs, docs shell registry, landing-page published guides and AI authoring manifests.
|
|
40
|
-
- Examples and recipes potentially affected: Dynamic Form examples, CRUD dialog examples, schema-driven resource examples and
|
|
40
|
+
- Examples and recipes potentially affected: Dynamic Form examples, CRUD dialog examples, schema-driven resource examples and Workforce migration recipes.
|
|
41
41
|
- Minimum validations needed for implementation: focused unit tests for the shared materializer, Dynamic Form runtime tests, CRUD dialog-host tests and visual checks for desktop and narrow viewports.
|
|
42
42
|
- Breaking-change risk: medium if defaults are changed; low if the new behavior is opt-in and authored configs keep precedence by default.
|
|
43
43
|
|
|
@@ -70,7 +70,7 @@ The backend can already publish the metadata required for a reasonable layout. T
|
|
|
70
70
|
- Centralize the layout algorithm so Dynamic Form, CRUD and surface action launchers do not diverge.
|
|
71
71
|
- Keep the backend as the canonical owner of field semantics.
|
|
72
72
|
- Allow host config to continue owning non-layout concerns such as actions, messages, hooks and behavior.
|
|
73
|
-
- Provide a migration path for
|
|
73
|
+
- Provide a migration path for Workforce and other hosts to remove repeated local layout sections gradually.
|
|
74
74
|
|
|
75
75
|
## Non-goals
|
|
76
76
|
|
|
@@ -78,7 +78,7 @@ The backend can already publish the metadata required for a reasonable layout. T
|
|
|
78
78
|
- Do not move domain semantics from backend DTOs into Angular configs.
|
|
79
79
|
- Do not change Dynamic Form defaults in this RFC.
|
|
80
80
|
- Do not overwrite or silently discard authored `FormConfig.sections`.
|
|
81
|
-
- Do not create an
|
|
81
|
+
- Do not create an Workforce-specific preset.
|
|
82
82
|
- Do not introduce new backend `x-ui` metadata until existing metadata is proven insufficient.
|
|
83
83
|
|
|
84
84
|
## Proposed Design
|
|
@@ -352,11 +352,11 @@ Core surface action materializers must stop injecting local `config.sections` fo
|
|
|
352
352
|
- Use `compactPresentation` with detail intent for read-only detail actions where appropriate.
|
|
353
353
|
- Replace duplicated `SurfaceOpenMaterializerService` local section generation with the shared materializer or by passing the policy downstream.
|
|
354
354
|
|
|
355
|
-
### Phase 5 -
|
|
355
|
+
### Phase 5 - Workforce migration cleanup
|
|
356
356
|
|
|
357
357
|
- Remove local repeated `FormConfig.sections` from migrated screens that can rely on schema metadata.
|
|
358
358
|
- Keep local config only for screen-specific actions, labels, hooks or behavior that are not field layout.
|
|
359
|
-
- Validate
|
|
359
|
+
- Validate WF-00034 as the reference screen before applying the pattern broadly.
|
|
360
360
|
|
|
361
361
|
## Acceptance Criteria
|
|
362
362
|
|
|
@@ -368,7 +368,7 @@ Core surface action materializers must stop injecting local `config.sections` fo
|
|
|
368
368
|
- Generated section ids are stable.
|
|
369
369
|
- Runtime and presentation mode suppress generated or authored sections/rows/columns that do not contain any visible field or visible rich content block; customization mode still exposes empty containers for authoring.
|
|
370
370
|
- Documentation explains when to use authored config versus schema materialization.
|
|
371
|
-
-
|
|
371
|
+
- Workforce reference screens can remove repeated local layout sections without losing grouping quality.
|
|
372
372
|
- Detail layout has consistent label/value hierarchy, readable null and long-value states, no horizontal scroll on narrow viewports and no editable controls.
|
|
373
373
|
- Command layout handles required, invalid, dirty, disabled, read-only and saving states without shifting or hiding actions.
|
|
374
374
|
- Actions distinguish primary, secondary and destructive intent visually and accessibly.
|
|
@@ -389,7 +389,7 @@ Implementation should use focused validation:
|
|
|
389
389
|
- JSON API docs, README, docs manifest and public docs registry review where applicable.
|
|
390
390
|
- Documentation manifest validation where applicable.
|
|
391
391
|
- Visual validation on desktop and narrow viewport for at least one read-only detail and one command form before promoting the pattern as a migration template.
|
|
392
|
-
-
|
|
392
|
+
- WF-00034 visual validation with realistic PT-BR data, empty values, long text, small and large groups, invalid required fields, option source loading/empty states, disabled/read-only states, submit/saving state and dialog/drawer narrow viewport.
|
|
393
393
|
|
|
394
394
|
Broad workspace builds are not required for the RFC-only step.
|
|
395
395
|
|
|
@@ -417,17 +417,17 @@ Broad workspace builds are not required for the RFC-only step.
|
|
|
417
417
|
- Adding new metadata too early would expand the public contract before proving existing `x-ui` fields are insufficient.
|
|
418
418
|
- Persisting transient generated layouts by accident would turn schema materialization into silent authored config.
|
|
419
419
|
- Using the wrong operation schema could leak detail-only fields into create/edit forms.
|
|
420
|
-
- Promoting
|
|
420
|
+
- Promoting WF-00034 as a template before visual validation could institutionalize poor layouts across hundreds of screens.
|
|
421
421
|
|
|
422
|
-
## Relationship To
|
|
422
|
+
## Relationship To Workforce Migration
|
|
423
423
|
|
|
424
|
-
The immediate trigger was
|
|
424
|
+
The immediate trigger was WF-00034, but the problem already appears across read-only and editable forms in the Workforce migration.
|
|
425
425
|
|
|
426
|
-
|
|
426
|
+
Workforce may continue using local configs as a temporary bridge, but the intended platform direction is to remove repeated `FormConfig.sections` when the backend DTO already publishes complete field metadata.
|
|
427
427
|
|
|
428
428
|
## ErgonX Migration Playbook
|
|
429
429
|
|
|
430
|
-
Use this section as the operational checklist before promoting a migrated
|
|
430
|
+
Use this section as the operational checklist before promoting a migrated Workforce screen as a reusable example.
|
|
431
431
|
|
|
432
432
|
### 1. Prove the DTO/schema is ready
|
|
433
433
|
|
|
@@ -459,7 +459,7 @@ For command forms, `schemaUrl` must identify the request operation. A create/edi
|
|
|
459
459
|
|
|
460
460
|
Large enterprise forms should not render every DTO description inline. Inline help is useful for short guidance, but dense groups become noisy when every toggle, select and date field owns multiple lines of explanatory text.
|
|
461
461
|
|
|
462
|
-
Recommended default for
|
|
462
|
+
Recommended default for Workforce-style command drawers:
|
|
463
463
|
|
|
464
464
|
```ts
|
|
465
465
|
helpPresentation: {
|
|
@@ -486,7 +486,7 @@ Use `fieldIconPolicy: "all"` only when icons are part of the field affordance or
|
|
|
486
486
|
|
|
487
487
|
### 5. Preserve Praxis actions and loading patterns
|
|
488
488
|
|
|
489
|
-
Migrated screens should use native Praxis action discovery, surfaces and capabilities for row, collection and global actions. Do not implement an
|
|
489
|
+
Migrated screens should use native Praxis action discovery, surfaces and capabilities for row, collection and global actions. Do not implement an Workforce-local action launcher when the backend publishes actions or surfaces that Praxis can discover.
|
|
490
490
|
|
|
491
491
|
For loading states, avoid whole-page flicker. Prefer stable shells, table/detail skeletons or top progress indicators that preserve layout while data refreshes. A migration example should prove that refresh, filter, pagination and row selection do not blank the whole screen.
|
|
492
492
|
|
|
@@ -504,9 +504,9 @@ Before using a screen as a migration template, run at least one desktop browser
|
|
|
504
504
|
|
|
505
505
|
Mobile can be deferred when the product decision says it is not priority, but narrow drawer behavior still needs enough validation to avoid broken desktop split-screen usage.
|
|
506
506
|
|
|
507
|
-
### 7. Handoff artifact for each
|
|
507
|
+
### 7. Handoff artifact for each Workforce screen
|
|
508
508
|
|
|
509
|
-
Each migrated screen should record the following in its
|
|
509
|
+
Each migrated screen should record the following in its Workforce migration folder:
|
|
510
510
|
|
|
511
511
|
- DTO/schema readiness result and unresolved semantic gaps;
|
|
512
512
|
- chosen `layoutPolicy`, `helpPresentation` and `fieldIconPolicy`;
|
|
@@ -514,4 +514,4 @@ Each migrated screen should record the following in its Ergon migration folder:
|
|
|
514
514
|
- visual QA evidence and known accepted deviations;
|
|
515
515
|
- temporary authored config sections that should be removed after DTO/schema hardening.
|
|
516
516
|
|
|
517
|
-
This keeps
|
|
517
|
+
This keeps WF-00034 useful as a repeatable migration reference instead of a one-off visual implementation.
|