BetterBags

BetterBags

1M Downloads

[Feature]: Implement category taxonomy priority

Cidan opened this issue ยท 1 comments

commented

Describe the feature

Currently, the order in which item categories are evaluated is static in GetCategory(). Instead, the order by which categories are decided should be configurable.

Describe the implementation

A configuration with an ordered list of priority would exist in the database. Elements of that list contain a key for a hard coded category or a custom category. Categories that are added beyond the defaults are inserted at the end of the list.

The UI renders these items as a list of panels. The panels can be moved up or down the list, denoting priority. This list will replace the current categories view per bag, i.e.

The panels will have checkboxes to enable or disable the categories.

commented

While a static priority system is useful in most cases, it would be nice if a plugin could request a dependency: Run me before/after another named filter. If there's a conflict (eg. two addons insist on being before each other), report an error for the second registration that induces it.