iiab / calibre-web

:books: Web app for browsing, reading and downloading eBooks stored in a Calibre database
GNU General Public License v3.0
4 stars 5 forks source link

Cannot copy/paste [simple error message] text from Tasks view table [instead, large HTML blocks are highlighted/dragged, making bug reporting very painful] #269

Open deldesir opened 1 month ago

deldesir commented 1 month ago

What's causing this? Can it be fixed? I am working on it.

holta commented 1 month ago

Others are facing almost the identical/painful issue here:

avni commented 1 month ago

Testing Copy/Paste from Safari 17.0 on MacOS 14.0

NB: In the first pass, you'll see last row is unselected and not copied, but all other selected test copies/pastes successfully. I'm able to copy/paste that last row independently in a subsequent pass.

https://github.com/user-attachments/assets/0ef80de4-c470-4a27-b211-77d0314dad4f

holta commented 1 month ago

Does copy/pasting individual words, and individual error message sentences, work cleanly in Safari?

avni commented 1 month ago

Testing Copy/Paste from Chrome Version 128.0.6613.138 on MacOS 14.0

NB: I can copy/paste IFF I copy quickly. The selection gets deselected quite quickly - not an ideal experience for the user. If I do it fast enough though, I can copy/paste rows, cells, and individual words.

https://github.com/user-attachments/assets/ccb349fb-9186-4e29-9ef8-eb9b6b3bfdef

avni commented 1 month ago

Does copy/pasting individual words, and individual error message sentences, work cleanly in Safari?

It does, but same behavior as Chrome, where I have to select, copy quickly or the text becomes deselected.

Testing Copy/Paste of individual words and error message sentences from Safari 17.0 on MacOS 14.0

https://github.com/user-attachments/assets/183990d7-b84a-4def-aa5f-57f3061d215d

holta commented 1 month ago

I've never been able to copy/paste a simple error message (small phrase or sentence) on the right side of the URL in the "Task" column.

For me, that's the crux of the question.

(I'm still not understanding whether Safari behavior is different, but we're definitely getting closer.)

holta commented 1 month ago

copy/paste a simple error message (small phrase or sentence) on the right side of the URL in the "Task" column

@deldesir can you please add a screencast to this ticket, showing your own experience?

(I'm not saying this mess is fully solvable! But still let's understand the root cause[s] of this fiasco much better!!)

avni commented 1 month ago

On MacOS, in both Safari and Chrome, 1/ if I am selecting text by dragging, I cannot copy ONLY the text after the URL, it selects all of the text in the cell; 2/ I can, however, double click on a single word successfully. For both 1 & 2, I have to select/copy quickly, otherwise the text becomes unselected. So there's definitely a bug even though there are odd workarounds to achieve the copy/paste.

Here is a screencast of this behavior in Chrome. Safari behaves similarly.

https://github.com/user-attachments/assets/5484fa25-efa6-423f-9aae-e69f0335ea2d

holta commented 1 month ago

Periodic refreshing is happening every 1000ms in the Tasks page (I wish I knew this when dealing with race conditions months ago). Fix this by using end_time in a loop.

@deldesir's new ticket (excerpt above) appears very related to... 1 of the 2 underlying copy/pasting problems?

deldesir commented 1 month ago

Here is how it looks in Microsoft Edge:

https://github.com/user-attachments/assets/1c25adfd-0d83-43b0-89b4-70e4eb4dd416