Skip to content

Add an explicitly enabled single-result query view - #41

Merged
woksin merged 2 commits into
mainfrom
work/scene-keyed-result-20260916
Sep 16, 2026
Merged

woksin merged 2 commits into
mainfrom
work/scene-keyed-result-20260916

Conversation

@woksin

@woksin woksin commented Sep 16, 2026

Copy link
Copy Markdown
Contributor

Added

  • Display a scalar field from an optional single-model query with Cratis.Components:singleResult, using an explicitly registered Arc query and host-supplied arguments. (Support optional-single keyed queries with explicit Scene inputs #39)
  • Show idle, loading, not-found and failure states without converting single results into collections or choosing another query.
  • Cancel obsolete requests and prevent late responses from replacing results for changed inputs or query configuration.

The host explicitly enables the view and supplies committed arguments. Editable Scene parameter binding and general result templates are not included in this increment.

Use a private native Arc query instance with context forwarding, cancellation, generation guards and visible result states. Select only an explicit own scalar model field; keep arguments and binding selection under host control.

Verified 39 native Arc HTTP-boundary cases, 171 component regressions, affected type/bundle builds and lint. Independent runtime review approved the bounded increment; editable Scene input and deployed-backend acceptance remain follow-up work.
@woksin woksin added the minor label Sep 16, 2026
@woksin

woksin commented Sep 16, 2026

Copy link
Copy Markdown
Contributor Author

Scoped local checks passed: 39 tests exercise the published Arc 22.16.1 QueryFor/validation through a fake HTTP boundary (perform is not mocked), 171 component tests pass, and affected model/engine/react/components builds and non-fixing lint pass. Independent review approved the runtime scope with documented inspection limits. Existing peer/Vite warnings remain visible. This is host-controlled, scalar-own-field optional-model presentation—not editable Scene parameter binding, arbitrary primitive results, generated ProjectById deployment or full-stack acceptance. #39 remains open.

@woksin

woksin commented Sep 16, 2026

Copy link
Copy Markdown
Contributor Author

Fresh CI 35128753014 exposed clean-build type errors missed by local incremental output: the older table/page/dialog adapters pass the registry’s untyped BoundConstructor into the now-resolved typed Components APIs, and the radio-button adapter lacks a required name prop. This is not being waived or fixed by removing native Arc coverage. A bounded adapter-contract correction and forced fresh affected type build are underway; the PR remains draft. The earlier 39 native-client and 171 component tests passed, but did not establish clean CI build compatibility.

Keep Arc loading lazy while validating generated proxy kinds at one typed boundary. Supply the native radio group name from the explicit property without changing the exported FieldBinding contract.

Fresh forced type checks, 186 component tests, lint and bundle build pass; independent bridge review approved the scoped native-proxy contract. Fresh CI must also cover its newer Components resolution.
@woksin

woksin commented Sep 16, 2026

Copy link
Copy Markdown
Contributor Author

Clean-build correction committed as c6806b8. Five adapters now reach Components through a private lazy native-Arc bridge, validating proxy kind without constructing it; registry registration and missing-binding behavior remain intact. Radio group names come from the explicit bound property, and the exported FieldBinding shape is unchanged. Forced component/prerequisite type checks, 186 tests, non-fixing lint and bundle passed; independent bridge review approved with documented native-proxy/erased-type limits. Local Components is 4.6.0; fresh CI must confirm its 4.7.0 resolution. No type-check suppression, blanket any, dependency rollback or old-test removal was used.

@woksin
woksin marked this pull request as ready for review September 16, 2026 18:06
@woksin
woksin merged commit 484ee93 into main Sep 16, 2026
3 checks passed
@woksin
woksin deleted the work/scene-keyed-result-20260916 branch September 16, 2026 18:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant