From 0c586551c4810085aeb466a53c873755d2e8b5ad Mon Sep 17 00:00:00 2001 From: Pablo Alba Date: Wed, 20 Nov 2024 15:12:54 +0100 Subject: [PATCH] =?UTF-8?q?:tada:=20Add=20A/B=20test=20of=20use=20of=20boa?= =?UTF-8?q?rds=20if=20we=20just=20change=20the=20icon=20for=20=E2=80=9Csta?= =?UTF-8?q?ndard=E2=80=9D=20one?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/resources/images/icons/board-2.svg | 3 +++ frontend/src/app/main/ui/components/shape_icon.cljs | 5 +++-- frontend/src/app/main/ui/icons.cljs | 1 + frontend/src/app/main/ui/workspace/sidebar/history.cljs | 3 ++- frontend/src/app/main/ui/workspace/sidebar/layers.cljs | 3 ++- frontend/src/app/main/ui/workspace/top_toolbar.cljs | 3 ++- 6 files changed, 13 insertions(+), 5 deletions(-) create mode 100644 frontend/resources/images/icons/board-2.svg diff --git a/frontend/resources/images/icons/board-2.svg b/frontend/resources/images/icons/board-2.svg new file mode 100644 index 000000000..70a44ea15 --- /dev/null +++ b/frontend/resources/images/icons/board-2.svg @@ -0,0 +1,3 @@ + + + diff --git a/frontend/src/app/main/ui/components/shape_icon.cljs b/frontend/src/app/main/ui/components/shape_icon.cljs index 060213681..86ce8f3bf 100644 --- a/frontend/src/app/main/ui/components/shape_icon.cljs +++ b/frontend/src/app/main/ui/components/shape_icon.cljs @@ -9,6 +9,7 @@ [app.common.types.component :as ctk] [app.common.types.shape :as cts] [app.common.types.shape.layout :as ctl] + [app.config :as cf] [app.main.ui.icons :as i] [rumext.v2 :as mf])) @@ -31,7 +32,7 @@ i/flex-grid :else - i/board) + (if (cf/external-feature-flag "boards-01" "test") i/board-2 i/board)) ;; TODO -> THUMBNAIL ICON :image i/img :line (if (cts/has-images? shape) i/img i/path) @@ -56,7 +57,7 @@ (if main-instance? i/component (case type - :frame i/board + :frame (if (cf/external-feature-flag "boards-01" "test") i/board-2 i/board) :image i/img :shape i/path :text i/text diff --git a/frontend/src/app/main/ui/icons.cljs b/frontend/src/app/main/ui/icons.cljs index c73c7d1bd..29b057557 100644 --- a/frontend/src/app/main/ui/icons.cljs +++ b/frontend/src/app/main/ui/icons.cljs @@ -63,6 +63,7 @@ (def ^:icon arrow (icon-xref :arrow)) (def ^:icon asc-sort (icon-xref :asc-sort)) (def ^:icon board (icon-xref :board)) +(def ^:icon board-2 (icon-xref :board-2)) (def ^:icon boards-thumbnail (icon-xref :boards-thumbnail)) (def ^:icon boolean-difference (icon-xref :boolean-difference)) (def ^:icon boolean-exclude (icon-xref :boolean-exclude)) diff --git a/frontend/src/app/main/ui/workspace/sidebar/history.cljs b/frontend/src/app/main/ui/workspace/sidebar/history.cljs index 618e397b0..753c99c3c 100644 --- a/frontend/src/app/main/ui/workspace/sidebar/history.cljs +++ b/frontend/src/app/main/ui/workspace/sidebar/history.cljs @@ -9,6 +9,7 @@ (:require [app.common.data :as d] [app.common.data.macros :as dm] + [app.config :as cf] [app.main.data.workspace.undo :as dwu] [app.main.refs :as refs] [app.main.store :as st] @@ -154,7 +155,7 @@ :circle i/elipse :text i/text :path i/path - :frame i/board + :frame (if (cf/external-feature-flag "boards-01" "test") i/board-2 i/board) :group i/group :color i/drop-icon :typography i/text-palette diff --git a/frontend/src/app/main/ui/workspace/sidebar/layers.cljs b/frontend/src/app/main/ui/workspace/sidebar/layers.cljs index 88f3c4601..9dd8d234a 100644 --- a/frontend/src/app/main/ui/workspace/sidebar/layers.cljs +++ b/frontend/src/app/main/ui/workspace/sidebar/layers.cljs @@ -12,6 +12,7 @@ [app.common.files.helpers :as cfh] [app.common.types.shape :as cts] [app.common.uuid :as uuid] + [app.config :as cf] [app.main.data.workspace :as dw] [app.main.refs :as refs] [app.main.store :as st] @@ -335,7 +336,7 @@ :on-click add-filter} [:div {:class (stl/css :filter-menu-item-name-wrapper)} [:span {:class (stl/css :filter-menu-item-icon)} - i/board] + (if (cf/external-feature-flag "boards-01" "test") i/board-2 i/board)] [:span {:class (stl/css :filter-menu-item-name)} (tr "workspace.sidebar.layers.frames")]] diff --git a/frontend/src/app/main/ui/workspace/top_toolbar.cljs b/frontend/src/app/main/ui/workspace/top_toolbar.cljs index fb9f3473c..eb19fc6f7 100644 --- a/frontend/src/app/main/ui/workspace/top_toolbar.cljs +++ b/frontend/src/app/main/ui/workspace/top_toolbar.cljs @@ -10,6 +10,7 @@ [app.common.data.macros :as dm] [app.common.geom.point :as gpt] [app.common.media :as cm] + [app.config :as cf] [app.main.data.events :as ev] [app.main.data.modal :as modal] [app.main.data.workspace :as dw] @@ -146,7 +147,7 @@ :on-click select-drawtool :data-tool "frame" :data-testid "artboard-btn"} - i/board]] + (if (cf/external-feature-flag "boards-01" "test") i/board-2 i/board)]] [:li [:button {:title (tr "workspace.toolbar.rect" (sc/get-tooltip :draw-rect))