Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(personal-files): correctly filters groupfolders now #44455

Merged
merged 2 commits into from
Mar 26, 2024

Conversation

emoral435
Copy link
Contributor

@emoral435 emoral435 commented Mar 25, 2024

Summary

Previously, group folders where not being filtered out through the personal files view.
With this change, this cleaned up the code a bit and now correctly filters what it did previously, and now group folders :)

Check the screen recording below to see it in effect!

firefox_RSOGgiqWVd.mp4

Checklist

@emoral435 emoral435 added this to the Nextcloud 29 milestone Mar 25, 2024
@emoral435 emoral435 requested review from Fenn-CS and Pytal March 25, 2024 13:03
@emoral435 emoral435 self-assigned this Mar 25, 2024
@emoral435 emoral435 requested a review from susnux March 25, 2024 19:05
@Altahrim Altahrim mentioned this pull request Mar 26, 2024
Copy link
Contributor

@susnux susnux left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

makes sense!

@emoral435 emoral435 force-pushed the emoral435/fix/personalfiles/filter-group-folders branch from ef613ad to 2df1d12 Compare March 26, 2024 13:23
return isNotShared
export const isPersonalFile = function(node: File): Boolean {
// the type of mounts that determine whether the file is shared
const sharedMountTypes = ["group", "shared"]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't it be any kind of mount point? Are external storage excluded?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perhaps. Is it not possible that these external storage's containing files still belong solely to the user? These mount types are more defined to be shared, so I think its best to leave it to these. It can change easily in the future though.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

True, but they are still not personal files as "files in your personal folder".
Maybe @nextcloud/designers can give us their opinion

@emoral435 emoral435 force-pushed the emoral435/fix/personalfiles/filter-group-folders branch from 2df1d12 to 65f533d Compare March 26, 2024 15:10
Signed-off-by: Eduardo Morales <emoral435@gmail.com>
Signed-off-by: Eduardo Morales <emoral435@gmail.com>
@emoral435 emoral435 force-pushed the emoral435/fix/personalfiles/filter-group-folders branch from 65f533d to aab79a6 Compare March 26, 2024 15:12
@emoral435 emoral435 merged commit 4223c74 into master Mar 26, 2024
104 checks passed
@emoral435 emoral435 deleted the emoral435/fix/personalfiles/filter-group-folders branch March 26, 2024 15:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

files Personal View contains groupfolders
4 participants