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: save scroll position on exit from video xblock fullscreen mode #983

Conversation

ihor-romaniuk
Copy link
Contributor

@ihor-romaniuk ihor-romaniuk commented Sep 29, 2022

This merge request contains a fix for toggling video xblock full-screen mode and saving the previous window top offset position on exit from the full-screen state.

A related bug was found here https://bugs.chromium.org/p/chromium/issues/detail?id=142427 but it still reproduces.

Realised solution: Save the scroll position before the turn on the fullscreen mode and scroll to the previous position on turn off the fullscreen mode.

Dependent PR to MFE Learning:
This MR openedx/edx-platform#31061 must be merged with this MR.

@openedx-webhooks
Copy link

Thanks for the pull request, @ihor-romaniuk! Please note that it may take us up to several weeks or months to complete a review and merge your PR.

Feel free to add as much of the following information to the ticket as you can:

  • supporting documentation
  • Open edX discussion forum threads
  • timeline information ("this must be merged by XX date", and why that is)
  • partner information ("this is a course on edx.org")
  • any other information that can help Product understand the context for the PR

All technical communication about the code itself will be done via the GitHub pull request interface. As a reminder, our process documentation is here.

Please let us know once your PR is ready for our review and all tests are green.

@codecov
Copy link

codecov bot commented Sep 29, 2022

Codecov Report

Patch coverage: 100.00% and project coverage change: -0.21 ⚠️

Comparison is base (340580c) 87.25% compared to head (65ca026) 87.04%.

❗ Current head 65ca026 differs from pull request most recent head 6f5d9fc. Consider uploading reports for the commit 6f5d9fc to get more accurate results

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #983      +/-   ##
==========================================
- Coverage   87.25%   87.04%   -0.21%     
==========================================
  Files         253      253              
  Lines        4400     4386      -14     
  Branches     1112     1111       -1     
==========================================
- Hits         3839     3818      -21     
- Misses        547      549       +2     
- Partials       14       19       +5     
Impacted Files Coverage Δ
src/courseware/course/sequence/Unit.jsx 84.37% <100.00%> (+1.76%) ⬆️

... and 5 files with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

@itsjeyd
Copy link

itsjeyd commented Oct 26, 2022

@ihor-romaniuk Thank you for your contribution! Please let us know when it is ready for review.

@ihor-romaniuk
Copy link
Contributor Author

@itsjeyd It's ready for review. Thanks in advance.

@itsjeyd
Copy link

itsjeyd commented Jan 6, 2023

Hey @ProductRyan, the edx-platform PR that corresponds to this PR was flagged for product review, so I was wondering if your team would like to have a look at this PR as well (before we put it up for engineering review)? Please let me know.

@itsjeyd itsjeyd added the product review PR requires product review before merging label Jan 6, 2023
@itsjeyd
Copy link

itsjeyd commented Jan 11, 2023

CC @jmakowski1123

@itsjeyd
Copy link

itsjeyd commented Jan 17, 2023

For reference, going forward the primary communication place for PRs related to this issue will be #981 (as mentioned here).

@itsjeyd
Copy link

itsjeyd commented Feb 8, 2023

Hey @ihor-romaniuk, just checking in to see where you're at with this work? It looks like the owning team is ready to take this PR through product review. So if you could follow up on the latest comments from openedx/platform-roadmap#229 (as well as #981 and #982), that would be great.

CC @ProductRyan @arbrandes

@itsjeyd itsjeyd removed the waiting on author PR author needs to resolve review requests, answer questions, fix tests, etc. label Mar 21, 2023
@itsjeyd
Copy link

itsjeyd commented Apr 5, 2023

Hey @ihor-romaniuk, while this is waiting for engineering review it might make sense to address codecov failures here (and backport relevant changes to #982 when done).

@itsjeyd
Copy link

itsjeyd commented Apr 13, 2023

@ihor-romaniuk A friendly ping about my previous comment.

@itsjeyd itsjeyd added the waiting on author PR author needs to resolve review requests, answer questions, fix tests, etc. label Apr 13, 2023
@ihor-romaniuk ihor-romaniuk force-pushed the fix/scroll-position-on-exit-from-video-fullscreen-mode-master branch from 64dbe13 to 40e62d3 Compare May 5, 2023 09:11
@ihor-romaniuk
Copy link
Contributor Author

Hi @itsjeyd. Sorry for delay. Tests were updated and it's ready for review.

@itsjeyd itsjeyd removed the waiting on author PR author needs to resolve review requests, answer questions, fix tests, etc. label May 9, 2023
@itsjeyd
Copy link

itsjeyd commented May 9, 2023

Hey @ihor-romaniuk, no worries and thanks for the update.

@mattcarter This PR, as well as the corresponding backports for Olive (#1077), Nutmeg (#981), and Maple (#982) are ready for engineering review by Aurora.

@itsjeyd
Copy link

itsjeyd commented May 23, 2023

@mattcarter A friendly ping on this set of PRs ⬆️. Would it be possible to get them lined up for engineering review soon?

@itsjeyd
Copy link

itsjeyd commented May 31, 2023

@ihor-romaniuk You might already be aware of it but just in case, a quick heads-up that your PR has been added to this review queue.

Copy link
Contributor

@leangseu-edx leangseu-edx left a comment

Choose a reason for hiding this comment

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

LGTM 👍

@leangseu-edx
Copy link
Contributor

@ihor-romaniuk It seems the test is stuck. I can make squash the commit and re-push the pr. I don't have permission to make the change because this pr is based on the fork repo.

@itsjeyd itsjeyd added the waiting on author PR author needs to resolve review requests, answer questions, fix tests, etc. label Jun 22, 2023
@itsjeyd
Copy link

itsjeyd commented Jun 27, 2023

Thanks @leangseu-edx!

@ihor-romaniuk Could you please follow up on the comment above so we can get a green build and merge this PR?

@ihor-romaniuk ihor-romaniuk force-pushed the fix/scroll-position-on-exit-from-video-fullscreen-mode-master branch from 65ca026 to 6f5d9fc Compare July 6, 2023 08:35
@ihor-romaniuk
Copy link
Contributor Author

Hi @leangseu-edx @itsjeyd.
Everything was fixed. Please take a look one more.

@leangseu-edx leangseu-edx merged commit 714f5d4 into openedx:master Jul 6, 2023
@openedx-webhooks
Copy link

@ihor-romaniuk 🎉 Your pull request was merged! Please take a moment to answer a two question survey so we can improve your experience in the future.

@itsjeyd itsjeyd removed the waiting on author PR author needs to resolve review requests, answer questions, fix tests, etc. label Jul 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
open-source-contribution PR author is not from Axim or 2U product review PR requires product review before merging
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

6 participants