Commit Graph

2159 Commits

Author SHA1 Message Date
Abdullah Atta
de0bbff296 web: treat mac app store build specially 2022-09-28 12:13:37 +05:00
Abdullah Atta
5646b9249e desktop: ready app for mac store submission (#1057)
* desktop: add support for publishing to mac app store

* ci: add step for deployment to testflight

* ci: temporarily run build only on macos

* config: cache `build:desktop` output in nx

* ci: use `macos-12` instead of `macos-latest`

* ci: no need to install `jq`

* ci: build & deploy manually

* ci: set env_vars using `env` key

* ci: install packages before building

* ci: build electron bundle before deployment

* ci: install distribution signing cert

* web: disable app store offending stuff for macos

* ci: enable deployment to testflight

* ci: remove cert installation to keychain

* desktop: pass entitlement files through plutil

* ci: use a single cert for everything

* ci: fix altool command for uploading macOS package

* ci: use env_vars for apiKey & apiIssuer

* ci: install provisionprofile

* ci: install provisioning profile in `./apps/web/desktop` dir

* desktop: change bundleId to `org.streetwriters.notesnook`

* ci: deploy & build in separate steps

* ci: add jobs for linux & windows releasing

* ci: checkout repo before anything else

* ci: add `GH_TOKEN` to env & use ps syntax on windows

* ci: get app store versions only for mac app

* ci: correct order of steps

Co-authored-by: ammarahm-ed <ammarahmed6506@gmail.com>
2022-09-28 12:00:33 +05:00
Abdullah Atta
0b34af4931 web: allow regional pricing 2022-09-24 09:25:12 +05:00
Abdullah Atta
e0e672c892 web: add download link for portable desktop app 2022-09-22 14:02:21 +05:00
Abdullah Atta
5643525829 web: fix editor content resets on rerender
this was an annoying issue where any kind of re-render caused the editor
content to be reset.
2022-09-22 13:20:07 +05:00
Abdullah Atta
1017739bdb web: add feature highlights for v2.2.0 2022-09-22 12:08:36 +05:00
Abdullah Atta
e347922be9 web: show correct toast when removing notes from topic 2022-09-21 13:48:14 +05:00
Abdullah Atta
4f08f1aa5e web: fix crash on shortcut removal 2022-09-21 13:47:54 +05:00
Abdullah Atta
6c613c6f1e Merge branch 'move-pins-out' 2022-09-21 10:45:58 +05:00
Ammar Ahmed
e5e965415d feat: realtime & auto sync for all users (#944) 2022-09-20 18:33:55 +05:00
Abdullah Atta
a0b8262fb6 web: can't add a tag that's a substring of another tag (fixes #1002) 2022-09-19 17:02:16 +05:00
Abdullah Atta
0f44ca49a9 web: refactor sync logic 2022-09-19 16:20:44 +05:00
Abdullah Atta
21ac825359 web: use keyboard list navigation hook for all selection logic 2022-09-18 17:35:55 +05:00
Abdullah Atta
7924ffbce9 web: implement a generic keyboard list nav react hook 2022-09-18 17:35:55 +05:00
Abdullah Atta
836be5e4f4 web: take keymap plugin from prosemirror-keymap
we'll be using this later on for everything keyboard related.
it is simple implementation that normalizes key codes across platforms
2022-09-18 17:35:55 +05:00
Abdullah Atta
7cc8b74a7a web: add more waitFors for failing tests 2022-09-17 00:45:29 +05:00
Abdullah Atta
bd3b5a4b98 web: redirect if logged in user navigates to unauthorized routes (fixes #907) 2022-09-17 00:11:48 +05:00
Abdullah Atta
06dd760325 editor: insert new p at end of document on click
This addresses issue #947 on web/desktop.
2022-09-16 15:26:39 +05:00
Ammar Ahmed
686b38ca87 editor: expose link opening logic to clients (#969) 2022-09-16 12:10:06 +05:00
Abdullah Atta
fd8e14e9ff web: check logged out status using its locator 2022-09-16 09:32:07 +05:00
Abdullah Atta
926043d222 web: set icons' stroke width to 0 2022-09-15 13:51:23 +05:00
Abdullah Atta
d31a43b463 web: rewrite the whole test suite to be more resilient
**Why?**
The old test suite was a confusing mess, hard to maintain, update, and
add more tests to. It lacked a much needed layer of expressivity &
the reusable functions were all over the place.
Since it used a global `page` (by mistake), it couldn't run in parallel.
Moreover, the global `page` approach caused random flakiness.

All the above reasons led to this OM (Object Model) based approach to tests.
The tests are now much more expressive, reslient, resuable & easier to
maintain. During the rewriting process I also added a couple more
tests (about 10) so this is a net improvement.

Previously, running the tests were also quite slow (15-25s avg). This has
now been improved to (5-8s avg) by running the tests in production.
This means the app now requires to be built before running the tests:

```sh
npm run build:test:web # this is only required once
npm run test:web
```
2022-09-14 11:50:24 +05:00
Abdullah Atta
a6c3aeac84 web: editor doesn't detect focus mode 2022-09-14 11:44:04 +05:00
Abdullah Atta
5fb91d9229 web: restoring locked session doesn't update content 2022-09-14 11:44:04 +05:00
Abdullah Atta
0e9d2dcd5e web: allow changing plans when claiming an offer via url 2022-09-14 11:44:04 +05:00
Abdullah Atta
9a77d2e93d web: migrate editor footer to typescript 2022-09-14 11:44:04 +05:00
Abdullah Atta
9638b55f02 web: migrate move note dialog to typescript 2022-09-14 11:44:04 +05:00
Abdullah Atta
c8423333f1 web: migrate icon component to typescript 2022-09-14 11:44:04 +05:00
Abdullah Atta
84417c496f web: migrate navigation menu to typescript 2022-09-14 11:44:04 +05:00
Abdullah Atta
ab5d4fcbb1 web: refresh notes on tag deletion
this is required so any referenced note in the deleted tag get updated.
2022-09-14 11:44:04 +05:00
Abdullah Atta
5e886dc7b5 web: use correct plural/singular form in toasts
e.g. before it was "1 notes deleted" and now it is "1 note deleted"
2022-09-14 11:44:04 +05:00
Abdullah Atta
53047f035e web: reduce tests flakiness 2022-09-09 15:42:52 +05:00
Abdullah Atta
4c1070af56 web: content overlaps on switching notes very fast 2022-09-08 23:57:13 +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
Abdullah Atta
973417ce2c web: bypass onboarding dialog during debug & tests 2022-09-08 13:40:01 +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
ca1b66d68a web: settings.pins -> shortcuts migration 2022-09-07 14:19:08 +05:00
Abdullah Atta
9054dacb76 web: fix ui discrepancies due to theme-ui migration 2022-09-06 22:57:03 +05:00
Abdullah Atta
8cfb21e771 web: fix announcement cta not working 2022-09-05 22:44:27 +05:00
Abdullah Atta
da58248456 web: migrate list-container to typescript 2022-08-31 15:48:51 +05:00
Abdullah Atta
8bd9717930 web: fix crash when location url is / 2022-08-31 07:34:43 +05:00
Abdullah Atta
156a263efc refactor: remove unnecessary const _ignore; 2022-08-31 07:26:29 +05:00
Abdullah Atta
d81f5dba65 refactor: migrate to theme-ui from rebass 2022-08-31 07:26:27 +05:00