-
Notifications
You must be signed in to change notification settings - Fork 960
Improved autosaved state for comments #7445
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
Improved autosaved state for comments #7445
Conversation
pedropintosilva
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @rparth07
it seems that now the comment (edit mode) is visible for other users
and I also get when opening the same document and trying to comment in two different browsers
17:41:10.008 Uncaught TypeError: this._viewInfo[viewid] is undefined
getViewName Map.js:872
insertComment CommentListSection.ts:8
_insertAnnotationControl Control.NotebookbarBuilder.js:936
jQuery 2
6 Map.js:872:2Also it the user comes back and doesn't press any button and clicks in another part of the document -> it's then impossible to edit the comment
Sure, let's clarify the intended behavior. If I understand correctly, you're suggesting that the comment in edit mode should not be visible to other users once the focus is lost. Is that the expected behavior we aim for?
I couldn't replicate the error on my end. Could you please provide detailed steps to reproduce the issue? Additionally, are there specific browsers where this problem occurs?
The described behavior does sound unusual. Could you please provide more details on this issue? Also, do you think this behavior is related to the error mentioned earlier? Any insights you can share will help me in thoroughly understanding and resolving this. Thank you for your assistance @pedropintosilva . |
385b4d3 to
4345b46
Compare
|
@rparth07 can you please rebase and solve the conflicts here ? |
|
Thanks @eszkadev @Darshan-upadhyay1110 will do:) |
84f1a41 to
5542fa1
Compare
|
Merge commits are not allowed... |
eb95f46 to
feb0023
Compare
sorry, It was by mistake! |
|
I resolved the merge conflicts and updated the relevant test cases for autosaved comments. However, in the multi-user Cypress tests, three test cases related to reply autosave are currently failing. Upon further investigation, I found a potential issue (#10429) that may be causing these test failures. I believe that addressing this issue will likely resolve the failing test cases. |
|
Tests are now passing. @rparth07 will you have some time to update this PR and rebase on top of master? |
Sure, will do it by today. |
feb0023 to
9e5b8d0
Compare
|
please rebase, we have API change again... |
9e5b8d0 to
e5ff930
Compare
|
this can have conflicts with #10772 |
799f357 to
013232c
Compare
|
oh @rparth07 thanks for rebasing last week, I think we had CI broken. Could you try again next qweek? maybe we will merge it finally :) |
894a8b3 to
359c42f
Compare
359c42f to
9057fbd
Compare
9057fbd to
d7be124
Compare
defd49c to
bd55bf7
Compare
|
@lpranam could you review as you know the comments auto-save code? :) |
bd55bf7 to
8605511
Compare
lpranam
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Rest of the code looks good. except my one small comment. also maybe run make prettier-write to solve the issue meven pointed.
1b610ec to
fe6c9be
Compare
fe6c9be to
45cf4c7
Compare
This commit addresses issue CollaboraOnline#7211 by enhancing the user experience for the autosaved comments feature. The changes ensure users can easily recognize autosave status without increasing widget height. To test the fix, manually verify the autosave behavior by changing focus to another browser tab and checking that the comment remains editable with clear autosaved feedback. Change-Id: I967fee3e4f696b8433a22602af759e1b758bb7b4 Signed-off-by: Parth Raiyani <[email protected]> Change-Id: If29ce863ed31e5de903abcb5cb10d571672912fe
Signed-off-by: Parth Raiyani <[email protected]> Change-Id: I961abaff25c9062b99d27d50b66e0967da7f4168
45cf4c7 to
c08dbd9
Compare
Change-Id: I9ad6c36a393ef5d895ee463f44569c52f1c8fd61
Checklist
make checkmake runand manually verified that everything looks okay