Abdullah Atta
2e79b2c7a2
core: run trash cleanup after sync completion
2025-03-26 13:44:16 +05:00
Abdullah Atta
59e06ef938
core: fix sync not running on app startup
2024-11-13 18:12:54 +05:00
Abdullah Atta
459cd70c32
core: lazy load signalr
2024-11-13 15:48:33 +05:00
Abdullah Atta
19c2d2007f
core: fix imports in tests
2024-09-23 15:32:13 +05:00
Abdullah Atta
59739067b6
core: make imports compatible with esm
2024-09-23 15:32:12 +05:00
Abdullah Atta
84d68ca67b
core: add more tests
2024-08-27 16:04:51 +05:00
Abdullah Atta
bea0f1ab0e
core: fix conflicts being shown on non-conflicted notes
2024-08-13 11:09:03 +05:00
Abdullah Atta
5357be4741
web: cancel attachments caching on disabling offline mode
2024-08-13 11:09:03 +05:00
Abdullah Atta
fbcb8675ca
core: optimize attachment caching in offline mode
2024-08-13 11:09:03 +05:00
Ammar Ahmed
d12ed967e3
mobile: add support for offline mode, backup with attachments
2024-08-13 11:09:03 +05:00
Abdullah Atta
57ddaafc16
core: download all attachments when full offline mode is on
2024-08-13 11:09:03 +05:00
Abdullah Atta
c94da3bdf0
core: use single listener for receiving pushed items
2024-06-25 08:30:41 +05:00
Abdullah Atta
43f4669360
core: fix notes with no conflict marked as conflicted
2024-05-17 12:29:58 +05:00
Abdullah Atta
8de98d98ab
core: fix merger tests
2024-05-16 09:30:28 +05:00
Abdullah Atta
4c4cda1c39
core: create conflict if local item is unsynced
...
previously we were only creating a conflict when the local item was
edited after the remote item. This failed in cases where even though
the local item was edited before the remote item, it still contained
important information.
Now we only check if the local item is synced or not. If it isn't synced,
we most probably want to preserve the local changes, or at least want
to be notified.
2024-05-15 12:36:38 +05:00
Abdullah Atta
6fcbde772c
core: fix notes marked as conflicted wrongly
2024-05-15 12:34:23 +05:00
Abdullah Atta
5eea179a58
core: set conflicted property on notes after fetch is done
2024-05-14 15:21:00 +05:00
Abdullah Atta
cf1b774255
core: filter out conflicted notes & content during sync
2024-05-14 15:21:00 +05:00
Abdullah Atta
198fa33fc0
core: do not update dateModified when setting synced=true
2024-05-14 15:21:00 +05:00
Abdullah Atta
4819e17da3
core: rerun sync if there are unsynced changes after sync complete
2024-05-08 16:48:59 +05:00
Abdullah Atta
ac96354b4c
core: handle case when updating item while a push is ongoing
2024-05-06 22:04:04 +05:00
Abdullah Atta
63f44d6fbc
core: set synced to false on removing content by note id
2024-05-06 15:45:45 +05:00
Abdullah Atta
523da4e91f
core: only delete attachment file (not the metadata) on sync conflict
2024-05-04 22:51:01 +05:00
Abdullah Atta
aa9b24fa10
core: do not run auto sync on changes in notehistory & sessioncontent collections
2024-04-22 09:37:54 +05:00
Abdullah Atta
c9e5ee9ddb
core: use database logger instead of console.error
2024-04-18 09:37:21 +05:00
Abdullah Atta
97490a5e37
web: make app work in offline mode
2024-03-22 08:19:28 +05:00
Abdullah Atta
a8896b847f
core: fix imports
2024-03-21 11:22:10 +05:00
Abdullah Atta
335021090d
core: refactor database update event logic
2024-03-21 11:21:08 +05:00
Abdullah Atta
4a1a912d0f
core: rebuild trash cache on sync complete
2024-03-21 11:21:08 +05:00
Abdullah Atta
cec7c5f3b1
core: standarize database updated event
2024-03-21 11:21:07 +05:00
Abdullah Atta
3795c69a7b
core: fix migration for db version > 6
2024-03-21 11:19:56 +05:00
Abdullah Atta
ef6ff34ec6
core: enable sync push
2024-03-21 11:19:02 +05:00
Abdullah Atta
d3a32421ee
core: migrate deleted items as well
2024-03-21 11:18:10 +05:00
Abdullah Atta
5afdd88eb7
core: set mode to "sync" for migrations during sync
2024-03-21 11:18:08 +05:00
Abdullah Atta
60e1da412c
core: enable sync during tests
2024-03-21 11:18:08 +05:00
Abdullah Atta
27cf0a3c6b
core: improve backup importing
2024-03-21 11:18:08 +05:00
Abdullah Atta
03dba9f624
core: disable sync push
2024-03-21 11:17:31 +05:00
Abdullah Atta
28470d60c6
core: migrate key value storage to sqlite
2024-03-21 11:15:56 +05:00
Abdullah Atta
4bff11bf12
core: fix type error
2024-03-21 11:15:31 +05:00
Abdullah Atta
f127203a5e
core: add tests for sync merger
2024-03-21 11:15:31 +05:00
Abdullah Atta
dc3caa16d0
core: migrate vault to a database collection
2024-03-21 11:15:31 +05:00
Abdullah Atta
e6642ac9ab
core: prevent recursive sync after pushing items
2024-03-21 11:14:55 +05:00
Abdullah Atta
8e691769ae
core: auto sync not triggered on note update
2024-03-21 11:14:55 +05:00
Abdullah Atta
500388a634
core: fix sync & monographs tests
2024-03-21 11:14:54 +05:00
Abdullah Atta
7a60ac17ce
core: fix auto sync starting even when auto sync is disabled
2024-03-21 11:14:54 +05:00
Abdullah Atta
e127b8f4ab
core: clear database on logout
2024-03-21 11:13:15 +05:00
Abdullah Atta
fa080b5ce2
core: migrate items sequentially during sync
2024-03-21 11:13:15 +05:00
Abdullah Atta
3188b33d19
core: do not stop sync if a conflict occurs
2024-03-21 11:11:29 +05:00
Abdullah Atta
2fe8c87caa
core: always send realtime sync event
2024-03-21 11:11:29 +05:00
Abdullah Atta
94150a92aa
core: implement sync v2
2024-03-21 11:11:29 +05:00