-
Notifications
You must be signed in to change notification settings - Fork 147
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
[Themes] Refactor CLI server events for Hot Reload (PoC Hot Reload for OSE) #4908
Open
frandiox
wants to merge
32
commits into
main
Choose a base branch
from
fd-hmr-ose-v2
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
32 commits
Select commit
Hold shift + click to select a range
ed57291
Adapt hot reloading for OSE
frandiox 4f8f407
Wait full sync before doing full-reload
frandiox 9dbd2ae
Move CORS logic
frandiox 23cb3e1
Rely on section rendering API from the browser instead of cloud syncing
frandiox dbd0bb9
Show HR port in OSE url
frandiox 4391c33
Introduce HR filters to fork logic for OSE without affecting CLI
frandiox 1bd2a3e
Fix type in app ext
frandiox 66ee3ec
Move hot reload decisions to frontend to increase client flexibility
frandiox 0e1da8e
Basic support for OSE preview hot reload
frandiox ed65e1e
Support hot reload in prod Theme Preview
frandiox 27b1102
Sections hot reload for OSE
frandiox 8f661ed
Temporary fix for hot reloading sections in OSE
frandiox f9da2b2
Support hot reloading theme settings in OSE
frandiox 8cf4d5e
Support hot reload for language files in OSE
frandiox 5bf61d3
Skip SSE reconnection if it fails the first time to avoid console err…
frandiox dd4a80c
Support hot reload from Online Code Editor via OSE
frandiox 62f53ad
Rename type and add support for create events
frandiox b54a3e2
Send all events to OSE
frandiox 4fa7d47
Fix sections reload in OSE
frandiox 01777c2
Remove comment
frandiox 0c2b77d
Disable outdated test
frandiox f606b06
Simplify hot reload endpoints
frandiox 45bb31f
Add mechanism to log to console from HMR logic
frandiox 3319aaa
Use external dep for hot reloading client
frandiox 15056ca
Use local theme-hot-reload script when indicated via env vars
frandiox 666ef82
Rename isAppExtension to isThemeExtension
frandiox 761d551
Restore links after bad merge
frandiox 0579cf9
Fix types after rebase
frandiox 37bc181
Get sectionKey from frontend
frandiox e15251d
Update server tests
frandiox b606592
Bump theme-hot-reload
frandiox 8657282
Rename log param
frandiox File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
220 changes: 0 additions & 220 deletions
220
packages/theme/src/cli/utilities/theme-environment/hot-reload/client.ts
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do you think we should version the events here somehow? (in runtime)
This way, if we need to change something, we can prevent older versions of the CLI from breaking (we will likely need to keep triggering old events if we really change the shape of them)