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(NavigationManager): fix render order and storybook glitches #468

Merged
merged 17 commits into from
Feb 29, 2024

Conversation

ChrisArasin
Copy link
Contributor

@ChrisArasin ChrisArasin commented Feb 16, 2024

Description

  • Allows NavigationManager children components to run layout/updates before the parent does. This prevents a mis-rendered stack of children on the first render of column/row.
  • Also includes Storybook render glitch fixes to normalize storybook rendering. These changes are described here: fix(Storybook): set theme and props before render #465
  • It helps to evaluate this PR, but we can merge separately or all together here.
  • Fixes the use of the centerKeys prop in keyboard to fix a mis-rendered first draw.

References

Related to: LUI-1328

Testing

  • Ensure Column/Row based layouts are functioning properly. Items should draw in place and not stacked on top of each other when chrome is throttled down.

Checklist

  • all commented code has been removed
  • any new console issues have been resolved
  • code linter and formatter has been run
  • test coverage meets repo requirements
  • PR name matches the expected semantic-commit syntax

@svc-lightning-ui-components
Copy link
Collaborator

Test Execution Failed.

5 similar comments
@svc-lightning-ui-components
Copy link
Collaborator

Test Execution Failed.

@svc-lightning-ui-components
Copy link
Collaborator

Test Execution Failed.

@svc-lightning-ui-components
Copy link
Collaborator

Test Execution Failed.

@svc-lightning-ui-components
Copy link
Collaborator

Test Execution Failed.

@svc-lightning-ui-components
Copy link
Collaborator

Test Execution Failed.

@svc-lightning-ui-components
Copy link
Collaborator

Test Execution Failed.

@ChrisArasin ChrisArasin force-pushed the fix/column-stacking-smaller branch from 6cfa89e to 5d1d1a8 Compare February 19, 2024 15:54
@svc-lightning-ui-components
Copy link
Collaborator

Test Execution Failed.

2 similar comments
@svc-lightning-ui-components
Copy link
Collaborator

Test Execution Failed.

@svc-lightning-ui-components
Copy link
Collaborator

Test Execution Failed.

@svc-lightning-ui-components
Copy link
Collaborator

Test Execution Failed.

1 similar comment
@svc-lightning-ui-components
Copy link
Collaborator

Test Execution Failed.

@ImCoolNowRight
Copy link
Contributor

All the stories I tested are looking good, but I did see that the TextPanel portion of GridOverlay still has a Column that is showing the TextBoxes stacked when first rendering:

Screen.Recording.2024-02-20.at.9.44.15.AM.mov

@ChrisArasin
Copy link
Contributor Author

All the stories I tested are looking good, but I did see that the TextPanel portion of GridOverlay still has a Column that is showing the TextBoxes stacked when first rendering:

So this would be an example of where waitForDimensions may still be relevant. In this case, the items don't have a height until the text textures are rendered and the textboxes update. If they had a height set beforehand, then would not stack

@ChrisArasin ChrisArasin force-pushed the fix/column-stacking-smaller branch from b402236 to 31549c8 Compare February 20, 2024 17:24
@svc-lightning-ui-components
Copy link
Collaborator

Test Execution Failed.

@svc-lightning-ui-components
Copy link
Collaborator

Test Execution Failed.

@ImCoolNowRight ImCoolNowRight force-pushed the fix/column-stacking-smaller branch from 3fa1dfb to 24bb9b0 Compare February 29, 2024 19:27
@ImCoolNowRight ImCoolNowRight force-pushed the fix/column-stacking-smaller branch from 24bb9b0 to 79fa372 Compare February 29, 2024 19:46
@svc-lightning-ui-components
Copy link
Collaborator

Test Execution Failed.

1 similar comment
@svc-lightning-ui-components
Copy link
Collaborator

Test Execution Failed.

@ImCoolNowRight ImCoolNowRight merged commit a90457a into develop Feb 29, 2024
9 checks passed
@ImCoolNowRight ImCoolNowRight deleted the fix/column-stacking-smaller branch February 29, 2024 20:09
@svc-lightning-ui-components
Copy link
Collaborator

Test Execution Failed.

svc-lightning-ui-components pushed a commit that referenced this pull request Feb 29, 2024
# [@lightningjs/ui-components-v2.20.3](https://github.com/rdkcentral/Lightning-UI-Components/compare/@lightningjs/ui-components-v2.20.2...@lightningjs/ui-components-v2.20.3) (2024-02-29)

### Bug Fixes

* **ControlRow:** fix right controls to use lazyScrolling too ([#480](#480)) ([9717848](9717848))
* **NavigationManager:** check an items render size before its set width or height for layout (important for Tiles using metadata underneath) ([#479](#479)) ([40d2e21](40d2e21))
* **NavigationManager:** fix render order and storybook glitches ([#468](#468)) ([a90457a](a90457a))
* **NavigationManager:** if an itemPosX or itemPosY are set, apply offset to scrolling ([#477](#477)) ([a02cf12](a02cf12))
* **TitleRow:** move title props to separate getter for easier extension of other components ([#478](#478)) ([ad34043](ad34043))
@svc-lightning-ui-components
Copy link
Collaborator

🎉 This PR is included in version @lightningjs/ui-components-v2.20.3 🎉

The release is available on:

Your semantic-release bot 📦🚀

@svc-lightning-ui-components
Copy link
Collaborator

Test Execution Failed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants