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

Feat/academy embed routing #808

Merged
merged 3 commits into from
Dec 1, 2019
Merged

Feat/academy embed routing #808

merged 3 commits into from
Dec 1, 2019

Conversation

chrismclarke
Copy link
Member

closes #706

This PR does the following:

  1. Set the child iframe to the correct page on direct routing from the platform (e.g. http://localhost:3000/academy/plastic/basics shows the academy plastic basic page)

  2. listen to those updates from within the iframe itself, and update the main browser url to reflect changes from the iframe (e.g. click on the 'build' menu in the iframe sets the url as http://localhost:3000/academy/build)

In order to acheive 2, a separate has been deployed on the academy docusaurus site to emit a message whenever it's navigation url/path changes.

@chrismclarke chrismclarke requested a review from BenGamma December 1, 2019 15:13
@cypress
Copy link

cypress bot commented Dec 1, 2019



Test summary

30 0 10 0


Run details

Project onearmy-community-platform
Status Passed
Commit a019344
Started Dec 1, 2019 10:58 PM
Ended Dec 1, 2019 11:06 PM
Duration 07:56 💡
OS Linux Ubuntu Linux - 14.04
Browser Electron 73

View run in Cypress Dashboard ➡️


This comment has been generated by cypress-bot as a result of this project's GitHub integration settings. You can manage this integration in this project's settings in the Cypress Dashboard

Copy link
Contributor

@BenGamma BenGamma left a comment

Choose a reason for hiding this comment

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

I added a little commit to fix the test but otherwise, all good 👍

@BenGamma BenGamma merged commit eef8436 into master Dec 1, 2019
@BenGamma BenGamma deleted the feat/academy-embed-routing branch December 1, 2019 22:55
@BenGamma BenGamma mentioned this pull request Dec 2, 2019
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.

academy routing
2 participants