datasette / datasette-enrichments

Tools for running enrichments against data stored in Datasette
https://enrichments.datasette.io
Apache License 2.0
16 stars 0 forks source link

Design UI #5

Open simonw opened 2 years ago

simonw commented 2 years ago

Originally posted by @simonw in https://github.com/simonw/datasette-enrichments/issues/1#issuecomment-1034384356

simonw commented 1 year ago

I think every enrichment run - at least at first - is kicked off from the table page. That way users can filter the table using existing tools to just the subset of data that they want to enrich.

This means it needs to be activated from the table cog menu.

Different enrichments will have different settings.

Maybe every available enrichment becomes an item in the cog menu?

These then take the user to a custom page with settings for that enrichment. They hit submit on that to kick off the process.

Maybe it then sends them back to the table with an added progress bar showing progress?

simonw commented 1 year ago

I think this is the way to go - an entire separate page for starting an enrichment.

Some enrichments will act against a single column, and can start with a select box to pick that column

Others might allow multiple columns to be selected, maybe as a list of column names with checkboxes

There will be questions about where the enriched data should be stored - in a new column called X, or multiple columns (for e.g. geocode to latitude/longitude), or some may use their own tables.

simonw commented 8 months ago

I decided to use WTForms for validation.

Here's the latest UI prototype:

CleanShot 2023-11-05 at 21 20 48@2x