Closed BincyJ closed 3 years ago
@birchamp to confirm if users would like an indicator on internet connection activity.
tc-create-app datatable-translatable markdown-translatable scripture-resources-rcl gitea-react-toolkit
https://github.com/unfoldingWord/tc-create-app/commit/d2a19fac4abd6c3699dacbb65576cdf142fc479d
https://github.com/unfoldingWord/gitea-react-toolkit/commit/9982f0c26b01d063c48a46d236f2e7eb4e5e578a
.
IndexedDB storage:
Recent articles:
https://web.dev/storage-for-the-web/#indexeddb
Older articles:
https://stackoverflow.com/questions/5692820/maximum-item-size-in-indexeddb
https://developer.chrome.com/docs/apps/offline_storage/#temporary https://developer.mozilla.org/en-US/docs/Web/API/IndexedDB_API/Browser_storage_limits_and_eviction_criteria#storage_limits
.
yalc add markdown-translatable yalc add datatable-translatable yalc add gitea-react-toolkit yalc add scripture-resources-rcl
43-867 - AutoSave Notes
Stories:
Phase 2 ?
(Related = Prompt user to save #883)
Regression Cases ("OLD")
Autosave Cases ("NEW")
PRs:
tc-create-app datatable-translatable markdown-translatable scripture-resources-rcl gitea-react-toolkit
https://github.com/unfoldingWord/tc-create-app/commit/d2a19fac4abd6c3699dacbb65576cdf142fc479d
https://github.com/unfoldingWord/gitea-react-toolkit/commit/9982f0c26b01d063c48a46d236f2e7eb4e5e578a
Diff Viewer: https://www.npmjs.com/package/react-diff-viewer
IndexedDB storage:
.
Use Case: Intermittent internet connection . How do we avoid data loss in this scenario.
Translators can continue editing on tC Create if they lose internet connection and save their work once internet connection is re-established. Auto-saving here means saving data automatically to the offline cache. Data saved on blur.
Not full offline. So when logging out user should be warned that they'll lose their work if they skip clicking on save. As part of POC , Identify the events that may cause work to be lost.
Online - Data saved and loaded from the user branch Offline - Auto-save to index DB.