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

Fix scroll resetting on rerun or review #203

Merged
merged 1 commit into from
Aug 8, 2024

Conversation

omar-selo
Copy link
Collaborator

Description

On artefact page, when you scroll then rerun or review an environment, the scroll position resets to the top. After lots of debugging turns out that the issues occurs because initially the ArtefactPageBody widget builds a ListView. When you rerun or approve an artefact the ArtefactPageBody builds a YaruCircularProgressIndicator for a split second before building a ListView again. During this split second the older ListView is destroyed and together with it the scroll position on this page. To resolve the issue we avoid building a YaruCircularProgressIndicator during that split second. This can be done by using the filtered test executions provider's value property. This property will return the previous filtered test executions list while it's loading the changes of the rerun/review. Hence the ListView is always returned even when loading (at least not initially).

Resolved issues

https://warthogs.atlassian.net/browse/RTW-344

Documentation

None

Web service API changes

None

Tests

Screencast from 2024-08-08 13-36-46.webm
Screencast from 2024-08-08 13-40-35.webm

@omar-selo omar-selo merged commit 7eb4eef into main Aug 8, 2024
1 of 2 checks passed
@omar-selo omar-selo deleted the fix-scroll-resets-on-review branch August 8, 2024 13:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants