Skip to content

docs(web-layer): typed-chain query/form/testing overhaul + coverage matrix#679

Merged
rickylabs merged 4 commits into
mainfrom
docs/660-web-layer-pillar
Jul 11, 2026
Merged

docs(web-layer): typed-chain query/form/testing overhaul + coverage matrix#679
rickylabs merged 4 commits into
mainfrom
docs/660-web-layer-pillar

Conversation

@rickylabs

Copy link
Copy Markdown
Owner

Refs #660 (slice A of 2 — web-layer pillar; slice B is the how-to/reference sweep)

Web-layer pillar overhaul per the merged docs-audit spec (proposals 1, 13, 14, 16) + the #660 coverage matrix:

  • web-layer/query.md: all three raw-fetch queryFn/mutationFn examples replaced with the typed chain (createServiceClientcreateServiceQueryUtilsqueryOptions()/mutationOptions() into useIslandQuery/useIslandMutation); single lib/api-clients.ts clients-file example added; exactly one raw-fetch example kept under an explicit "Endpoints without a NetScript contract" heading.
  • web-layer/form.md: validated form posts through a typed service mutation (server + island variants).
  • web-layer/interactive.md, examples.md, testing.md: connected to the typed surface (typed route reference, QueryIsland, contract parseSearch/safeParsePath tests).
  • services-sdk/sdk.mdquery.md bidirectional cross-link ("hand-rolled fetch wrapper tax").
  • Coverage matrix committed at docs/site/_plan/web-layer-coverage-matrix.md (unpublished), grounded in deno doc + both reference apps.

Validation: docs verify green — 169 pages / 23,464 links; public-docs grep gate 0 hits; every cited API verified against source/deno doc (worklog per-page evidence in-branch at .llm/runs/docs-660a-web-layer--opus/).

Authored by a Claude Opus 4.8 docs agent under the beta-8 orchestrator (4d300496); Tier-A reviewed.

rickylabs and others added 4 commits July 12, 2026 00:03
Replace all three raw-fetch queryFn/mutationFn examples in web-layer/query.md
with the typed contract chain (createServiceClient -> createServiceQueryUtils ->
queryOptions()/mutationOptions() spread into useIslandQuery/useIslandMutation),
add a single lib/api-clients.ts module, and keep one raw fetch under an explicit
'endpoints without a NetScript contract' heading. Cross-link sdk.md <-> query.md
(the 'hand-rolled fetch wrapper tax'). Add the unpublished web-layer coverage
matrix under _plan/. Proposals #1, #16.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01VifzAytcxBk5odEMaCXihM
Add a 'Posting the validated payload through a typed mutation' section: the
server handler writes through the typed SDK client, and an enhanced island drives
the same contract write with useIslandMutation + mutationOptions() — closing the
read/write asymmetry with query.md. Proposal #14.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01VifzAytcxBk5odEMaCXihM
interactive.md and examples.md each gain a typed route reference + QueryIsland +
contract-derived queryOptions() example; testing.md gains Deno.tests exercising a
bound route contract's parseSearch/safeParsePath. Proposal #13.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01VifzAytcxBk5odEMaCXihM
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01VifzAytcxBk5odEMaCXihM
@rickylabs rickylabs added this to the 0.0.1-beta.8 milestone Jul 11, 2026
@rickylabs rickylabs added area:docs status:impl-eval type:docs area:fresh priority:p1 High epic:docs-cut beta.7 docs release cut epic (tutorials + positioning) labels Jul 11, 2026
@rickylabs
rickylabs marked this pull request as ready for review July 11, 2026 22:24
@rickylabs
rickylabs merged commit 58da666 into main Jul 11, 2026
12 of 14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:docs area:fresh epic:docs-cut beta.7 docs release cut epic (tutorials + positioning) priority:p1 High status:impl-eval type:docs

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant