GoogleDrive: reenable shared drive checkboxes + remove team drive checkboxes #5254
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Explanation
Reminder that GoogleDrive has 3 types of shared folders (see #5232).
This PR:
Reenables the checkbox for "shared with me" folder [denoted by
folder.id = VIRTUAL_SHARED_DIR
]This is in preparation for Provider views rewrite (.files, .folders => .partialTree) #5050 PR - we will want to see that when we select something inside of this folder, this folder is partially checked
BEFORE
AFTER
Also - the reason we originally removed this checkbox is because "shared-with-me" folder tends to have thousands of files, and the user might get stuck by accidentally checking this folder. This is not a problem anymore after we implemented fetch aborts.
Removes checkboxes for shared drives [denoted by
folder.custom.isSharedDrive
]BEFORE
People would be clicking on the checkbox, and it would be doing nothing. That's a very weird UI.
AFTER
We just remove checkboxes for team drives.
You might ask - why not leave them as normal checkboxes, like we just did for the "shared with me" folder.
That's explained in New provider views + disabling GoogleDrive "shared drives" #5232 (comment) - basically, the original developer said "that's throwing errors". I don't think that issue persisted, but we cannot check it, because team drives are hard to test - so let's play it safe, and keep team drive checkboxes disabled, just with a better UI.