@praxisui/crud 10.0.0-rc.9 → 10.0.0-rc.91

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 CHANGED
@@ -145,7 +145,7 @@ export class EmployeesCrudComponent {
145
145
  - `metadata`: `CrudMetadata | string`
146
146
  - `crudId`: stable instance id
147
147
  - `componentInstanceId`: optional host-level instance id
148
- - `tableConfigPersistenceStrategy`: controls persistence precedence for the internal table. Keep `local-first` for user-owned workspaces, use `input-first` for an authoritative governed contract, and use `volatile` for previews that must neither read nor write stored preferences.
148
+ - `tableConfigPersistenceStrategy` / `configPersistenceStrategy`: controls persistence precedence (`'local-first' | 'input-first' | 'volatile'`, normalizing `'storage-first'` to `'local-first'`) for the internal table, authoring overrides, and launched modal/drawer form hosts. Keep `local-first` for user-owned workspaces, use `input-first` for an authoritative governed contract, and use `volatile` for ephemeral previews that must neither read nor write stored preferences.
149
149
  - `context`: host/runtime context passed into table and form flows
150
150
  - `enableCustomization`: enables the package authoring surface
151
151
  - `showResourceIdentityKey`: defaults to `true`; set it to `false` when an existing-record modal or drawer should preserve the readable identity title without exposing an opaque or technical public key
@@ -156,6 +156,7 @@ It emits:
156
156
  - `configureRequested`
157
157
  - `afterOpen`, `afterClose`, `afterSave`, `afterDelete`
158
158
  - `reactiveDeterminationExecuted` (metadata-only evidence with action context), `reactiveDeterminationPendingChange`, and `reactiveDeterminationStabilityChange`. The aggregate stability output preserves `action` and distinguishes `pending`, `settled-satisfied`, and `settled-unsatisfied`; “settled” alone is never a success signal.
159
+ - `formStepTelemetry` (`CrudFormStepTelemetryEvent`: `{ action, openMode, event: FormStepTelemetryEvent }`), forwarding metadata-only step transitions (`next`, `previous`, `header`, `review-edit`, `validation-recovery`, `http-422-recovery`, `draft-restored`) from the hosted Dynamic Form across `modal`, `drawer`, nested `surfaceRuntime` frame, and seeded `route` handoffs without exposing field values.
159
160
  - `error`
160
161
  - `resourceEvent` is the canonical output for governed host composition and preserves `kind`, `resourcePath`, `resourceId`, `payload` and runtime context from the internal table. The legacy `rowClick`, `rowAction` and `selectionChange` outputs remain available; `rowAction` preserves the table envelope (`row`, `action`, `resourceIdentity`) without forcing visual row selection.
161
162
  - `tableRuntimeConfigChange`
@@ -172,7 +173,7 @@ ignored. Use only `metadata.data` for a local-data preview.
172
173
 
173
174
  The component keeps `crudContext` stable for change detection and refreshes the table after successful save/delete flows.
174
175
 
175
- Built-in modal, drawer and nested surface-frame form hosts do not close or complete save while a child Reactive Determination is pending or when its latest generation settled unsatisfied; cancel waits for bounded successful stabilization and stays open on timeout/failure. A custom `CrudDrawerAdapter` must bind `onReactiveDetermination`, `onReactiveDeterminationPendingChange`, and `onReactiveDeterminationStabilityChange`, use the child Dynamic Form stability API, and refuse every adapter-owned close/submit while pending or unsatisfied. These callbacks are runtime-only and must never be persisted in CRUD metadata.
176
+ Built-in modal, drawer and nested surface-frame form hosts do not close or complete save while a child Reactive Determination is pending or when its latest generation settled unsatisfied; cancel waits for bounded successful stabilization and stays open on timeout/failure. When `config.behavior.draftPersistence === true` in `mode='create'`, dirty cancel/close confirmation (`canLeaveForm()` / `onCancel()`) informs the operator that the session draft remains saved locally (`crud.dialog.leaveWithDraft*`, `"Sair e manter rascunho"`) and flushes any debounced keystrokes via `flushSessionDraft()` before closing so the draft can be resumed on the next `create` open. A custom `CrudDrawerAdapter` must bind `onReactiveDetermination`, `onReactiveDeterminationPendingChange`, `onReactiveDeterminationStabilityChange`, and `onStepTelemetry`, use the child Dynamic Form stability API, and refuse every adapter-owned close/submit while pending or unsatisfied. These callbacks are runtime-only and must never be persisted in CRUD metadata.
176
177
 
177
178
  ## Metadata Boundaries
178
179
 
@@ -292,6 +293,14 @@ drawer adapters receive the same `resourceIdentity` context and the
292
293
  `showResourceIdentityKey` presentation preference. They must keep the identity
293
294
  outside form inputs and retain responsibility for presenting its readable title.
294
295
 
296
+ For read-only overlays (`DynamicFormDialogHostComponent`), `action: 'view'` defaults
297
+ to `presentationModeGlobal = true` (Presentation/Dossier mode) for backward compatibility,
298
+ while setting `action.form.presentationModeGlobal = false` keeps blocked input fields.
299
+ Actions using `'presentation'` or `'dossier'` also retain read-only behavior (suppressing
300
+ submit actions and preserving `resourceIdentity`), and `action.form.presentationPreset` /
301
+ `action.form.presentation` forward preset and 3-tier density (`'comfortable' | 'cozy' | 'compact'`)
302
+ without leaking into `initialValue`.
303
+
295
304
  Related operations also receive `contextIdentity` when the governed surface
296
305
  publishes `context.operation.taskScope`. The default host labels it as “Related
297
306
  to” and keeps it distinct from the current child record. Both identities stay
@@ -311,8 +320,7 @@ into CRUD metadata or `x-ui`.
311
320
  boundary for components hosted in a runtime frame. Hosts should not manufacture
312
321
  an equivalent local token or pass the drawer reference through form values.
313
322
 
314
- Route mode has a different lifecycle because `@praxisui/crud` does not own the
315
- destination component. Routed edit hosts must load the entity through the
323
+ Routed edit/view hosts own their destination component and load the entity through the
316
324
  canonical read contract and materialize identity from its response schema. Do
317
325
  not serialize `resourceIdentity` into query parameters or treat transient
318
326
  navigation state as reload-safe identity evidence.
@@ -333,17 +341,112 @@ guided states without host CSS or a parallel empty-state component.
333
341
 
334
342
  `PraxisCrudComponent` recognizes the canonical optional `duplicate-draft`
335
343
  operation published by `praxis-metadata-starter`. When a selected row exposes
336
- `_links['duplicate-draft']`, the runtime:
344
+ `_links['duplicate-draft']` (and is not denied by runtime availability), the runtime:
337
345
 
338
- 1. invokes the non-mutating draft endpoint;
339
- 2. unwraps the returned draft DTO;
340
- 3. opens the canonical `create` form with that DTO as `initialValue`;
341
- 4. refreshes the table only after the user saves the new record.
346
+ 1. invokes the non-mutating `POST /{resource}/{id}/duplicate-draft` endpoint;
347
+ 2. unwraps the returned draft DTO (`RestApiResponse.data`);
348
+ 3. opens the canonical `create` form (`mode='create'`) with that DTO as `initialValue`, contextual copy dialog/submit labels (`crud.duplicate.dialogTitleWithSource` / `crud.duplicate.dialogTitleFallback`), `contextIdentity` set to the source record identity (`resourceIdentity` stays unset because a new record is being created), and `focusOrigin` preserved for focus restoration;
349
+ 4. in `openMode='route'`, hands off the create seed through `@praxisui/crud`'s `CrudRouteFormHandoffService` (`NavigationExtras.info` opaque marker claimed once by `createCrudFormRoute` / `CrudRouteFormComponent`, scoped by `resourcePath`, `formId`, and route URL, with `canDeactivate` dirty-exit guard and `crud.route.unavailable` status when reloaded without a fresh handoff) without serializing personal or domain fields into URL query parameters, `history.state`, or persistent storage;
350
+ 5. refreshes the table only after the user saves the new record via `POST /{resource}`.
342
351
 
343
352
  The host does not need to call `HttpClient`, rebuild create schema URLs, or own
344
- a second launcher. Absence of the HATEOAS link keeps the operation unavailable;
353
+ a second launcher. Absence of the HATEOAS link or an explicit `allowed: false` availability decision keeps the operation unavailable;
345
354
  the runtime does not infer permission from labels, tags, or frontend flags.
346
355
 
356
+ For a seeded route destination, register the CRUD-owned form host in the host's
357
+ Angular routes and use its URL in the create action:
358
+
359
+ ```ts
360
+ import { createCrudFormRoute } from '@praxisui/crud';
361
+
362
+ export const routes = [
363
+ createCrudFormRoute({
364
+ path: 'employees/copy',
365
+ formId: 'employees-create',
366
+ resourcePath: 'employees',
367
+ }),
368
+ ];
369
+ ```
370
+
371
+ `formId` and `resourcePath` must match the create action and resource. The seed is
372
+ claimed once during that navigation. Reload, back or direct access without a new
373
+ handoff shows an unavailable state; a custom `RouteReuseStrategy` must not cache
374
+ this destination. Ordinary unseeded form routes keep their existing host flow.
375
+ Modal/drawer restore focus to the surviving launch control; route navigation
376
+ destroys that control and focuses the destination heading.
377
+
378
+ Custom drawer adapters receive an optional `AbortSignal` and must honor it to
379
+ cancel their own asynchronous opening. For `surfaceRuntime.push`, CRUD closes an
380
+ obsolete frame as soon as its reference resolves; it cannot cancel an external
381
+ pending push before a reference exists.
382
+
383
+ The backend owns the copied/cleared field policy. CRUD clones the returned DTO,
384
+ uses the CREATE request schema and preserves an explicit create seed over saved
385
+ overrides. An object seed, including `{}`, suppresses omitted schema/config
386
+ defaults in Dynamic Form, including metadata rebuilds; `false` and `null` remain
387
+ values. Compatible edits survive rebuilds. Ordinary create without an object
388
+ seed keeps defaults. Submit remains POST; cancel/discard sends no create request.
389
+ An unavailable link, denial, preparation error or invalid response never opens an
390
+ empty copy or retries through generic workflow discovery. Links and runtime
391
+ denials are checked again after preparation to reject obsolete results.
392
+
393
+ `createCrudFormRoute` is an additive public helper for seeded create; hosts must
394
+ adopt it for that route. The handoff service and marker are private CRUD runtime,
395
+ not a Form/Core global slot or saved authoring document. They bind the transfer
396
+ to navigation, final URL, resource, form and context. After claim, the destination
397
+ owns its context/lifetime; a normal source teardown after successful guards is
398
+ allowed. Redirects, rejection, cancellation and obsolete context release the
399
+ payload. Explicit `enableCustomization=false`/`true` survives the private handoff;
400
+ absence alone selects the form host's global fallback.
401
+
402
+ Copy title, guidance and submit use CRUD i18n. Domain labels stay host-owned.
403
+ This does not imply complete Form localization: its generated section fallback
404
+ “Informações” in `dynamic-form-layout.service.ts` is an existing runtime i18n gap.
405
+
406
+ ## Governed Two-Phase Bulk Operations
407
+
408
+ `PraxisCrudComponent` discovers governed two-phase bulk operations published by
409
+ `praxis-metadata-starter` on collection capabilities (`actions[].execution.bulk`
410
+ for `DOMAIN_COMMAND` and `operations['bulk-update'].bulk` for `UNIFORM_UPDATE`)
411
+ and materializes them in the contextual bulk selection toolbar:
412
+
413
+ 1. **Pre-evaluation gates**: validates `limits.maxTargets` before evaluation and
414
+ resolves `expectedVersion` (`ETag`) via `_links.self` only when
415
+ `preconditions.resourceVersion === 'REQUIRED'`.
416
+ 2. **Phase 1 — Immutable Proposal (`PraxisBulkOperationDialogComponent` / `PraxisBulkEditDialogComponent`)**:
417
+ hydrates command parameters (unwrapping `/properties/parameters` and OpenAPI
418
+ `$ref` definitions with a resource-and-action-scoped `formId`) or
419
+ `@BulkEditable` fields (`SET` / `CLEAR`), submits the evaluation request, and
420
+ renders target eligibility totals (`executable`, `blocked`) and per-item
421
+ diagnostics.
422
+ 3. **Phase 2 — Transactional Confirmation & Reconciliation**: confirms the
423
+ approved `proposalId` with an `Idempotency-Key`, polls asynchronous
424
+ executions until terminal state (`COMPLETED`, `COMPLETED_WITH_ERRORS`,
425
+ `CANCELLED`, `STOPPED`, `RECONCILIATION_REQUIRED`), aggregates all rejection
426
+ categories (`denied`, `invalid`, `conflict`, `notProcessed`, `unknown`),
427
+ clears table selection on full success or deselects only confirmed items on
428
+ partial outcomes so rejected/unprocessed rows remain selected across
429
+ `persistOnDataUpdate: true` table refreshes, and re-fetches capabilities
430
+ when `refresh.capabilities === true`.
431
+
432
+ `CANCEL_REQUESTED` stays pending: requesting cancellation does not imply that the
433
+ server finished. The dialogs keep one execution-tracking subscription, prevent
434
+ duplicate cancellation and accept final results only from canonical terminal
435
+ snapshots. Once terminal, late polling or cancellation callbacks cannot downgrade
436
+ the result. Terminal status is not proof of full success; partial totals and
437
+ reconciliation diagnostics remain visible.
438
+
439
+ If tracking fails or expires, the dialogs show an unknown outcome rather than a
440
+ completed result: server effects may already exist. The explicit resume action
441
+ only reads the same execution with the original proposal/key; it never repeats
442
+ confirmation or evaluation. The person can close this state with `success:false`
443
+ and the last snapshot, without claiming that no effects committed. Tracking ends
444
+ when the dialog closes or is destroyed. Retaining intention/key custody across
445
+ reopening or reload remains a separate requirement, not a guarantee of this flow.
446
+
447
+ Unavailable bulk operations (`availability.allowed === false`) remain visible
448
+ but disabled in the bulk toolbar with their canonical translated reason tooltip.
449
+
347
450
  ## Visual Authoring
348
451
 
349
452
  The package publishes the CRUD-specific authoring surface:
@@ -354,14 +457,52 @@ The package publishes the CRUD-specific authoring surface:
354
457
  - `openCrudMetadataEditor(...)`
355
458
  - `PRAXIS_CRUD_AUTHORING_MANIFEST`
356
459
 
460
+ `CrudMetadataEditorComponent` provides guided authoring tabs for:
461
+
462
+ - **Connection (`resource` / `data` / `pageHeader`)**: bind remote resource paths, `idField`, `endpointKey`, or inspect-only local rows, and author the executive `pageHeader` (`title`, `subtitle`, `domain.label`, `domain.icon`, `domain.tone`) consumed by `PraxisResourcePage`.
463
+ - **Opening & Return (`defaults`)**: configure modal/drawer presentation defaults, header options, and back navigation policy.
464
+ - **Actions (`actions`)**: configure `create`, `view`, `edit`, and `delete` open modes, form bindings, parameter mappings, and initial value seeds. Action expansion panels stay open while typing (`isActionPanelOpen`) until explicitly closed or reset.
465
+ - **KPI Band (`kpiBand`)**: enable or disable the top summary band, author KPI cards (`id`, `label`, `value`, `valueExpr`, `captionExpr`, `variant`/`tone`, optional `visualization`), bind card click filters (`none`, clear filter `{}`, field equality `{ [field]: value }`, or custom JSON criteria), and preview the rendered band live with CSP-safe arithmetic and pipe evaluation. Embedded card micro-visualizations render via `<praxis-kpi-card-view>` and `<praxis-micro-visualization>` (`@praxisui/core/micro-visualization`, delegating to `<praxis-micro-viz-host>`) and automatically upgrade all 6 vector/SVG kinds (`line`, `area`, `column`, `waterfall`, `radial`, `harveyBall`) to Apache ECharts 6 when the host registers `providePraxisCharts()`.
466
+ For a queue measured against the current table selection, set `kpiBand.filterScope` to `"table"` on an explicit `POST` source for the same collection's `/stats/group-by`. The CRUD checks the collection URL and uses the criteria sent by the table, including normalized date ranges. The indicator is unavailable when the table reads a different API or collection surface. Fixed criteria in `payload.filter` must agree with active criteria on shared fields. A conflicting filter or failed request shows an unavailable state. A suppressed or truncated result shows a partial-data state. The page places its scope bar between the KPI band and the table. Use `kpiBand: false` for lookup pages where the summary adds no operational measure.
467
+
468
+ - **Filter Bar (`filterBar`)**: toggle advanced filter visibility (`showAdvanced`), select inline filter fields (`inlineFields`), configure quick filter pills (`quickFilters` with `id`, `label`, `icon`, and `filter` criteria), and control `placement` (`'table-toolbar'` or `'scope-bar'`) without editing raw JSON.
469
+ - **Table (`table`)**: embedded `<praxis-table-inline-authoring-editor>` with explicit column inheritance awareness. When `metadata.table.columns` is `[]` and the CRUD resolves columns dynamically from the bound resource schema (`effectiveTableConfig`), the editor surfaces an inheritance banner showing the resolved resource columns, forwards those columns into the inline table editor for direct inspection/customization, preserves `columns: []` when only toolbar or pagination settings change, and provides a one-click reset back to inherited resource columns after customization.
470
+ - **Form Layout Scope & Persistence (`layoutScope?: 'shared' | 'mode-only'`)**: when customizing an inner `praxis-dynamic-form` inside a CRUD dialog or drawer (`DynamicFormDialogHostComponent`), the **Comportamento & Contexto** tab exposes the layout scope selector (`[data-testid="dynamic-form-layout-scope-toggle"]`):
471
+ - `'shared'` (default): structural layout edits (`sections`, `rows`, `columns`, `layout`) propagate across sibling modes (`create`, `edit`, `view`, `presentation`, `dossier`) while automatically protecting any sibling mode explicitly locked with `metadata.layoutScope === 'mode-only'`.
472
+ - `'mode-only'`: locks the structural layout exclusively to the active mode (`create`, `edit`, `view`, `presentation`, or `dossier`), isolating it from future shared updates or resets triggered from sibling modes.
473
+ - Even though `DynamicFormDialogHostComponent` sets `formConfigPersistenceStrategy = 'input-first'`, when `metadata.form` is empty/policy-only (no explicit `sections` or `fieldMetadata`), it hydrates user-saved `metadata.source === 'local'` snapshots for `praxis-form-config-<id>:<mode>` while preserving host `actions`, `helpPresentation`, and fallback `formRules`.
474
+ - Both `crud-authoring:<id>` and `praxis-form-config-<id>:<mode>` keys persist seamlessly through `ASYNC_CONFIG_STORAGE` (local `LocalStorageConfigService` or remote `ApiConfigStorage` backed by `praxis-config-starter` at `/api/praxis/config/ui` with `If-Match` / `ETag` concurrency and automatic 412 conflict retry).
475
+
357
476
  Use this authoring surface to edit CRUD orchestration metadata. Do not build local CRUD editors in consuming apps when the needed behavior belongs to the package contract.
358
477
 
478
+ ## Multi-step forms in modals, drawers, and routes
479
+
480
+ When a CRUD form schema or `FormConfig` configures `layout.mode = 'stepper'`, `DynamicFormDialogHostComponent` (dialogs and drawers) and routed CRUD form hosts run the native multi-step form contract directly on top of the inner `PraxisDynamicForm`:
481
+
482
+ - **Single root `FormGroup` & concurrency**: all steps read from and write to the same root `FormGroup`, preserving `initialValue` seeding, `PATCH` dirty-field diffing, and optimistic `ETag` / `If-Match` headers.
483
+ - **Dirty guard on modal/drawer exit (`canLeaveForm()`) & session draft awareness**: closing via backdrop click, `Escape`, or `Cancelar` across any step still triggers the CRUD unsaved-changes confirmation before discarding edits across steps; when `behavior.draftPersistence` is active in `create` mode, the confirmation dialog explicitly informs the operator that the session draft remains saved locally (`Sair e manter rascunho`).
484
+ - **Step telemetry forwarding (`@Output() formStepTelemetry`)**: `DynamicFormDialogHostComponent` and `PraxisCrudComponent` forward metadata-only step transitions (`CrudFormStepTelemetryEvent`: `{ action, openMode, event }`) so host applications can monitor multi-step progress and drop-off across Modal, Drawer, and Route flows without inspecting field values.
485
+ - **Mode synchronization (`layoutScope: 'shared'`) & read-mode stepper policy**: editing steps inside `create`, `edit`, `view`, `presentation`, or `dossier` automatically propagates structural sections and `layout` across sibling modes (ignoring `'mode-only'` siblings). Read-only behavior follows `layout.stepperInReadMode` (`'off'`, default `'presentation'`, or `'all'`): interactive input `view` mode (`presentationModeGlobal === false`) flattens steps unless `'all'` is set, whereas Presentation/Dossier mode retains editorial step navigation (with all chapters automatically expanded for `@media print`).
486
+ - **Single action bar & `422` error recovery**: intermediate steps expose `Anterior` / `Próxima etapa` in `<praxis-form-actions>` while the write request (`POST` / `PUT` / `PATCH`) executes exclusively from the final step. Both cumulative linear validation (`0..targetIndex - 1`) and backend HTTP `422` field errors automatically reveal the owning step and focus the offending control inside the modal/drawer.
487
+ - **Host sizing guidance**: prefer `drawer`, full routes, or `md`/`lg`/`xl` dialog presets when rendering forms with 3 or more steps, reserving standalone `@praxisui/stepper` only for multi-aggregate wizards that commit separate resources across stages.
488
+
489
+ ## Custom Fields Studio (`metadata.customFieldsStudio`)
490
+
491
+ When an application host enables dynamic `@CustomFields` resources, `<praxis-crud>` and `<praxis-resource-page>` expose `PraxisCustomFieldStudioDialogComponent` declaratively via `metadata.customFieldsStudio`:
492
+
493
+ - **Modes**: `'catalog'` intercepts `create`/`edit` actions on the definitions catalog resource; `'target-resource'` renders a header trigger on the extensible resource page pre-bound to `targetResourceKey`.
494
+ - **Host configuration & domain neutrality**: configure `definitionsResourcePath`, optional `targetsCatalogEndpoint`, `previewDeterminationEndpoint`, `aiDraftEndpoint`, `requiredAuthority`, `officialCatalogHint`, and `aiPromptExamples`. `@praxisui/crud` stays domain-agnostic and delegates host-specific catalog hints or example prompts through metadata.
495
+ - **Security & profile guard**: `customFieldsStudio` is blocked whenever `interactionMode === 'inspect-only'` (enforced by runtime components, `assertCrudMetadata`, and the `public-local-inspect-only` metadata profile) and requires `EnterpriseRuntimeContextService` authority matching when `requiredAuthority` is set.
496
+ - **Runtime cache & schema synchronization**: confirmed Studio saves and catalog mutations (save, delete, bulk, discovered surfaces) invalidate `DynamicFormService` and `PraxisCacheInvalidatorService`, reload the active CRUD schema, and invoke `PraxisTable.reloadSchema()` (refreshing columns and `<praxis-filter>` criteria in place).
497
+
359
498
  ## AI Authoring
360
499
 
361
500
  `PRAXIS_CRUD_AUTHORING_MANIFEST` declares the governed operation families for AI-assisted authoring:
362
501
 
363
502
  - `resource.bind`
364
503
  - `list.surface.configure`
504
+ - `list.kpiBand.configure`
505
+ - `list.filterBar.configure`
365
506
  - `surface.create.configure`
366
507
  - `surface.edit.configure`
367
508
  - `surface.view.configure`
@@ -377,9 +518,10 @@ The manifest owns CRUD orchestration only. It delegates table, form, field, and
377
518
  Main exports:
378
519
 
379
520
  - `PraxisCrudComponent`
521
+ - `PraxisBulkOperationDialogComponent`, `PraxisBulkEditDialogComponent`
380
522
  - `CrudLauncherService`
381
523
  - `DynamicFormDialogHostComponent`
382
- - `CrudMetadata`, `CrudActionFormContract`, `CrudDefaults`, `CrudParamMapping`
524
+ - `CrudMetadata`, `CrudActionFormContract`, `CrudDefaults`, `CrudParamMapping`, `CrudKpiBandConfig`, `CrudKpiCardConfig`, `CrudKpiCardVariant`, `CrudFilterBarConfig`, `CrudFilterBarQuickFilter`
383
525
  - `DialogService`
384
526
  - `CrudPageHeaderComponent`
385
527
  - `CrudMetadataEditorComponent`
@@ -393,8 +535,15 @@ Main exports:
393
535
  - Avoid template getters that create new object/array references for CRUD context.
394
536
  - Treat `actions[].params` and `actions[].form.initialValue` as input seeding for the launcher, not as automatic persistence rules.
395
537
  - Keep UI-only/transient form fields in the dynamic form contract with the appropriate submit policy.
538
+ - `PraxisCrudComponent` and `openCrudMetadataEditor` synchronize Settings Panel `configStorageKey`, await async save/reset persistence with visual rollback and structured error propagation, and normalize `configPersistenceStrategy` (`'local-first' | 'input-first' | 'volatile'`).
539
+ - `CrudRouteFormComponent` automatically invokes `disableCustomization()` when `!available()` to keep route customization fail-closed.
396
540
  - Use the official documentation and quickstart for full route, drawer, modal, and backend examples.
397
541
 
542
+ ### CSS Custom Properties (Resource Header & Dialog Icon Framing)
543
+
544
+ - **Resource Page Action Shape:** `--praxis-configure-btn-radius` controls the corner radius across configure, rules, assistant, and studio header buttons on `<praxis-resource-page>`.
545
+ - **Form Dialog Title Icon:** `--praxis-dialog-title-icon-size`, `--praxis-dialog-title-icon-compact-size`, `--praxis-dialog-title-icon-radius`, `--praxis-dialog-title-icon-compact-radius`, `--praxis-dialog-title-icon-bg`, `--praxis-dialog-title-icon-border`, and `--praxis-dialog-title-icon-glyph-size`.
546
+
398
547
  <!-- praxis-npm-catalog-links:start -->
399
548
  ## Official documentation and examples
400
549