Commit Graph

17 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
Mo
413fe47828 chore: update all dependencies (#699) 2021-10-22 14:47:41 -05:00
Antonella Sgarlatta
afc84b5702 fix: reposition dropdowns when resizing window 2021-06-30 18:51:00 -03:00
Antonella Sgarlatta
a61f43c557 fix: set max width for search options 2021-06-24 14:45:52 -03:00
Antonella Sgarlatta
28aab95bc0 fix: make search options open on top of tags container 2021-06-23 12:44:16 -03:00
Antonella Sgarlatta
59737f4358 fix: add close on blur to search options dropdown 2021-06-14 13:53:56 -03:00
Antonella Sgarlatta
df1257ac7e styles: remove min width from tags dropdown 2021-06-10 12:18:18 -03:00
Antonella Sgarlatta
633add73c9 feat: remove animations from context menu 2021-05-24 10:51:24 -03:00
Antonella Sgarlatta
6a9d54c2ae fix: make menus scrollable when there's not enough space 2021-05-20 16:57:34 -03:00
Antonella Sgarlatta
5ddc976446 styles: make icons responsive to font size 2021-05-18 12:21:10 -03:00
Antonella Sgarlatta
075f1b910b styles: revert search options button styling 2021-05-12 18:29:02 -03:00
Antonella Sgarlatta
36bfa4504d styles: add hover state to ellipsis button and unify search options and ellipsis button styles 2021-05-10 18:58:31 -03:00
Baptiste Grob
abfc588368 feat: multiple selected notes panel 2021-04-13 14:43:48 +02:00
Baptiste Grob
369b748b97 fix: remove focus outline artifacts 2021-04-09 14:22:33 +02:00
Baptiste Grob
e12b9ecac8 fix: excessive autorun calls 2021-04-08 18:49:48 +02:00
Baptiste Grob
a4e4381b0a refactor: rename parameter 2021-04-06 16:52:37 +02:00
Baptiste Grob
ed69680295 feat: search options (#540)
* feat: search options

* feat: sanitize folder names

* fix: add cursor: pointer to switch

* fix: explicitly make the search bar a text input

* refactor: remove magic number

* refactor: extract Switch component to its own file

* refactor: split AppState into multiple files

* refactor: review comments
2021-04-06 16:48:25 +02:00