Skip to content

Commit d9813a9

Browse files
os-zhuangclaude
andauthored
fix(spec): correct console route spellings in JSDoc to /_console/... (#9155)
Three JSDoc sites in packages/spec/src/ui/{view,action}.zod.ts spelled the console form routes without the /_console underscore, against the measured mount (CONSOLE_PATH = '/_console' in packages/cli/src/utils/ console.ts). No route resolves at a bare /console prefix. - view.zod.ts:2446 and :2449 (FormViewSchema.submitBehavior JSDoc, including the 2026-08-10 #7245 ruling sentence — the ruling itself pins the mode-aware submitBehavior default, not path spelling, so only the incidental path text changed) - action.zod.ts:500 (the type: 'form' action target doc) Comment-only change: these are JSDoc blocks, not .describe() strings, so accept/reject behaviour and the generated references pipeline are both unaffected (verified: pnpm --filter @objectstack/spec check:generated reports all 13 generated artifacts up to date, no diff under content/docs/references/). Fixes #9078 Co-authored-by: Claude <noreply@anthropic.com>
1 parent 852a710 commit d9813a9

3 files changed

Lines changed: 8 additions & 3 deletions

File tree

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@objectstack/spec": patch
3+
---
4+
5+
fix(spec): correct stale `/console/…` route spellings to `/_console/…` in JSDoc comments on `FormViewSchema.submitBehavior` (view.zod.ts) and the `type: 'form'` action target doc (action.zod.ts) — the mount is `CONSOLE_PATH = '/_console'`, no bare `/console` route resolves. Comment-only; accept/reject behaviour is unchanged (#9078)

packages/spec/src/ui/action.zod.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -497,7 +497,7 @@ const TARGET_REQUIRED_TYPES: ReadonlySet<string> = new Set(
497497
* - `type: 'flow'` — `target` is **required** (the flow name to invoke).
498498
* - `type: 'modal'` — `target` is **required** (the modal/page name to open).
499499
* - `type: 'api'` — `target` is **required** (the API endpoint to call).
500-
* - `type: 'form'` — `target` is **required** (the FormView name to open, routed to `/console/forms/:name`).
500+
* - `type: 'form'` — `target` is **required** (the FormView name to open, routed to `/_console/forms/:name`).
501501
*
502502
* The `execute` alias was **removed in protocol 17** (#3855). `target` is the
503503
* only handler slot, so no consumer has a second slot to disagree about. An

packages/spec/src/ui/view.zod.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2443,10 +2443,10 @@ export const FormViewSchema = lazySchema(() => strictObject({
24432443
* What happens after a successful submit.
24442444
*
24452445
* The default when this is omitted is **mode-aware**, not a single fixed
2446-
* kind (ruled 2026-08-10 on #7245): the public `/console/f/:slug` path
2446+
* kind (ruled 2026-08-10 on #7245): the public `/_console/f/:slug` path
24472447
* defaults to `thank-you` — there is no record an anonymous submitter is
24482448
* allowed to read back, so a confirmation panel is all there is to show.
2449-
* The internal `/console/forms/:name` path — where `type: 'form'` actions
2449+
* The internal `/_console/forms/:name` path — where `type: 'form'` actions
24502450
* send operators — defaults to redirecting to the record that was just
24512451
* created, since an operator who just created a record belongs on that
24522452
* record. An explicit `submitBehavior` always wins, in either mode.

0 commit comments

Comments
 (0)