Skip to content

Conversation

@nielslyngsoe
Copy link
Member

In a Segment only variant scenario then unfold the Culture Variant, so we can see all the segments up front:
image

Copilot AI review requested due to automatic review settings September 18, 2025 15:08
@nielslyngsoe nielslyngsoe enabled auto-merge (squash) September 18, 2025 15:08
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 implements automatic unfolding of culture variants in the segment-only variant scenario for documents. When a workspace varies by segments but not by culture, the first culture variant is automatically expanded to show all segments upfront in the split-view variant selector.

  • Adds logic to automatically expand culture variants when only segment variants exist
  • Refactors element name usage to be more consistent
  • Improves variable naming for better clarity

Reviewed Changes

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

File Description
document-workspace-split-view-variant-selector.element.ts Removes unnecessary elementName variable and inlines the custom element name
workspace-split-view-variant-selector.element.ts Adds auto-expansion logic for segment-only scenarios and improves variable naming

nielslyngsoe and others added 3 commits September 24, 2025 13:41
…ts/workspace-split-view/workspace-split-view-variant-selector.element.ts

Co-authored-by: Copilot <[email protected]>
…t-option

# Conflicts:
#	src/Umbraco.Web.UI.Client/src/packages/core/workspace/components/workspace-split-view/workspace-split-view-variant-selector.element.ts
@nielslyngsoe nielslyngsoe merged commit 5d64f51 into main Oct 2, 2025
26 of 27 checks passed
@nielslyngsoe nielslyngsoe deleted the v16/feature/auto-unfold-first-culture-variant-option branch October 2, 2025 14:57
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.

4 participants