pharmaR / riskassessment

Risk Assessment Demo App: https://rinpharma.shinyapps.io/riskassessment
https://pharmar.github.io/riskassessment/
Other
98 stars 25 forks source link

Consider a collapsible "Package Control Panel" #577

Open AARON-CLARK opened 11 months ago

AARON-CLARK commented 11 months ago

Is there any merit to making the package control panel collapsible to the left? Perhaps it would really alleviate some real-estate issues we have on these tabs. If it is collapsible, I'd want it to be really huge on the left hand side, making a "mega button" like below so that it's ultra-visible:

image

If we were to pursue a solution like this, we would lose our ability to quickly see what package is selected. Therefore, we would need to add [package name] for prominent display on each applicable tab.

Originally posted by @AARON-CLARK in https://github.com/pharmaR/riskassessment/pull/574#pullrequestreview-1534840688

aclark02-arcus commented 3 months ago

Inspiration for a toggle-able side panel:

Toggle side panel

In particular, I like how the icons are still visible, so you know where the main elements of the side bar reside, even while its in it's closed position. Even when collapsed, we should test out still showing the package name, version, and upload date. Per conversations with @jthompson-arcus, we agree that we'd need to start intentionally labelling the main panel with the package name if the sidebar disappears by default. We should also include a button to "pin" the side panel in place, removing it's collapsible function.