Skip to content

docs(forms): restructure the Forms docs into task pages - #6049

Merged
vite-hub[bot] merged 11 commits into
mainfrom
docs/forms-copy
Dec 2, 2026
Merged

vite-hub[bot] merged 11 commits into
mainfrom
docs/forms-copy

Conversation

@onmax

@onmax onmax commented Dec 1, 2026 •

Copy link
Copy Markdown
Member

Restructures and rewrites the Forms docs. Stacked on #6048, so the pages describe authorize: true, a callback that returns a Response, and boolean rateLimit and honeypot.

Fable 5.2 planned the page structure. Gemini 4 Neon wrote the copy. I checked the facts against packages/forms/src.

Why

The old section was split by where the code runs (server, Vue). server-api.md was five guides and one reference in one page. "Who can send this form?" had answers in three places. submitForm() was on the Vue page. The inbox CLI was only in the tutorial.

New pages

Page Holds
Overview The hero, features, and cards to each task
Get started The tutorial, plus "What happens when you deploy"
Configure (new) Naming, schema, storage, email, onSubmit, shared options
Server API Reference only: imports, options, authorize context, FormSubmission, route, responses, retries, inbox, schema functions, guardRequest()
Limits and errors Limits, "Handle errors", grouped code table
Protect (new) Checks in order, sign-in, roles, access routes, rate limit, honeypot, origins, maxBytes, guardRequest()
Inbox (new) Message fields, CLI, Console, operations, server code, paging, anchors
Vue A "pick one" table, AutoForm, useFormAction(), FormHoneypot, Formisch
Client (new) Plain HTML form, submitForm(), curl, page and anchor
MCP and chat (new) Elicitations, Slack and Teams modals

The package README is also rewritten (first commit).

Links

No page is removed. Moved sections get fragment redirects in docs/modules/vitehub-docs/redirects.ts. Links on other pages (node self-hosted, webhooks, MCP, agents, UI, auth, two diagnostics sources) and docs/test/ui-section.test.ts point at the new places.

Checks

  • docs snippet check passes (1869 blocks, 0 failed).
  • docs/test/ui-section.test.ts, docs-navigation.test.ts, and nuxthub-migration.test.ts pass (24 tests).
  • Every /docs/forms link and redirect target resolves to an existing heading, checked with the docs parser.
  • Not run: the full nuxi build and the full link check. The sidebar grouping of the new pages is not checked in a render.

🤖 Generated with Claude Code

onmax added 3 commits December 1, 2026 13:04
authorize in Forms got only { id, name, email }, so a role check had to
read the Auth Session a second time. It now matches authorize in the
rest of ViteHub: true requires sign-in, and a function gets the whole
Auth user and session and may return a Response. rateLimit: true and
honeypot: true keep the default, so shared options typecheck. The docs
show how to protect a form, guard every form with one access route, and
share options.
@onmax onmax changed the title docs(forms): rewrite the Forms copy docs(forms): restructure the Forms docs into task pages Dec 1, 2026

@pullfrog pullfrog Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Important

Correct the deployment, access, and submission guidance before merging. The new guides send Cloudflare users to a migration command that does not reach native D1 and describe actions that Teams and the Console do not offer as shown.

Approach: Splitting the Forms docs by task is the right approach; each guide needs to describe what the user can do on that host or client.

Reviewed changes — I checked the rewritten docs and package README against the Forms implementation and the affected integrations.

  • Setup and protection: Contact form tutorial, database setup, sign-in, roles, and request guards.
  • Submitting and triaging: HTML and JavaScript clients, Vue and Formisch, MCP and chat, and inbox access.
  • Reference and navigation: Server API, limits and diagnostics, cross-links, and legacy fragments.

Validation: 200 Forms tests and 24 focused docs tests passed. I also compared the old and new headings with the docs parser. I did not deploy to Cloudflare or test a live Teams client.

Pullfrog  | Fix all ➔ | Fix 👍s ➔ | View workflow run | Using pullfrog(high) | 𝕏

Comment thread docs/content/docs/forms/get-started.md Resolved
Comment thread docs/content/docs/forms/mcp-and-chat.md Resolved
Comment thread docs/content/docs/forms/protect.md Resolved
Comment thread docs/content/docs/forms/inbox.md Resolved
Comment thread docs/content/docs/forms/client.md Resolved
Comment thread docs/modules/vitehub-docs/redirects.ts Resolved
@vite-hub

vite-hub Bot commented Dec 1, 2026 •

Copy link
Copy Markdown
Contributor
Session Status Started Duration
Pending Completed 2026-12-02T06:30:10.844Z 1m 9s

Latest result

Merged 6519625 directly: required checks passed and review threads were resolved.

Final answers

Session

Merged 6519625 directly: required checks passed and review threads were resolved.

Session

Pushed 6519625 to resolve the Forms docs merge conflict. The repair preserves the task pages and documents when thrown ViteHub conflicts return HTTP 409. All prior review fixes remain intact. Lint and focused documentation assertions passed; the sandbox blocked the prerequisite build for the local docs suite. Awaiting hosted checks.

Session

Pushed 6519625 to resolve the Forms docs merge conflict. The repair preserves the task pages and documents when thrown ViteHub conflicts return HTTP 409. All prior review fixes remain intact. Lint and focused documentation assertions passed; the sandbox blocked the prerequisite build for the local docs suite. Awaiting hosted checks.

Session

Pushed 6519625 to resolve the Forms docs merge conflict. The repair preserves the task pages and documents when thrown ViteHub conflicts return HTTP 409. All prior review fixes remain intact. Lint and focused documentation assertions passed; the sandbox blocked the prerequisite build for the local docs suite. Awaiting hosted checks.

Session

Pushed 6519625 to resolve the Forms docs merge conflict. The repair preserves the task pages and documents when thrown ViteHub conflicts return HTTP 409. All prior review fixes remain intact. Lint and focused documentation assertions passed; the sandbox blocked the prerequisite build for the local docs suite. Awaiting hosted checks.

Session

Pushed 6519625 to resolve the Forms docs merge conflict. The repair preserves the task pages and documents when thrown ViteHub conflicts return HTTP 409. All prior review fixes remain intact. Lint and focused documentation assertions passed; the sandbox blocked the prerequisite build for the local docs suite. Awaiting hosted checks.

Session

Pushed 6519625 to resolve the Forms docs merge conflict. The repair preserves the task pages and documents when thrown ViteHub conflicts return HTTP 409. All prior review fixes remain intact. Lint and focused documentation assertions passed; the sandbox blocked the prerequisite build for the local docs suite. Awaiting hosted checks.

Session

Pushed 6519625 to resolve the Forms docs merge conflict. The repair preserves the task pages and documents when thrown ViteHub conflicts return HTTP 409. All prior review fixes remain intact. Lint and focused documentation assertions passed; the sandbox blocked the prerequisite build for the local docs suite. Awaiting hosted checks.

Session

Pushed 6519625 to resolve the Forms docs merge conflict. The repair preserves the task pages and documents when thrown ViteHub conflicts return HTTP 409. All prior review fixes remain intact. Lint and focused documentation assertions passed; the sandbox blocked the prerequisite build for the local docs suite. Awaiting hosted checks.

Session

Pushed 6519625 to resolve the Forms docs merge conflict. The repair preserves the task pages and documents when thrown ViteHub conflicts return HTTP 409. All prior review fixes remain intact. Lint and focused documentation assertions passed; the sandbox blocked the prerequisite build for the local docs suite. Awaiting hosted checks.

Session

Pushed 6519625 to resolve the Forms docs merge conflict. The repair preserves the task pages and documents when thrown ViteHub conflicts return HTTP 409. All prior review fixes remain intact. Lint and focused documentation assertions passed; the sandbox blocked the prerequisite build for the local docs suite. Awaiting hosted checks.

