harvard-lil / perma

Indelible links
420 stars 71 forks source link

Users affiliated with more than 300 orgs can't select them all from the dropdown #3345

Open rebeccacremona opened 1 year ago

rebeccacremona commented 1 year ago

Similar to https://github.com/harvard-lil/perma/issues/3178.

Perma users who are affiliated with organizations can use this dropdown menu to select which of their organizations a link should be affiliated with: image

But, the dropdown only shows 300 options... and some registrars evidently have more than that!!! Amazing!

A dropdown with more than 300 options is.... absolutely not the UI we want to be offering people like that 😱 . And, indeed, they can successfully use the folder tree to accomplish the same task (though I should triple check that that is true). We should think through what design might be best for folks like these.

But in the meantime... we should at least show them all their options.

rebeccacremona commented 1 year ago

Hmm, though interesting, it looks like the largest registrar has only 198 orgs.

SELECT registrar_id, COUNT(*) as orgs FROM perma_organization GROUP BY registrar_id ORDER BY orgs DESC;

 registrar_id | orgs 
--------------+------
          648 |  198
          938 |  150
...

Maybe this is more complicated than I thought.

rebeccacremona commented 1 year ago

Update: this is not more complicated than I thought 😂 .

The registrar user in question can indeed see all their orgs in the dropdown at Perma.cc, because there are fewer than 300.

Admins, however, see Perma's first 300 orgs, alphabetically.

So, this issue for the web app is currently only admin-facing.

The registrar user in question is instead hitting a limit in the browser extension; I made a separate ticket there.

jp-tosca commented 1 year ago

Hi Rebecca!

Probably a text field/dropdown where people can type and filter the elements could be helpful for longer lists and also a good addition to make it more usable.

I haven't looked at this more deeply because I am just getting familiar with perma.cc but I will look more at it later, but I did some quick testing changing on perma_web/perma/templates/user_management/create-link.html around line 66:

https://jsfiddle.net/jnbsdkv4/

Animation

I will look more at this later but wanted to share this.