Skip to content

Commit 3406b52

Browse files
committed
docs(cli, docs, qa): teach the report index nav entry; drop the injected "All reports" row from docs and the QA checklist (#27525)
- `os explain app` names the bare `report` item as the report index target. - content/docs/ui/apps.mdx and reports.mdx document `{ type: 'report' }` with no `reportName`, and say the console draws no index entry of its own. - platform-core.nav-surfaces-render (r8) and builtin-apps-nav-render (r10): the console-added destination the walks named is gone; the index is now a served nav entry. - @objectstack/cli patch changeset. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WGufzhEW5k2a4Vd5KSupfu
1 parent dd0bd48 commit 3406b52

5 files changed

Lines changed: 51 additions & 8 deletions

File tree

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
---
2+
'@objectstack/cli': patch
3+
---
4+
5+
docs(cli): `os explain app` says a `report` navigation item may omit `reportName` to open the app's report index
6+
7+
Clause-②: no
8+
Metadata-protocol: none
9+
10+
The `navigation` row of `os explain app` now ends its `report -> reportName` target with "(omit it on a report item to open the app's report index)", matching the widening `@objectstack/spec` ships in this release. Only the help text changes; the command's behaviour and output shape are the same.

‎content/docs/ui/apps.mdx‎

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,21 @@ Links to a report — a `report` metadata item, named by `reportName`:
170170
{ id: 'nav_pipeline', type: 'report', label: 'Pipeline Report', reportName: 'sales_pipeline', icon: 'file-bar-chart' }
171171
```
172172

173+
Leave `reportName` out and the entry opens the app's **report index** instead
174+
(`/apps/<app>/reports`): one page listing the reports the app ships that the
175+
member may open, each linking to its own report. The console draws no index
176+
entry of its own, so an app that wants one declares it, once, wherever it
177+
belongs in the menu:
178+
179+
```typescript
180+
{ id: 'nav_reports', type: 'report', icon: 'bar-chart-3' }
181+
```
182+
183+
With no `label`, the entry shows the console's own name for the index
184+
("All reports"). The ⌘K palette finds every report the member may open from the
185+
reports the app ships, so an app does not need one entry per report to make
186+
them searchable.
187+
173188
### Action Navigation
174189

175190
Runs an action instead of navigating to a surface. The reference lives in a
@@ -290,7 +305,8 @@ labelled view, else the object's or dashboard's label, else the target's machine
290305
name. A renamed object, view or dashboard therefore shows its new name on the next
291306
load with no navigation edit. Other entries fall back to their target's name
292307
(`pageName`, `reportName`, the `url`) and a group to its `id`, so give those a
293-
`label`. A `label` you write renders verbatim; never write an empty one, omit the
308+
`label`. A report index entry (a `report` entry with no `reportName`) shows the
309+
console's own name for the index. A `label` you write renders verbatim; never write an empty one, omit the
294310
key instead.
295311

296312
## Designing the navigation

‎content/docs/ui/reports.mdx‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -300,6 +300,11 @@ stack does not define fails validation with `App '<app>' navigation references r
300300
no reports at all, where the target may come from another package.) The entry resolves to
301301
`/report/<reportName>` in the console.
302302

303+
A `report` entry **without** `reportName` opens the app's report index
304+
(`/apps/<app>/reports`), which lists every report the app ships that the member may
305+
open. The console adds no index entry by itself: declare `{ id: 'nav_reports', type:
306+
'report' }` where the menu should carry it.
307+
303308
## Permissions and protection
304309

305310
The report schema carries exactly **one** access-shaped block, and it is not about

‎docs/qa/platform-checklist/areas/platform-core.json‎

