Skip to content

Conversation

@MrHutmat
Copy link
Contributor

@MrHutmat MrHutmat commented Nov 13, 2025

Fixes #20691

Added the sorter controller and implemented it for the hostname/domain elements.
You are now able to drag the hostname elements around to sort them like in v13.

There has also been some cleanup in the HTML to make it more concise.
Changed the naming shown in UI to align better with the naming "Culture and Hostnames"

Instead of it being called domain/domains, it is now referred to as hostname/hostnames.

…able to drag the hostname elements around to sort them
… look better.

Added a description for the Culture section.
Alligned the rendered text to allign better with the name "Culture and Hostnames"
Copilot AI review requested due to automatic review settings November 13, 2025 14:26
Copilot finished reviewing on behalf of MrHutmat November 13, 2025 14:28
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 restores the ability to drag-and-drop reorder Culture and Hostnames entries (previously available in v13) by implementing the UmbSorterController. It also updates UI terminology from "domain/domains" to "hostname/hostnames" for better alignment with the feature name "Culture and Hostnames".

Key Changes:

  • Implemented UmbSorterController for drag-and-drop sorting of hostname entries
  • Extended the backend's DomainPresentationModel with a local UmbDomainPresentationModel interface that includes a unique property for tracking items during sorting
  • Updated all UI strings from "domain" to "hostname" terminology across the English language file
  • Refactored the modal layout to use umb-property-layout components for consistency

Reviewed Changes

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

File Description
src/Umbraco.Web.UI.Client/src/packages/documents/documents/entity-actions/culture-and-hostnames/modal/culture-and-hostnames-modal.element.ts Implements UmbSorterController for drag-and-drop functionality, adds unique ID tracking for hostname items, refactors render methods to support sorting with visual feedback
src/Umbraco.Web.UI.Client/src/assets/lang/en.ts Updates all UI terminology from "domain/domains" to "hostname/hostnames" for consistency with the "Culture and Hostnames" feature naming

MrHutmat and others added 3 commits November 13, 2025 15:58
…ity-actions/culture-and-hostnames/modal/culture-and-hostnames-modal.element.ts


Forgot to remove this after I was done testing

Co-authored-by: Copilot <[email protected]>
…ity-actions/culture-and-hostnames/modal/culture-and-hostnames-modal.element.ts


Changing grid-gap to just gap

Co-authored-by: Copilot <[email protected]>
…eded.

Removed the conditional rendering that was attached to the readonly and disabled properties
@madsrasmussen madsrasmussen changed the title Brings back the ability to sort the the order for the Culture and Hostnames - Fixes #20691 Culture and Hostnames: Add ability to sort hostnames (closes #20691) Nov 14, 2025
Copy link
Contributor

@madsrasmussen madsrasmussen left a comment

Choose a reason for hiding this comment

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

Great! The changes look good, only a few comments, and the feature works as expected.

@AndyButland
Copy link
Contributor

I expect you've seen, but in case not, looks like this has caused a failing test - likely as the test was relying on some UI that's changed.

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.

v16: No longer possible to reorder hostnames in the Cultures and Hostnames menu

5 participants