Conversation
…e outline A "Default content" run that holds one item now starts expanded, so its child shows without a click. The run keeps its chevron and stays collapsible. Multi-item runs do not change. Closes #3. Refs adobe#1306.
# Conflicts: # blocks/canvas/ew-page-outline/ew-page-outline.js
mhaack
approved these changes
Sep 16, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
In the Experience Workspace Outline panel, a "Default content" run that holds a single item now starts expanded, so its one child is visible without a click. The run keeps its chevron and stays collapsible - only the default state changes. Multi-item runs are unchanged (still default-collapsed).
Closes #1306.
How
ew-page-outline.js: a run withchildren.length === 1rendersexpandedby default. Multi-item runs track open keys in_expandedContent; single-item runs default open and track explicit collapses in a symmetric_collapsedContentset. Both are keyed byproseIndex, both reset on a structural reparse._toggleContentGroup(key, single)flips the key in whichever set applies._expandRunForProseclears a single-item run's collapse so a doc selection always reveals it (the "selection never hides" invariant).Testing
test/unit/.../ew-page-outline.test.js: added cases for a single-item run showing its child by default with the chevron kept, collapse/re-expand on header click, and child selection. Existing tests that used single-item fixtures to assert default-collapsed behaviour were moved to multi-item runs.