Skip to content

Commit 906bbca

Browse files
committed
docs(ui): retire the Console, Studio and Setup app pages; name the section User Interface
The three pages described products rather than metadata. Their author-facing facts move to the page that owns each behavior: - apps: navigationContributions, the missing-anchor diagnostic and the Setup app's group anchors - views: how a list opens a record (navigation.mode, ?recordId, the drawer stack), per-user list state never writing the view, the 403 for a gated view - deployment/validating-metadata: the load-time _diagnostics envelope, the /api/v1/meta/diagnostics sweep, and what a predicate that cannot be evaluated does at runtime - actions: why a placed action appears nowhere - automation/approvals: the record's Approvals tab The product tour stays in build-without-code. The old URLs answer 308s (/docs/ui/setup-app to /docs/ui/apps, console and studio to build-without-code), and /docs/concepts/setup-app is re-pointed so no chain forms. The audit's hand-written list drops the three pages. Co-authored-by: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01L9qibwMyAnTNeas3ANYhyi
1 parent f4815b0 commit 906bbca

14 files changed

Lines changed: 184 additions & 584 deletions

File tree

‎apps/docs/redirects.mjs‎

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,13 @@ export const docsRedirects = [
6060
['/docs/guides/metadata/dashboard', '/docs/ui/dashboards'],
6161
['/docs/guides/public-forms', '/docs/ui/forms'],
6262
['/docs/guides/metadata/doc', '/docs/ui/doc-pages'],
63-
['/docs/concepts/setup-app', '/docs/ui/setup-app'],
63+
['/docs/concepts/setup-app', '/docs/ui/apps'],
64+
// 2026-10-28: the Setup, Console and Studio pages were retired. Their
65+
// author-facing facts moved into apps, views, actions, approvals and
66+
// validating-metadata; the product tour is build-without-code.
67+
['/docs/ui/setup-app', '/docs/ui/apps'],
68+
['/docs/ui/console', '/docs/build-without-code'],
69+
['/docs/ui/studio', '/docs/build-without-code'],
6470
['/docs/guides/solutions/create-vs-edit-form', '/docs/ui/create-vs-edit-form'],
6571
['/docs/guides/solutions/field-grouping-and-order', '/docs/ui/field-grouping-and-order'],
6672
// The page was renamed role-based -> audience-based (the direction

‎content/docs/automation/approvals.mdx‎

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -758,6 +758,15 @@ reassign user-picker) is collected by the generic action dialog with **no
758758
per-action UI code**. New decision capabilities ship as backend metadata, not
759759
hand-written buttons.
760760

761+
On the record itself, a record with approval requests grows an **Approvals** tab
762+
beside Details and Related, with a request-count badge: the current step, decision
763+
progress, the approvers it is waiting on, the merged decision timeline and a remind
764+
button for the submitter. Every viewer who can read the record sees it, not only
765+
approvers. A request opens on its record page through the approvals routes rather
766+
than the data API, so an approver who is not an administrator sees the whole page,
767+
decision actions included, although the data API stays closed to them on the
768+
approval objects.
769+
761770
Each action's visibility is gated by a **server-computed per-viewer block** the
762771
service attaches to every request it returns:
763772

‎content/docs/deployment/cloud-connection.mdx‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -252,6 +252,6 @@ to cloud-hosted runtimes; a self-hosted server leaves both unset. A set
252252
connection platform-managed: no Cloud Connection page, and no connect or
253253
disconnect.
254254

