diff --git a/app/src/__tests__/forms-panels.test.ts b/app/src/__tests__/forms-panels.test.ts
index f9869d41..0a78e9a8 100644
--- a/app/src/__tests__/forms-panels.test.ts
+++ b/app/src/__tests__/forms-panels.test.ts
@@ -2,6 +2,7 @@ import { TestBed, type ComponentFixture } from '@angular/core/testing';
import type { DevframeRpcClient } from 'devframe/client';
import { afterEach, describe, expect, it } from 'vitest';
import { scopeToPage } from '../page-id';
+import { FormsExportTest, testFileName } from '../pages/forms-export-test';
import { FormsFieldDetail } from '../pages/forms-field-detail';
import { FormsInspector } from '../pages/forms-inspector';
import { FormsLint, FormsSubmit } from '../pages/forms-report';
@@ -1055,3 +1056,304 @@ describe('FormsTimeline', () => {
expect(box.checked).toBe(true);
});
});
+
+describe('FormsFields inline editing', () => {
+ function client(call: Call, meta: Record {{ filterStatus() }} {{ editMessage() }}
+ @if (filter()) {
+ No field path matches "{{ filter() }}".
+ } @else {
+ No field matches the selected filters.
+ }
+
+
+
+
+
+
+
+ @for (row of rows(); track row.node.path) {
+ Field
+ Value
+ Status
+ State
+ Errors
+
+
+ @if (editing() === row.node.path) {
+
+
+ {{ row.node.type }}
+
+
+ @if (row.node.type === 'control') {
+
+ {{ row.node.value | json }}
+ @if (row.node.materialized !== false) {
+
+ }
+ @if (row.node.uncommitted !== undefined) {
+ {{ row.node.uncommitted | json }}, not in the model yet
+ {{ row.node.defaultValue | json }}
+
+ @if (row.node.materialized === false) {
+ not created yet
+ } @else {
+ {{
+ row.node.status
+ }}
+ }
+
+
+ @if (row.node.touched) {
+ touched
+ }
+ @if (row.node.dirty) {
+ {{ row.node.changed === false ? 'dirty, unchanged' : 'dirty' }}
+ }
+ @if (row.node.skipped) {
+ not validated ({{ row.node.skipped }})
+ }
+ @if (row.node.stale?.length) {
+ stale: {{ row.node.stale!.join(', ') }}
+ }
+ @if (row.node.dom?.drift !== undefined) {
+ view out of sync
+ }
+ @if (row.node.redacted) {
+ redacted: {{ redactLabel(row.node.redacted) }}
+ }
+ @if (row.node.required) {
+ required
+ }
+ @if (row.node.readonly) {
+ readonly
+ }
+ @if (row.node.hidden) {
+ hidden
+ }
+ @if (row.node.updateOn) {
+ updates on {{ row.node.updateOn }}
+ }
+ @if (row.node.debouncing) {
+ debouncing
+ }
+ @if (row.node.validators?.sync) {
+ validators
+ }
+ @if (row.node.validators?.async) {
+ async validator
+ }
+ @for (rule of constraintList(row.node); track rule) {
+ {{ rule }}
+ }
+ @if (row.node.accessor) {
+ {{ row.node.accessor }}
+ }
+ @if (row.node.name) {
+ name {{ row.node.name }}
+ }
+ @for (value of row.node.metadata ?? []; track $index) {
+ metadata {{ value | json }}
+ }
+ @for (reason of row.node.disabledReasons ?? []; track $index) {
+ disabled: {{ reason }}
+ }
+
+
+ @for (error of row.node.errors; track $index) {
+
+ {{ error.kind }}
+ @if (error.kind === 'standardSchema' && error.params?.['path']) {
+ at {{ error.params!['path'] }}
+ }
+ @if (error.source) {
+ {{ sourceText(error) }}
+ }
+
+
+ }
+ @if (row.node.truncated) {
+
+
+
+
+ }
+ } @empty {
+
+ {{ row.node.truncated }} more fields under {{ row.node.path || 'the form' }} not
+ shown
+
+
+
+ }
+
+
+
+
- Angular reported {{ pageSetupErrors().length }} forms setup - {{ pageSetupErrors().length === 1 ? 'error' : 'errors' }} -
-- A form with a setup error can be missing from the list or behave unlike its template. - Check the directives and value accessors it names. -
-{{ error.message }}
- @if (setupErrorPages()) {
- on page {{ error.pageId }}
- }
- {{ tool.schema | json }}
+ + Runs the tool in the app the way an agent call does: it fills the form and submits it. +
+{{ writesOff }}
+ } +{{ message() }}
+
@@ -114,7 +193,7 @@ const OUTCOMES: Record