Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/console-route-jsdoc-spelling.md
Original file line number Diff line number Diff line change
@@ -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)
2 changes: 1 addition & 1 deletion packages/spec/src/ui/action.zod.ts
Original file line number Diff line number Diff line change
Expand Up @@ -497,7 +497,7 @@ const TARGET_REQUIRED_TYPES: ReadonlySet<string> = 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
Expand Down
4 changes: 2 additions & 2 deletions packages/spec/src/ui/view.zod.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
Loading