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

Display additional ad-hoc tables in the dashboard #35

Closed
shankari opened this issue Jun 4, 2021 · 3 comments
Closed

Display additional ad-hoc tables in the dashboard #35

shankari opened this issue Jun 4, 2021 · 3 comments
Milestone

Comments

@shankari
Copy link
Collaborator

shankari commented Jun 4, 2021

from time to time, there may be additional ad-hoc tables that need to be displayed in the dashboard.

These are not critical to the core trip tracking functionality, but for additional services that might induce participants to install the app and provide data. They typically represent app state (e.g. the current ranking in the leaderboard; the current size of the bear). As such, they are not part of the core functionality, and we don't care too much about including them into a progressive system or making them be idempotent.

It seems like we should be able to easily create separate tables for them.

Since data:table automatically displays the retrieved data, we should be able to actually do this with very little code and in a generic fashion. For example, we could have an entry in the config that looks like this:

- supplementary tables
   - Checkinout
     tab name: "Bike Check in"

which could create a new tab called Bike Check in populated with data from the Checkinout collection.

we could even make the new table editable
https://www.r-bloggers.com/2018/11/editable-datatables-for-shiny-applications/

and allow people to specify the operations that they want to enable

- supplementary tables
   - Checkinout
     tab name: "Bike Check in"
     editable: D

Valid values for editable could be from CRUD (https://en.wikipedia.org/wiki/Create,_read,_update_and_delete) or at least CUD since R is the default

@shankari
Copy link
Collaborator Author

shankari commented Jun 4, 2021

I'm adding comments to 4cbeb23
to think through how this might work and whether it is feasible

@shankari
Copy link
Collaborator Author

shankari commented Jun 4, 2021

Note also that Shiny has built-in support for editable tables (https://blog.rstudio.com/2018/03/29/dt-0-4/)
but it looks like it only supports updates, not the full CUD. In particular, in the PR, there is a question around create and delete
rstudio/DT#480 (comment) which does not appear to be answered.

@shankari
Copy link
Collaborator Author

shankari commented Jun 5, 2021

Another editable table module that might be more user friendly :)
https://github.com/jienagu/DT-Editor

@asiripanich asiripanich added this to the 1.3 milestone Jun 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants