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

Add multiple files to favorites #7627

Closed
MariusBluem opened this issue Dec 26, 2017 · 13 comments · Fixed by #38950
Closed

Add multiple files to favorites #7627

MariusBluem opened this issue Dec 26, 2017 · 13 comments · Fixed by #38950
Assignees

Comments

@MariusBluem
Copy link
Member

See proposed mockup:

bildschirmfoto 2017-12-26 um 18 35 06

  • Nextcloud 13
@MariusBluem MariusBluem added this to the Nextcloud 13 milestone Dec 26, 2017
@rullzer rullzer modified the milestones: Nextcloud 13, Nextcloud 14 Jan 2, 2018
@nextcloud-bot nextcloud-bot added the stale Ticket or PR with no recent activity label Jun 20, 2018
@weeman1337
Copy link
Member

I'll take this one.

@nextcloud-bot nextcloud-bot removed the stale Ticket or PR with no recent activity label Jul 2, 2018
@weeman1337
Copy link
Member

I think this isn't as trivial as I thought in the beginning. It's more than just adding the action:

If the user selects only non-favorites: Action "Add to favorites" ✓

If the user selects only favorites: Action: "Remove from favorites" ✓

If the user select favorites and non-favorites?

  • Should we display both actions "Add to favorites" and "Remove from favorites"? That means if there are already some favorites and the user selects "add" the files simply keep their favorite status.
  • Not display the actions.

@MorrisJobke
Copy link
Member

Most likely nothing for 14 -> moving to 15.

@MorrisJobke
Copy link
Member

@weeman1337 You still can continue to think about this and work on this, but it will then be integrated into 15 first.

@tobiasKaminsky
Copy link
Member

Once this is in, we should also do this on client-side

@MorrisJobke
Copy link
Member

Once this is in, we should also do this on client-side

You can already do this. It only needs a client side implementation. For multiple files/folder moves we trigger just multiple MOVE requests from the frontend, which allows proper UI feedback as well. The favorites already can be tagged via the PROPPATCH method. The only problem here is that the activity is not yet implemented. See #26393

@tobiasKaminsky
Copy link
Member

So there will be no new endpoint to pass bunch of file so mark them as favorited?

@MorrisJobke
Copy link
Member

So there will be no new endpoint to pass bunch of file so mark them as favorited?

Correct - only multiple PROPPATCH requests.

@szaimen
Copy link
Contributor

szaimen commented Jul 6, 2021

@weeman1337 Any update here?

@ghost
Copy link

ghost commented Aug 5, 2021

This issue has been automatically marked as stale because it has not had recent activity and seems to be missing some essential information. It will be closed if no further activity occurs. Thank you for your contributions.

@ghost ghost added the stale Ticket or PR with no recent activity label Aug 5, 2021
@ghost ghost closed this as completed Aug 19, 2021
@tobiasKaminsky
Copy link
Member

Still a valid enhancement, no idea why bot closed this.

@tobiasKaminsky tobiasKaminsky removed needs info stale Ticket or PR with no recent activity labels Aug 20, 2021
@szaimen szaimen added 1. to develop Accepted and waiting to be taken care of and removed 0. Needs triage Pending check for reproducibility or if it fits our roadmap labels Aug 20, 2021
@skjnldsv skjnldsv self-assigned this Jun 20, 2023
@skjnldsv skjnldsv added 2. developing Work in progress and removed 1. to develop Accepted and waiting to be taken care of labels Jun 20, 2023
@tobiasKaminsky
Copy link
Member

@skjnldsv is there a specific new API to bulk add files to favorite, or is it "just" doing it one by one?

@skjnldsv
Copy link
Member

For now one-by-one.

If I start adding dedicated APIs, I will ping the client team, I'll keep that in mind, no worries :)

async execBatch(nodes: Node[], view: Navigation) {
const willFavorite = shouldFavorite(nodes)
return Promise.all(nodes.map(async node => await favoriteNode(node, view, willFavorite)))
},

@skjnldsv skjnldsv moved this to Done in Files to vue Aug 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

8 participants