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
8 changes: 8 additions & 0 deletions .changeset/36179-ui-record-page-full-desktop-only.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
'@objectstack/skills': patch
---

Clause-②: no
Metadata-protocol: none

`objectstack-ui` record-page rule: an authored `kind: 'full'` record page is drawn on the desktop full page only. A phone and the side drawer draw the standard page (the object's declarations plus any slotted page), and no key keeps a full page there; a page named in the URL, such as a print page, still draws everywhere. The standard page draws no `record_section` action, so an action that must show on a phone or in the drawer also lists `record_more` in its `locations`. The drawer step now says the drawer always shows the standard page.
35 changes: 18 additions & 17 deletions skills/objectstack-ui/rules/record-page.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,37 +20,38 @@ table in the details after the open field sections (the default for a
`master_detail`); `true` (a `lookup`'s default) is a panel in the right
column; `false` leaves the child off the page. `relatedListTitle` /
`relatedListColumns` (child field names) replace the derived title / columns;
`relatedListFilter` (Query-DSL, `{ status: { $ne: 'done' } }`) is AND-composed
`relatedListFilter` (Query-DSL) is AND-composed
with the parent condition, and the panel's count honours it. Rows follow the
child's default list view `sort` (`isDefault`, else the first declared); the
parent's `relatedLists` orders tables and panels alike. "Put the tasks first on
the lead page" is `relatedLists: ['task']` on `lead` — no page file.

**3 · A slotted page overrides one slot.** `kind: 'slotted'` replaces only the
slots it names — `header`, `actions`, `alerts`, `highlights`, `details`,
`discussion` — each whole (no deep merge); the synthesizer fills the rest. There
`discussion` — each whole; the synthesizer fills the rest. There
is no `tabs` slot: `slots.tabs`, `slots.related` and `slots.relatedLists` are
refused by name. `isDefault: true` makes it the object's default record page.

**4 · `kind: 'full'` is the escape hatch.** A record page that looks nothing like
the default — a filtered split (Open vs Closed), a chart tab, a bespoke strip — is
`kind: 'full'`: `regions` drawn as authored ([Pages](./pages.md)), reached for only
when steps 1–3 cannot express the page.
**4 · `kind: 'full'` is the escape hatch, on the desktop full page.** A record page
that looks nothing like the default — a filtered split (Open vs Closed), a chart tab, a
bespoke strip — is `kind: 'full'`: `regions` drawn as authored ([Pages](./pages.md)).
A phone and the drawer draw the standard page (steps 1–3); no key keeps a full page
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, which expands to the full page;
`navigation: { mode: 'page' }` on the object's list view is for an object whose
record should open as the full page (`new_window`, `none` are the other members).
`modal` / `split` / `popover` were removed in @objectstack/spec 18.3.0 (ADR-0087
D2) and are refused with their fix. Field count never decides; a phone always pages.
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
(`new_window`, `none` are the other members). `modal` / `split` / `popover` were
removed in @objectstack/spec 18.3.0 (ADR-0087 D2) and are refused with their fix.
Field count never decides; a phone always pages.

**6 · The reader's own choices are not metadata.** ⛔ Never author these: the
Display menu's **Open records** (drawer — the default — or full page, for a
drawer-mode object; the split beside the list is retired), the ⊟ right-column
switch (`⌘⇧,`, per object), the related panels' order and hidden set (⠿ drag,
⌥↑ / ⌥↓, per user × object), the drawer's dragged width and ⤢. They live in the console's
preference store, never in the object; on `navigation` only the `size` bucket
(`sm`…`full`) nudges the drawer's starting width (`width` / `drawerWidth` deprecated).
Display menu's **Open records** (drawer or full page, for a drawer-mode object), the
⊟ right-column switch (per object), the related panels' order and hidden set (per
user × object), the drawer's dragged width and ⤢. On `navigation` only the `size`
bucket (`sm`…`full`) nudges the drawer's starting width (`width` / `drawerWidth`
deprecated).

<!-- os:check -->
```typescript
Expand Down
Loading