liquidvotingio / decidim-module-liquidvoting

GNU Affero General Public License v3.0
4 stars 0 forks source link

Replace delegate dropdown with a search box #102

Open oliverbarnes opened 3 years ago

oliverbarnes commented 3 years ago

Current dropdown was just a quick proof of concept. In real life there might be thousands of potential delegates, so a drop down obviously doesn't scale. We should have a search box that plugs into Decidim's existing search functionality, which allows for searching users.

davefrey commented 3 years ago

Hoping for incremental search here.

Prior Decidim work: Simon dug up our PR for OSP search bar in admin interface; it does the usual web request (GET proposals for ex), passing a query param. So, it's literal search and a full page request.

davefrey commented 3 years ago

Good leads from telegram decidim devs group, I'm sorting through these:

Alexandru Lupu, [24 May 2021 at 15:18:57]: Dave , I have used this : SlimSelect , and now you have several oprions for the HTTP endpoint ...

  1. Use GraphQL API to get your data
  2. Implement a custom Endpoint

Other way would be to look on how is done the Select Proposals when closing meetings ...

Leio, [24 May 2021 at 16:19:08]: Dave maybe you want to give it a look to the Data Picker documentation: https://docs.decidim.org/en/develop/data-picker/

Ivan Vergés, [24 May 2021 at 16:36:57]: Good luck @leio10 ! Dave there is also (in the admin) the autocomplete https://github.com/decidim/decidim/blob/develop/decidim-admin/lib/decidim/admin/form_builder.rb