Abdullah Atta
5e64e06f52
web: use npm ci instead of npm install
2022-09-09 16:04:04 +05:00
Abdullah Atta
2e42c92674
web: only run tests on chromium
2022-09-09 15:59:29 +05:00
Abdullah Atta
53047f035e
web: reduce tests flakiness
2022-09-09 15:42:52 +05:00
Abdullah Atta
cc36951b94
ci: add @notesnook/web e2e tests workflow
2022-09-09 12:12:17 +05:00
Abdullah Atta
f414b34d39
ci: add ats-diagnostics test for payments endpoint
2022-09-09 11:48:33 +05:00
ammarahm-ed
6bc791d935
mobile: show error message on crash
2022-09-09 10:30:21 +05:00
ammarahm-ed
a64a630324
mobile: fix duplicate key error
2022-09-09 10:22:43 +05:00
Abdullah Atta
a7901b0323
core: sku property in pricing test should be generic
2022-09-09 01:17:27 +05:00
Abdullah Atta
3f73b47121
core: use generic snapshot for pricing test
...
this is because the pricing response data contains location based data like
country, countryCode, pricing etc. Running it on different
computers will generate different data. To avoid this we
should test only the types of each property using `jest`'s
propertyMatchers
2022-09-09 01:12:45 +05:00
Abdullah Atta
78c1df8723
core: add pricing test snapshot
2022-09-09 00:56:43 +05:00
Abdullah Atta
15e40b612e
config: test:core -> test:e2e
2022-09-09 00:47:40 +05:00
Abdullah Atta
553752d947
ci: wrap PASSWORD env_var in single quotes
2022-09-09 00:37:05 +05:00
Abdullah Atta
23c5bca155
ci: allow running @notesnook/core tests workflow manually
2022-09-09 00:28:19 +05:00
Abdullah Atta
6171b95f01
ci: add credentials to env_vars pre running tests
2022-09-09 00:24:13 +05:00
Abdullah Atta
a5a7f4734f
config: run dependent tasks before running tests
2022-09-09 00:23:32 +05:00
Abdullah Atta
42c745088a
ci: add @notesnook/core test workflow
2022-09-09 00:14:21 +05:00
Abdullah Atta
1af273c9d3
web: add delay to avoid flakiness in tag test
2022-09-08 23:57:13 +05:00
Abdullah Atta
4c1070af56
web: content overlaps on switching notes very fast
2022-09-08 23:57:13 +05:00
ammarahm-ed
0fd077dc39
mobile: fix crash on changing numColumns
2022-09-08 19:10:31 +05:00
ammarahm-ed
c8dc5207b4
core: fix auto sync does not send sync complete event
2022-09-08 18:30:49 +05:00
Abdullah Atta
0bb7c2dbb9
docs: remove coupon code offer
2022-09-08 16:08:52 +05:00
Abdullah Atta
ccac962151
web: fix minor ui issues due to theme-ui migration
2022-09-08 16:08:38 +05:00
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