From c5adeecd902389ef04d5377bdb0d35c3df438cfb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9s=20Moya?= Date: Fri, 12 Nov 2021 12:23:27 +0100 Subject: [PATCH 1/3] :bug: Fix problems importing files --- common/src/app/common/path/bool.cljc | 3 ++- common/src/app/common/types/interactions.cljc | 5 ++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/common/src/app/common/path/bool.cljc b/common/src/app/common/path/bool.cljc index ddb388091..8269c1e28 100644 --- a/common/src/app/common/path/bool.cljc +++ b/common/src/app/common/path/bool.cljc @@ -42,7 +42,8 @@ (let [head-p (gsp/command->point head) head (cond (and (= :close-path (:command head)) - (< (gpt/distance last-p last-move) 0.01)) + (or (nil? last-p) ;; Ignore consecutive close-paths + (< (gpt/distance last-p last-move) 0.01))) nil (= :close-path (:command head)) diff --git a/common/src/app/common/types/interactions.cljc b/common/src/app/common/types/interactions.cljc index 7c56113ad..3f54ee2a8 100644 --- a/common/src/app/common/types/interactions.cljc +++ b/common/src/app/common/types/interactions.cljc @@ -69,8 +69,7 @@ (defmulti action-opts-spec :action-type) (defmethod action-opts-spec :navigate [_] - (s/keys :req-un [::destination] - :opt-un [::preserve-scroll])) + (s/keys :opt-un [::destination ::preserve-scroll])) (defmethod action-opts-spec :open-overlay [_] (s/keys :req-un [::destination @@ -87,7 +86,7 @@ ::background-overlay])) (defmethod action-opts-spec :close-overlay [_] - (s/keys :req-un [::destination])) + (s/keys :opt-un [::destination])) (defmethod action-opts-spec :prev-screen [_] (s/keys :req-un [])) From 401afe7c1af2585b5d0a95e0a86316f955112afe Mon Sep 17 00:00:00 2001 From: Andrey Antukh Date: Fri, 12 Nov 2021 12:34:50 +0100 Subject: [PATCH 2/3] :paperclip: Change loggling level on oauth ns. --- backend/src/app/http/oauth.clj | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/backend/src/app/http/oauth.clj b/backend/src/app/http/oauth.clj index faa2c247e..1e0b67498 100644 --- a/backend/src/app/http/oauth.clj +++ b/backend/src/app/http/oauth.clj @@ -58,8 +58,7 @@ {:token (get data "access_token") :type (get data "token_type")}))) (catch Exception e - (l/error :hint "unexpected error on retrieve-access-token" - :cause e) + (l/warn :hint "unexpected error on retrieve-access-token" :cause e) nil))) (defn- qualify-props @@ -86,8 +85,7 @@ :props (->> (dissoc info :name :email) (qualify-props provider))}))) (catch Exception e - (l/error :hint "unexpected exception on retrieve-user-info" - :cause e) + (l/warn :hint "unexpected exception on retrieve-user-info" :cause e) nil))) (s/def ::backend ::us/not-empty-string) From 0bdbbd35e35ae69b4d13ec685157a22ad7531915 Mon Sep 17 00:00:00 2001 From: Andrey Antukh Date: Fri, 12 Nov 2021 12:36:32 +0100 Subject: [PATCH 3/3] :paperclip: Fix linter issues. --- frontend/src/app/main/ui/onboarding.cljs | 2 +- frontend/src/app/main/ui/releases/v1_10.cljs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/src/app/main/ui/onboarding.cljs b/frontend/src/app/main/ui/onboarding.cljs index 2120a988f..d70f63341 100644 --- a/frontend/src/app/main/ui/onboarding.cljs +++ b/frontend/src/app/main/ui/onboarding.cljs @@ -17,13 +17,13 @@ [app.main.ui.components.forms :as fm] [app.main.ui.icons :as i] [app.main.ui.releases.common :as rc] + [app.main.ui.releases.v1-10] [app.main.ui.releases.v1-4] [app.main.ui.releases.v1-5] [app.main.ui.releases.v1-6] [app.main.ui.releases.v1-7] [app.main.ui.releases.v1-8] [app.main.ui.releases.v1-9] - [app.main.ui.releases.v1-10] [app.util.dom :as dom] [app.util.http :as http] [app.util.i18n :as i18n :refer [tr]] diff --git a/frontend/src/app/main/ui/releases/v1_10.cljs b/frontend/src/app/main/ui/releases/v1_10.cljs index 7c4a6fe9c..5153a08b0 100644 --- a/frontend/src/app/main/ui/releases/v1_10.cljs +++ b/frontend/src/app/main/ui/releases/v1_10.cljs @@ -10,7 +10,7 @@ [rumext.alpha :as mf])) (defmethod c/render-release-notes "1.10" - [{:keys [slide klass next finish navigate version]}] + [{:keys [klass finish version]}] (mf/html [:div.modal-overlay [:div.animated {:class @klass}