Commit Graph

186 Commits

Author SHA1 Message Date
VardanHakobyan
6ba3fbe9ca refactor: better naming 2021-06-23 19:32:31 +03:00
VardanHakobyan
205c48b0e0 fix: add dependencies array to useEffect so that it doesn't run on every render 2021-06-21 19:20:38 +03:00
VardanHakobyan
33082fcd7a fix: prevent default action when activating "Import Backup" by keyboard 2021-06-17 13:57:00 +04:00
VardanHakobyan
374e9c0616 Merge remote-tracking branch 'upstream/develop' into account-menu-splitted
# Conflicts:
#	app/assets/javascripts/directives/views/accountMenu.ts
2021-06-17 13:37:16 +04:00
VardanHakobyan
a76213dd1f feat: change label to button for better accessibility, let users to import backup by keyboard as well 2021-06-17 13:36:39 +04:00
VardanHakobyan
9f142c05df style: set correct margins for "Advanced Options" button 2021-06-17 11:35:27 +04:00
Antonella Sgarlatta
dcbc8f59f9 fix: focus autocomplete input after adding tag from hint 2021-06-16 18:10:22 -03:00
Antonella Sgarlatta
91fc475aac fix: show autocomplete tag results only if query isn't empty 2021-06-16 12:54:39 -03:00
VardanHakobyan
c897199d33 refactor: move user-related data to appStore 2021-06-16 17:00:13 +04:00
VardanHakobyan
018251838c refactor: read the required data from appState instead of passing by parent component 2021-06-16 16:20:23 +04:00
VardanHakobyan
17515848b4 fix: observe KeyStatusChanged event and correctly update hasProtections info 2021-06-16 16:00:14 +04:00
VardanHakobyan
6a3433d522 style: make "Advanced Options" button's styling similar to its previous "a" element's style 2021-06-16 15:18:06 +04:00
VardanHakobyan
96aaff5ff8 refactor: move all applicable parts to mobx instead of passing from parent to children components 2021-06-16 15:16:45 +04:00
VardanHakobyan
b1920bbd3c Merge remote-tracking branch 'upstream/develop' into account-menu-splitted
# Conflicts:
#	app/assets/stylesheets/_sn.scss
2021-06-15 17:17:24 +04:00
VardanHakobyan
c1e88a8ac0 refactor: add hidden class and tabIndex for accessibility 2021-06-15 17:16:05 +04:00
VardanHakobyan
adfef38bdc refactor: reviewer's comment
- use Preact's `FunctionalComponent` instead of React's `FC` to keep the app more lightweight
- remove `@node_modules/` from imports
2021-06-15 12:07:03 +04:00
Antonella Sgarlatta
2fa8767f5c styles: make note tags background color transparent 2021-06-14 17:49:24 -03:00
Antonella Sgarlatta
59737f4358 fix: add close on blur to search options dropdown 2021-06-14 13:53:56 -03:00
Antonella Sgarlatta
49788c436c fix: add close on blur to overflow menu dropdown 2021-06-14 13:39:50 -03:00
VardanHakobyan
42ea6a1ea9 refactor: separate DataBackup and ErrorReporting components, remove the original (large) AccountMenu component 2021-06-14 18:40:07 +04:00
VardanHakobyan
90cfd776da Merge remote-tracking branch 'origin/account-menu-react' into account-menu-splitted 2021-06-11 15:58:45 +04:00
VardanHakobyan
0916ba50be Merge remote-tracking branch 'upstream/develop' into account-menu-react 2021-06-11 15:57:59 +04:00
VardanHakobyan
9de1b30291 fix: correctly update Merge local data checkbox' state 2021-06-11 15:04:38 +04:00
VardanHakobyan
abb0b6595e style: split AccountMenu to smaller components
- change link to button for "Advanced Options"
- show cursor as pointer on checkbox and its label
2021-06-11 15:01:56 +04:00
Antonella Sgarlatta
df1257ac7e styles: remove min width from tags dropdown 2021-06-10 12:18:18 -03:00
Antonella Sgarlatta
c4db37ff94 fix: disallow creating empty tag 2021-06-10 11:58:10 -03:00
VardanHakobyan
8a2fa13d4e refactor: split AccountMenu to smaller components
Notes:
- remove `url` and keep only `server`, as they are duplicating each other
2021-06-10 18:38:44 +04:00
Antonella Sgarlatta
860e30de20 styles: change overflow to auto and add back dropdowns min width 2021-06-10 11:18:29 -03:00
Antonella Sgarlatta
c0348a0d0a styles: fix sessions modal height 2021-06-10 10:59:39 -03:00
VardanHakobyan
340a4c52f2 Merge remote-tracking branch 'upstream/develop' into account-menu-splitted 2021-06-10 16:55:31 +04:00
Antonella Sgarlatta
f433576930 fix: add close on blur to tags dropdown 2021-06-09 17:16:22 -03:00
VardanHakobyan
71d04943ee chore: run prettier 2021-06-09 12:23:14 +04:00
VardanHakobyan
7c35f41f9e refactor: reviewer's comments
- cleanup event observers in `useEffect`
- other small changes
2021-06-09 12:09:55 +04:00
VardanHakobyan
1e7dbb9b14 Merge remote-tracking branch 'upstream/develop' into account-menu-react 2021-06-09 11:06:42 +04:00
Antonella Sgarlatta
0e59a6c431 fix: make sessions modal scrollable 2021-06-08 19:25:25 -03:00
Antonella Sgarlatta
c38b1f042f feat: make delete backups checkbox off by default 2021-06-08 19:07:55 -03:00
VardanHakobyan
8b68d0fbaf refactor: reviewer's comments
- use state variables to decide whether email or passcode fields should be focused
2021-06-08 20:29:42 +04:00
VardanHakobyan
3e68f02da0 refactor: reviewer's comments
- don't pass `closeAccountMenu` to AccountMenu, instead create it in Account menu state and use it
- add event observers as per original code
- move some variables into component's state (even if they don't need to have setters sometimes)
2021-06-08 19:54:14 +04:00
Antonella Sgarlatta
6617362783 feat: add parent chain tags when adding a tag 2021-06-07 14:39:58 -03:00
VardanHakobyan
ca5811a0f2 fix: fix typescript problem 2021-06-07 21:14:33 +04:00
VardanHakobyan
7f11e25e63 refactor: migrate account-menu to react - implement functionality
- remove all Angular code related to `account-menu`
- rename React component to AccountMenu so that many parts of old code remain unchanged
- code cleanup
2021-06-07 20:30:49 +04:00
Antonella Sgarlatta
57689f1f15 styles: fix spacing between title and tag input 2021-06-07 12:16:38 -03:00
VardanHakobyan
3d454dc175 Merge remote-tracking branch 'upstream/develop' into account-menu-react 2021-06-07 17:43:07 +04:00
VardanHakobyan
f7262dc948 refactor: migrate account-menu to react - implement functionality
- implement "merge local data"
- show "error reporting dialog"
- fix TS errors
- cleanup TODOs
2021-06-04 20:11:19 +04:00
VardanHakobyan
5349ec8550 refactor: reviewer's comment 2021-06-04 16:52:58 +04:00
Antonella Sgarlatta
a9f0c6fd2f fix: add arrows navigation for tag hint 2021-06-03 20:46:44 -03:00
Antonella Sgarlatta
622cca770f feat: focus input after selecting tag 2021-06-03 20:37:02 -03:00
Antonella Sgarlatta
ff0270f1ac fix: don't show dropdown if there are no results 2021-06-03 20:10:17 -03:00
Antonella Sgarlatta
7cf668f172 Merge branch 'develop' into feature/autocomplete-tags 2021-06-03 18:52:27 -03:00
Antonella Sgarlatta
75cefc122e fix: add ellipsis overflow to tag text on note options 2021-06-03 18:48:22 -03:00