🌈 3️⃣ - Row coloring v3 - Add condition value provider
This MR implements the Conditional value provider:
Notes
- The component used to define filter has been refactored to be usable with this value provider
- The linked row names are now loaded through a dedicated endpoint even if the
preload_values
mechanism is still working. (Should I remove that?) - When the user add a new color, the conditions are empty by default. This color is always applied and that's the way to have a default color instead of creating a special behaviour for that. This feature is easily discoverable.
Focus point
- Import/export should work for decoration.
- Changing the type of a field shouldn't break the filter. In this case the incompatible filters are removed.
- Should still work when we remove a field used in a condition.
Not yet implemented
- The dropdown are hidden by the modal. Should be fixed in a next release.
Vuejs lib considered for color list sorting (Obsolete)
-
https://github.com/SortableJS/Vue.Draggable (17.1k
⭐ ) - Wrapper around [Sortable.js] developed by Sortable.js -
https://github.com/sagalbot/vue-sortable (718
⭐ ) - a thin wrapper around Sortable.js (25k⭐ ) - no update in 6 years and not compatible vue2 -
https://github.com/arkdevuk/vue2-sortable (3
⭐ ) vue2 version of the previous one. - Broken -
https://github.com/Vivify-Ideas/vue-draggable (295
⭐ ) - Less obvious -
https://github.com/rlemaigre/Easy-DnD (278
⭐ ) - Not for sortable but more general DnD use case -
https://github.com/nil/v-drag (39
⭐ ) - Demo broken, not a good sign
Or I can also use the existing directive
Merge Request Checklist
-
changelog.md has been updated if required -
New/updated Premium features are separated correctly in the premium folder -
The latest Chrome and Firefox have been used to test any new frontend features -
Documentation has been updated -
Quality Standards are met -
Performance: tables are still fast with 100k+ rows, 100+ field tables -
The redoc API pages have been updated for any REST API changes -
Our custom API docs are updated for changes to endpoints accessed via api tokens -
The UI/UX has been updated following UI Style Guide
Related to #39 (closed)
Edited by Jérémie Pardou