- 
                Notifications
    
You must be signed in to change notification settings  - Fork 2.8k
 
Folder Workspace: Support menu expansion and breadcrumbs (closes # #20712
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Folder Workspace: Support menu expansion and breadcrumbs (closes # #20712
Conversation
There was a problem hiding this 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-itemtomenuand 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; | 
    
      
    
      Copilot
AI
    
    
    
      Nov 3, 2025 
    
  
There was a problem hiding this comment.
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.
| debugger; | 
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: