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

App hierarchy #152

Merged
merged 4 commits into from
Mar 27, 2017
Merged

App hierarchy #152

merged 4 commits into from
Mar 27, 2017

Conversation

fahad19
Copy link
Member

@fahad19 fahad19 commented Mar 25, 2017

What's done

  • Parent/Child relationship between Apps is now fully hierarchical
    • We currently only have Root App ==> Widget hierarchy
    • With this PR, we now have Root App ==> As ==> Many ==> Apps ==> Widget
  • More tests written
  • Docs provided
  • Does not change the behaviour of 1.x in any way, and in fact makes it purer

Future

This PR now makes way for things like:

  • Routing system with nested views
  • Concept of Shell App that we discussed before (for PWA), which can closely work with Service Workers

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.02%) to 97.291% when pulling 9dd02ea on app-hierarchy into 610509a on master.


expect(() => widget.setRegion('sidebar')).to.throw(/No root app instance available/);
});
// expect(() => widget.setRegion('sidebar')).to.throw(/No root app instance available/);
Copy link
Member

Choose a reason for hiding this comment

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

why you didn't remove this?

Copy link
Member Author

Choose a reason for hiding this comment

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

I moved all the tests of frint v0.x to frint-compat and kept them unchanged to make sure we can depend on frint-compat reliably.

If I really had to remove any individual test, I added a NOTE on top of the commented block explaining why it's not needed any more.

Just to keep a reference.

@fahad19 fahad19 added the PR label Mar 27, 2017
@fahad19 fahad19 merged commit 88c339f into master Mar 27, 2017
@fahad19 fahad19 deleted the app-hierarchy branch March 27, 2017 09:25
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.

6 participants