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

Tree widget: Categories tree doesn't react to Category visibility changes from Models tree #912

Open
grigasp opened this issue Jun 10, 2024 · 1 comment
Labels
needs ux input tree widget Tree widget or its components related issues

Comments

@grigasp
Copy link
Member

grigasp commented Jun 10, 2024

http://localhost:3000/?iTwinId=b391ba44-add7-47a0-8375-f2889a3540e8&iModelId=ba504f88-a479-4156-9d81-658ee169588e

Image

@grigasp
Copy link
Member Author

grigasp commented Dec 13, 2024

Just to explain what's happening there...

The Categories tree just shows a list of categories, one category can only show up once in the hierarchy. Categories visibility is determined purely by looking at categories' selector.

The Models tree shows categories under models, and the same category may appear multiple times under different models. When user turns off visibility of category in this tree, we're not really turning off the whole category in categories' selector, but only its intersection with the parent model. As a result, that change is not noticed by the Categories tree.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs ux input tree widget Tree widget or its components related issues
Projects
None yet
Development

No branches or pull requests

1 participant