Site selection widget

Issue #223 resolved
Alan Noble created an issue

It would be helpful if users could select sites from any VidGrind page, not just from on the home page.

It is proposed to implement a site election widget in Javascript that utilizes an enhanced /get/sites API call.

Only sites for which the user has permission should be presented, namely:

  • For read operations (search, play, monitor), only sites for which the user has read permission, including public sites.
  • For write operations (settings, upload), only sites for which the user has write permission.
  • For admin operations (when implemented in VidGrind), well, you get it.

Comments (7)

  1. Trek Hopton

    Yeah this does sound pretty good. One potential point of confusion is how the site menu from the write pages will show different sites to read pages. Eg. if I’m on the settings/devices page, I will see a different list of sites than the list on the monitor page. I’m trying to think of a way of keeping it more consistent. It may also be unintuitive to have to return to a read page or home in to get the full list back.

  2. Trek Hopton

    I propose a menu like this. Then different Nav menu items will be shown for the different permissions. Eg. A read only site will only show monitor, search and play.

  3. Trek Hopton

    The widget has been created, see PR #246. But the UI does not adapt to the site menu yet. So we’ll keep this issue open for now.

  4. Trek Hopton

    I wasn’t sure if we wanted to keep it open until the UI reactivity has been implemented, but since that functionality has been described in issue #277, I will resolve this issue.

  5. Log in to comment