Improve UX of the paste special fallback dialog
Describe the Bug
In case navigator.clipboard.read() fails for paste special, then we show a dialog which does work, but it has poor UX and can easily confuse users.
Steps to Reproduce
- Open Calc
- Copy a cell
- Click the paste dropdown on the notebookbar
- Click the paste special menu item
Expected Behavior
A clear dialog that explains it's time to press Ctrl-V.
Actual Behavior
A dialog that looks like just a warning to be ignored, and a confused user when pressing OK doesn't result in a paste special.
Screenshots
Desktop
Tested on Linux with Firefox, Chrome doesn't show this dialog anymore (with experimental settings enabled).
Suggested fixes
- 'Ok' legend needs renaming to 'Cancel' in 23.05 - no translation change needed and 'Cancel paste special' in 24.04
- We should bold the 'Please press now:' - which at least in English should say: "Please press" so it is far more visible.
- We should loose the excessive white-space at the bottom of the dialog if we can.
- Probably we should have a "Paste from this document" button as well which is likely the majority use-case and shouldn't need access to the clipboard
Yep, full agree!
I think it could just be reworded to:
Your browser has very limited access to the keyboard.
Press
Ctrl+Vto see more options.
Then you would just naturally:
- Press
Cancel(or click out of popup) if you want to get out. - Press
Ctrl+Vif you want to go further.- Bringing you to the "Paste Special" dialog.
Also maybe:
- Center+Bold the first line / warning.
I think that'll make it easier to understand the popup. :)
Side Note: I just wrote a little about the clunky Calc "Paste Special" dialog here too:
- https://github.com/CollaboraOnline/online/issues/8033#issuecomment-1936949598
New look after #8366:
The above two PRs are now in, closing.