Commit Graph

480 Commits

Author SHA1 Message Date
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
thecodrr
1f6088a864 fix: allow setting ISSUES_HOST 2021-11-24 11:56:18 +05:00
thecodrr
5d198e9ea3 feat: add issue reporting api endpoint 2021-11-24 11:40:33 +05:00
thecodrr
485f464f13 feat: acquire lock using syncMutex 2021-11-18 19:40:59 +05:00
thecodrr
4b9453d91b fix: acquire sync lock during backup restore 2021-11-18 15:28:36 +05:00
thecodrr
64535cc61c fix: repair all notebook references on sync/backup 2021-11-12 11:47:03 +05:00
thecodrr
e608eaaedf fix: repair notebook references in notes on sync 2021-11-12 10:32:25 +05:00
thecodrr
b139623420 feat: remove trash from merger & backup 2021-11-12 09:38:11 +05:00
thecodrr
49cd3348d6 fix: refresh token once before giving up 2021-11-09 14:46:12 +05:00
thecodrr
7ed920e49e fix: clear file storage on user logout 2021-11-02 14:31:30 +05:00
thecodrr
025b416e34 fix: attachment progress not showing 2021-11-02 14:25:48 +05:00
thecodrr
f8cfab4213 fix: stripped content is never synced 2021-11-02 12:43:56 +05:00
thecodrr
1b675699b6 fix: generate new token on email confirmed 2021-11-01 11:53:28 +05:00
thecodrr
05fcf5880d fix: disconnectSSE not defined 2021-10-30 13:51:40 +05:00
thecodrr
a2bab0940d fix: tag/color aliases not syncing 2021-10-29 14:05:11 +05:00
thecodrr
bac15941b0 fix: settings not getting synced after a change 2021-10-29 13:02:33 +05:00
thecodrr
0bf1a89d1f fix: increase auto sync interval to 5 seconds 2021-10-29 11:55:18 +05:00
thecodrr
943e4dfadd feat: throw better error on failure to get attachment enc key 2021-10-28 22:03:06 +05:00
thecodrr
23e584f272 fix: add attachments support to migrator & backup 2021-10-28 13:37:55 +05:00
thecodrr
3e184345a3 fix: don't send 0-indexed progress 2021-10-28 13:15:30 +05:00
thecodrr
c84b5a28b8 fix: migrate token refreshing to use mutex 2021-10-27 11:19:37 +05:00
thecodrr
4e6a6b9246 fix: request token right before making an http request 2021-10-27 11:18:30 +05:00
thecodrr
011a99d322 fix: improve syncing & merge conflict detection 2021-10-27 10:53:36 +05:00
thecodrr
67674cbc33 fix: improve sync & SSE reliability 2021-10-26 23:06:52 +05:00