datapages / irw

https://datapages.github.io/irw/
MIT License
1 stars 1 forks source link

tabular data browser #4

Closed mcfrank closed 10 months ago

mcfrank commented 1 year ago

we are hoping to have this as a plugin from redivis

imathews commented 1 year ago

Definitely doable on our end. I think the first step is to define what this should look like.

Right now the table module on Redivis (example) is made up of three tabs:

@mcfrank @mikabr, what are your thoughts on these different tabs, vs. maybe a simplified view? Or more generally, what sort of content would be most useful to see here?

imathews commented 1 year ago

I guess to clarify — do we want an embeddable table module (linked above), or some way to embed the list of all tables on a dataset, similar to the "Tables" tab on the dataset page?

mcfrank commented 1 year ago

Hi Ian, thanks for checking in! I think there are maybe two use case.

The first would be to embed a single table. This would be a simplified Table module, where you could see the variables and the cells. I think instead of a query tab, you might consider just an "open in redivis" button or nothing at all.

The second would be to embed all the tables, like the Tables tab. Being able to drill down from this would be cool. That way you'd essentially be building in a public browser of the dataset - someone could get a really god sense of what was there quite easily.

But I don't have a sense of how hard this is...

erindelaney commented 1 year ago

Thanks for your thoughts on this! I investigated feasibility and made a few quick mockups to consider, starting with the table viewer.

It's actually easier for us to keep functionality the same between the table on Redivis and an embedded table, where possible. If it is public data, interaction with the data is very straightforward, but if data access is restricted, they'll need to log in and apply for access. They can log in in the embedded viewer but a new tab would be launched to Redivis for any access applications:

(I wanted to get a sense for a view of the table on a blog so used your blog as a backdrop, hope that's not too creepy!)

1 2 3 4 5

Let us know if you have any thoughts or concerns when thinking about an embedded table viewer like this!

mcfrank commented 1 year ago

Thanks so much for following up. I like the way those look. I think that would be more than sufficient for our purposes, at least for a table viewer.

Design-wise, keeping the redivis look and feel is good, though I do wonder if it's going to feel very plug-in like to have a gray box. Maybe that's unavoidable? I don't know enough about the technical issues to know whether it's even an option to inherit style from the underlying page. Maybe 2.0?

imathews commented 1 year ago

Thanks @mcfrank! I don't think inherited styles within an iframe are really doable (from a tech perspective), but I could see the utility of being able to customize a few parameters for the embed (also primary color, which is currently the "redivis purple"). Agree that saving this for a 2.0 makes sense, in the interest of getting something out.

Do you have a sense of a rough timeline for when you'd want to get this out? Just so that we can line up our work accordingly... this shouldn't take too much time, but we're just balancing various priorities on our end.

mcfrank commented 1 year ago

Makes total sense about inheritance.

We have one site that we're working on and maybe would like to deploy in the next few weeks or so. That's our minimal proof of concept site for IRW that I linked in the slack. v1.0 is more than fine for that!