Commit Graph

18 Commits

Author SHA1 Message Date
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
Antonella Sgarlatta
98c6078a0d fix: don't wait until regaining focus to lock app 2021-06-07 19:07:31 -03:00
Baptiste Grob
0f53361689 feat: select multiple notes in list 2021-04-12 14:54:43 +02:00
Baptiste Grob
a0909399f8 fix: lint errors 2021-01-22 11:52:24 +01:00
Baptiste Grob
5d65364885 feat: batch manager protection + react challenge modal + eslint fix 2021-01-22 11:37:58 +01:00
Baptiste Grob
2c0f215409 feat: (wip) sessions management 2020-12-16 17:27:26 +01:00
Baptiste Grob
3a16140699 chore(deps): upgrade snjs & sncrypto-web to npm package versions 2020-11-19 13:37:49 +01:00
Mo Bitar
e177dcac47 fix: simplify component logic 2020-09-24 18:52:38 -05:00
Mo Bitar
b3e5ca340d feat: improve strings, challenges, and template readiness 2020-09-23 22:34:18 -05:00
Mo Bitar
2b6abeebfc feat: snjs app groups (#468)
* feat: snjs app groups

* fix: update snjs version to point to wip commit

* wip: account switcher

* feat: rename lock manager to auto lock service

* fix: more relevant sign out copy

* chore(deps): update snjs

* fix: use setTimeout instead of setImmediate

* feat: make account switcher expiremental feature

* chore(deps): upgrade snjs
2020-09-15 10:55:32 -05:00
Baptiste Grob
5c7bc32306 style: remake updateUI into flushUI 2020-08-18 18:14:24 +02:00
Baptiste Grob
e45d28b07a refactor: improve setState semantics 2020-07-07 18:59:51 +02:00
Baptiste Grob
15039bd16c refactor: improve props and state typing 2020-07-07 18:59:51 +02:00
Baptiste Grob
6e485e0e8a fix: keep application reference when on pure view controller destruction 2020-06-01 18:38:05 +02:00
Baptiste Grob
b2d6ea00c8 fix: initialize controller state softly 2020-06-01 10:49:51 +02:00
Mo Bitar
dee164f4a2 fix: editor status after changing note 2020-04-24 12:55:23 -05:00
Mo Bitar
407e3ea0d8 Fixes and improvements related to components 2020-04-15 19:17:08 -05:00
Mo Bitar
9cf99896a5 Remove dummy concept in favor of editor group and editors 2020-04-14 15:03:22 -05:00