Skip to content

fix(AppShell): invalid menus no target nor submenu are now filtered out#5142

Merged
loonatic merged 1 commit intomasterfrom
fix/menus-without-target
Apr 15, 2026
Merged

fix(AppShell): invalid menus no target nor submenu are now filtered out#5142
loonatic merged 1 commit intomasterfrom
fix/menus-without-target

Conversation

@loonatic
Copy link
Copy Markdown
Contributor

No description provided.

Copilot AI review requested due to automatic review settings April 14, 2026 17:26
@loonatic loonatic requested a review from a team as a code owner April 14, 2026 17:26
@github-actions github-actions Bot temporarily deployed to uikit-docs/pr-5142 April 14, 2026 17:30 Destroyed
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Filters out invalid App Shell menu items at runtime so they don’t render (or cause downstream UI issues) when a menu entry has neither a navigation target nor submenus.

Changes:

  • Update filterMenus to drop leaf menu entries that have no target.
  • Add unit tests covering invalid leaf menus and submenu-driven disappearance scenarios.
  • Extend the default app config with sample menu entries to exercise/illustrate the behavior.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.

File Description
packages/app-shell-ui/src/utils/filterModel.ts Skips leaf menu items that lack both submenus and target.
packages/app-shell-ui/src/utils/filterModel.test.ts Adds coverage for invalid menu filtering and parent/submenu condition interactions.
apps/default-app/app-shell.config.ts Adds example menu entries, including a deliberately invalid one (no target/submenus).

@loonatic loonatic merged commit 75ddd11 into master Apr 15, 2026
17 checks passed
@loonatic loonatic deleted the fix/menus-without-target branch April 15, 2026 10:36
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.

5 participants