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

Fixes scrolling in task #1900

Merged
merged 1 commit into from
Mar 10, 2025
Merged

Fixes scrolling in task #1900

merged 1 commit into from
Mar 10, 2025

Conversation

Iloveall
Copy link
Collaborator

@Iloveall Iloveall commented Feb 26, 2025

Description

Fixes #1897

Notes (out of scope, known isues, hints for reviewing code, ...) (optional)

The issue is - it calls global scroll while our scroll is inside specific container

Test cases

  • Case 1:
    1. Given I am the usual user
    2. When I go to this page
    3. And I click on "Scroll frame (n)"
    4. Then I see it scrolled to selected frame

@Iloveall Iloveall marked this pull request as draft February 26, 2025 09:02
@smadbe
Copy link
Contributor

smadbe commented Feb 26, 2025

@Iloveall Iloveall marked this pull request as ready for review February 26, 2025 09:12
@@ -12,6 +12,7 @@
[showTopRightControls]="!!(showTopRightControls$ | async) && !(isNarrowScreen$ | async)"
></alg-top-bar>
<div
id="main-content-wrapper"
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's easy to broke scroll feature (for example rename the class) as we have no tool for check the build, but at least the id usually means we need it for some logic in js.

As another option we can create service for scroll and use it instead of global window variable

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We could find a way to have an automated test on that.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've created the task #1902

@Iloveall Iloveall requested a review from smadbe February 26, 2025 09:24
Copy link
Contributor

@smadbe smadbe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How has it been broken?

@Iloveall
Copy link
Collaborator Author

How has it been broken?

I guess with changing of new design, so almost 2 years ago

@Iloveall Iloveall merged commit a2a94e1 into master Mar 10, 2025
12 checks passed
@Iloveall Iloveall deleted the bugfix/scroll-in-task branch March 10, 2025 12:45
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.

Investigate bug scroll in tasks
2 participants