vite-hub Bot added 4 commits December 1, 2026 16:18
Keeps the base version over this PR's changes:
- docs/content/docs/forms/client.md: The repair deliberately replaces the error-only branches so they retain the server message and whole-form issues for every failed submission.
- docs/content/docs/forms/configure.md: The repair retains the form schema note and adds instructions to migrate the deployed database.
- docs/content/docs/forms/get-started.md: The repair deliberately replaces the deployment and inbox advice to distinguish local from deployed migrations and Console browsing from status writes.
- docs/content/docs/forms/inbox.md: The repair deliberately replaces claims that the Console view can write with the documented read-only view and permissions for operation calls.
- docs/content/docs/forms/index.md: The repair restores the published What you get anchor above the new feature cards and corrects the Console status-change claim.
- docs/content/docs/forms/limits-and-errors.md: The repair replaces duplicate error listings with the generated catalog as required by the diagnostic contract and preserves server messages and whole-form issues in the example.
- docs/content/docs/forms/protect.md: The repair replaces the incomplete standalone Auth Definition with an access-rule fragment for an existing role-enabled Definition.
- docs/content/docs/forms/server-api.md: The base deliberately extends the original callback-response explanation to describe rejected submitForm redirects, and the repair places that explanation under Responses while retaining the PR's Inbox section.
@pkg-pr-new

pkg-pr-new Bot commented Dec 2, 2026 •

Copy link
Copy Markdown

Open in StackBlitz

@vite-hub/agent

pnpm add https://pkg.pr.new/@vite-hub/agent@6049

@vite-hub/auth

pnpm add https://pkg.pr.new/@vite-hub/auth@6049

@vite-hub/blob

pnpm add https://pkg.pr.new/@vite-hub/blob@6049

@vite-hub/browser

pnpm add https://pkg.pr.new/@vite-hub/browser@6049

@vite-hub/bundle

pnpm add https://pkg.pr.new/@vite-hub/bundle@6049

@vite-hub/channels

pnpm add https://pkg.pr.new/@vite-hub/channels@6049

@vite-hub/choices

pnpm add https://pkg.pr.new/@vite-hub/choices@6049

@vite-hub/cli

pnpm add https://pkg.pr.new/@vite-hub/cli@6049

@vite-hub/cms

pnpm add https://pkg.pr.new/@vite-hub/cms@6049

@vite-hub/codemods

pnpm add https://pkg.pr.new/@vite-hub/codemods@6049

@vite-hub/comments

pnpm add https://pkg.pr.new/@vite-hub/comments@6049

@vite-hub/connections

pnpm add https://pkg.pr.new/@vite-hub/connections@6049

@vite-hub/content

pnpm add https://pkg.pr.new/@vite-hub/content@6049

create-vitehub

pnpm add https://pkg.pr.new/create-vitehub@6049

@vite-hub/database

pnpm add https://pkg.pr.new/@vite-hub/database@6049

@vite-hub/device

pnpm add https://pkg.pr.new/@vite-hub/device@6049

@vite-hub/docs

pnpm add https://pkg.pr.new/@vite-hub/docs@6049

@vite-hub/email

pnpm add https://pkg.pr.new/@vite-hub/email@6049

@vite-hub/env

pnpm add https://pkg.pr.new/@vite-hub/env@6049

@vite-hub/forge

pnpm add https://pkg.pr.new/@vite-hub/forge@6049

@vite-hub/forms

pnpm add https://pkg.pr.new/@vite-hub/forms@6049

@vite-hub/gateways

pnpm add https://pkg.pr.new/@vite-hub/gateways@6049

@vite-hub/i18n

pnpm add https://pkg.pr.new/@vite-hub/i18n@6049

@vite-hub/kit

pnpm add https://pkg.pr.new/@vite-hub/kit@6049

@vite-hub/kv

pnpm add https://pkg.pr.new/@vite-hub/kv@6049

@vite-hub/markdown-template

pnpm add https://pkg.pr.new/@vite-hub/markdown-template@6049

@vite-hub/mcp

pnpm add https://pkg.pr.new/@vite-hub/mcp@6049

@vite-hub/presets

