benjaminjonard / koillection

Koillection is a self-hosted service allowing users to manage any kind of collections.
https://github.com/koillection/koillection/wiki
MIT License
541 stars 24 forks source link

[Feature Request] Choice List Hierarchy #1163

Open ErickBrown opened 2 weeks ago

ErickBrown commented 2 weeks ago

The ability to assign a choice list to a parent choice list item would allow for a multiple choice hierarchy. When creating a new collection item with a choice list field, the user can select from a parent choice list item which will dynamically create and populate a child choice list if the selected parent choice list item has children. This would improve user experience by grouping and organizing an otherwise potentially massive choice list. Instead of one unwieldy list of hundreds of items, a parent of maybe 10 or so items could be selected which expose a child list of perhaps only 8 items.

If a choice list item has no children, no child is created. This would allow for a dynamic hierarchy. For instance, some selections may have three levels of depth while others only have two; even though they share the same base parent.

Examples:

Selecting a video game platform might have a choice list hierarchy like: Type > Brand > System Example selections:

Console > Nintendo > Nintendo Entertainment System Handheld > Sega > Game Gear Arcade > Namco ("Namco" has no children)

Selecting a music genre hierarchy might look like: Main genre > sub-genre > specific genre Example selections:

Rock > Alternative > Grunge Electronic > Techno > Industrial Rock > Hard ("Hard" has no children) Classical > Baroque ("Baroque" has no children)