monmouth-college-cs / kieft21-text-dashboard

0 stars 0 forks source link

Wrangle Page -- Interactivity and More Options #18

Open robertutterback opened 3 years ago

robertutterback commented 3 years ago

Currently the wrangle page is very basic. In particular, it assumes that all text documents need to be split up with the same patterns. This is often not the case -- it is not even true for my example datasets!

Instead, we need to present the user with an interactive hierarchy of the files they uploaded. They can select a whole folder and apply any splitting patterns to everything within that. They can also select individual files (and can select multiple files at the same time) and input the splitting patterns for them.

If a splitting patterns is applied to a whole folder, but a separate splitting pattern is applied to a file within that folder, the one applied to the file supersedes that applied to the folder.

If the user selects a single file, a few things should happen:

Note that there are several string patterns which must be handled separately. For example, the user might put in an article splitter that applies to a whole folder, but want to specify start-of-article patterns that are different for each file within that folder.

robertutterback commented 3 years ago

Note that some file formats, e.g., Excel, don't require all this. In that case just give the user the option to preview the wrangling.