pnpm add https://pkg.pr.new/@vite-hub/presets@6049

@vite-hub/queue

pnpm add https://pkg.pr.new/@vite-hub/queue@6049

@vite-hub/rate-limit

pnpm add https://pkg.pr.new/@vite-hub/rate-limit@6049

@vite-hub/realtime

pnpm add https://pkg.pr.new/@vite-hub/realtime@6049

@vite-hub/runtime

pnpm add https://pkg.pr.new/@vite-hub/runtime@6049

@vite-hub/sandbox

pnpm add https://pkg.pr.new/@vite-hub/sandbox@6049

@vite-hub/schedule

pnpm add https://pkg.pr.new/@vite-hub/schedule@6049

@vite-hub/shell

pnpm add https://pkg.pr.new/@vite-hub/shell@6049

@vite-hub/source

pnpm add https://pkg.pr.new/@vite-hub/source@6049

@vite-hub/sync

pnpm add https://pkg.pr.new/@vite-hub/sync@6049

@vite-hub/ui

pnpm add https://pkg.pr.new/@vite-hub/ui@6049

vite-hub

pnpm add https://pkg.pr.new/vite-hub@6049

@vite-hub/web-container

pnpm add https://pkg.pr.new/@vite-hub/web-container@6049

@vite-hub/webhooks

pnpm add https://pkg.pr.new/@vite-hub/webhooks@6049

@vite-hub/workflow

pnpm add https://pkg.pr.new/@vite-hub/workflow@6049

@vite-hub/workspace

pnpm add https://pkg.pr.new/@vite-hub/workspace@6049

commit: 6519625

vite-hub Bot added 2 commits December 2, 2026 05:16
Keeps this PR's version over base changes:
- docs/content/docs/forms/index.md: The task overview replaces the base's tagline, feature cards, and bare next links with corrected task copy and links, while keeping the new headline, LandingDemo, and Pick it when section and restoring the legacy What you get fragment.
- docs/content/docs/forms/vue.md: The task guide replaces the base paragraph with its options-based introduction and a separate paragraph that preserves the base's shared control name, array decoding, and item-error rules.
- packages/forms/README.md: The rewritten README replaces the base's full Vue introduction with a summary and retains its new shared-name error guidance and native form decoding details.

Keeps the base version over this PR's changes:
- docs/content/docs/forms/index.md: The base retires HeroFigure, so the rewritten Forms overview uses LandingDemo and keeps the PR's inbox guidance, task cards, and legacy fragments.
@vite-hub
vite-hub Bot changed the base branch from feat/forms-authorize to main December 2, 2026 05:44
Keeps this PR's version over base changes:
- docs/content/docs/forms/server-api.md: The task-page rewrite deliberately moves the base's protection and shared-options examples to Protect and Configure, with fragment redirects, while retaining the base's API behavior in the reference.
- packages/forms/README.md: The rewritten lifecycle and services sections deliberately replace the base's older wording while preserving its authorization and identity contracts.

Keeps the base version over this PR's changes:
- docs/content/docs/forms/server-api.md: The base adds authorize: true, so the 401 row deliberately covers both an unsigned caller rejected by that option and an unsigned caller whose callback returned false.
@github-actions

github-actions Bot commented Dec 2, 2026 •

Copy link
Copy Markdown
Contributor

Bundle size

Client 5.12 MB $\color{red}\textsf{(+786 B, +0.0}\%\textsf{)}$ · Server 11.54 MB $\color{red}\textsf{(+11.8 kB, +0.1}\%\textsf{)}$

Initial page load PR Δ
/ 337.2 kB +527 B (+0.2%)
/:slug(.) 341.6 kB +527 B (+0.2%)
/:slug() 341.6 kB +527 B (+0.2%)
/agents 300.3 kB +527 B (+0.2%)
/agents.md 300.3 kB +527 B (+0.2%)
/auth 300.3 kB +527 B (+0.2%)
/auth.md 300.3 kB +527 B (+0.2%)
/blob 300.3 kB +527 B (+0.2%)
/blob.md 300.3 kB +527 B (+0.2%)
/blog 300.3 kB +527 B (+0.2%)

