Commit Graph

8801 Commits

Author SHA1 Message Date
Abdullah Atta
6925f328f3 web: simplify invalid coupon code handling
this fixes a lot of issues when applying coupon codes, especially:
- issue where a default initial loop could not be removed
- issue where valid codes would appear invalid
2022-09-08 16:08:10 +05:00
ammarahm-ed
45c4381537 mobile: migrate to db.shortcuts 2022-09-08 14:24:31 +05:00
ammarahm-ed
79d492e186 core: fix shortcut not removed 2022-09-08 14:16:25 +05:00
ammarahm-ed
56f26f3c95 core: this.find > this.shortcut 2022-09-08 14:08:44 +05:00
Abdullah Atta
f60fc39ec0 web: fix e2e tests that download files 2022-09-08 13:53:12 +05:00
Abdullah Atta
bcc14a785f web: update checkout tests snapshots 2022-09-08 13:46:19 +05:00
Abdullah Atta
973417ce2c web: bypass onboarding dialog during debug & tests 2022-09-08 13:40:01 +05:00
ammarahm-ed
9c3219638d mobile: add a ? check before checking if note exists 2022-09-08 13:39:06 +05:00
ammarahm-ed
5689254211 mobile: fix notes.length > getTotalNote() 2022-09-08 13:39:06 +05:00
ammarahm-ed
b5d8840259 mobile: use topicReferences to query if note exists in topic 2022-09-08 13:39:06 +05:00
ammarahm-ed
15a8e0a511 mobile: find notebook that exists and return it 2022-09-08 13:39:06 +05:00
ammarahm-ed
0e61731500 mobile: get total count on notebook & topic from db 2022-09-08 13:39:06 +05:00
ammarahm-ed
9be5f136a9 mobile: migrate to addToNotebook 2022-09-08 13:39:06 +05:00
ammarahm-ed
67fb1bc1da mobile: migrate from delete to removeFromNotebook 2022-09-08 13:39:06 +05:00
Abdullah Atta
10b8703605 web: get total notes count for topic using db 2022-09-08 13:39:06 +05:00
Abdullah Atta
2adce27f15 web: remove "some notes of this topic..." error 2022-09-08 13:39:06 +05:00
Abdullah Atta
3d5e17b70c web: db.notes.move -> db.notes.addToNotebook 2022-09-08 13:39:06 +05:00
Abdullah Atta
c4b6ab40d8 web: simplify removing note from topic 2022-09-08 13:39:06 +05:00
Abdullah Atta
073b4ae47d web: show the first existing notebook on note item
previously we were using the notebook at 0 index which failed
in cases where notebook is only moved to trash i.e. its references
from the note item is not removed. If such a note is added to
another notebook it would show nothing because the notebook
at 0 index doesn't exist. This change fixes this issue.
2022-09-08 13:39:06 +05:00
Abdullah Atta
67000f9b38 web: simplify getting notebook total notes count 2022-09-08 13:39:06 +05:00
Abdullah Atta
f2d30adc37 web: refresh notes after deleting a topic 2022-09-08 13:39:06 +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
ammarahm-ed
1c521f601f mobile: add path for packages in tsconfig 2022-09-08 09:29:56 +05:00
Abdullah Atta
ab38d89314 setup: use zx for cross-platform scripting 2022-09-07 23:04:40 +05:00
Abdullah Atta
ca1b66d68a web: settings.pins -> shortcuts migration 2022-09-07 14:19:08 +05:00
Abdullah Atta
f8d94bc12a core: allow removing shortcuts by item.id 2022-09-07 14:18:48 +05:00
Abdullah Atta
ac7aad93b3 core: shorcuts -> shortcuts 2022-09-07 14:13:26 +05:00
Abdullah Atta
1e99d7732c core: add new collection for shortcuts 2022-09-07 12:47:02 +05:00
Abdullah Atta
ef552f8b38 core: remove pins from settings 2022-09-07 12:46:49 +05:00
ammarahm-ed
e9770d393c mobile: do not use top level safeareaprovider.
This has been causing some strange behaviour where ui
would flicker and jump and the padding on top would
increase. It's something related to react-navigation and
react-native-safe-area-context.
2022-09-07 12:43:35 +05:00
ammarahm-ed
ee71d2b260 mobile: fix naviation to notebook 2022-09-07 10:17:03 +05:00
ammarahm-ed
0c527efce7 mobile: notebook welcom dialog shows on login with notebooks 2022-09-07 10:09:41 +05:00
ammarahm-ed
aa6e2ae408 mobile: fix subscription not reset on upgrade to pro 2022-09-07 10:08:51 +05:00
ammarahm-ed
7f54664413 mobile: add missing postinstall script in package.json 2022-09-07 09:37:39 +05:00
ammarahm-ed
3ad564424f Merge branch 'master' of https://github.com/streetwriters/notesnook 2022-09-07 09:24:53 +05:00
ammarahm-ed
d55b7fe5f3 mobile: do not use bing to internet reachibility test 2022-09-07 09:24:37 +05:00
Abdullah Atta
9054dacb76 web: fix ui discrepancies due to theme-ui migration 2022-09-06 22:57:03 +05:00
ammarahm-ed
0a3ef4bc0a editor: fix date is off by one month 2022-09-06 17:17:48 +05:00
ammarahm-ed
1f96b29f0a Merge branch 'master' of https://github.com/streetwriters/notesnook 2022-09-06 17:12:44 +05:00
ammarahm-ed
396757abe9 editor: fix pro permission handler always return false 2022-09-06 17:12:33 +05:00
Abdullah Atta
8cfb21e771 web: fix announcement cta not working 2022-09-05 22:44:27 +05:00
Abdullah Atta
289e6eefb3 core: move pricing test to e2e tests 2022-09-05 18:00:33 +05:00
Abdullah Atta
54ab117417 misc: add opencollective sponsorship 2022-09-05 12:08:47 +05:00
Tushar Raj
206a11669e docs: add changes suggested by npm lint
Signed-off-by: Tushar Raj <43772524+tushar-1728@users.noreply.github.com>
2022-09-05 01:21:47 +05:00
Tushar Raj
cb7fe6061f docs: fix broken links, grammatical & MD errors (#882)
* docs: fixed typo

Signed-off-by: Tushar Raj <tusharraj.1728@gmail.com>

* docs: fixed markdown typos and gramatical errors

Signed-off-by: Tushar Raj <tusharraj.1728@gmail.com>

* docs: fixed new issue url

Signed-off-by: Tushar Raj <tusharraj.1728@gmail.com>

Signed-off-by: Tushar Raj <tusharraj.1728@gmail.com>
2022-09-04 23:53:22 +05:00
Dibyakanti Ta
ef9f29633d docs: fixed a small typo in readme (#881) 2022-09-04 21:49:28 +05:00
Ammar Ahmed
928f5801d4 Merge pull request #872 from tushar-1728/docs/README
docs: used relative links and fixed typos
2022-09-04 15:31:32 +05:00
Tushar Raj
7bfa8104d5 docs: used relative links and fixed typos
Signed-off-by: Tushar Raj <tusharraj.1728@gmail.com>
2022-09-04 15:21:09 +05:30
ammarahm-ed
5a53e402c4 misc: update app logo 2022-09-03 15:03:36 +05:00
ammarahm-ed
1905fae943 misc: add png logo 2022-09-03 15:01:47 +05:00