project-clippi
project-clippi copied to clipboard
Add option to process entire replay directory or just selected files
Relevant part of the replay processor now looks like this:
If you select the "Select by individual files" radio button it changes to:
Note that "Include subfolders" and "Open location" buttons get greyed out when you do this.
I'm open to other UIs, this is not my forte.
Going in to this change I was surprised to learn that neither Windows nor macOS let you open a file picker that allows you to select both directories and files, but Linux does. That made this slightly less elegant to implement than I had hoped. I would have liked the FileInput
component to be able to select one directory, one file, or multiple files but I couldn't get this to work with TypeScript in a sound way and it seemed to be fighting the way the OS APIs want things to work anyways.
Happy to make any changes necessary, and if you decide this isn't a change you want to include no worries. :)
Thanks for building and maintaining this!
Fixes #89
Thanks for working on this PR! I think the functionality itself seems mostly fine but like you mentioned, since the Electron API for Mac and Windows doesn't allow choosing both files and folders I feel having those radio options overly complicates the user experience. Turning enabled buttons to disabled but still visible also doesn't help in that regard either. I'm going to leave this PR unmerged until we can achieve a better UI/UX.
Yeah that's totally fair, I'll stew on it for a bit and see if I can come up with anything.