255-
The Setup app itself, and how plugins add entries to it, is described in
256-
[Setup app](/docs/ui/setup-app). Running the server is covered in
255+
How plugins add entries to the Setup app is described in
256+
[Apps](/docs/ui/apps#contributing-navigation-to-another-app). Running the server is covered in
257257
[Self-hosting](/docs/deployment/self-hosting).

‎content/docs/deployment/validating-metadata.mdx‎

Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -777,6 +777,73 @@ schema, so a schema error is `os validate`'s verdict to give — but a rule that
777777
can fail the build fails `os lint` too.
778778
</Callout>
779779

780+
## Metadata diagnostics on load
781+
782+
Every metadata item is also validated against its schema when a server loads it, and
783+
the result travels with the item as a `_diagnostics` envelope:
784+
785+
```ts
786+
interface MetadataDiagnostics {
787+
valid: boolean;
788+
errors?: Array<{ path: string; message: string; code?: string }>;
789+
warnings?: Array<{ path: string; message: string; code?: string }>;
790+
}
791+
```
792+
793+
`valid: false` means at least one error, and whatever depends on the item (rendering,
794+
queries, automation) is unsafe to use. Warnings are advisory. `path` is dot-delimited
795+
(`fields.email.type`, `columns.0.bind`). An environment overlay merges first and is
796+
validated after, so the envelope describes the effective item.
797+
798+
`GET /api/v1/meta/diagnostics` sweeps every type and item in one request:
799+
800+
| Query | Default | Effect |
801+
| :--- | :--- | :--- |
802+
| `severity` | `error` | `error` returns invalid items only; `warning` also returns warning-only items |
803+
| `type` | — | One metadata type |
804+
| `package` | — | One package |
805+
806+
The response carries `entries` (each `{ type, name, diagnostics }`), `total`,
807+
`scannedTypes`, `scannedItems` and per-type `stats`. `total === 0` is a usable CI gate
808+
against a running server; add `severity=warning` to hold warnings to the same bar.
809+
Studio shows the same envelope on the metadata directory, each type's list, each
810+
item's edit page and the governance page (`…/metadata/_diagnostics`).
811+
812+
## When a predicate cannot be evaluated at runtime
813+
814+
A predicate that gets past authoring and fails to evaluate (a misspelled root, a type
815+
error, a missing function) never fails silently. The Console warns once per distinct
816+
predicate source, in production builds too, naming the node, the key, the predicate and
817+
the engine's reason:
818+
819+
```text
820+
[ObjectUI] A visibility predicate could not be evaluated - node "record:alert" (id: "a1")
821+
visibleWhen: "nosuchroot.status == 'draft'"
822+
Reason: ... nosuchroot is not defined
823+
```
824+
825+
What the failure does depends on what the predicate guards:
826+
827+
| Predicate | On failure |
828+
| :--- | :--- |
829+
| A field's `visibleWhen`, `readonlyWhen`, `requiredWhen`; a view's `visibleOn`; an option's `visibleWhen`; list conditional formatting | **Fail open**: the rule's safe default applies, so a broken rule never hides a field. A rule that never fires while its field stays visible is the symptom, usually a bare field name where `record.<field>` was meant |
830+
| An object field group's `visibleWhen` | **Fail closed**: the whole group is hidden on the form and the record page |
831+
| A page node's `visibleWhen` / `visible` / `hidden`, and a `page:tabs` item's `visibleWhen` | **Fail closed**: the node or tab is withheld; a withheld related list is not counted in its tab badge |
832+
| A navigation item's or area's `visible` | **Fail open**: the item renders for everyone, reported under `app-shell:visible` |
833+
834+
At **submit** a broken field rule is refused, not passed. A field `visibleWhen` that
835+
cannot be evaluated refuses the submit on the client, with a message naming the field
836+
and the rule, because no server evaluates `visibleWhen`. A broken `requiredWhen` or
837+
`readonlyWhen` is refused by the server, and the form shows that refusal beside the
838+
input. A `visibleWhen` that reads `previous` cannot be evaluated on a create form, so
839+
such a form is always refused.
840+
841+
A **blank** rule (`''`, whitespace, or an envelope whose `source` is blank) is not "no
842+
rule". A blank field rule is refused when it is authored, and one already stored is
843+
refused at submit. A blank gate (`visible`, `hidden`, `disabled`, a page node's
844+
`visibleWhen`) reads as "no gate" at runtime and is reported once with the `[blank]`
845+
reason.
846+
780847
## The workflow
781848

782849
```bash

‎content/docs/permissions/record-view-auditing.mdx‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -204,8 +204,8 @@ concerns.
204204
## Reading the trail
205205

206206
`sys_audit_log` ships a **Record Views** list view — filtered to `action: read`,
207-
newest first. In the Setup app, Diagnostics › [Audit Log](/docs/ui/setup-app),
208-
the entry the plugin contributes, opens the audit browser, which offers that
207+
newest first. In the Setup app, Diagnostics › Audit Log ([contributed](/docs/ui/apps#contributing-navigation-to-another-app) by the plugin),
208+
opens the audit browser, which offers that
209209
view as a preset; its "Open as list" link opens the object list on it.
210210

211211
The object is append-only and exposes only `get` and `list` on the data API;

‎content/docs/ui/actions.mdx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -663,7 +663,7 @@ and [Connect an MCP Client](/docs/ai/connect-mcp).
663663
664664
| Symptom | Cause → fix |
665665
|:---|:---|
666-
| Button doesn't appear | `locations` doesn't include the surface; or the `visible` CEL throws (e.g. a bare, unprefixed field name) and fail-closed hides it; or the user fails `requiredPermissions` |
666+
| Button doesn't appear | `locations` doesn't include the surface (empty `locations` is right for a selection-only action that a list view's `bulkActions` places); or the `visible` CEL throws (e.g. a bare, unprefixed field name) and fail-closed hides it; or the user fails `requiredPermissions`, which hides the button at every location with no greyed-out control and no message |
667667
| Click → `Action 'x' … not found` | `target`-style script with no registered handler — add the `registerAction` call in `onEnable` (Path B above) |
668668
| REST → 400 naming the action's `type` | The type has no server dispatch (`url`/`modal`/`form`/`api`) — open its `target` in the client, or call that endpoint directly |
669669
| Appears in UI, missing from `list_actions` (MCP) | `ai.exposed` not `true`, `ai.description` under 40 characters, or the type isn't headless-callable |

‎content/docs/ui/apps.mdx‎

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -749,6 +749,62 @@ in 17.1). Both the app and `branding` are strict: a top-level `logo` or `theme`
749749
refused with a pointer to `branding`, and a misspelled key inside `branding` is
750750
refused rather than dropped.
751751

752+
## Contributing navigation to another app
753+
754+
A package can add menu entries to an app it does not own with
755+
`navigationContributions` (ADR-0029 D7). The Setup app is built this way: it ships
756+
as a shell of empty group anchors, and each capability plugin contributes the
757+
entries for the objects it owns, so the rendered menu always matches the loaded
758+
plugins. A disabled plugin contributes nothing and its slot stays empty.
759+
760+
```typescript
761+
navigationContributions: [
762+
{
763+
app: 'setup',
764+
group: 'group_integrations',
765+
priority: 100,
766+
items: [
767+
{ id: 'nav_webhooks', type: 'object', label: 'Webhooks', objectName: 'sys_webhook', requiresObject: 'sys_webhook' },
768+
],
769+
},
770+
]
771+
```
772+
773+
| Property | Type | Description |
774+
| :--- | :--- | :--- |
775+
| `app` | `string` | The target app's name, e.g. `setup` |
776+
| `group` | `string` | optional. A group nav item id in the target app; omit it to append at the app's top level |
777+
| `priority` | `number` | Merge order within the group, lower first (default `200`, the object-extender convention) |
778+
| `items` | `NavigationItem[]` | Ordinary [navigation items](#navigation-items), with the usual `requiresObject`, `requiredPermissions` and `visible` gates |
779+
780+
The runtime merges every contribution into the target app's `navigation` by group
781+
id and priority when the app is read, so registration order does not matter.
782+
783+
**A group id the target app does not declare is not refused.** The items are
784+
appended at the app's top level and a `nav_contribution_group_missing` diagnostic
785+
is raised, at `warn` by the runtime and as a warning by `os build` and
786+
`os validate` when both packages are composed into one artifact. Neither fails
787+
the build. The anchor id is the whole contract between the shell and its
788+
contributors, and a typo renders a working menu with the entry one level up, so
789+
read that warning.
790+
791+
The Setup app's anchors:
792+
793+
| Group id | Holds |
794+
| :--- | :--- |
795+
| `group_overview` | System Overview dashboard |
796+
| `group_apps` | Packages and the marketplace |
797+
| `group_people_org` | Users, organizations, business units, teams, invitations |
798+
| `group_access_control` | Positions, permission sets, sharing rules, API keys |
799+
| `group_approvals` | Approvals inbox, requests, history, delegations |
800+
| `group_configuration` | Settings, localization, authentication, email, storage, AI, feature flags, branding |
801+
| `group_diagnostics` | Sessions, notification events, audit log |
802+
| `group_integrations` | Webhooks, cloud connection |
803+
| `group_advanced` | OAuth applications |
804+
805+
Setup is for platform administration and needs `setup.access`. For
806+
project-specific administration pages, declare an app of your own.
807+
752808
## Complete Example
753809

754810
{/* os:check */}

0 commit comments

Comments
 (0)