project-clippi icon indicating copy to clipboard operation
project-clippi copied to clipboard

Add option to process entire replay directory or just selected files

Open jazzdan opened this issue 4 years ago • 2 comments

Relevant part of the replay processor now looks like this:

image

If you select the "Select by individual files" radio button it changes to:

image

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

jazzdan avatar Aug 21 '20 17:08 jazzdan

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.

vinceau avatar Aug 22 '20 12:08 vinceau

Yeah that's totally fair, I'll stew on it for a bit and see if I can come up with anything.

jazzdan avatar Aug 24 '20 13:08 jazzdan