-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Feature: ability to drag across tabs #19183
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: release/16.0
Are you sure you want to change the base?
Feature: ability to drag across tabs #19183
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 implements native drag and drop support for sorting groups and properties across tabs. Key changes include refactoring the sorter controller to handle external drag events, adding new external drop, remove, and insert callback methods in content type editors, and updating container management to support the new behavior.
Reviewed Changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated 1 comment.
Show a summary per file
File | Description |
---|---|
src/Umbraco.Web.UI.Client/src/packages/core/sorter/sorter.controller.ts | Updated core sorter logic to support native drag n' drop and external move requests |
src/Umbraco.Web.UI.Client/src/packages/content/content-type/workspace/views/design/content-type-design-editor.element.ts | Added dragover handler to update browser history during tab drag events |
src/Umbraco.Web.UI.Client/src/packages/content/content-type/workspace/views/design/content-type-design-editor-tab.element.ts | Introduced new external drop and remove/insert callbacks for tab editor interactions |
src/Umbraco.Web.UI.Client/src/packages/content/content-type/workspace/views/design/content-type-design-editor-properties.element.ts | Added external drag-drop callbacks for property editor elements |
src/Umbraco.Web.UI.Client/src/packages/content/content-type/structure/content-type-structure-manager.class.ts | Refactored container insertion and removal functionality to align with drag n' drop changes |
Comments suppressed due to low confidence (1)
src/Umbraco.Web.UI.Client/src/packages/core/sorter/sorter.controller.ts:1326
- [nitpick] The renaming from notifyRequestDrop to notifyRequestMove may be confusing. Clarify the callback naming and update the documentation to ensure it distinguishes between external drop and move requests.
if (this.notifyRequestMove({ item: item }) === true) {
src/Umbraco.Web.UI.Client/src/packages/core/sorter/sorter.controller.ts
Outdated
Show resolved
Hide resolved
…nto v16/feature/ability-to-drag-across-tabs
Improves the Sorter to support Native Drag n' Drop. Though only from and to the same data-set as the receiver has to be able to remove from the sender.
This enable us to Sort Groups and Properties across Tabs.