Lines changed: 18 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,7 @@
304304
"title": "Every showcase nav surface renders without page errors, and failures surface the error boundary — never a blank page",
305305
"since": "v15",
306306
"status": "active",
307-
"revision": 7,
307+
"revision": 8,
308308
"priority": "P0",
309309
"surface": "browser",
310310
"personas": ["seeded admin (admin@objectos.ai / admin123)"],
@@ -317,7 +317,7 @@
317317
"steps": [
318318
"run the pinned suite: pnpm -C examples/app-showcase test:smoke e2e/showcase-smoke.spec.ts (the SURFACES array in e2e/showcase-smoke.spec.ts — all 49 showcase_app nav destinations at revision 5: pages, object lists, the three filter slices, the tabular view, dashboards, reports, the view-gallery pages). On a shared box pass SMOKE_API_URL=http://localhost:<free port>: the config signs in, drives every page and boots `serve --dev -p <that port>` from that one URL, and reuses whatever already answers it — on the default port 3000 that can be somebody else's server. Where the browser cache holds a different chromium build than @playwright/test resolves (RUNNER.md Environment facts), pass OS_TEST_CHROMIUM_EXECUTABLE_PATH=/opt/pw-browsers/chromium. Name the spec: the config's testDir is ./e2e (examples/app-showcase/playwright.config.ts), so a bare `test:smoke` also collects bulk-capability-gate.spec.ts and detail-shapes.spec.ts beside the pin (QA run #25812), and their results are not this item's",
319319
"GET /api/v1/meta/app?id=showcase_app and extract every nav destination from the response (?id= matches the app NAME; the package-id spelling returns an empty items array and would yield zero destinations)",
320-
"diff the served nav destinations against the SURFACES array; hand-walk any destination the suite does not cover (screenshot first, then DOM). Then hand-walk the destinations the console draws on its own, which are on NEITHER side of that diff: today the sidebar's static 'All reports' entry (…/reports, data-testid sidebar-report-index; ui/packages/app-shell/src/layout/UnifiedSidebar.tsx, objectui#13020), absent from meta/app and from SURFACES (QA run #25812 walked it as the 50th surface)",
320+
"diff the served nav destinations against the SURFACES array; hand-walk any destination the suite does not cover (screenshot first, then DOM). The console draws no nav destination of its own: the report index (…/reports) renders only where an app's navigation declares a `report` entry with no `reportName` (showcase: nav_report_index in the Reports group), so it is served in meta/app and falls inside that diff like any other entry. #27525 retired the sidebar's injected 'All reports' row (objectui#13020) that QA run #25812 walked as the 50th surface",
321321
"on each hand-walked surface: wait for render, screenshot, then check for pageerror / empty <main> / placeholder leaks ('no actions configured')",
322322
"chart surfaces (the chart:true entries in SURFACES — Delivery Operations, Chart Gallery, Command Center, Revenue Pulse, Hours by Status (Chart)): the suite now POLLS boundingBox against a bounded deadline (SURFACE_BUDGET_MS in the spec) instead of reading it once after a fixed wait, so a chart red here is a real finding and not the measurement window — #7569 measured the difference: 3 fresh loads each drew 5 real charts, and polling every 400 ms returned null ONLY at t = 1.5 s, the old fixed measurement instant and exactly the recharts ResponsiveContainer initial-layout window, then non-null on all 19 later samples. Read WHICH assertion failed: 'no chart SVG laid out' means the box stayed null for the whole budget; a width/height failure means the chart laid out but collapsed (#2616 D). If you hand-walk a chart surface outside the suite, poll the same way — never sleep-then-read-once",
323323
"probe the failure path: navigate to a nonexistent route under the app (/_console/apps/com.example.showcase/object_that_does_not_exist); screenshot what renders",
@@ -331,9 +331,9 @@
331331
"evidence": "test run output + the failing assertion's message for any chart red"
332332
},
333333
{
334-
"clause": "the smoke's coverage is CURRENT: every nav destination served in meta/app is either in the SURFACES array or hand-walked this run, and every destination the console adds on its own (steps[2]: the 'All reports' entry) is hand-walked — no surface silently outside the net",
334+
"clause": "the smoke's coverage is CURRENT: every nav destination served in meta/app is either in the SURFACES array or hand-walked this run — no surface silently outside the net",
335335
"oracle": "api",
336-
"verify": "diff of served nav destinations vs SURFACES + the hand-walk records for the remainder and for the console-added destinations. The run computes that diff itself: nothing in automated.ref asserts it — showcase-smoke.spec.ts drives the SURFACES it lists and never reads meta/app (QA run #25815) — so this clause has no automation and is never scored off the suite",
336+
"verify": "diff of served nav destinations vs SURFACES + the hand-walk records for the remainder. The run computes that diff itself: nothing in automated.ref asserts it — showcase-smoke.spec.ts drives the SURFACES it lists and never reads meta/app (QA run #25815) — so this clause has no automation and is never scored off the suite",
337337
"evidence": "the diff + per-surface screenshots"
338338
},
339339
{
@@ -386,6 +386,12 @@
386386
"date": "2026-10-26",
387387
"change": "steps[0], steps[2], acceptance[0].verify, acceptance[1] (clause, verify) and automated.ref corrected — three checklist-accuracy findings, one of QA run #25812 (priority:P0 at 6679644a, console b41ed7f68956) and two of QA run #25815 (release-18.2.0-tier1 at 6679644a); wave anchor #25807, card #25845. (1) #25812: the console-added 'All reports' sidebar entry (UnifiedSidebar's static report index, objectui#13020) is in neither meta/app nor SURFACES, so the served-vs-SURFACES diff cannot see it — steps[2] and acceptance[1] now hand-walk it; and step 1's bare `test:smoke` collects every spec under testDir ./e2e, two besides the pin — steps[0] names the spec. (2) #25815: acceptance[0] and negative[0], [1], [3] score only from a suite run against a live showcase with a built Console; otherwise not-run (browser). (3) #25815: nothing in the ref computes the served-nav vs SURFACES diff, so acceptance[1] has no automation; automated.ref now names the clauses the spec scores. Re-read at 9753d163",
388388
"ref": "#25812"
389+
},
390+
{
391+
"revision": 8,
392+
"date": "2026-10-29",
393+
"change": "steps[2], acceptance[1] (clause, verify) corrected: #27525 stops the console injecting the 'All reports' sidebar row into every app but Studio. The report index is now a navigation entry an app declares (a `report` item with no `reportName`); showcase declares nav_report_index, so it is served in meta/app and the served-vs-SURFACES diff sees it. The hand-walk of console-added destinations is dropped because there are none. Re-read at UnifiedSidebar.tsx and examples/app-showcase/src/ui/apps/index.ts on the #27525 branch",
394+
"ref": "#27525"
389395
}
390396
]
391397
},
@@ -572,7 +578,7 @@
572578
"title": "The built-in apps a stock boot REGISTERS (Setup / Account) render every merged-nav destination; app-level and entry-level gates are enforced, not errored — and Studio's deliberate absence is asserted, never hunted",
573579
"since": "v15",
574580
"status": "active",
575-
"revision": 9,
581+
"revision": 10,
576582
"priority": "P0",
577583
"surface": "browser",
578584
"personas": [
@@ -601,7 +607,7 @@
601607
"confirm the gated entries resolve to ABSENT-not-erroring for the admin: nav_organizations (requiresService org-scoping) is absent in single-org mode; nav_jwks Signing Keys is ABSENT for EVERY persona, admin included — the entry was removed in #7544 because sys_jwks declares apiEnabled:false, so its list answers OBJECT_API_DISABLED (404) for all callers and no permission gate could prune it; SSO Providers is absent unless OS_SSO_ENABLED (knownGap)",
602608
"sign in as the plain member: attempt to open Setup (app name setup) — capture the app-level refusal (App.requiredPermissions setup.access); open Account (declares no requiredPermissions) — capture it opening. Studio is not part of this comparison: it is absent for EVERY persona including the admin, so a member failing to reach it proves nothing about the gate (the same reasoning #7544 applied to nav_jwks)",
603609
"as the member, GET /api/v1/meta/app for a reachable app and confirm every manage_platform_settings-gated entry (API Keys, the manage_platform_settings settings URLs) is ABSENT from the member's payload — the server prunes, the client does not merely hide. JWKS is deliberately NOT in this list any more: it is absent for admins too, so finding it absent for a member proves nothing about the gate (#7544)",
604-
"cross-check served-vs-rendered: diff each app's meta/app nav destinations against what actually rendered so nothing is silently outside the walk. The console adds one destination meta/app does not carry, to every app but Studio: the 'All reports' sidebar entry (…/reports, ui/packages/app-shell/src/layout/UnifiedSidebar.tsx); walk it in each app and do not read it as an unserved entry"
610+
"cross-check served-vs-rendered: diff each app's meta/app nav destinations against what actually rendered so nothing is silently outside the walk. The console adds no destination meta/app does not carry: the report index (…/reports) renders only where an app's navigation declares a `report` entry with no `reportName`, and no built-in app declares one (#27525 retired the injected 'All reports' row), so an 'All reports' row in Setup or Account is a finding, not a console-added entry"
605611
],
606612
"acceptance": [
607613
{
@@ -706,6 +712,12 @@
706712
"date": "2026-10-28",
707713
"change": "fixtures.knownGaps[2] and steps[9] corrected. Checklist-accuracy finding of the 18.2.0 wave 2 (QA run #26481, priority:P0, at 756220c4; wave anchor #25807, slice B): the marketplace page no longer reads 'HTTP 502 · fetch failed' but 'Failed to load marketplace — The marketplace catalog could not be reached.' (the wire is still 502 MARKETPLACE_PROXY_FAILED), and the console-added 'All reports' sidebar entry was walked in both apps though the item never named it. Re-read at base fd246c22: MarketplacePage.tsx (unreachable class for MARKETPLACE_PROXY_FAILED), ui/packages/i18n/src/locales/en.ts (marketplace load failed/unreachable), UnifiedSidebar.tsx (the static report index, not in Studio). No clause changed",
708714
"ref": "#25807"
715+
},
716+
{
717+
"revision": 10,
718+
"date": "2026-10-29",
719+
"change": "steps[9] corrected: #27525 stops the console injecting the 'All reports' sidebar row, so Setup and Account, which declare no report index entry, no longer render one; the step now reads such a row as a finding instead of a console-added destination. No clause changed",
720+
"ref": "#27525"
709721
}
710722
]
711723
},

‎packages/cli/src/commands/explain.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ export const SCHEMAS: Record<string, SchemaInfo> = {
223223
],
224224
optional: [
225225
{ name: 'description', type: 'string', description: 'App description' },
226-
{ name: 'navigation', type: 'NavItem[]', description: 'Menu tree. Every item needs `id` (snake_case) + `label` + a discriminant `type`, plus that type\'s own target key: object -> `objectName`, dashboard -> `dashboardName`, page -> `pageName`, url -> `url`, report -> `reportName`.' },
226+
{ name: 'navigation', type: 'NavItem[]', description: 'Menu tree. Every item needs `id` (snake_case) + `label` + a discriminant `type`, plus that type\'s own target key: object -> `objectName`, dashboard -> `dashboardName`, page -> `pageName`, url -> `url`, report -> `reportName` (omit it on a report item to open the app\'s report index).' },
227227
// `theme` here described a key that is only an alias of `branding`; the
228228
// `themes` metadata surface itself was retired by commit 35ad101bc (ADR-0049) —
229229
// `app.branding` is the one colour surface. `logo` and `defaultRoute`

0 commit comments

Comments
 (0)