Commit Graph

15 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
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
Mo Bitar
ba4fbd1c0a fix: unmount component on destroy 2021-11-10 08:30:38 -06:00
Mo
413fe47828 chore: update all dependencies (#699) 2021-10-22 14:47:41 -05:00
Antonella Sgarlatta
b5906ecf78 feat: collapse tags on click outside 2021-05-31 17:58:46 -03:00
Antonella Sgarlatta
dd5873b513 fix: revert closeOnBlur changes 2021-05-07 17:46:08 -03:00
Antonella Sgarlatta
9906cd2a20 fix: menu should remain open when showing trash alert 2021-05-07 15:41:00 -03:00
Antonella Sgarlatta
45357c1976 fix: revert changes to closeOnBlur and add closeOnClickOutside 2021-05-04 15:44:12 -03:00
Antonella Sgarlatta
15db4767f5 feat: use pencil off icon for note bar 2021-05-03 16:42:07 -03:00
Antonella Sgarlatta
b70cc0e7e4 feat: add right-click context menu 2021-04-29 17:07:14 -03:00
Baptiste Grob
abfc588368 feat: multiple selected notes panel 2021-04-13 14:43:48 +02:00
Baptiste Grob
e12b9ecac8 fix: excessive autorun calls 2021-04-08 18:49:48 +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
Baptiste Grob
cc474da0c3 feat: warning for protected note without protection
- Use `.sn-button` everywhere
- Delete permissions modal
- Capitalize "Clear session data"
2021-03-22 16:52:04 +01:00
Baptiste Grob
c084268f51 feat: display warning banner when using the app with no account 2021-02-02 15:40:20 +01:00