Commit Graph

66 Commits

Author SHA1 Message Date
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
61e608b2dc fix: remove notebook reference from notes that are removed from topic during merge 2022-07-13 14:58:21 +05:00
thecodrr
4e34f33f1d fix: expect merge conflicts in notebooks 2022-07-13 12:21:00 +05:00
thecodrr
751305e04c perf: optimize grouping/sorting & id creation 2022-06-16 16:01:08 +05:00
thecodrr
4135028137 feat: improve sync over websockets 2022-03-30 15:52:48 +05:00
thecodrr
bb675e9da2 initial 2022-02-08 13:16:41 +05:00
thecodrr
06828ac35c feat: dateEdited -> dateModified 2021-12-20 14:37:06 +05:00
thecodrr
8a5859c0c9 refactor: cleanup topic deletion logic 2021-12-15 21:26:55 +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
f14c2c9335 fix: cannot read properties of undefined (topics) 2021-12-01 15:00: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
f7fbe93f63 fix: notes not appearing in notebooks 2021-11-11 13:06:07 +05:00
thecodrr
a2bab0940d fix: tag/color aliases not syncing 2021-10-29 14:05:11 +05:00
thecodrr
888481b858 refactor: sendCheckUserStatusEvent -> checkIsUserPremium 2021-10-26 23:05:47 +05:00
thecodrr
bbc8fbfc49 fix: merge new & old topic notes 2021-08-16 11:29:18 +05:00
thecodrr
61822cde94 fix: notebook is not defined 2021-08-16 11:11:22 +05:00
thecodrr
ad059e3ba4 fix: update notebooks after cleanup 2021-08-16 11:09:37 +05:00
thecodrr
9f0ae2e76f fix: init notes before cleaning up notebooks 2021-08-16 11:08:40 +05:00
thecodrr
48e682eb2c fix: notebooks aren't imported from backup 2021-08-16 11:03:31 +05:00
thecodrr
df1227b7b1 fix: directly add deleted remote notebook 2021-06-03 09:11:16 +05:00
thecodrr
161946928f feat: no need to add default General topic to notebooks 2021-04-28 12:40:14 +05:00
thecodrr
54d2ca210d fix: update nb dateEdited after merge 2021-02-25 21:01:19 +05:00
thecodrr
9aeb6fe1dd fix: handle second nb merge case correctly
we were comparing against nb.dateEdited instead of db.lastSynced
2021-02-25 20:23:51 +05:00
thecodrr
5c72566af2 feat: remove all totalNotes nonsense & always reflect real values 2021-02-25 20:04:16 +05:00
thecodrr
03e21221c7 feat: add notebook merging 2021-02-25 19:41:17 +05:00
thecodrr
952aa5e58c fix: do not allow notebooks with empty title 2021-02-25 18:27:10 +05:00
thecodrr
2a8a0b227a feat: move he to lean-he, remove transfun & jshashes 2021-02-16 21:38:32 +05:00
thecodrr
b5a0b9e649 feat: remove trash collection 2021-02-16 16:56:06 +05:00
thecodrr
9164310e8c fix: duplicate general topics in restored notebook 2021-02-13 14:24:02 +05:00
thecodrr
a087d68dad fix: reduce cloning 2021-01-11 12:23:12 +05:00
thecodrr
1eaf2ba929 fix: unpin tags/notebooks/topics from menu on delete 2021-01-03 10:52:05 +05:00
thecodrr
bcdd572a40 fix: deleted notebooks should not be accessible 2020-12-08 12:42:50 +05:00
thecodrr
40ce1bc535 feat: remove favorite from notebook 2020-12-05 15:43:52 +05:00
thecodrr
8daf564616 refactor: use a single CHECK_IDS 2020-12-05 13:19:41 +05:00
thecodrr
0b4ef69116 fix: allow editing of all notebooks freely 2020-11-23 15:33:00 +05:00
thecodrr
c81c0feda8 Revert "feat: impl fully indexed & searchable data stores"
This reverts commit 56297da18b.
2020-11-16 15:00:52 +05:00
thecodrr
97b04a891c fix: check if .length is >= the limit 2020-11-11 20:45:53 +05:00
thecodrr
59cf0cce8f feat: implement user subscription status checking logic 2020-11-11 15:43:09 +05:00
thecodrr
56297da18b feat: impl fully indexed & searchable data stores 2020-11-06 22:44:16 +05:00
thecodrr
54dfea77fe refactor: derive CachedCollection from IndexedCollection 2020-11-04 10:42:19 +05:00
thecodrr
0d8b755970 feat: remove unnecessary db transaction logic 2020-11-04 10:28:52 +05:00
thecodrr
64add84e72 refactor: make everything independent 2020-04-16 02:14:53 +05:00
thecodrr
3a6a126d5d collections: refactor notebooks init 2020-04-15 23:45:56 +05:00
thecodrr
aaf566924a fix: resolve all circular dependencies (fix #9) 2020-04-12 11:04:30 +05:00
thecodrr
02480da2e3 ci: add more tests and general fixes 2020-04-09 16:36:57 +05:00
thecodrr
9439ba7739 fix: send raw collections 2020-03-23 15:06:12 +05:00
thecodrr
025a953cea feat: handle deletion for sync 2020-03-23 13:22:28 +05:00