Commit Graph

2557 Commits

Author SHA1 Message Date
Abdullah Atta
32283e973b desktop: use custom fork of electron-builder-notarize 2022-09-29 19:46:41 +05:00
Abdullah Atta
ce889cf1c3 web: bump version to v2.2.1 2022-09-29 19:05:25 +05:00
Abdullah Atta
53ce66f4a6 web: remove limit on no. of pins 2022-09-29 18:48:13 +05:00
Abdullah Atta
0eeaf808fc desktop: fix issue with snap desktop integration 2022-09-29 18:17:11 +05:00
Abdullah Atta
78afb7eaf7 web: update note title only on note open
this was a subtle bug where typing really fast in the editor
caused jank & erratic behavior.
2022-09-29 18:09:03 +05:00
Abdullah Atta
2334987359 web: set user status to premium during tests 2022-09-29 16:03:24 +05:00
Abdullah Atta
745c89ef86 web: fix issue where onboarding is shown to everyone
this happened due to a very annoying issue with javascript where
`null <= 0` is true but `null === 0` is false & `null < 0` is false too.
2022-09-29 16:03:24 +05:00
Abdullah Atta
2d277fbe2b web: don't treat dev environment as a special case 2022-09-29 16:03:24 +05:00
Abdullah Atta
02459d759f web: speed up word counting
Previously we moved to getting the `innerText` directly from the browser.
This was okay but it strained the browser quite a bit. Now we are moving
back to using `textBetween` since after some benchmarking the difference
in speed is minimal. It is possible
that there is a better alternative
specifically designed for prosemirror.
2022-09-29 15:56:24 +05:00
Abdullah Atta
db5abecb43 web: set title on nav item menus 2022-09-29 15:55:52 +05:00
Abdullah Atta
89123c0be5 web: right click on selected items deselects them 2022-09-29 15:55:52 +05:00
Abdullah Atta
119a931312 web: install @types/marked 2022-09-29 15:55:37 +05:00
Abdullah Atta
e3d86440c1 web: open all links in release notes in a new tab/window 2022-09-29 15:55:37 +05:00
Abdullah Atta
8a19fd8de5 desktop: handle MAC_APP_STORE is not defined error 2022-09-29 14:37:35 +05:00
Abdullah Atta
a61b577947 web: check for desktop os when filtering announcements 2022-09-28 12:14:41 +05:00
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
b3ea6523ae global: set license prop of all package.json files to GPL-3.0-or-later 2022-09-26 15:30:16 +05:00
Abdullah Atta
0b34af4931 web: allow regional pricing 2022-09-24 09:25:12 +05:00
Abdullah Atta
977e0fd1c1 ci: publish to snapcraft manually 2022-09-23 12:01:34 +05:00
Abdullah Atta
7b48499527 desktop: publish app to snapcraft 2022-09-23 11:13:35 +05:00
Abdullah Atta
e0e672c892 web: add download link for portable desktop app 2022-09-22 14:02:21 +05:00
Abdullah Atta
5290021b25 desktop: include os & _portable in artifactName 2022-09-22 13:56:16 +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
fbb8ace28d desktop: generate portable windows binaries (fixes #864) 2022-09-22 12:26:52 +05:00
Abdullah Atta
df92c8db9d web: remove unused github workflows 2022-09-22 12:08:36 +05:00
Abdullah Atta
6499af1781 web: sync package-lock.json with package.json 2022-09-22 12:08:36 +05:00
Abdullah Atta
1017739bdb web: add feature highlights for v2.2.0 2022-09-22 12:08:36 +05:00
Abdullah Atta
dbc0762b35 web: bump version to v2.2.0 2022-09-22 12:08:36 +05:00
Abdullah Atta
6d75476e7c web: optimize tests by ~120% (#1018)
This is mainly done via sharding, caching & reducing total work:
1. `terser` is turned off when generating test build
2. `nx` distributed cache allows reusing build outputs
3. `playwright` sharding allows running tests in parallel

This can further be improved by using `swc` & `esbuild` during build
2022-09-21 14:01:32 +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
f98a9e1142 web: increase keyboard-list-nav tests timeout 2022-09-19 12:25:31 +05:00
Abdullah Atta
508d1c46f2 web: add tests for keyboard list navigation 2022-09-18 17:36:15 +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
02a0ccebee web: fix failing tests 2022-09-18 16:37:33 +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
3880fd9053 web: increase overall test timeout to 30s 2022-09-16 09:34:40 +05:00
Abdullah Atta
060c17505a web: patch react-scripts to handle multi react versions error 2022-09-16 09:32:24 +05:00
Abdullah Atta
fd8e14e9ff web: check logged out status using its locator 2022-09-16 09:32:07 +05:00
Abdullah Atta
b83aab3c3b web: increase user.test timeout to 45s 2022-09-16 09:31:36 +05:00