Skip to content

fix(ui): support hierarchical navigation in sidebar#16

Merged
kato83 merged 1 commit into
mainfrom
fix/sidebar-hierarchy
Jul 24, 2026
Merged

fix(ui): support hierarchical navigation in sidebar#16
kato83 merged 1 commit into
mainfrom
fix/sidebar-hierarchy

Conversation

@kato83

@kato83 kato83 commented Jul 24, 2026

Copy link
Copy Markdown
Owner

Summary

Fix the sidebar navigation to properly display parent-child hierarchy for the Ingest section.

Problem

When navigating to /ingest/jobs, the /ingest menu item was also highlighted due to routerLinkActive's default partial URL matching behavior. This made it look like both items were active and the hierarchy was unclear.

Changes

  • Added optional children property to NavItem interface
  • Rendered child items with visual indentation (pl-9) under parent items
  • Applied routerLinkActiveOptions: { exact: true } to parent and child items to prevent partial matching
  • Moved "Ingest Jobs" as a child of the "Ingest" navigation item

Verification

  • pnpm exec ng build
  • Visual confirmation in dev server ✅ (child items properly indented, only the active item highlighted)

Add children support to NavItem interface and render parent-child
menu structure in the sidebar template.

- Add optional 'children' property to NavItem
- Render child items with indentation (pl-9) under parent items
- Set routerLinkActiveOptions { exact: true } for parent and child
  items with children to prevent partial URL matching
- Move 'Ingest Jobs' as a child of 'Ingest' navigation item

This fixes the issue where navigating to /ingest/jobs would also
highlight the /ingest parent menu item, making the hierarchy unclear.
@kato83
kato83 merged commit ccb4802 into main Jul 24, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant