[MGNLUI-4623] Refresh app definition when subapp is opened or browser is refreshed Created: 11/Sep/18 Updated: 01/Sep/20 |
|
| Status: | Accepted |
| Project: | Magnolia UI |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Story | Priority: | Neutral |
| Reporter: | Christopher Zimmermann | Assignee: | Unassigned |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Template: |
|
| Acceptance criteria: |
Empty
|
| Task DoD: |
[ ]*
Doc/release notes changes? Comment present?
[ ]*
Downstream builds green?
[ ]*
Solution information and context easily available?
[ ]*
Tests
[ ]*
FixVersion filled and not yet released
[ ] 
Architecture Decision Record (ADR)
|
| Epic Link: | Content Types phase 2 |
| Description |
Acceptance Criteria
The use case is that as a developer I am working on the editor subapp - most commonly via a content type file, but also possibly by working on a raw app definition, or I have a totally custom subapp. It really slows down my work if I have to close the entire app just to see if my changes have taken effect. I should at the most just have to close and reopen the subapp - or do a simple browser refresh. Suggestions: 1. Refresh the app definition whenever a subapp is opened, when system is in "developer mode". Only in developer mode as this definition reloading will probably have a negative impact on UI performance. If it is "too hard" to maintain the state of the app when reloading the entire app, that could be grounds for not implementing the feature in this way. 2. Refresh the app definition when a browser refresh is performed - even when not in developer mode. Ideally any state would be preserved, but its ok to lose state if the user does a browser refresh. |
| Comments |
| Comment by Christopher Zimmermann [ 11/Sep/18 ] |
|
It would be incredibly cool if a push mechanism would automatically update the UI when I changed the configuration while in developer mode. Something like what "browsersync" and "livereload" do for frontend development. |