-
Notifications
You must be signed in to change notification settings - Fork 263
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
Actions on multiple messages #2273
Comments
I'm pretty sure that is at least one existing ticket for this. But I can't find it right now. 😆 IMO the selection is a local state. It's only relevant to the component that renders the list. This shouldn't go into a store. Generally speaking this functionality isn't specific to this app. It doesn't make sense to have a specific implementation for every app that renders a list. Instead, this should be added to the https://github.com/nextcloud/nextcloud-vue components (nextcloud-libraries/nextcloud-vue#616). And then apps can specify if actions are available for multi select. 👍 on the CTRL+click behavior for power users on a desktop system. Not sure about the 3). It could also be fine to just keep showing the previously shown message. It definitely shouldn't be the (only) place for the actions, as this element is not visible on mobile. |
I didn't find neither. Strange uh?
I've hacked a little bit and that might be not too dificult to implement this functionality using HTML classes and DOM selectors:
Gotcha:
Yeah, it could also be fine. But, if multiple messages are selected and we let the user perform actions on them using the usual envelope Actions menu, then it must be clear for the user that the action he's about to perform will act on multiple messages; Again, should the action labels be automaticaly changed when multiple envelopes are selected? |
Yeah 🙈
That is correct. The individual actions on each envelope should still only affect one envelope. But once you select more than message there could be a new header that appears lile x message selected ··· <- and that open a actions menu with actions that are applied to all selected messages |
Nice idea. Is there already a component for such a header? :-) |
Hey, I've started working on this here: https://github.com/nextcloud/mail/tree/feature/2273/multi-select But I'm struggling to have the view to update directly when the user CTRL+Click on envelopes. I guess it's a reactivity issue but I can't find the solution. Any idea why the view doesn't update? @ChristophWurst ? Is it because |
Did you use |
but sounds like you're storing the selected information in the store. and as discussed before I would not consider this global state. The selected state is only relevant to the list of envelopes. It should be stored there (simple array of IDs) |
yeah fixed it :-) |
hey @ChristophWurst, I've now something working properly with the selected state stored in EnvelopeList. Now, this selected state should be reset everytime the user makes a "non-selective" action (eg: the user starts making a selection, but then changes his mind and click on the "+ New message" button). Do you have any idea how to achieve this? |
I would only clear that state when the view is shown. E.g. with the |
I am going to see if i can open a small bounty for this. This feature is badly needed :) |
#2273 Signed-off-by: Cyrille Bollu <cyrpub@bollu.be>
#2273 Signed-off-by: Cyrille Bollu <cyrpub@bollu.be>
#2273 Signed-off-by: Cyrille Bollu <cyrpub@bollu.be>
#2273 Signed-off-by: Cyrille Bollu <cyrpub@bollu.be>
#2273 Signed-off-by: Cyrille Bollu <cyrpub@bollu.be>
#2273 Signed-off-by: Cyrille Bollu <cyrpub@bollu.be>
#2273 Signed-off-by: Cyrille Bollu <cyrpub@bollu.be>
#2273 Signed-off-by: Cyrille Bollu <cyrpub@bollu.be>
#2273 Signed-off-by: Cyrille Bollu <cyrpub@bollu.be>
#2273 Signed-off-by: Cyrille Bollu <cyrpub@bollu.be>
#2273 Signed-off-by: Cyrille Bollu <cyrpub@bollu.be>
#2273 Signed-off-by: Cyrille Bollu <cyrpub@bollu.be> Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Feature Request
I would like to be able to perform actions (eg: delete) on multiple messages at once.
Summary
It looks a bit complicated to implement at first sight. So, I'd like to have some help here :-)
Here's a proposal to start the discussion.
Proposal
What I think is necessary to implement to get this functionality is:
Decision
TODO
Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.
The text was updated successfully, but these errors were encountered: