From 86712f977d112fa15dd9d7657460527675aecadd Mon Sep 17 00:00:00 2001 From: Andrey Antukh Date: Wed, 1 Feb 2023 18:06:12 +0100 Subject: [PATCH 1/3] :bug: Skip unnecesary mutation events from audit log --- backend/src/app/loggers/audit.clj | 2 +- backend/src/app/rpc/commands/files.clj | 6 ++++-- backend/src/app/rpc/mutations/files.clj | 8 +++++--- 3 files changed, 10 insertions(+), 6 deletions(-) diff --git a/backend/src/app/loggers/audit.clj b/backend/src/app/loggers/audit.clj index 5f13dc036..93a363727 100644 --- a/backend/src/app/loggers/audit.clj +++ b/backend/src/app/loggers/audit.clj @@ -247,7 +247,7 @@ from audit_log where archived_at is null order by created_at asc - limit 256 + limit 128 for update skip locked;") (defn archive-events diff --git a/backend/src/app/rpc/commands/files.clj b/backend/src/app/rpc/commands/files.clj index 0dd01b1a5..7083a852e 100644 --- a/backend/src/app/rpc/commands/files.clj +++ b/backend/src/app/rpc/commands/files.clj @@ -996,7 +996,8 @@ :opt-un [::data])) (sv/defmethod ::upsert-file-object-thumbnail - {::doc/added "1.17"} + {::doc/added "1.17" + ::audit/skip true} [{:keys [pool] :as cfg} {:keys [::rpc/profile-id file-id] :as params}] (db/with-atomic [conn pool] (check-edition-permissions! conn profile-id file-id) @@ -1026,7 +1027,8 @@ (sv/defmethod ::upsert-file-thumbnail "Creates or updates the file thumbnail. Mainly used for paint the grid thumbnails." - {::doc/added "1.17"} + {::doc/added "1.17" + ::audit/skip true} [{:keys [pool] :as cfg} {:keys [::rpc/profile-id file-id] :as params}] (db/with-atomic [conn pool] (check-edition-permissions! conn profile-id file-id) diff --git a/backend/src/app/rpc/mutations/files.clj b/backend/src/app/rpc/mutations/files.clj index 273b9313b..635f92920 100644 --- a/backend/src/app/rpc/mutations/files.clj +++ b/backend/src/app/rpc/mutations/files.clj @@ -10,7 +10,7 @@ [app.common.logging :as l] [app.common.spec :as us] [app.db :as db] - [app.loggers.audit :as audit] + [app.loggers.audit :as-alias audit] [app.rpc.climit :as-alias climit] [app.rpc.commands.files :as cmd.files] [app.rpc.commands.files.create :as cmd.files.create] @@ -176,7 +176,8 @@ (sv/defmethod ::upsert-file-object-thumbnail {::doc/added "1.13" - ::doc/deprecated "1.17"} + ::doc/deprecated "1.17" + ::audit/skip true} [{:keys [pool] :as cfg} {:keys [profile-id file-id] :as params}] (db/with-atomic [conn pool] (cmd.files/check-edition-permissions! conn profile-id file-id) @@ -192,7 +193,8 @@ "Creates or updates the file thumbnail. Mainly used for paint the grid thumbnails." {::doc/added "1.13" - ::doc/deprecated "1.17"} + ::doc/deprecated "1.17" + ::audit/skip true} [{:keys [pool] :as cfg} {:keys [profile-id file-id] :as params}] (db/with-atomic [conn pool] (cmd.files/check-edition-permissions! conn profile-id file-id) From 950d5dcc2f90386d67b11827c70ba3bf55591b4f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9s=20Moya?= Date: Wed, 1 Feb 2023 19:31:12 +0100 Subject: [PATCH 2/3] :lipstick: Move all README images to a subfolder --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index cf16d463d..2a535c03c 100644 --- a/README.md +++ b/README.md @@ -50,7 +50,7 @@ Being web based, Penpot is not dependent on operating systems or local installat Using SVG as no other design and prototyping tool does, Penpot files sport compatibility with most of the vectorial tools, are tech friendly and extremely easy to use on the web. We make sure you will always own your work.

- Open Source + Open Source

@@ -93,7 +93,7 @@ You will find the following categories: - [Penpot in your language](https://community.penpot.app/c/penpot-in-your-language/12)

- Community + Community

## Contributing ## From 1e9ece43d0889d879515505a864ab28f79706330 Mon Sep 17 00:00:00 2001 From: Pablo Alba Date: Wed, 1 Feb 2023 21:56:30 +0100 Subject: [PATCH 3/3] :bug: Fix typing CMD+Z on MacOS turns the cursor into a Zoom cursor --- CHANGES.md | 1 + frontend/src/app/main/ui/workspace/viewport/hooks.cljs | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/CHANGES.md b/CHANGES.md index 150041742..ae136b8e8 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -4,6 +4,7 @@ ### :bug: Bugs fixed - Fix components groups items show the component name in list mode [Taiga #4770](https://tree.taiga.io/project/penpot/issue/4770) +- Fix typing CMD+Z on MacOS turns the cursor into a Zoom cursor [Taiga #4778](https://tree.taiga.io/project/penpot/issue/4778) ## 1.17.0 diff --git a/frontend/src/app/main/ui/workspace/viewport/hooks.cljs b/frontend/src/app/main/ui/workspace/viewport/hooks.cljs index d4dd8c624..e7270e7b9 100644 --- a/frontend/src/app/main/ui/workspace/viewport/hooks.cljs +++ b/frontend/src/app/main/ui/workspace/viewport/hooks.cljs @@ -109,7 +109,8 @@ (defn setup-keyboard [alt? mod? space? z?] (hooks/use-stream ms/keyboard-alt #(reset! alt? %)) - (hooks/use-stream ms/keyboard-mod #(reset! mod? %)) + (hooks/use-stream ms/keyboard-mod #((reset! mod? %) + (when-not % (reset! z? false)))) ;; In mac after command+z there is no event for the release of the z key (hooks/use-stream ms/keyboard-space #(reset! space? %)) (hooks/use-stream ms/keyboard-z #(reset! z? %)))