Commit Graph

999 Commits

Author SHA1 Message Date
thecodrr
dfca8a3a30 fix: do not throw if attachment is invalid 2021-12-31 10:58:38 +05:00
thecodrr
d52cb6a82e fix: keep local content if resolved 2021-12-31 10:45:10 +05:00
thecodrr
e269c8d264 refactor: pass only necessary properties to content collection 2021-12-31 09:42:48 +05:00
thecodrr
12a6ad595f fix: use full regex to migrate 2021-12-31 09:18:06 +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
4a6e3cf774 fix: disable fetch timeout 2021-12-30 12:12:43 +05:00
thecodrr
278d1681ca fix: table getting converted to raw html 2021-12-29 14:33:29 +05:00
thecodrr
c2df49809c chore: bump version to 6.16.2 2021-12-29 10:54:22 +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
828c0eb701 chore: bump version to 6.16.1 2021-12-28 14:50:19 +05:00
thecodrr
3353d2235e feat: add migration for table & checklists 2021-12-28 14:50:04 +05:00
thecodrr
d16a4abfcc chore: remove unnecessary console.trace 2021-12-27 19:13:54 +00:00
thecodrr
bdaf6f506e fix: set default sortBy for tags & trash 2021-12-25 14:06:18 +05:00
thecodrr
addde688f7 feat: timeout all requests after 20 seconds 2021-12-25 12:27:23 +05:00
thecodrr
b70da12b1b fix: merge migrated tags directly 2021-12-23 13:44:19 +05:00
thecodrr
4204d8784d test: rewrite notehistory tests for improved correctness 2021-12-22 12:07:07 +05:00
thecodrr
fa556015f6 feat: add dateEdited to dateModified migration 2021-12-22 10:24:01 +05:00
thecodrr
5337dd482c refactor: extendable formatDate function 2021-12-22 10:07:23 +05:00
thecodrr
b3b5d495f2 refactor: apply formatting to notehistory test 2021-12-22 10:06:37 +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
dd9b2815ee fix: forgot to await super.init 2021-12-22 10:03:55 +05:00
thecodrr
e7b34bdbc7 fix: merge dateCreated when upserting session 2021-12-22 10:01:15 +05:00
thecodrr
794eb07574 fix: dateEdited -> dateModified 2021-12-22 10:00:47 +05:00
thecodrr
117e84b599 fix: note history returns all the sessions 2021-12-22 10:00:30 +05:00
thecodrr
6a547286c7 fix: sort note history by newest - oldest 2021-12-22 09:59:19 +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
thecodrr
711bb77efa refactor: contenthistory -> sessioncontent 2021-12-22 09:57:12 +05:00
thecodrr
5bbff5b88d fix: decompressSync not defined 2021-12-22 09:54:34 +05:00
thecodrr
42d6cfab95 fix: change date style to (MMM DD, YYYY, HH:mm AM/PM) 2021-12-21 14:32:14 +05:00
thecodrr
eef5e96257 fix: do not use default import for fflate 2021-12-21 14:31:11 +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
09d1a22363 chore: forceExit jest after test run 2021-12-21 11:31:31 +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
c908c68d84 chore: bump version to 6.15.0 2021-12-20 09:29:45 +05:00
thecodrr
bfe7a7c0d0 feat: migrate to using fzf for search 2021-12-20 09:29:25 +05:00
thecodrr
0421c9c452 refactor: getItems should return an object intead of an array 2021-12-20 09:28:58 +05:00
thecodrr
2e00ba2e8a refactor: seperate note add & merging 2021-12-20 09:28:17 +05:00
thecodrr
3309b3d643 feat: simplify note title & headline extraction 2021-12-16 10:10:00 +05:00
thecodrr
ad83938fa4 test: trash cleanup shouldn't delete items newer than 7 days 2021-12-15 22:21:24 +05:00