Skip to content
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

Re-rendering and page positioning issues. #2615

Closed
lukebp opened this issue Sep 27, 2021 · 2 comments · Fixed by #2638
Closed

Re-rendering and page positioning issues. #2615

lukebp opened this issue Sep 27, 2021 · 2 comments · Fixed by #2638
Labels
bug A bug that made it into a production environment.
Milestone

Comments

@lukebp
Copy link
Member

lukebp commented Sep 27, 2021

Found a couple issues with external links in comments. The screen recordings refer to the GoDCR proposal.

  1. Clicking on an external link in the comments section causes the screen to reposition itself at the top of the comments section. It should not do this.
tmp-2021-09-27_17.08.36.mp4
  1. If the scrollToComments=true param is set (GoDCR example) then you also get a weird re-render flickering.
tmp-2021-09-27_17.11.58.mp4
  1. Add a external link to the comment markdown editor, preview it, click on it in the preview. It closed the editor and moves the page position back to the top of the comments section. The comment markdown editor should not be closed and the screen should not be re-positions.

  2. The page is also be repositioned when the login modal pops up.

tmp-2021-09-28_14.49.20.mp4

We need to put some time into smoothing all of this out. It makes the website janky and hard to use when things are constantly being re-rendered and moving the scroll position around.

@lukebp lukebp added 91cfcc8 bug A bug that made it into a production environment. labels Sep 27, 2021
@lukebp lukebp changed the title Bad page scrolling on external links. Bad page repositioning. Sep 28, 2021
@lukebp lukebp changed the title Bad page repositioning. Re-rendering and page positioning issues. Sep 28, 2021
@lukebp lukebp added this to the v1.3.0 milestone Oct 1, 2021
@lukebp
Copy link
Member Author

lukebp commented Oct 12, 2021

There appear to be multiple navigation issues related to the ?scrollToComments=true. This issue and #2620 can probably be addressed at the same time.

@victorgcramos
Copy link
Member

victorgcramos commented Oct 18, 2021

Actually, the navigation re-rendering happens due to comments structure: It's currently bound to proposal scope due to #2549, so every time some proposal detail is getting updated, comments list will too. Since the modal is displayed in the current screen position, and the details page gets re-rendered every time, the modal will always be displayed at the top of the screen.

Although visual changes only affect the modal scrolling and stuff like that, fixing it will require a comments section refactoring so we get away with this regarded dependency from what I could conclude with my code analysis.

Any thoughts on this? @amass01 @tiagoalvesdulce

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug A bug that made it into a production environment.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants