SDU-eScience / UCloud

https://docs.cloud.sdu.dk
European Union Public License 1.2
19 stars 7 forks source link

Store file "clipboard" outside of the component #4360

Closed DanThrane closed 1 week ago

DanThrane commented 1 month ago

This should allow for copying & pasting files across component reloads. It does not have to be persistent across page reloads, but could be (maybe add a max age in that case).

Tiggles commented 1 month ago

Some things to maybe consider:

DanThrane commented 1 month ago

Should the copy paste also allow to happen between modals and non-modal components (and vice versa)?

I don't see any reason why it shouldn't be allowed.

When should it be removed from the clipboard? E.g. leaving a specific page, accessing specific pages, etc. (age already mentioned)

For a normal copy, I don't think it should unless overriden by a new copy. For cut it should disappear when pasted. We could consider a maximum life-time of a few minutes, but beyond that I don't think it should disappear for any reason related to the UI.

Tiggles commented 1 month ago

Good. I agree with both of these.

Tiggles commented 1 week ago

Is this considered finished with the feature flag in place? @DanThrane