Commit Graph

503 Commits

Author SHA1 Message Date
thecodrr
9d097b11cb feat: mark att. as failed on error 2022-02-28 13:05:51 +05:00
thecodrr
c92d08a331 fix: only sync uploaded attachments 2022-02-28 13:03:27 +05:00
thecodrr
70fee1894a feat: add attachments lookup 2022-02-28 13:02:16 +05:00
thecodrr
954de78de4 fix: include uploading att. in partial sync 2022-02-28 13:02:04 +05:00
thecodrr
1d283c73f4 fix: improve content conflict resolution
this fixes the "undefined is not a function" error originated from
SparkMD5. Basically, sometimes the remote content or local content is
an object — an invalid state. So we need to check for that.
(fixes streetwriters/notesnook#371)
2022-02-25 15:27:00 +05:00
thecodrr
49e3c75e4c feat: add trial activation endpoint 2022-02-17 21:22:22 +05:00
thecodrr
621c4373ed feat: better error on upload att. failed 2022-01-31 10:23:03 +05:00
thecodrr
b80b514bc5 fix: improve time diff checking 2022-01-17 10:25:59 +05:00
thecodrr
23fac959f4 fix: get remoteItem id from decrypted data 2022-01-12 23:51:21 +05:00
thecodrr
a130db41a4 fix: try to refresh token before logging out on 401 unauthorized 2022-01-07 13:58:06 +05:00
thecodrr
ff5439e791 fix: derive local - server time difference more accurately 2022-01-07 12:00:41 +05:00
thecodrr
6c6e5a7676 fix: throw error if decrypted data is undefined 2022-01-03 14:54:23 +05:00
thecodrr
0bfc195e5f fix: send event if system clock is out of sync 2022-01-03 14:54:06 +05:00
thecodrr
2021fe56d5 fix: force logout user on 401 unauthorized error 2022-01-03 13:26:57 +05:00
thecodrr
e86ba52af4 fix: do not auto logout on password reset 2022-01-03 10:47:02 +05:00
thecodrr
34140a0cc0 chore: Support for the experimental syntax 'logicalAssignment' isn't currently enabled 2022-01-01 22:04:58 +05:00
thecodrr
c16bfd31e3 fix: cannot read property dateResolved of undefined 2022-01-01 20:58:56 +05:00
thecodrr
700b77042c feat: add interruption resistant password changing 2022-01-01 16:11:55 +05:00
thecodrr
43bb3d2785 fix: throw proper error if local db version is lower than required 2021-12-31 11:50:21 +05:00
thecodrr
d52cb6a82e fix: keep local content if resolved 2021-12-31 10:45:10 +05:00
thecodrr
4795d9c13f feat: add endpoing to clear user sessions 2021-12-31 09:06:12 +05:00
thecodrr
f838826e42 fix: re-enable account password changing 2021-12-31 09:05:45 +05:00
thecodrr
c089ccbe19 feat: refresh token on 401 unauthorized error 2021-12-31 09:04:13 +05:00
thecodrr
1cbbce6019 fix: init notes on vault clear & delete 2021-12-29 10:51:50 +05:00
thecodrr
dbbf4a118e fix: make vault password changing more reliable 2021-12-29 10:49:38 +05:00
thecodrr
55e87b6adf feat: send event on auto vault lock 2021-12-29 09:56:19 +05:00
thecodrr
55d16d4672 fix: check if vault is unlocked before saving 2021-12-29 09:45:30 +05:00
thecodrr
edd9dc5de2 fix: notes not merging on sync 2021-12-29 09:34:20 +05:00
thecodrr
bdaf6f506e fix: set default sortBy for tags & trash 2021-12-25 14:06:18 +05:00
thecodrr
52be317577 refactor: expose decryptContent method 2021-12-22 10:06:20 +05:00
thecodrr
da1c2bbf10 fix: update dateEdited on locked note save 2021-12-22 10:06:01 +05:00
thecodrr
9a984df1bd feat: auto create session history on content edit 2021-12-22 10:05:42 +05:00
thecodrr
1424756bca fix: turn off caching for notehistory collection 2021-12-22 09:58:28 +05:00
thecodrr
2bb1d32533 fix: clear note history when note is locked 2021-12-22 09:57:43 +05:00
Abdullah Atta
630bb33b10 feat: add note version history (#20)
* feat: note version history

* fix bugs

* add tests for session history

* update tests

* add tests for restoring content

* add more tests

* update jsdoc

* return empty array if no session history present for a note

* init note history with await

* add note history versions limit

* cleanup note history after adding a new session

* fix tests

* add test for session cleanup

* test: add collector tests

* feat: dateEdited -> dateModified

* feat: migrate to liqe for searching

* chore: forceExit jest after test run

* feat: note version history

* fix bugs

* add tests for session history

* update tests

* add tests for restoring content

* add more tests

* update jsdoc

* return empty array if no session history present for a note

* init note history with await

* add note history versions limit

* cleanup note history after adding a new session

* fix tests

* add test for session cleanup

* init ContentHistory with await

* fix reference to db in init

* make sessionId in db

* check if note is locked through note metadata

* make cleanup method private

* use remove methods in notehistory and contenthistory

* restore note content via notes.add method if note is not locked

* move getting all items to seperate functions

* check if parsed json is valid

* deserialize a session only if it's sessionContent exists

* add locked property to sessionContent

* remove makeSessionId function

* update tests

* remove yarn.lock file

* update tests

Co-authored-by: ammarahm-ed <ammarahmed6506@gmail.com>
2021-12-21 13:41:08 +05:00
thecodrr
a3082933b8 feat: migrate to liqe for searching 2021-12-21 11:24:45 +05:00
thecodrr
06828ac35c feat: dateEdited -> dateModified 2021-12-20 14:37:06 +05:00
thecodrr
02317a6369 test: add collector tests 2021-12-20 14:35:01 +05:00
thecodrr
bfe7a7c0d0 feat: migrate to using fzf for search 2021-12-20 09:29:25 +05:00
thecodrr
2e00ba2e8a refactor: seperate note add & merging 2021-12-20 09:28:17 +05:00
thecodrr
804016bc8d fix: send update db event on settings save 2021-12-15 15:23:48 +05:00
thecodrr
a7e9ae7984 fix: update dateedited after settings merge conflict resolve 2021-12-15 15:23:30 +05:00
thecodrr
cdde384870 fix: do not update dateEdited on settings init 2021-12-15 15:23:13 +05:00
thecodrr
cadf77e09d fix: init trash & monographs after notes 2021-12-15 15:21:32 +05:00
ammarahm-ed
bc6c9bf15c fix: do not init monographs on app launch 2021-12-14 21:39:10 +05:00
thecodrr
908ef79e7c revert: fix: refresh token once before giving up 2021-12-04 10:19:33 +05:00
thecodrr
e7351667db refactor: set debug.report returntype to promise 2021-12-02 12:45:39 +05:00
thecodrr
a3e95e50e0 feat: send userId with github bug report 2021-12-02 12:44:59 +05:00
thecodrr
2cc5ec74c2 fix: images are not attached on note publish 2021-12-01 20:18:14 +05:00
thecodrr
f14c2c9335 fix: cannot read properties of undefined (topics) 2021-12-01 15:00:36 +05:00