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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user