Commit Graph

126 Commits

Author SHA1 Message Date
Abdullah Atta
0d20013071 core: do not check premium status during tag addition 2022-10-17 22:37:48 +05:00
Abdullah Atta
b5ab8e5d3e core: allow free users to assign same 5 tags without limits 2022-10-12 20:16:26 +05:00
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
3f6f5e6f9c fix: sanitize color before assigning it to a note 2022-04-15 23:32:59 +05:00
thecodrr
94f27f85a9 fix: duplicate calls to colors.add on note color 2022-04-14 01:09:35 +05:00
thecodrr
1fd1d8e258 fix: mark notes without content as synced 2022-04-01 22:14:40 +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
4135028137 feat: improve sync over websockets 2022-03-30 15:52:48 +05:00
thecodrr
f78e56fdcb feat: add full support for localOnly items 2022-03-11 12:40:42 +05:00
thecodrr
167baece19 feat: add logic to duplicate a note 2022-03-11 11:48:23 +05:00
thecodrr
3e8eb1d45f refactor: simplify changed color note saving 2022-02-19 13:23:53 +05:00
Muhammad Ali
07c53779eb feat: add readonly property to note item (#22)
* Readonly added-note-edit-locking

* removed method readonly
2022-02-15 10:24:53 +05:00
thecodrr
edd9dc5de2 fix: notes not merging on sync 2021-12-29 09:34:20 +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
888481b858 refactor: sendCheckUserStatusEvent -> checkIsUserPremium 2021-10-26 23:05:47 +05:00
thecodrr
850259c6fb fix: download media before note export 2021-10-22 11:52:56 +05:00
thecodrr
31c1e8900c test: fix all broken tests 2021-09-29 10:31:49 +05:00
thecodrr
cc93e4f1c9 refactor: cleanup tags related code 2021-07-12 13:48:48 +05:00
thecodrr
8f3e69cd37 feat: add tag deletion 2021-07-12 10:32:35 +05:00
thecodrr
2bb3bc1a6d refactor: migrate notes at the end 2021-07-06 12:13:55 +05:00
thecodrr
348726670b fix: do not break loop while deleting note from topic 2021-07-06 12:12:19 +05:00
thecodrr
e1036ae289 fix: use showdown for markdown conversion 2021-04-28 10:35:32 +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
e92bea200a feat: make note.export accept raw content 2021-02-20 12:32:41 +05:00
thecodrr
2208270009 fix: noteId not being removed from color or deleting 2021-01-01 15:03:51 +05:00
thecodrr
bf29447630 fix: id is undefined 2020-12-31 15:28:27 +05:00
thecodrr
00f9ecdf09 fix: do not save tag id in note.color 2020-12-31 14:32:51 +05:00
thecodrr
f8c306380b feat: migrate to use the new backend 2020-12-16 12:06:25 +05:00
thecodrr
a83b2355d2 feat: impl account password changing 2020-12-11 20:19:28 +05:00
thecodrr
34b6bb477c fix: send user:loggedOut event after logging out 2020-12-10 15:29:12 +05:00
thecodrr
551bf269b4 feat: add user deletion and logout on deletion 2020-12-10 14:53:58 +05:00
thecodrr
fd77598a04 feat: impl remember me when logging in 2020-12-09 21:39:28 +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
f20f2166f1 fix: uncolor note before coloring 2020-12-07 12:25:22 +05:00
thecodrr
4c48d4d555 feat: do not add duplicate notebook in note.notebooks 2020-12-07 12:02:50 +05:00
thecodrr
0a949e7d10 feat(BREAKING): note.colors -> note.color 2020-12-07 12:02:50 +05:00
thecodrr
8daf564616 refactor: use a single CHECK_IDS 2020-12-05 13:19:41 +05:00
thecodrr
97d396a01e feat: allow note to be in multiple notebooks and topics 2020-12-05 12:38:15 +05:00
thecodrr
f7b510d87b fix: do not depend on client for user key salt 2020-11-17 12:17:56 +05:00