plantinformatics / pretzel

Javascript full-stack framework for Big Data visualisation and analysis
GNU General Public License v3.0
44 stars 13 forks source link

Change display of token in Datasources panel to a Copy button #390

Open Don-Isdale opened 5 months ago

Don-Isdale commented 5 months ago

Motivation

The Datasources panel at left shows the primary Pretzel server which the user has logged into, and additional secondary servers, which may be Pretzel / Germinate / BrAPI. The panel shows for each data source the user name and the token received as a result of a successful login; this is used in authorising API requests. For data administrators and developers, it is also useful when uploading via command line, or sending other API endpoint requests; for users it's better not to show it because it creates visual noise with no benefit.

We can replace it with a Copy button, so that only the user can access it and it is not visible. In normal layout the token is truncated and so screen-shots are not a significant issue, but it is better practice to omit the token display.