docs(web-layer): typed-chain query/form/testing overhaul + coverage matrix#679
Merged
Conversation
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
marked this pull request as ready for review
July 11, 2026 22:24
4 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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-fetchqueryFn/mutationFnexamples replaced with the typed chain (createServiceClient→createServiceQueryUtils→queryOptions()/mutationOptions()intouseIslandQuery/useIslandMutation); singlelib/api-clients.tsclients-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, contractparseSearch/safeParsePathtests).services-sdk/sdk.md↔query.mdbidirectional cross-link ("hand-rolled fetch wrapper tax").docs/site/_plan/web-layer-coverage-matrix.md(unpublished), grounded indeno 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.