Skip to content

Conversation

@madsrasmussen
Copy link
Contributor

Fixes #20675

This PR registers the missing extensions to support menu expansion in the active workspace and display the breadcrumbs.

Two issues that will need to be addressed in other PRs:

Copilot AI review requested due to automatic review settings November 3, 2025 09:35
Copy link
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

This PR refactors menu manifests for various content types to use constant aliases instead of hardcoded strings, and adds menu structure and breadcrumb support for folder workspaces. The changes improve maintainability by centralizing workspace alias definitions and extend functionality to folder-type entities.

Key Changes:

  • Replaced hardcoded string literals like 'Umb.Workspace.Stylesheet' with imported constants (e.g., UMB_STYLESHEET_WORKSPACE_ALIAS)
  • Added new menu structure workspace contexts and breadcrumb footer apps for folder workspaces across multiple content types
  • Reorganized document blueprint manifests structure (renamed menu-item to menu and added constants)

Reviewed Changes

Copilot reviewed 13 out of 13 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
src/Umbraco.Web.UI.Client/src/packages/templating/stylesheets/menu/manifests.ts Replaced hardcoded workspace alias strings with constants; added folder menu structure and breadcrumb manifests
src/Umbraco.Web.UI.Client/src/packages/templating/scripts/menu/manifests.ts Replaced hardcoded workspace alias strings with constants; added folder menu structure and breadcrumb manifests
src/Umbraco.Web.UI.Client/src/packages/templating/partial-views/menu/manifests.ts Replaced hardcoded workspace alias strings with constants; added folder menu structure and breadcrumb manifests
src/Umbraco.Web.UI.Client/src/packages/media/media-types/menu/manifests.ts Replaced hardcoded workspace alias strings with constants; added folder menu structure and breadcrumb manifests
src/Umbraco.Web.UI.Client/src/packages/documents/document-types/menu/manifests.ts Replaced hardcoded workspace alias strings with constants; added folder menu structure and breadcrumb manifests
src/Umbraco.Web.UI.Client/src/packages/documents/document-blueprints/menu/manifests.ts Replaced hardcoded menu item alias with constant
src/Umbraco.Web.UI.Client/src/packages/documents/document-blueprints/menu/document-blueprint-menu-structure.context.ts New file: Added menu structure workspace context for document blueprints
src/Umbraco.Web.UI.Client/src/packages/documents/document-blueprints/menu/constants.ts New file: Exported menu item alias constant
src/Umbraco.Web.UI.Client/src/packages/documents/document-blueprints/manifests.ts Renamed menu-item import to menu
src/Umbraco.Web.UI.Client/src/packages/documents/document-blueprints/constants.ts Added menu constants export; reordered exports alphabetically
src/Umbraco.Web.UI.Client/src/packages/data-type/menu/manifests.ts Replaced hardcoded workspace alias strings with constants; added folder menu structure and breadcrumb manifests
src/Umbraco.Web.UI.Client/src/packages/core/menu/menu-variant-tree-structure-workspace-context-base.ts Added alias parameter to observe call for better debugging
src/Umbraco.Web.UI.Client/src/packages/core/menu/menu-tree-structure-workspace-context-base.ts Added #isNew field; optimized observe logic to only request structure on state transitions; added alias parameters; includes debugger statement

}

async #requestStructure() {
debugger;
Copy link

Copilot AI Nov 3, 2025

Choose a reason for hiding this comment

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

Remove the debugger statement before committing. This should not be in production code.

Suggested change
debugger;

Copilot uses AI. Check for mistakes.
@madsrasmussen madsrasmussen added the category/ux User experience label Nov 3, 2025
@madsrasmussen madsrasmussen changed the title Folder Workspace: Support Menu Expansion + Breadcrumbs (closes # Folder Workspace: Support menu expansion and breadcrumbs (closes # Nov 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

V17 Active tree item is hidden behind the "Show more" button

2 participants