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
fix: Comments navigation issues. #2638
fix: Comments navigation issues. #2638
Conversation
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.
@victorgcramos Nice job so far, I know it's a wip
just pointed out some improvements to the
current state in inline comments.
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.
Code looks good. Left a few suggestions.
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.
-
The record "Go Back" button is not taking you back to the home page, it's taking you back to the previous URL. If a user is clicking through comments, the back button will take them to the previous comment link that they were at.
-
Can we clean this flickering up and smooth it out?
tmp-2021-10-22_16.19.33.mp4
@lukebp changed the Go Back link a bit. If location is The navigation hierarchy can be defined using the E2E Snapshots |
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.
@victorgcramos that makes sense. Nice work.
tACK on Firefox.
Needs code approval from @tiagoalvesdulce.
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.
I found one more potential issue related to comment navigation. Click an external link in a comment:
- There is unnecessary flickering caused by a rerender of the background when the link modal pops up. The expected behavior is to not see any background flickering.
- Nagivate to the link. The browser tab will change. Change the browser tab back to politeia and the view will have repositioned to the top of the comment section and also isn't displaying the page properly. The expected behavior is for the view to still be positioned at the same location from when you originally clicked the link.
The screen recording is from this proposal: https://proposals.decred.org/record/c1f5b5c
tmp-2021-10-27_08.17.20.mp4
@lukebp can you check if it happens on this PR? This is how it looks like: |
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.
@victorgcramos must already be fixed. Thanks for verifying.
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.
LGTM
This PR fixes some comments navigation issues.
Closes #2637
Closes #2633
Closes #2636
Closes #2620
Closes #2615