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
thecodrr
ebd302bd60
test: add test for trash cleanup
2021-12-15 22:17:07 +05:00
thecodrr
65b9f94255
test: add settings tests
2021-12-15 22:04:16 +05:00
thecodrr
a4274eb75f
test: add merge notebook test
2021-12-15 21:45:00 +05:00
thecodrr
8a5859c0c9
refactor: cleanup topic deletion logic
2021-12-15 21:26:55 +05:00
thecodrr
abd9a81491
chore: bump version to 6.14.0
2021-12-15 15:25:41 +05:00
thecodrr
44dad98ae4
fix: only save topic if it has changed
2021-12-15 15:25:21 +05:00
thecodrr
ec33eb862f
fix: invert trash cleanup check to remove items after 7 days
2021-12-15 15:24:43 +05:00
thecodrr
05ebddcfc8
fix: always get alias from settings in tags
2021-12-15 15:24:27 +05:00
thecodrr
57d5354a26
fix: only update notebook dateEdited if there is a change on merge
2021-12-15 15:24:05 +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
thecodrr
7cc5421ad2
fix: remove pro check before att. key generation
2021-12-15 09:56:40 +05:00
thecodrr
301c155119
test: add refresh_token reuse test
2021-12-15 09:45:34 +05:00
ammarahm-ed
bc6c9bf15c
fix: do not init monographs on app launch
2021-12-14 21:39:10 +05:00
thecodrr
365f5b903e
fix: filter out attachments without a hash
2021-12-11 10:32:11 +05:00
thecodrr
917534e18c
chore: bump version to 6.13.2
2021-12-09 01:09:01 +05:00
thecodrr
7d4edab92b
fix: HTMLParser.createElement is not a function
2021-12-09 00:36:16 +05:00
thecodrr
2a9f57bacf
fix: filter out deleted notes when getting tag notes
2021-12-08 23:22:41 +05:00
thecodrr
fda5e0c84b
fix: do not automatically delete empty notes
2021-12-08 19:32:58 +05:00
thecodrr
9ba7ab3b25
fix: sanitize tag alias as well
2021-12-07 18:25:50 +05:00
thecodrr
3f25b2d951
chore: bump version to 6.13.1
2021-12-06 12:48:05 +05:00
thecodrr
f488143f83
fix: do not set custom error for invalid_grant
2021-12-06 12:47:45 +05:00
thecodrr
0f976c155f
fix: clone tag item before renaming
2021-12-05 09:29:51 +05:00
thecodrr
9546d43c1f
fix: do not throw if note contains invalid tag on sync
2021-12-04 22:42:39 +05:00
thecodrr
6d36c86f0d
fix: show proper error for invalid_grant
2021-12-04 10:20:08 +05:00
thecodrr
908ef79e7c
revert: fix: refresh token once before giving up
2021-12-04 10:19:33 +05:00
thecodrr
99a12749b7
chore: bump version to 6.13.0
2021-12-02 20:45:26 +05:00
Abdullah Atta
cb34fb04d9
Merge pull request #19 from streetwriters/fix-group-by-title
...
fix items sequence in 'abc' grouping
2021-12-02 13:09:27 +05:00
thecodrr
3177c8051f
ci: use latest nodejs version
2021-12-02 13:05:00 +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
9421429a63
fix: "Provide attachment hash" on backup restore
2021-12-01 18:48:51 +05:00
thecodrr
d3d5a4829b
test: add test for note refs repairing
2021-12-01 18:31:24 +05:00
thecodrr
f14c2c9335
fix: cannot read properties of undefined (topics)
2021-12-01 15:00:36 +05:00
thecodrr
5bc353f985
fix: handle "bad base-64" error
2021-12-01 14:04:35 +05:00
ammarahm-ed
4d6d36c9b8
fix items sequence in 'abc' grouping
2021-12-01 11:16:12 +05:00