Commit e854bc8
committed
docs(ui): state what happens when a nav contribution names an anchor that is not there
The Setup app page explains the shell/anchor mechanism — the shell publishes
empty group anchors and capability plugins contribute into them — but stopped
short of the failure the anchor id makes possible. A contributor cannot see the
shell's ids at authoring time, so a typo is undetectable from its own source,
and the platform relocates rather than refusing: the menu renders, a smoke test
passes, and the entry has moved one level up.
Documents the rule and the diagnostic that now reports it: the `warn`-level
`nav_contribution_group_missing`, the per-app `getAppNavDiagnostics` reader, and
the `os build --json` `navigationGroupDiagnostics` key — following the
`bodyExtractionWarnings` precedent, which documents a build-only JSON key on the
page that owns the behaviour rather than in a CLI schema dump.
No hand-written page was falsified by the code change; this fills a gap rather
than correcting an error. The `packages/spec` describe() for the key has the
same gap and is filed separately — that string is embedded in ~14 generated
artifacts, so it belongs in its own PR.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01UHvF5hyiZjnCyExFnfQB8m1 parent 2ab7f86 commit e854bc8
1 file changed
Lines changed: 29 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
20 | 49 | | |
21 | 50 | | |
22 | 51 | | |
| |||
0 commit comments