tournesol-app / tournesol

Free and open source code of the https://tournesol.app platform. Meet the community on Discord https://discord.gg/WvcSG55Bf3
https://tournesol.app
Other
325 stars 47 forks source link

[front] refactor: simplify AutoEntityButton and EntitySelector #1949

Closed GresilleSiffle closed 5 months ago

GresilleSiffle commented 5 months ago

related issues #1342, #1931

Description

This refactor makes the Comparison component responsible of initializing its entity selectors if the autoFill props are true.

It significantly simplifies the implementation of the components AutoButton and EntitySelector. It should also simplify the suggestion logic.

Checklist