Thanks to visit codestin.com
Credit goes to github.com

Skip to content

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

Merged
merged 27 commits into from
May 8, 2025

Conversation

nielslyngsoe
Copy link
Member

@nielslyngsoe nielslyngsoe commented Apr 28, 2025

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.

Fixes: #16852
Fixes: #17462

@Copilot Copilot AI review requested due to automatic review settings April 28, 2025 17:10
Copy link
Contributor

@Copilot 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 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) {

@madsrasmussen madsrasmussen merged commit a463c99 into release/16.0 May 8, 2025
22 of 23 checks passed
@madsrasmussen madsrasmussen deleted the v16/feature/ability-to-drag-across-tabs branch May 8, 2025 15:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants