diff --git a/.changeset/35870-navigation-mode-skills.md b/.changeset/35870-navigation-mode-skills.md new file mode 100644 index 00000000000..fb273b0ceda --- /dev/null +++ b/.changeset/35870-navigation-mode-skills.md @@ -0,0 +1,14 @@ +--- +'@objectstack/skills': patch +--- + +Clause-②: no +Metadata-protocol: none + +The `objectstack-ui` skill teaches how an object's list opens a record after `navigation.mode` was deprecated there: + +- Record-page rule, step 5: on an object's list the record's name opens the full page and the hover icon beside it opens the drawer. `navigation.mode` is deprecated there: `drawer`, `page` and `new_window` change nothing, so the key is omitted; `none` still means rows open nothing (prefer `preventNavigation: true`); a page block's `navigation` still honours every value. The step no longer teaches `navigation: { mode: 'page' }` as the way to open the full page. +- Step 6 no longer lists the Display menu's Open records choice or the drawer's full-width state among the reader's own choices: both were removed. +- The navigation rule's Surface bullet states the same rule in place of "`page` only by declaration". +- `SKILL.md` principle 5 says how a record opens from an object's list is not authored, in place of "one list-view key"; its Where-to-go row for the record page no longer reads "drawer or page". +- Eval `record-page` case 2 ("open contracts as a full page, and beside the list") now expects nothing to be authored: it requires the answer to name the icon and forbids a `mode: 'page'` declaration. The case has a new hash, so `skill-evals --regrade` sets it apart from a round recorded before this change. diff --git a/skills/objectstack-ui/SKILL.md b/skills/objectstack-ui/SKILL.md index 8adaee562c5..23ee77ceb08 100644 --- a/skills/objectstack-ui/SKILL.md +++ b/skills/objectstack-ui/SKILL.md @@ -63,7 +63,8 @@ Two more: [List Views](#list-views), [Actions](#actions). must never be what keeps a user from someone else's data. 5. **The object declares its record page.** Related lists, their order and filter are flags on the object and its fields, not a page file; how a record - opens is one list-view key, and the reader's own display choices are never + opens from an object's list is not authored (the name opens the page, its + hover icon the drawer), and the reader's own display choices are never metadata ([Record Page](./rules/record-page.md)). ## Where to go @@ -73,7 +74,7 @@ Two more: [List Views](#list-views), [Actions](#actions). | A list, board, calendar, gallery or gantt: columns, `filter`, quick filters, toolbar search, sorting, grouping | `src/views/*.view.ts` | [List Views](./rules/list-views.md) | | A form (`simple` / `tabbed` / `wizard`): width, columns and `sections`; master-detail (a parent with line items), a public form, field conditional rules | `src/views/*.view.ts` | [Form Views](./rules/list-views.md#form-views) | | An app and its navigation; who sees or opens it; object nav, a `filters` slice or an interface page | `src/apps/*.app.ts` | [Navigation](./rules/navigation.md) | -| What a record page shows: related lists, a slotted or full page, drawer or page | the object | [Record Page](./rules/record-page.md) | +| What a record page shows: related lists, a slotted or full page; how a record opens | the object | [Record Page](./rules/record-page.md) | | A button or operation: `locations`, visibility, dialog and toast copy, params, new tab, the body's `ctx`, refusing by code (`refusals`) | `src/actions/*.action.ts`, `*.actions.ts` | [Actions](./rules/actions.md) | | A number, chart, KPI or report over records: datasets, widgets, dashboard filters, `compareTo`, date bucketing, drilldown, cubes | `src/datasets/*.dataset.ts`, `src/dashboards/*.dashboard.ts`, `src/reports/*.report.ts` | [Dashboards](./rules/dashboards.md) | | A page (regions, components, print, `kind: 'html'` / `'react'` source, styling) or package docs | `*.page.ts`, `src/docs/*.md` | [Pages & Docs](./rules/pages.md) | diff --git a/skills/objectstack-ui/evals/README.md b/skills/objectstack-ui/evals/README.md index b371fc98caa..fd31ba36d71 100644 --- a/skills/objectstack-ui/evals/README.md +++ b/skills/objectstack-ui/evals/README.md @@ -15,8 +15,8 @@ view / page / dashboard / report metadata. put first, and the attachments tab removed, by the parent's `relatedLists` naming every tab it keeps (no page file); a field placed in its group's own `fields`; a child table placed between field sections by a group's - `relatedList`; `navigation: { mode: 'page' }` on the list view with the - reader's own open choice left out of metadata; and `placedActions: true` + `relatedList`; an object's list opening a record one way, with the + deprecated `navigation.mode` left unauthored; and `placedActions: true` on a full page's `page:header` so packaged header actions draw without an id list. - `report-period-export.json` — a non-`joined` report's `dateRange` (one diff --git a/skills/objectstack-ui/evals/record-page.json b/skills/objectstack-ui/evals/record-page.json index 174eaa750db..283b6eaa294 100644 --- a/skills/objectstack-ui/evals/record-page.json +++ b/skills/objectstack-ui/evals/record-page.json @@ -25,14 +25,15 @@ { "id": 2, "prompt": "Contracts should open as a full page, not the side drawer. Reps also keep asking for records to open beside the list — add that to the contract object too.", - "expected_output": "One declaration: `navigation: { mode: 'page' }` on the contract list view. A pane beside the list is no longer offered: the split pane is retired. How a record opens is each reader's own choice in the list's Display menu (Open records: drawer, the default, or full page), kept in the browser and offered for drawer-mode objects only, so nothing is authored for it; `split`, `modal` and `popover` were removed in @objectstack/spec 18.3.0 and are refused.", + "expected_output": "Nothing to author. On an object's list the record's name opens the full page and the hover icon beside it opens the drawer over the list, for every reader. `navigation.mode` is deprecated there: `page` and `drawer` still parse and change nothing, so the contract list view declares neither. A pane beside the list is not offered: `split`, `modal` and `popover` were removed in @objectstack/spec 18.3.0 and are refused.", "files": [], "assertions": { "must_contain": [ - "navigation: { mode: 'page' }", - "Display menu" + "icon" ], "must_not_contain": [ + "mode: 'page' },", + "mode: 'page',", "mode: 'split'", "mode: 'modal'", "mode: 'popover'", diff --git a/skills/objectstack-ui/rules/navigation.md b/skills/objectstack-ui/rules/navigation.md index d5bcf7257c5..328f4d8cd56 100644 --- a/skills/objectstack-ui/rules/navigation.md +++ b/skills/objectstack-ui/rules/navigation.md @@ -167,8 +167,8 @@ at runtime from the client viewport, because an author (especially an AI) cannot know the client's screen. **Write the data (fields, `fieldGroups`); let the platform lay it out.** -- **Surface.** A clicked record opens in the **drawer**, which expands to the full - page; `page` only by declaration ([Record Page](./record-page.md) §5–6). Create / +- **Surface.** On an object's list the record's name opens the **page**, the + hover icon beside it the **drawer** ([Record Page](./record-page.md) §5–6). Create / edit opens in a **modal**, or the full-page route when the object declares `editMode: 'page'`. - **Field width.** **Omit it** (`auto` sizes by widget type × current columns — textarea / rich-text / file take the row). Both keys are valid: `colSpan` diff --git a/skills/objectstack-ui/rules/record-page.md b/skills/objectstack-ui/rules/record-page.md index ff2afcb3485..5cba44f3975 100644 --- a/skills/objectstack-ui/rules/record-page.md +++ b/skills/objectstack-ui/rules/record-page.md @@ -40,15 +40,15 @@ A phone and the drawer draw the standard page (steps 1–3); no key keeps a full there, only a page named in the URL (a print page) draws everywhere. The standard page draws no `record_section` action: one that must show there also lists `record_more`. -**5 · The drawer, unless the object declares `page`.** A clicked row opens the -record in the drawer (always the standard page), which expands to the full page; -`navigation: { mode: 'page' }` on the object's list view opens it as the full page; +**5 · On an object's list the name opens the page, its hover icon the drawer.** +`navigation.mode` is deprecated there: `drawer`, `page`, `new_window` change +nothing, so omit it; `none` still means rows open nothing (prefer +`preventNavigation: true`); a page block's `navigation` honours every value; `modal` / `split` / `popover` are refused with their fix. A phone always pages. **6 · The reader's own choices are not metadata.** ⛔ Never author these: the -Display menu's **Open records**, the -tabs' order and hidden set (per user × object), the details column's dragged width, -the drawer's dragged width and ⤢. On `navigation` only the `size` +tabs' order and hidden set (per user × object), the details column's and the +drawer's dragged widths. On `navigation` only the `size` bucket (`sm`…`full`) nudges the drawer's starting width.