docs(admin): document active item and breadcrumb logic for nav registration

- add note in DEV.md explaining basePath auto-deduction and breadcrumb slug convention
- update README.md to document new `basePath` param in `registerNavItem` and detail active item/breadcrumb behavior
- update navigation file listing in README.md to include new exported helpers
- implement `getNavItemBasePath` and `findActiveNavContext` in navigation.js
- use `basePath` in AdminSidebar to determine active item via longest-prefix match
- use `basePath` in AdminTop to build breadcrumb with section, item, and action labels
- expose new navigation helpers from admin index.js and registry.js
This commit is contained in:
2026-04-26 19:40:40 -04:00
parent 2d76b56deb
commit fbcaed6816
7 changed files with 192 additions and 39 deletions
+1 -1
View File
@@ -15,7 +15,7 @@
* Client components sous @zen/core/features/admin/components.
*/
export { buildNavigationSections } from './navigation.js';
export { buildNavigationSections, buildBottomNavItems, getNavItemBasePath, findActiveNavContext } from './navigation.js';
export {
registerWidget,
registerWidgetFetcher,