commonknowledge / stopwatch

Research and action for fair and accountable policing
https://stop-watch.org
GNU General Public License v3.0
1 stars 0 forks source link

Add Shiny to page to show the data as needed #38

Closed conatus closed 2 years ago

conatus commented 2 years ago

To flesh out more. Should be a quick job as the functionality is all already there. Just a case of finding the embed code and inserting it.

conatus commented 2 years ago

I've added the ShinyApp to the page at https://www.stop-watch.org/admin/pages/887/edit/preview/ - and added in a Flourish one just to check this wasn't broken.

However, as it stands we only have support for Flourish URLs.

We need to duplicate the sort of logic and do it for ShinyApp. Which should be a copy and paste job of the existing code and a deployment.

URLs take the form like https://stop-watch.shinyapps.io/StopWatchApp_EW/ - and do it like this.

conatus commented 2 years ago

Just visiting the URL at https://stop-watch.shinyapps.io/StopWatchApp_EW/ - it takes a little while to load - around 4-5 seconds. This is not a surprise as it is a lot of data. Wondering if anything can be done like adding a loading screen on the Shiny side...

janbaykara commented 2 years ago

So it seems like the ask here is specifically to create a custom embed finder for Shiny apps, so that @HabKadSW can embed Shiny apps in articles.