OpenFn / lightning

OpenFn/Lightning ⚡️ is the newest version of the OpenFn DPG and provides a web UI to visually manage complex workflow automation projects.
https://openfn.github.io/lightning/
GNU Lesser General Public License v3.0
130 stars 36 forks source link

Show read-only view to non-admins in Project Settings section #1081

Open taylordowns2000 opened 1 year ago

taylordowns2000 commented 1 year ago

When I access a project as an editor or below, I can navigate to certain pages in Project Settings but don't know why there's nothing there or get unhelpful UIs. Three changes need to be made:

  1. Use the same greyed-out style (and the mouseover pointer style!) as is found on Project name for Project description. (Image 1)
  2. Show the project security settings but prevent editing on "Security" (Images 2 and 3.)
  3. Show the github sync settings but prevent editing on "Sync to Github" (Images 3 and 4.)

Image 1

image

Image 2 (this is unfriendly!)

image

Image 3 (show these but make them disabled)

image

Image 4 (this is unfriendly!)

image

Image 5 (show these but make them disabled)

image
NickOpenFn commented 1 year ago

Noting on here, I think their might be a better option in how to handle this with "access needed" screen. Just want to talk this through before adding it to backlog.