nextcloud / server

☁️ Nextcloud server, a safe home for all your data
https://nextcloud.com
GNU Affero General Public License v3.0
27.5k stars 4.08k forks source link

Unify select mechanisms/widgets #1831

Open jancborchardt opened 8 years ago

jancborchardt commented 8 years ago

Currently we use 4 different things:

  1. <select> – simplest from the browser directly
  2. select2 – allows for tag widgets for example
  3. jQuery autocomplete – used in sharing and Mail app autocomplete
  4. our core/js/multiselect.js – used mostly in user mgmt for group memberships because it allows you to add new elements (like for the Github labels and Milestones dropdown).

@nextcloud/javascript & @nextcloud/designers would it be possible to maybe decide on one or maximum two to use consistently?

Also cc @georgehrke @ChristophWurst @schiessle @Henni @icewind1991 because these things are heavily used in apps and user management.

Where are they used:

skjnldsv commented 8 years ago

:D Clearly will help regroup the various styles we're using. See #1805 for all the fixes we got

MorrisJobke commented 8 years ago

@nextcloud/javascript & @nextcloud/designers would it be possible to maybe decide on one or maximum two to use consistently?

I already tried to do so, but it sounds easier than it actually is. This is a really tough task, but we should do.

skjnldsv commented 6 years ago

While the vuejs apps start rolling out, my choice has been into vue-multiselect. Which allows tagging, creation, multi and simple select. I implemented the new design into the vu settings migration here #8824 . capture d ecran_2018-03-20_10-50-52

Looks very nice, supports array and objects, is highly supported... :)

jancborchardt commented 6 years ago

@skjnldsv good stuff! Do we still need to have this open for tracking, like do you have an overview where the old method of select is still used where it needs to be replaced?

skjnldsv commented 6 years ago

Yes because we still have some old legacy stuff laying around! :)

rullzer commented 6 years ago

@skjnldsv feel free to update the first comment to list all the remaining things that need to be cleaned up. So people can easily see/track/tackle/fix it ;)

MorrisJobke commented 6 years ago

@skjnldsv feel free to update the first comment to list all the remaining things that need to be cleaned up. So people can easily see/track/tackle/fix it ;)

I added the stuff for select2 and core/js/multiselect

skjnldsv commented 6 years ago

Thanks @MorrisJobke

jancborchardt commented 5 years ago

@skjnldsv @MorrisJobke a lot of progress has been made on this, right? Do we still need this overview issue and should we rather work on a case-by-case basis?

skjnldsv commented 5 years ago

I guess this is just a matter of deprecating it so we can unship the libs in 3 versions :)

MorrisJobke commented 5 years ago

I guess this is just a matter of deprecating it so we can unship the libs in 3 versions :)

In reality we also need to move our own stuff away from it. 😉 (that is the real major part after deprecating something)

PVince81 commented 2 years ago

regarding select2 I just grepped the 25.0.0 beta6 tarball and found these usages: