mjennings061 / viking-log-keeper

661 VGS - Collate gliding log sheets into a database and visual dashboard.
https://viking.streamlit.com/
MIT License
5 stars 0 forks source link

Add admin interface #83

Open mjennings061 opened 1 month ago

mjennings061 commented 1 month ago

As an admin, I want to view data from each VGS, so that I can assist with debug queries

Dev notes

Adding a dropdown menu when the admin logs in to select the VGS they want to see. Pseudocode:


# Get roles for the user
if n_roles > 1 or "readWriteAnyDatabase" in permissions:
   # get a list of each VGS with log_sheets available
   roles = client.get_all_roles()

# Prompt the admin for which dashboard they want
st.selectbox(roles, on_click=load_user_db_to_streamlit())