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 01ed76a
Browse filesBrowse the repository at this point in the historyBrowse files
feat(console): draw the report index only where the app's navigation declares it
The sidebar stops injecting its All reports row; a report nav entry with no
reportName is the app's report index, routed to /reports and named by the
console. The Studio shows that entry as the report index and keeps it on save.
The showcase and todo examples, which ship reports, declare the entry.
Claude-Session: https://claude.ai/code/session_01WGufzhEW5k2a4Vd5KSupfu
Co-Authored-By: Claude <noreply@anthropic.com>
feat(console): the sidebar draws the report index only where the app's navigation declares it
6
+
7
+
Clause-②: yes (widening)
8
+
Metadata-protocol: added
9
+
10
+
The console no longer injects an "All reports" row at the foot of every app's sidebar. The app's report index (`/apps/APP/reports`) is an entry its navigation declares, a `report` item with no `reportName`, drawn and highlighted like any other entry; an app whose navigation declares none shows no index entry. With no `label`, the entry shows the console's own name for the index ("All reports"). The ⌘K palette offers the declared entry, and keeps finding every report the member may open from the reports the app ships, entry or not.
11
+
12
+
In the Studio, a `report` entry with no report chosen reads as the report index (「报表索引」 / "Report index") instead of an unbound entry, and a save keeps it.
13
+
14
+
**Migration.** An app that relied on the injected row adds one entry to its navigation where the index belongs: `{ id: 'nav_reports', type: 'report' }`.
feat(i18n): the Studio's navigation inspector names the report index face
6
+
7
+
Clause-②: yes (widening)
8
+
Metadata-protocol: added
9
+
10
+
New `studio` strings, en and zh: `engine.inspector.appNav.reportIndex` (the empty face of a `report` entry's report picker) and `engine.inspector.appNav.reportIndexHint`.
feat(layout): a `report` navigation entry with no `reportName` resolves to the app's report index
6
+
7
+
Clause-②: yes (widening)
8
+
Metadata-protocol: added
9
+
10
+
`resolveHref` answers `BASE/reports` for a `report` entry that names no report (it answered `#`), so the entry links, and is the active row, on the report index route. A label-less one asks the host's `NavTargetLabelResolver` for the new `{ kind: 'reportIndex' }` target, else shows its `id`.
feat(spec): a `report` navigation item without `reportName` opens the app's report index
6
+
7
+
Clause-②: yes (widening)
8
+
Metadata-protocol: added
9
+
10
+
`ReportNavItemSchema.reportName` is optional. `{ type: 'report', reportName }` opens that report, as before; `{ type: 'report' }` with no `reportName` opens the app's report index (`/apps/APP/reports`), the list of the reports the app ships that the member may open. Before, an item with no `reportName` was refused (`navigation.N.reportName: expected string, received undefined`). Nothing that parsed before parses differently, and the stack's cross-check of a named `reportName` against `reports` is unchanged.
Copy file name to clipboardExpand all lines: content/docs/references/ui/app.mdx
+5-5Lines changed: 5 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -194,7 +194,7 @@ const result = ActionNavItemSchema.parse(data);
194
194
|**requiresObject**|`string`| optional | Hide/disable this entry unless the named object is registered in the runtime |
195
195
|**requiresService**|`string`| optional | Hide/disable this entry unless the named kernel service is registered |
196
196
|**type**|`'report'`| ✅ ||
197
-
|**reportName**|`string`|✅| Target report name |
197
+
|**reportName**|`string`|optional| Target report name. Omit it and the entry opens the app's report index (the reports the app ships that the member may open) instead of one report.|
@@ -588,7 +588,7 @@ Documentation entry on the app menu (ADR-0046). Targets a `book` and/or a `doc`
588
588
|**requiresObject**|`string`| optional | Hide/disable this entry unless the named object is registered in the runtime |
589
589
|**requiresService**|`string`| optional | Hide/disable this entry unless the named kernel service is registered |
590
590
|**type**|`'report'`| ✅ ||
591
-
|**reportName**|`string`|✅| Target report name |
591
+
|**reportName**|`string`|optional| Target report name. Omit it and the entry opens the app's report index (the reports the app ships that the member may open) instead of one report.|
@@ -787,7 +787,7 @@ A navigation contribution: a package injecting nav items into an app it does not
787
787
|**requiresObject**|`string`| optional | Hide/disable this entry unless the named object is registered in the runtime |
788
788
|**requiresService**|`string`| optional | Hide/disable this entry unless the named kernel service is registered |
789
789
|**type**|`'report'`| ✅ ||
790
-
|**reportName**|`string`|✅| Target report name |
790
+
|**reportName**|`string`|optional| Target report name. Omit it and the entry opens the app's report index (the reports the app ships that the member may open) instead of one report.|
@@ -1039,7 +1039,7 @@ This schema accepts one of the following structures:
1039
1039
|**requiresObject**|`string`| optional | Hide/disable this entry unless the named object is registered in the runtime |
1040
1040
|**requiresService**|`string`| optional | Hide/disable this entry unless the named kernel service is registered |
1041
1041
|**type**|`'report'`| ✅ ||
1042
-
|**reportName**|`string`|✅| Target report name |
1042
+
|**reportName**|`string`|optional| Target report name. Omit it and the entry opens the app's report index (the reports the app ships that the member may open) instead of one report.|
@@ -1294,7 +1294,7 @@ Documentation entry on the app menu (ADR-0046). Targets a `book` and/or a `doc`
1294
1294
|**requiresObject**|`string`| optional | Hide/disable this entry unless the named object is registered in the runtime |
1295
1295
|**requiresService**|`string`| optional | Hide/disable this entry unless the named kernel service is registered |
1296
1296
|**type**|`'report'`| ✅ ||
1297
-
|**reportName**|`string`|✅| Target report name |
1297
+
|**reportName**|`string`|optional| Target report name. Omit it and the entry opens the app's report index (the reports the app ships that the member may open) instead of one report.|
0 commit comments