Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(TreeView): Support 'show all' button inside TreeView component #1591

Merged
merged 7 commits into from
Dec 11, 2024

Conversation

silvalaura
Copy link
Collaborator

@silvalaura silvalaura commented Dec 3, 2024

Issue: none

What I did

The MAST team reported that with their implementation of a "show all" button, our tree stopped behaving as expected for them after we added support for controlling the tree outside of it (through the tags). I have added functionality through apiRef.showAll() so that the tree updates as expected.

Screenshots:

image
image

Checklist

  • changeset has been added
  • Pull request description is descriptive
  • I have made corresponding changes to the documentation
  • New and existing unit tests pass locally with my changes
  • I have added tests that prove my fix is effective or that my feature works

How to test

  • Test the various tree view examples with show all
  • Ensure it works with other props:
    -- with and without preselected items
    -- with and without checkParents / checkChildren
    -- tree can be manipulated outside the checkboxes
    -- different combinations and sizes of trees
    -- with and without disabled items
    -- clicking around and selecting items then clicking show all, selecting and deselecting items, collapsing, etc etc
  • Ensure other tree examples still behave as expected

@silvalaura silvalaura self-assigned this Dec 3, 2024
Copy link

changeset-bot bot commented Dec 3, 2024

🦋 Changeset detected

Latest commit: 14e94c6

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

This PR includes changesets to release 1 package
Name Type
react-magma-dom Minor

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

@silvalaura silvalaura added the blocks release High priority tickets that block next release label Dec 6, 2024
Copy link
Contributor

github-actions bot commented Dec 9, 2024

Copy link
Contributor

github-actions bot commented Dec 9, 2024

Copy link
Contributor

github-actions bot commented Dec 9, 2024

Copy link
Contributor

github-actions bot commented Dec 9, 2024

@silvalaura silvalaura marked this pull request as ready for review December 9, 2024 22:23
@silvalaura silvalaura requested a review from a team as a code owner December 9, 2024 22:23
Copy link
Contributor

github-actions bot commented Dec 9, 2024

Copy link
Contributor

github-actions bot commented Dec 9, 2024

Copy link
Contributor

github-actions bot commented Dec 9, 2024

Copy link
Contributor

github-actions bot commented Dec 9, 2024

Copy link
Contributor

Copy link
Contributor

Copy link
Contributor

Copy link
Contributor

Copy link
Contributor

Copy link
Contributor

Copy link
Contributor

Copy link
Contributor

Copy link
Collaborator

@moathabuhamad-cengage moathabuhamad-cengage left a comment

Choose a reason for hiding this comment

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
blocks release High priority tickets that block next release
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

3 participants