Commit Graph

2653 Commits

Author SHA1 Message Date
Mo Bitar
c59f85f498 chore: use snjs beta package 2021-12-14 12:53:27 -06:00
Vardan Hakobyan
8db549f6f6 feat: handle unprotected session expiration (#747)
* feat: hide note contents if the protection expires when the protected note is open and wasn't edited for a while

* feat: handle session expiration for opened protected note for both plain advanced editors

* fix: if after canceling  session expiry modal only one unprotected note stays selected, show its contents in the editor

* refactor: handle session expiration for opened protected note (move the logic to web client)

* feat: handle the case of selecting "Don't remember" option in session expiry dialog

* test (WIP): add unit tests for protecting opened note after the session has expired

* test: add remaining unit tests

* refactor: move the opened note protection logic to "editor_view"

* refactor: reviewer comments
- don't rely on user signed-in/out status to require authentication for protected note
- remove unnecessary async/awaits
- better wording on ui

* refactor: reviewer's comments:
 - use snjs method to check if "Don't remember" option is selected in authentication modal
 - move the constant to snjs
 - fix eslint error

* refactor: avoid `any` type for `appEvent` payload

* test: add unit tests

* chore: update function name

* refactor: use simpler protection session event types

* refactor: protected access terminology

* refactor: start counting idle timer after every edit (instead of counting by interval in spite of edits)

* test: unit tests

* style: don't give extra brightness to the "View Note"/"Authenticate" button on hover/focus

* chore: bump snjs version

Co-authored-by: Mo Bitar <me@bitar.io>
2021-12-14 19:14:01 +04:00
Karol Sójko
f494b106b9 Merge branch 'hotfix/10.3.1' into develop 2021-12-14 10:15:18 +01:00
Karol Sójko
36588c102f fix: upgrade snjs to allow demo to access dev extensions server 2021-12-14 10:15:02 +01:00
Mo
a15014f003 Component view refactor (#770)
* refactor: simplify component-view lifecycle callbacks

* fix: reintroduce exhaustive-deps
2021-12-13 11:16:14 -06:00
Mo Bitar
397cdce19b Merge branch 'release/10.3.0' 2021-12-10 11:59:20 -06:00
Mo Bitar
d5f75fee84 deps(snjs): 2.20.3 2021-12-10 11:56:00 -06:00
Aman Harwara
b29dc8ecc6 fix: Last sync date padding (#768) 2021-12-10 19:06:35 +05:30
Aman Harwara
24c6b831c6 feat: Multiple minor changes (#769) 2021-12-10 18:58:29 +05:30
Aman Harwara
024d44f1ff fix: Password toggle triggering on Enter when checkbox is focused (#767) 2021-12-09 23:18:52 +05:30
Mo Bitar
1f09a013e2 Merge branch 'release/10.2.0' 2021-12-09 08:26:47 -06:00
Mo Bitar
0f05da435c release: 3.9.8 2021-12-09 08:01:38 -06:00
Mo Bitar
0ad65befb0 deps(snjs): 2.20.1 2021-12-08 22:23:57 -06:00
Aman Harwara
dc9dc104c9 feat: Always show quick settings menu (#765) 2021-12-08 20:40:56 +05:30
Aman Harwara
e6087de709 fix: UI shiting when opening dropdown with a lot of items (#764) 2021-12-08 19:07:43 +05:30
Johnny A
306441ed3a fix: note stats (#743)
* fix: note stats

* fix: show word count if note is plain or markdown

Co-authored-by: Johnny Almonte <johnny243@users.noreply.github.com>
2021-12-07 15:22:39 -04:00
Mo Bitar
de0b04b5ef Merge branch 'hotfix/10.1.3' into develop 2021-12-07 10:49:33 -06:00
Mo Bitar
c8506648fa Merge branch 'hotfix/10.1.3' 2021-12-07 10:49:27 -06:00
Mo Bitar
9256193c66 fix: handle case in preferences where component name can be undefined, causing exception that makes preferences UI unresponsive 2021-12-07 10:49:06 -06:00
Mo Bitar
90e12d19f7 Merge branch 'hotfix/10.1.2' into develop 2021-12-06 13:21:27 -06:00
Mo Bitar
6ca3ee01f8 Merge branch 'hotfix/10.1.2' 2021-12-06 13:21:20 -06:00
Mo Bitar
1c4876acf0 chore: bump version to 3.9.7 2021-12-06 13:21:13 -06:00
Mo Bitar
a9f8e1cba6 fix: handle component tag selection 2021-12-06 13:20:45 -06:00
Mo Bitar
c03ee22ceb Merge branch 'hotfix/10.1.1' into develop 2021-12-06 11:17:39 -06:00
Mo Bitar
8d9800dd00 Merge branch 'hotfix/10.1.1' 2021-12-06 11:17:23 -06:00
Mo Bitar
dbc4de9a0e fix: don't show saving status if template note inserted to be interactable with advanced editor 2021-12-06 11:17:15 -06:00
Mo Bitar
9f5c650392 Merge branch 'release/10.1.0' 2021-12-06 08:50:50 -06:00
Laurent Senta
c27dce1ab7 style: with prettier (#762)
* style: use pretty quick on staged files

* style: test edit utils

* style: try with lint-staged

* style: test lint application
2021-12-06 15:27:18 +01:00
Aman Harwara
31c48af01c feat: Add "Pin selected notes" button to editor title bar (#760) 2021-12-06 14:47:35 +05:30
Mo Bitar
82ee0974c1 feat: snjs upgrade and fixes 2021-12-05 11:04:46 -06:00
Mo Bitar
ac9c19d681 fix: copy improvement 2021-12-03 11:58:14 -06:00
Aman Harwara
d7c36da2b2 fix: Width transition on manually resizing sections (#759) 2021-12-03 19:41:13 +05:30
Mo Bitar
1a138ef83d fix: remove redundant check in template 2021-12-02 13:07:28 -06:00
Aman Harwara
9730006cba feat: Nativize "No distraction" theme as "Focus Mode" (#758)
Co-authored-by: Mo Bitar <me@bitar.io>
2021-12-02 22:34:57 +05:30
Mo Bitar
fbafc136e8 fix: better subscription state text 2021-12-01 11:28:03 -06:00
Vardan Hakobyan
a8f949e8c5 Chore/setup testing environment (#755)
* chore: setup environment for unit tests

* fix: remove extra character from json
2021-11-30 19:01:51 +04:00
Laurent Senta
b5e89f461e feat: git sync (#754)
Co-authored-by: Mo Bitar <me@bitar.io>
2021-11-29 18:17:02 +01:00
Laurent Senta
4d8ba3320a refactor: move tags to react (#753)
* refactor: move Tags list to react

* refactor: extract TagsListItem and simplify hooks

* refactor: remove comment & dead code

* fix: mobx warnings & safari bug

* fix: text select on non-safari

* fix: remove unecessary comments

* style: apply prettier format

* style: apply formatting on tags_view

* refactor: remove the angular tags rendering

* feat: add back the "select previous tag" behavior

* style: simplify code and avoid important

* style: remove note on state
2021-11-29 17:33:00 +01:00
Mo Bitar
ee11af673e Merge branch 'release/10.0.0' 2021-11-26 18:37:32 -06:00
Mo Bitar
6f3a749e52 fix: default to feature status entitled to avoid temporarily flashing error 2021-11-26 18:29:00 -06:00
Aman Harwara
21433b5544 feat: Change bg color when focusing tag instead of border (#751) 2021-11-26 18:37:29 +05:30
Johnny A
ba3c58457a fix: add border to generated 2fa QR code (#749)
Co-authored-by: Johnny Almonte <johnny243@users.noreply.github.com>
2021-11-24 20:35:51 -04:00
Mo
cf3664751f feat: display feature status (#745)
* feat: display feature status

* fix: hook dep

* fix: react hooks dep
2021-11-22 11:39:14 -06:00
Vardan Hakobyan
0193eea1f5 fix: show correct "Last modified date" for note (#742)
Co-authored-by: Aman Harwara <amanharwara@protonmail.com>
2021-11-16 18:19:53 +04:00
Vardan Hakobyan
b2877a5435 fix: break long extension url text when it exceeds container width (#741) 2021-11-16 18:12:11 +04:00
Aman Harwara
e16e817747 fix: Remove HTML tags before counting words for a note (#739) 2021-11-16 19:19:28 +05:30
Karol Sójko
80e89ec895 Merge branch 'hotfix/3.9.7' into develop 2021-11-16 12:43:24 +01:00
Karol Sójko
73e81ab99e Merge branch 'hotfix/3.9.7' 2021-11-16 12:43:21 +01:00
Karol Sójko
937311d92e fix: remove github actions for beta environment 2021-11-16 12:43:15 +01:00
Vardan Hakobyan
f8308348ed fix: hide horizontal separator if "offline subscriptions" section is hidden (#740) 2021-11-15 17:52:13 +04:00