Skip to content

[67727] Preview for hidden SegementedControl in FilterableTreeView is broken - #361

Merged
oliverguenther merged 1 commit into
mainfrom
bug/67727-on-filterable-tree-view-sub-items-are-not-included-when-sub-item-checkbox-is-ticked
Sep 30, 2025
Merged

[67727] Preview for hidden SegementedControl in FilterableTreeView is broken#361
oliverguenther merged 1 commit into
mainfrom
bug/67727-on-filterable-tree-view-sub-items-are-not-included-when-sub-item-checkbox-is-ticked

Conversation

@HDinger

@HDinger HDinger commented Sep 29, 2025

Copy link
Copy Markdown
Collaborator

What are you trying to accomplish?

The preview for a hidden SegmentedControl within the FilterableTreeView was broken, because it is actually needed for the filter function. So now, instead of not rendering it at all, we simply hide it (which is consistent to the include sub-items checkbox).
Further, the wrapper around the two is only rendered conditionally, to avoid empty white space when both are hidden.

Screenshots

List the issues that this change affects.

Risk Assessment

  • Low risk the change is small, highly observable, and easily rolled back.

@changeset-bot

changeset-bot Bot commented Sep 29, 2025

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: ec2061f

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@openproject/primer-view-components Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

<%= render(Primer::OpenProject::FilterableTreeView.new(
include_sub_items_check_box_arguments: { hidden: !show_checkbox },
**(show_segmented_control ? {} : { filter_mode_control_arguments: :none })
filter_mode_control_arguments: { hidden: !show_segmented_control }

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

👍🏽

@Kharonus

Copy link
Copy Markdown
Member

Do you need a review from another person, as you are today the only person available of your team?

@HDinger
HDinger force-pushed the bug/67727-on-filterable-tree-view-sub-items-are-not-included-when-sub-item-checkbox-is-ticked branch from 410f428 to ec2061f Compare September 30, 2025 05:51
@HDinger

HDinger commented Sep 30, 2025

Copy link
Copy Markdown
Collaborator Author

Do you need a review from another person, as you are today the only person available of your team?

No, one review is enough and the changes are not that critical.

@oliverguenther
oliverguenther merged commit acc6ee9 into main Sep 30, 2025
27 checks passed
@openprojectci openprojectci mentioned this pull request Sep 30, 2025
@HDinger
HDinger deleted the bug/67727-on-filterable-tree-view-sub-items-are-not-included-when-sub-item-checkbox-is-ticked branch September 30, 2025 08:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

3 participants