8000 fix: Scroll issues in rundowns by olzzon · Pull Request #1420 · nrkno/sofie-core · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

fix: Scroll issues in rundowns #1420

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

Open
wants to merge 38 commits into
base: release53
Choose a base branch
from

Conversation

olzzon
Copy link
Contributor
@olzzon olzzon commented Apr 8, 2025

About the Contributor

This PR is made on behalf of BBC

Type of Contribution

This is a bug fix + refactor

Current Behavior

  • Minishelf is not part of the calculated size of the rundown, so when next, it scrolls to far and detach from on-air line
  • Lot's of screenflickering when loading a rundown
  • Performance issues on take as over 10 updates of on-air components when next.
  • On-Air button in righthand menu, was disappearing if scrolling immediately after pressing it, and a reload of page was necessary before connecting to on-air line
  • Scrolling was not smooth

New Behavior

  • detach from on-air line has a delay before it is triggered
  • refactoring of segment scrolling, measuring and position

Testing

  • I have added one or more unit tests for this PR
  • I have updated the relevant unit tests
  • No unit test changes are needed for this PR

Affected areas

This affects rundown view, and as it's a refactor, there can be unknown edge cases.
It has been tested with rundowns from BBC and NRK

Time Frame

This should be merged prior to the planned refactoring of the rundown view.

Status

  • PR is ready to be reviewed.
  • The functionality has been tested by the author.
  • Relevant unit tests has been added / updated.
  • Relevant documentation (code comments, system documentation) has been added / updated.

olzzon added 30 commits March 18, 2025 15:50
…tance was called

fix, use timeout and measure scroll to position
…as just a 5sec delay to adjust the virtualElement. Instead there's a state in viewPort telling if it's scrolling
…and useLayoutEffect. When using the 'contain: 'size layout' option, a static placeholder is fine Chrome
@olzzon olzzon requested a review from a team as a code owner April 8, 2025 08:30
Copy link
codecov bot commented Apr 8, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 56.85%. Comparing base (d7ca0ed) to head (33b803e).
Report is 33 commits behind head on release53.

Additional details and impacted files
@@              Coverage Diff              @@
##           release53    #1420      +/-   ##
=============================================
- Coverage      56.87%   56.85%   -0.02%     
=============================================
  Files            404      404              
  Lines          73147    73222      +75     
  Branches        4041     4457     +416     
=============================================
+ Hits           41603    41634      +31     
- Misses         31410    31447      +37     
- Partials         134      141       +7     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@jstarpl jstarpl changed the title Fix: Scroll issues in rundowns fix: Scroll issues in rundowns Apr 8, 2025
@jstarpl jstarpl added Contribution External contribution Contribution from BBC Contributions sponsored by BBC (bbc.co.uk) labels Apr 8, 2025
Copy link
Member
@jstarpl jstarpl left a comment

Choose a reason for hiding this comment

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

Testing this locally, I see some issues with the new implementation of VirtualElement and it measuring the elements. Specifically, hidden Segments (isHidden) seem to be throwing it off.
obraz

I think there's also some issue with Segment placeholders and their margins (note the red line - the position of a regular Segment and the Placeholder don't align):
obraz

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Contribution from BBC Contributions sponsored by BBC (bbc.co.uk) Contribution External contribution
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
0