Skip to content

feat: Add style option to configure default group and references open state#5771

Merged
OEvgeny merged 11 commits intomainfrom
feat/default-group-state-style-option
Mar 19, 2026
Merged

feat: Add style option to configure default group and references open state#5771
OEvgeny merged 11 commits intomainfrom
feat/default-group-state-style-option

Conversation

@OEvgeny
Copy link
Collaborator

@OEvgeny OEvgeny commented Mar 6, 2026

Fixes #

Changelog Entry

  • Added collapsible activity and activity with abstract handling, in PR #5506, in PR #5513, in PR #5771, by @OEvgeny
    • Added styleOptions.partGroupDefaultOpen to configure whether part groups are open by default, defaults to true
    • Added styleOptions.referenceListDefaultOpen to configure whether references are open by default, defaults to true
    • In the Fluent theme "copilot" variant, part groups and references now default to closed

Description

Adds a new style options referenceListDefaultOpen and partGroupDefaultOpen that controls whether references and/or collapsible "part" activity groups start open or closed. Default to open, preserving existing behavior. The Fluent theme "copilot" variant overrides this to closed/collapsed.


  • I have added tests and executed them locally
  • I have updated CHANGELOG.md
  • I have updated documentation

@OEvgeny
Copy link
Collaborator Author

OEvgeny commented Mar 6, 2026

@copilot update the test files related to the following files adding "When (copilot): opening the group" action after the first of activities in the group lands and before the snapshot is taken. The different groups can be distinguished by isPartOf.@id. If these ids don't match, this means the messages belong to different groups.

__tests__/html2/attachment/adaptiveCard/custom.copilot.html
__tests__/html2/part-grouping/copilot.dark.html
__tests__/html2/part-grouping/copilot.html
__tests__/html2/part-grouping/folded.copilot.html
__tests__/html2/part-grouping/folded.copilot.dark.html

The code to toggle the first group on the page is:

      await host.click(document.querySelector('.collapsible-grouping__toggle'));

Copy link
Contributor

Copilot AI commented Mar 6, 2026

@OEvgeny I've opened a new pull request, #5772, to work on those changes. Once the pull request is ready, I'll request review from you.

Copilot AI and others added 6 commits March 6, 2026 23:55
…tive card test (#5772)

* Initial plan

* Add opening group action to copilot test files before first snapshot

Co-authored-by: OEvgeny <2841858+OEvgeny@users.noreply.github.com>

* Revert opening group action from custom.skip.html (flaky test)

Co-authored-by: OEvgeny <2841858+OEvgeny@users.noreply.github.com>

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: OEvgeny <2841858+OEvgeny@users.noreply.github.com>
@OEvgeny OEvgeny changed the title WIP: Add style option to configure default group open state WIP: Add style option to configure default group and references open state Mar 19, 2026
compulim
compulim previously approved these changes Mar 19, 2026
@OEvgeny OEvgeny marked this pull request as ready for review March 19, 2026 17:59
@OEvgeny OEvgeny requested a review from a-b-r-o-w-n as a code owner March 19, 2026 17:59
Copilot AI review requested due to automatic review settings March 19, 2026 17:59
compulim
compulim previously approved these changes Mar 19, 2026
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.

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

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

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


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@OEvgeny OEvgeny changed the title WIP: Add style option to configure default group and references open state feat: Add style option to configure default group and references open state Mar 19, 2026
@OEvgeny OEvgeny merged commit d004a15 into main Mar 19, 2026
62 of 64 checks passed
@OEvgeny OEvgeny deleted the feat/default-group-state-style-option branch March 19, 2026 20:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants