[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   

As a developer, I want an open app to always have the latest definition that has been configured or programmed, so that I can work efficiently and without hassle.

Acceptance Criteria

  • If I reopen a subapp (while in developer mode), the subapp UI reflects the actual configuration.
  • If I refresh the browser - An open subapp UI reflects the actual configuration.

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.

Generated at Mon Feb 12 09:18:27 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.