Skip to content
This repository has been archived by the owner on Apr 13, 2024. It is now read-only.

Migrate to launching shell as a child app #9

Merged
merged 6 commits into from
Apr 12, 2024

Conversation

AtkinsSJ
Copy link
Contributor

@AtkinsSJ AtkinsSJ commented Apr 9, 2024

Rather than embedding Phoenix in an iframe, launch it as a child app and then use the provided AppConnection to communicate with it.

Note that phoenix has to be registered in Puter as an app for this to work, and this also relies on HeyPuter/puter#255 and the connected Puter.js changes.

AtkinsSJ added 6 commits April 9, 2024 11:00
Rather than embedding Phoenix in an iframe, launch it as a child app and
then use the provided AppConnection to communicate with it.
Observing window resize events and also using a ResizeObserver means
every resize event gets reported twice.
Now that we launch phoenix as its own app, we don't have to care what
its URL is. Perhaps at some point we could have a config for which
shell app to launch instead.
@AtkinsSJ AtkinsSJ marked this pull request as draft April 9, 2024 22:01
@AtkinsSJ AtkinsSJ marked this pull request as ready for review April 12, 2024 10:18
@AtkinsSJ
Copy link
Contributor Author

This is ready, I think! Make sure to merge at the same time as HeyPuter/phoenix#77

@AtkinsSJ AtkinsSJ changed the title WIP: Migrate to launching shell as a child app Migrate to launching shell as a child app Apr 12, 2024
@KernelDeimos KernelDeimos changed the base branch from trunk to monorepo-prep April 12, 2024 21:59
@KernelDeimos KernelDeimos merged commit a3de0f6 into HeyPuter:monorepo-prep Apr 12, 2024
1 check passed
@AtkinsSJ AtkinsSJ deleted the child-shell branch April 13, 2024 13:30
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants