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

[FR] Idea for subcategory tree view #2250

Closed
sintech opened this issue Nov 4, 2021 · 8 comments · Fixed by #2445
Closed

[FR] Idea for subcategory tree view #2250

sintech opened this issue Nov 4, 2021 · 8 comments · Fixed by #2445
Labels
enhancement This is an suggested enhancement or new feature part Related to Part models
Milestone

Comments

@sintech
Copy link
Contributor

sintech commented Nov 4, 2021

Problem
As a part of Bootstrap 5 introduction (#2205), category treeview was removed in favor of "Subcategory tab".
This leads to unnecessary clicks when user wants to change category outside of currently opened branch.

Suggested solution
Add drop-down category list to the header of every part/stock view with the same content as in "subcategory tab". Active category should be highlighted and selected.
This list could be combined with current breadcrumbs.

Mockups:

изображение

изображение

Describe alternatives you've considered
Restore old category tree view.

Do you want to develop this?
Unfortunately it is above my head.

@sintech sintech added the enhancement This is an suggested enhancement or new feature label Nov 4, 2021
@sintech sintech mentioned this issue Nov 4, 2021
35 tasks
@matmair matmair added part Related to Part models user interface labels Nov 4, 2021
@matmair
Copy link
Member

matmair commented Nov 28, 2021

@SchrodingersGat @eeintech this is not assigned to a milestone. Are we interested in this or wontfix?

@eeintech
Copy link
Contributor

I use this category tree a lot in 0.5.x so yeah I would love to see it restored!

@SchrodingersGat SchrodingersGat added this to the 0.6.0 milestone Nov 29, 2021
@SchrodingersGat
Copy link
Member

I think we should add the category tree back in some form for 0.6.0

@SchrodingersGat
Copy link
Member

@eeintech @matmair clearly this was a popular feature! Let's work out a nice way of integrating it back in.

@matmair
Copy link
Member

matmair commented Nov 29, 2021

@SchrodingersGat should we solve this with an api powered widget? That could be conditional on when the bar is opened.

@SchrodingersGat
Copy link
Member

Yes definitely should be loaded via the API

@matmair
Copy link
Member

matmair commented Nov 29, 2021

@SchrodingersGat https://www.jstree.com/docs/json/ combined with an API endpoint seems like a good option. If the tree is visible we can load the root + the current branch and if any other branch is opened the data in that branch is loaded on the fly via ajax.

@matmair
Copy link
Member

matmair commented Dec 6, 2021

Working on this feature rn

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement This is an suggested enhancement or new feature part Related to Part models
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants