-
Notifications
You must be signed in to change notification settings - Fork 353
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
Improvement to Notes Panel Reply Open/Closed states #78
Comments
Thanks for the suggestion! We will put this into the backlog and resolve it when we work on usability improvements. |
Just wanted to follow up, we tried testing on our online demo and we could not reproduce this issue:
What we observed is that you can scroll through the document with your reply open & focused if you hover over the document and scroll (without clicking). We also talked to our design team, and they were worried about breaking the consistency between selected annotations and expanded notes. |
Hey Chris,
I'm still having trouble reproducing this issue. When you have time, can you double check if this issue still occurs? I'm attaching a gif below about what I see: Regarding the open/closed state for the Currently the And by default if a user clicks somewhere in the document container, all of the annotations will be deselected. This means this event will be triggered again and corresponding notes will be closed. To make the notes remain open, we could make the code look like this: useEffect(() => {
const onAnnotationSelected = (e, annotations, action) => {
if (action === 'selected') {
const ids = {};
core.getSelectedAnnotations().forEach(annot => {
ids[annot.Id] = true;
});
setSelectedNoteIds(ids);
}
};
core.addEventListener('annotationSelected', onAnnotationSelected);
return () =>
core.removeEventListener('annotationSelected', onAnnotationSelected);
}, []); However this will make the note not closable by clicking on itself. I've thought about letting the One last option that might work is to pass Let me know how important is this improvement for you. If it's important I can dig into this more and figure something out. |
Hi. Sorry, I had forgotten all about some of these issues. So, I know I tested this on your online demo because we totally overwrite the notes panel and put it back on the right side with a different UI/UX. So my picture is from your demo. However, that was about 9 months ago so many things could have changed since then. Testing today's demo, it seems the issue no longer exists. As you've demonstrated focus is correctly given to the document if the mouse is in the document and is given to the NotesPanel if it's there. So that can be closed. The open/closed state is honestly not a big problem. It was something our QA brought up and we thought it could be an improvement. Thanks for giving it some thought and anything you decide will be just fine. This issue can be closed as far as I'm concerned. Thanks again. |
Reply text box should remain open if you click off or onto the the PDF as long as you do not select another annotation.
If there are a lot of annotations and you click off it makes every annotation look the same (closed state), so it can be hard to tell where you were just typing. Also, since you have many annotations, any usage of the mousewheel to scroll will scroll the Notes Panel instead of the document, so you must click out to scroll (which makes you lose your annotation in the list).
Could be something for individual users to sort out, but we thought it was more of an overall improvement to the UI.
The text area / text box in question:
The text was updated successfully, but these errors were encountered: