You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 906bbca
Browse filesBrowse the repository at this point in the historyBrowse files
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
`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]`
Copy file name to clipboardExpand all lines: content/docs/ui/actions.mdx
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -663,7 +663,7 @@ and [Connect an MCP Client](/docs/ai/connect-mcp).
663
663
664
664
| Symptom | Cause → fix |
665
665
|:---|:---|
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 |
667
667
| Click → `Action 'x' … not found` | `target`-style script with no registered handler — add the `registerAction` call in `onEnable` (Path B above) |
668
668
| 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 |
669
669
| Appears in UI, missing from `list_actions` (MCP) | `ai.exposed` not `true`, `ai.description` under 40 characters, or the type isn't headless-callable |
|`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 |
0 commit comments