And 994 more routes.

Prerendered URL Initial load Δ HTML Δ
/docs/kv/diagnostics/kv_store_not_found 346.1 kB
4.48 kB from components
+527 B (+0.2%)
route +527 B, components ±0 B
23.6 kB +39 B (+0.2%)
/docs/kv 399.0 kB
57.4 kB from components
+527 B (+0.1%)
route +527 B, components ±0 B
33.6 kB −33 B (−0.1%)
/docs/getting-started 345.6 kB
4.03 kB from components
+527 B (+0.2%)
route +527 B, components ±0 B
22.6 kB +30 B (+0.1%)
/docs/kv/diagnostics 347.0 kB
5.41 kB from components
+527 B (+0.2%)
route +527 B, components ±0 B
24.7 kB −29 B (−0.1%)
/ 337.4 kB
204 B from components
+527 B (+0.2%)
route +527 B, components ±0 B
20.3 kB −5 B (−0.0%)
Largest changes in the client
Package or file Base PR Δ
.nuxt/docs/app-manifest.mjs 23.1 kB 23.4 kB +276 B (+1.2%)
modules/vitehub-docs/redirects.ts 5.32 kB 5.51 kB +191 B (+3.6%)
Largest changes in the server
Package or file Base PR Δ
virtual:#docs/files 1.70 MB 1.71 MB +10.0 kB (+0.6%)
packages/database/dist/error-diagnostics-Dfx1ksjJ.js n/a 8.97 kB +8.97 kB
packages/database/dist/error-diagnostics-DoSo-vsb.js 8.89 kB n/a −8.89 kB (−100.0%)
packages/database/dist/d1-http-pFprX9x2.js n/a 1.62 kB +1.62 kB
packages/database/dist/d1-http-Bm59QM9A.js 1.62 kB n/a −1.62 kB (−100.0%)
packages/database/dist/drizzle-adapter-CVSIvsDq.js n/a 561 B +561 B
packages/database/dist/drizzle-adapter-CICEwiZ8.js 560 B n/a −560 B (−100.0%)
vite/services/ssr/_nuxt/index-styles-2.BWZNQdMb.mjs n/a 494 B +494 B
vite/services/ssr/_nuxt/index-styles-2.DKFMxiIM.mjs 493 B n/a −493 B (−100.0%)
packages/database/dist/cloudflare-config-B6Z3_ywD.js 459 B n/a −459 B (−100.0%)

And 19 more packages or files.

Brotli sizes. Changes under 100 B are left out of the tables. Initial page load counts the JavaScript and CSS a route loads before it renders. Prerendered URLs count the JavaScript and CSS their HTML preloads (module scripts, modulepreload and stylesheets, not prefetch), and the HTML document. Components are the lazy-loaded components the page rendered: its HTML preloads them, but its route's static imports don't reach them. Measured by nuxt-bundle-analyzer for 6519625.

@github-actions

github-actions Bot commented Dec 2, 2026 •

Copy link
Copy Markdown
Contributor

MCP eval dry run

  • Server: http://127.0.0.1:34955/mcp
  • Surface: 3c609a54e6e9942eb282f0b0fe721d50de99f6c0f6f54895d2a5a8dd6b0f5544
  • Baseline: /home/runner/work/_temp/base/size.json

Tool list size

The characters the model reads: the server instructions, and the name, description, and input schema of each tool.

Part Characters Delta
Total 1,463 0
Server instructions 288 0
list-pages 839 0
get-page 336 0

Keeps the base version over this PR's changes:
- docs/content/docs/forms/configure.md: Main now preserves ViteHub conflict statuses for JSON requests, so the task guide keeps the no-storage guarantee and links to the updated response contract instead of saying all non-h3 errors return 500.
@vite-hub
vite-hub Bot merged commit 0782d28 into main Dec 2, 2026
50 checks passed
@github-actions github-actions Bot mentioned this pull request Dec 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant