From 633add73c913f541d281d9ed3fef2af37141d6f0 Mon Sep 17 00:00:00 2001 From: Antonella Sgarlatta Date: Mon, 24 May 2021 10:51:24 -0300 Subject: [PATCH 1/5] feat: remove animations from context menu --- .../javascripts/components/NotesOptionsPanel.tsx | 2 +- app/assets/javascripts/components/SearchOptions.tsx | 2 +- app/assets/stylesheets/_sn.scss | 11 +++++++---- 3 files changed, 9 insertions(+), 6 deletions(-) diff --git a/app/assets/javascripts/components/NotesOptionsPanel.tsx b/app/assets/javascripts/components/NotesOptionsPanel.tsx index 93299f2d4..34ecb023d 100644 --- a/app/assets/javascripts/components/NotesOptionsPanel.tsx +++ b/app/assets/javascripts/components/NotesOptionsPanel.tsx @@ -71,7 +71,7 @@ export const NotesOptionsPanel = observer(({ appState }: Props) => { ...position, maxHeight }} - className="sn-dropdown max-h-120 max-w-80 flex flex-col py-2 overflow-y-scroll fixed" + className="sn-dropdown sn-dropdown--animated max-h-120 max-w-80 flex flex-col py-2 overflow-y-scroll fixed" > {open && ( { style={{ top: optionsPanelTop, }} - className="sn-dropdown sn-dropdown-anchor-right absolute grid gap-2 py-2" + className="sn-dropdown sn-dropdown--anchor-right sn-dropdown--animated absolute grid gap-2 py-2" > Date: Mon, 24 May 2021 11:05:15 -0300 Subject: [PATCH 2/5] fix: new note button not working when multiple notes selected --- app/assets/javascripts/views/notes/notes_view.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/app/assets/javascripts/views/notes/notes_view.ts b/app/assets/javascripts/views/notes/notes_view.ts index cfbbaf40b..1708d0db6 100644 --- a/app/assets/javascripts/views/notes/notes_view.ts +++ b/app/assets/javascripts/views/notes/notes_view.ts @@ -400,6 +400,7 @@ class NotesViewCtrl extends PureViewCtrl { } async createNewNote() { + this.appState.notes.unselectNotes(); let title = `Note ${this.state.notes.length + 1}`; if (this.isFiltering()) { title = this.state.noteFilter.text; From f0ca90fd4f2f008315e9fbc26df2abe74774655f Mon Sep 17 00:00:00 2001 From: Antonella Sgarlatta Date: Mon, 24 May 2021 11:44:08 -0300 Subject: [PATCH 3/5] chore(version-snjs): 2.3.1 --- package.json | 2 +- yarn.lock | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/package.json b/package.json index 1887b5cbe..4e227469e 100644 --- a/package.json +++ b/package.json @@ -71,7 +71,7 @@ "@reach/checkbox": "^0.13.2", "@reach/dialog": "^0.13.0", "@standardnotes/sncrypto-web": "1.2.10", - "@standardnotes/snjs": "2.3.0", + "@standardnotes/snjs": "2.3.1", "mobx": "^6.1.6", "mobx-react-lite": "^3.2.0", "preact": "^10.5.12" diff --git a/yarn.lock b/yarn.lock index bd05813de..2ce16916e 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1936,10 +1936,10 @@ "@standardnotes/sncrypto-common" "^1.2.7" libsodium-wrappers "^0.7.8" -"@standardnotes/snjs@2.3.0": - version "2.3.0" - resolved "https://registry.yarnpkg.com/@standardnotes/snjs/-/snjs-2.3.0.tgz#52f6b5458e348e77642f922dd4302ad8c6d28914" - integrity sha512-4xlLcVKJznhqCTKWy4IhYPbnxc3k66fzBeTdWJqZZ/n0vOT2l1/ybCRrPP0os/7NFCtK3CqInApbzZP6xXUhuA== +"@standardnotes/snjs@2.3.1": + version "2.3.1" + resolved "https://registry.yarnpkg.com/@standardnotes/snjs/-/snjs-2.3.1.tgz#48b68050ac4c4616bebab0128fd093cad0d65ea7" + integrity sha512-PTWt5R4OTrbyMKX8eTr/fc6Z0o4WrOJucDfMUWBQeIajHQg7V3MHpp0PArz+SS1Qdj3n7eVdl5qyHFjymL3C/w== dependencies: "@standardnotes/auth" "^2.0.0" "@standardnotes/sncrypto-common" "^1.2.9" From 278bec8d56e8a29a2114b4c590c0820bf4679258 Mon Sep 17 00:00:00 2001 From: Antonella Sgarlatta Date: Mon, 24 May 2021 11:46:43 -0300 Subject: [PATCH 4/5] feat: close context menu on extension click --- app/assets/javascripts/directives/views/componentView.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/assets/javascripts/directives/views/componentView.ts b/app/assets/javascripts/directives/views/componentView.ts index 641b8e5ac..85b18c29d 100644 --- a/app/assets/javascripts/directives/views/componentView.ts +++ b/app/assets/javascripts/directives/views/componentView.ts @@ -156,6 +156,9 @@ class ComponentViewCtrl implements ComponentViewScope { case (ComponentAction.KeyUp): this.application.io.handleComponentKeyUp(data.keyboardModifier); break; + case (ComponentAction.Click): + this.application.getAppState().notes.setContextMenuOpen(false); + break; default: return; } From 2e30fe831aec8402b7dfa99c2327b0c13dc97693 Mon Sep 17 00:00:00 2001 From: Antonella Sgarlatta Date: Tue, 25 May 2021 17:57:46 -0300 Subject: [PATCH 5/5] chore(version): 3.7.0 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 4e227469e..ae9f6e99e 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "standard-notes-web", - "version": "3.7.0-beta01", + "version": "3.7.0", "license": "AGPL-3.0-or-later", "repository": { "type": "git",