Skip to content

🌈 3️⃣ - Row coloring v3 - Add condition value provider

Jérémie Pardou requested to merge 39-coloring-rows-v3 into develop

This MR implements the Conditional value provider:

image

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)

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

Merge request reports