Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

R Shiny template #17

Open
eroten opened this issue May 19, 2021 · 3 comments
Open

R Shiny template #17

eroten opened this issue May 19, 2021 · 3 comments
Assignees
Labels
enhancement New feature or request template

Comments

@eroten
Copy link
Collaborator

eroten commented May 19, 2021

We need a function that will create an R Shiny app from a template.

Needs

  • Standardized CSS
  • Bare bones UI and server
  • Checklists for accessibility
  • Frequently used libraries, such as {data.table}, {ggplot2}, {plotly}, etc.
  • Example elements (we can use {shinipsum})
  • FAQs and links to all other CD/MTS Shiny apps (once we have all our GH repos topic tagged with shiny and golem, this would be fairly easy to generate automatically).

Ideas

@eroten eroten added the enhancement New feature or request label May 19, 2021
@eroten eroten pinned this issue May 19, 2021
@ehesch
Copy link
Contributor

ehesch commented May 19, 2021

Note; use tags @shiny @shiny-apps @golem-apps

@eroten eroten added the template label Nov 1, 2021
@eroten
Copy link
Collaborator Author

eroten commented Dec 17, 2021

App styling

  • logo and favicon, as seen here
  • colors.css
    • includes the full series of blue gradients and corresponding text colors for cascading menus on metrocouncil.org
  • font.css
    • Only works when accompanied by the relevant .woff files
  • shinydashboard element styling
    • boxes! wells! modals! Examples here

Element specific styling

  • Plotly
    • hide plotly online toolbar
    • Standard layout() (example here)
  • Leaflet
    • tooltip, legend, layer control styling. Example here
    • CTU names with highest zIndex (see examples here and here)
    • including scale, pseudo full screen
  • DT
    • fonts, row striping. Example here
  • gt
    • fonts, row striping

IDEALLY we would create a fully-fledged bootstrap theme, created with something like {bslib}

@eroten
Copy link
Collaborator Author

eroten commented Dec 17, 2021

Standard elements

These are not all absolutely essential for every app, but are a good starting point

  • data download
  • documentation
  • explainers (likely using {shinyhelper})
  • icons! like those used here
    • FontAwesome would be easier to use
  • MIT license and MetC as copyright holder

@eroten eroten unpinned this issue Nov 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request template
Projects
None yet
Development

No branches or pull requests

4 participants