hydrus icon indicating copy to clipboard operation
hydrus copied to clipboard

More granular default import options than just "quiet" and "loud" import contexts

Open roachcord3 opened this issue 1 year ago • 0 comments

Right now, the options menu allows you to set default import options for only two cases: "quiet" and "loud" import contexts. The description for these settings gives some examples of what falls into each category, like so:

Import options dialog screenshot

I think that it could be useful to be able to set default import options on that level of granularity, i.e., for each example that the setting description gives, as well as the things it doesn't mention. Perhaps this could be displayed in a way that, by default, lets the user just set the options for the whole category, but if they want, they can override the default for the more granular cases. I'm too lazy to do a UI mockup, but markdown bullet points should suffice.

  • For 'quiet' import contexts:
    • For import folders:
    • For subscriptions:
    • For Client API:
    • For (insert other "quiet" import context type here):
    • ...
  • For 'loud' import contexts:
    • For downloader pages:
    • For manual imports:
    • For (insert other "loud" import context type here):
    • ...

You could indicate to the user that the more granular cases are inheriting the default for "quiet" or "loud" (whichever they fall into) by greying out their text and writing something like "[Using 'quiet'/'loud' defaults]" next to their "file import options" button, until the user presses said button and changes something. I think this is more than self-explanatory enough, but for the sake of users who may not get it, a short explanation at the top of the menu might be a good idea. Something like this:

NOTE: you can override the behavior for more specific import contexts by changing their file import options separately from the file import option for 'quiet' and 'loud' import contexts. If something doesn't say "[Using 'quiet'/'loud' defaults]" next to its file import options button, then it has been overridden.

The final matter to address here is how returning to default behavior should work. I think that the file import options dialog window should, when opened for a sub-category, have a button that says "restore 'quiet'/'loud' defaults" or something of the like, which will stop overriding the behavior for that sub-category. I do not think that changing the behavior of the less granular "quiet" or "loud" category should reset the overrides done on the sub-categories, nor should simply copying the settings manually to match the less granular category count as returning to default behavior (since you may forget what your "quiet" or "loud" defaults are currently set to, change something in your sub-category's behavior, then later change something in your "quiet" or "loud" defaults, and it would be unpleasant to have your sub-category's behavior change.)

BTW, my personal use case for this is that I want to make the default behavior of dragging-and-dropping folders into my client to not exclude deleted files, but otherwise I want to exclude them. So, I don't want to change how downloader pages' behavior works, for example, as these are both "loud" import contexts (as I understand it.)

I hope this makes sense. Please let me know if I need to clarify anything. Also, the proposed design for the feature is just a hypothetical, I'm not married to it and as long as I can get the granularity I need, I'm happy.

roachcord3 avatar Dec 25 '23 01:12 roachcord3