Abdullah Atta
201366b39e
core: get rid of noteIds in notebook topics
...
This is a BREAKING change in the core & will require updating the
clients. The way it works is instead of keeping noteIds of all the
notes in the topic, it keeps an in-memory cache. This in-memory
cache `topicReferences` lives in the notes collection & decouples
notes from notebooks/topics. This also simplifies all the different
actions where references would persist after the note was deleted.
Since the note acts as the source of truth for where it currently is,
there is nothing else to do except rebuild the `topicReferences`
cache.
2022-09-08 13:39:06 +05:00
Abdullah Atta
d81f5dba65
refactor: migrate to theme-ui from rebass
2022-08-31 07:26:27 +05:00
Abdullah Atta
c317774c8a
docs: add license header
2022-08-30 16:17:04 +05:00
thecodrr
c660ef6721
fix: make sure all tests are passing
2022-06-08 10:26:19 +05:00
thecodrr
2f814bd656
fix: duplicated note does not get added into original note's topic
...
(fixes streetwriters/notesnook#552 )
2022-06-07 06:53:27 +05:00
thecodrr
1703420ca9
feat: allow grouping by none
2022-03-31 14:32:24 +05:00
thecodrr
19ef7e1a2c
feat: add method to check item's sync status in case of incomplete sync
2022-03-31 12:14:59 +05:00
thecodrr
44dad98ae4
fix: only save topic if it has changed
2021-12-15 15:25:21 +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
348726670b
fix: do not break loop while deleting note from topic
2021-07-06 12:12:19 +05:00
thecodrr
8eb590f9d2
fix: sort everything by dateCreated descending
2021-02-27 11:55:13 +05:00
thecodrr
5c72566af2
feat: remove all totalNotes nonsense & always reflect real values
2021-02-25 20:04:16 +05:00
thecodrr
97cbbbda0c
fix: remove note from topic even if it has no nb
2021-02-22 10:12:45 +05:00
thecodrr
e31275cf33
fix: notebooks are sometimes not added to note
2021-02-22 10:05:11 +05:00
thecodrr
afe0f2c984
revert: no need to make copies of note.notebooks
2020-12-09 11:02:35 +05:00
thecodrr
61dd1cdcb9
fix: object is not extensible error on topic add/delete
2020-12-08 13:09:29 +05:00
thecodrr
4c48d4d555
feat: do not add duplicate notebook in note.notebooks
2020-12-07 12:02:50 +05:00
thecodrr
97d396a01e
feat: allow note to be in multiple notebooks and topics
2020-12-05 12:38:15 +05:00
thecodrr
0d8b755970
feat: remove unnecessary db transaction logic
2020-11-04 10:28:52 +05:00
thecodrr
043cbe34a8
feat: migrate topic ids to proper random ids
2020-09-14 16:09:01 +05:00
thecodrr
64add84e72
refactor: make everything independent
2020-04-16 02:14:53 +05:00
thecodrr
aaf566924a
fix: resolve all circular dependencies ( fix #9 )
2020-04-12 11:04:30 +05:00
thecodrr
025a953cea
feat: handle deletion for sync
2020-03-23 13:22:28 +05:00
thecodrr
23b64dc50b
fix: crash when deleting a note in topic
2020-03-03 22:10:13 +05:00
thecodrr
168e50b0cc
fix: object is not extensible error when moving note
2020-03-02 12:36:10 +05:00
thecodrr
20891017e3
fix: move note not working
2020-03-02 10:29:29 +05:00
thecodrr
8bf34553cc
refactor: make all private methods/properties start with an underscore
2020-02-22 21:53:56 +05:00
thecodrr
81711d65d2
feat: impl totalNotes counts
2020-02-06 18:54:35 +05:00
thecodrr
22100d167c
fix: topics addition and deletion
2020-02-06 18:47:42 +05:00
thecodrr
90124ca43d
feat: implement fluent api
2020-02-05 20:57:43 +05:00