diff --git a/.changeset/console-route-jsdoc-spelling.md b/.changeset/console-route-jsdoc-spelling.md new file mode 100644 index 0000000000..dee640f21a --- /dev/null +++ b/.changeset/console-route-jsdoc-spelling.md @@ -0,0 +1,5 @@ +--- +"@objectstack/spec": patch +--- + +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) diff --git a/packages/spec/src/ui/action.zod.ts b/packages/spec/src/ui/action.zod.ts index 8caa1dce1b..94fbb77f29 100644 --- a/packages/spec/src/ui/action.zod.ts +++ b/packages/spec/src/ui/action.zod.ts @@ -497,7 +497,7 @@ const TARGET_REQUIRED_TYPES: ReadonlySet = new Set( * - `type: 'flow'` — `target` is **required** (the flow name to invoke). * - `type: 'modal'` — `target` is **required** (the modal/page name to open). * - `type: 'api'` — `target` is **required** (the API endpoint to call). - * - `type: 'form'` — `target` is **required** (the FormView name to open, routed to `/console/forms/:name`). + * - `type: 'form'` — `target` is **required** (the FormView name to open, routed to `/_console/forms/:name`). * * The `execute` alias was **removed in protocol 17** (#3855). `target` is the * only handler slot, so no consumer has a second slot to disagree about. An diff --git a/packages/spec/src/ui/view.zod.ts b/packages/spec/src/ui/view.zod.ts index c99c5b9f20..34474b72fd 100644 --- a/packages/spec/src/ui/view.zod.ts +++ b/packages/spec/src/ui/view.zod.ts @@ -2443,10 +2443,10 @@ export const FormViewSchema = lazySchema(() => strictObject({ * What happens after a successful submit. * * The default when this is omitted is **mode-aware**, not a single fixed - * kind (ruled 2026-08-10 on #7245): the public `/console/f/:slug` path + * kind (ruled 2026-08-10 on #7245): the public `/_console/f/:slug` path * defaults to `thank-you` — there is no record an anonymous submitter is * allowed to read back, so a confirmation panel is all there is to show. - * The internal `/console/forms/:name` path — where `type: 'form'` actions + * The internal `/_console/forms/:name` path — where `type: 'form'` actions * send operators — defaults to redirecting to the record that was just * created, since an operator who just created a record belongs on that * record. An explicit `submitBehavior` always wins, in either mode.