Skip to content

Comments

A better layout mechanism#216

Merged
dgdavid merged 14 commits intomulti-processfrom
layout
Jul 11, 2022
Merged

A better layout mechanism#216
dgdavid merged 14 commits intomulti-processfrom
layout

Conversation

@imobachgs
Copy link
Contributor

@imobachgs imobachgs commented Jul 8, 2022

Use react-teleporter for a better layout mechanism.

It allows wrapping the application in the layout only once and influence it from the components by using the created slots. This is far better and optimal than wrapping each main component in the layout and using props for adapting the dynamic parts.

To know more, please read https://gregberge.com/blog/react-scalable-layout and bear in mind that react-teleporter uses React Portals under the hood.


This PR continues/complement/closes #80

@coveralls
Copy link

Pull Request Test Coverage Report for Build 2648791600

  • 0 of 30 (100.0%) changed or added relevant lines in 6 files are covered.
  • 3 unchanged lines in 1 file lost coverage.
  • Overall coverage decreased (-2.3%) to 77.821%

Files with Coverage Reduction New Missed Lines %
web/src/client/network.js 3 15.0%
Totals Coverage Status
Change from base Build 2634784740: -2.3%
Covered Lines: 1393
Relevant Lines: 1790

💛 - Coveralls

@coveralls
Copy link

coveralls commented Jul 11, 2022

Pull Request Test Coverage Report for Build 2648827769

  • 31 of 31 (100.0%) changed or added relevant lines in 6 files are covered.
  • 3 unchanged lines in 1 file lost coverage.
  • Overall coverage decreased (-2.3%) to 77.821%

Files with Coverage Reduction New Missed Lines %
web/src/client/network.js 3 15.0%
Totals Coverage Status
Change from base Build 2634784740: -2.3%
Covered Lines: 1393
Relevant Lines: 1790

💛 - Coveralls

Copy link
Contributor Author

@imobachgs imobachgs left a comment

Choose a reason for hiding this comment

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

LGTM

@imobachgs imobachgs changed the title [WIP] A better layout mechanism A better layout mechanism Jul 11, 2022
@imobachgs imobachgs marked this pull request as ready for review July 11, 2022 11:06
Copy link
Contributor

@joseivanlopez joseivanlopez left a comment

Choose a reason for hiding this comment

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

I like this approach! LGTM

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.

4 participants