madmaxoft / SkauTan

Music player for Skautské Tancování
https://skautske-tancovani.cz/
The Unlicense
1 stars 2 forks source link

Reorganize templates #186

Closed madmaxoft closed 5 years ago

madmaxoft commented 5 years ago

[Template, Item, Filters] -> [Template, TemplateItem <-> Filter, FilterNodes] Mostly technical refactoring. For the user, the templates now work differently: There are filters with a condition tree represented through FilterNodes; each filter can provide a single song. A template is a collection of items, each item is a reference to a filter. One filter can be contained within multiple templates, changes to a filter propagate to all templates.

Also small improvements, such as showing the templates in the QuickPlay UI: image

madmaxoft commented 5 years ago

Before merging this, DB backup (#178 and #179) should be implemented, since the DB changes are non-trivial.