rollthecloudinc / quell

Climate aware CMS breaking web apps free from carbon emissions.
https://demo.carbonfreed.app/pages/create-panel-page
GNU General Public License v3.0
14 stars 1 forks source link

Managing Stale Panel Pages #306

Open ng-druid opened 2 years ago

ng-druid commented 2 years ago

When user two users are on the editor at the same time. User A edits a page. User B will have a stale page. In order to sync the changes from user A to user B a web socket will be required. When a panel page changes all subscribers would be notified and the idb object would be updated across them all. This would prevent most cases of overidding anothers changes unless two people are working on the same exact page at the same exact time. Than there would need to be a notifiction that the page is stale and needs to be reloaded from idb. Unfortunately any work done would be lost with some sort of mechanism to merge changes.