mirror of
https://github.com/penpot/penpot.git
synced 2025-01-24 07:29:08 -05:00
Merge pull request #5340 from penpot/palba-testab-board-icon
🎉 Add A/B test of use of boards if we just change the icon for “standard” one
This commit is contained in:
commit
ede1176606
6 changed files with 13 additions and 5 deletions
3
frontend/resources/images/icons/board-2.svg
Normal file
3
frontend/resources/images/icons/board-2.svg
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" stroke-linecap="round" stroke-linejoin="round">
|
||||||
|
<path d="M3.5 3.5h-2m2 0v-2m0 2h9m-9 0v9m9-9v-2m0 2h2m-2 0v9m0 0h2m-2 0v2m0-2h-9m0 0v2m0-2h-2"/>
|
||||||
|
</svg>
|
After Width: | Height: | Size: 214 B |
|
@ -9,6 +9,7 @@
|
||||||
[app.common.types.component :as ctk]
|
[app.common.types.component :as ctk]
|
||||||
[app.common.types.shape :as cts]
|
[app.common.types.shape :as cts]
|
||||||
[app.common.types.shape.layout :as ctl]
|
[app.common.types.shape.layout :as ctl]
|
||||||
|
[app.config :as cf]
|
||||||
[app.main.ui.icons :as i]
|
[app.main.ui.icons :as i]
|
||||||
[rumext.v2 :as mf]))
|
[rumext.v2 :as mf]))
|
||||||
|
|
||||||
|
@ -31,7 +32,7 @@
|
||||||
i/flex-grid
|
i/flex-grid
|
||||||
|
|
||||||
:else
|
:else
|
||||||
i/board)
|
(if (cf/external-feature-flag "boards-01" "test") i/board-2 i/board))
|
||||||
;; TODO -> THUMBNAIL ICON
|
;; TODO -> THUMBNAIL ICON
|
||||||
:image i/img
|
:image i/img
|
||||||
:line (if (cts/has-images? shape) i/img i/path)
|
:line (if (cts/has-images? shape) i/img i/path)
|
||||||
|
@ -56,7 +57,7 @@
|
||||||
(if main-instance?
|
(if main-instance?
|
||||||
i/component
|
i/component
|
||||||
(case type
|
(case type
|
||||||
:frame i/board
|
:frame (if (cf/external-feature-flag "boards-01" "test") i/board-2 i/board)
|
||||||
:image i/img
|
:image i/img
|
||||||
:shape i/path
|
:shape i/path
|
||||||
:text i/text
|
:text i/text
|
||||||
|
|
|
@ -63,6 +63,7 @@
|
||||||
(def ^:icon arrow (icon-xref :arrow))
|
(def ^:icon arrow (icon-xref :arrow))
|
||||||
(def ^:icon asc-sort (icon-xref :asc-sort))
|
(def ^:icon asc-sort (icon-xref :asc-sort))
|
||||||
(def ^:icon board (icon-xref :board))
|
(def ^:icon board (icon-xref :board))
|
||||||
|
(def ^:icon board-2 (icon-xref :board-2))
|
||||||
(def ^:icon boards-thumbnail (icon-xref :boards-thumbnail))
|
(def ^:icon boards-thumbnail (icon-xref :boards-thumbnail))
|
||||||
(def ^:icon boolean-difference (icon-xref :boolean-difference))
|
(def ^:icon boolean-difference (icon-xref :boolean-difference))
|
||||||
(def ^:icon boolean-exclude (icon-xref :boolean-exclude))
|
(def ^:icon boolean-exclude (icon-xref :boolean-exclude))
|
||||||
|
|
|
@ -9,6 +9,7 @@
|
||||||
(:require
|
(:require
|
||||||
[app.common.data :as d]
|
[app.common.data :as d]
|
||||||
[app.common.data.macros :as dm]
|
[app.common.data.macros :as dm]
|
||||||
|
[app.config :as cf]
|
||||||
[app.main.data.workspace.undo :as dwu]
|
[app.main.data.workspace.undo :as dwu]
|
||||||
[app.main.refs :as refs]
|
[app.main.refs :as refs]
|
||||||
[app.main.store :as st]
|
[app.main.store :as st]
|
||||||
|
@ -154,7 +155,7 @@
|
||||||
:circle i/elipse
|
:circle i/elipse
|
||||||
:text i/text
|
:text i/text
|
||||||
:path i/path
|
:path i/path
|
||||||
:frame i/board
|
:frame (if (cf/external-feature-flag "boards-01" "test") i/board-2 i/board)
|
||||||
:group i/group
|
:group i/group
|
||||||
:color i/drop-icon
|
:color i/drop-icon
|
||||||
:typography i/text-palette
|
:typography i/text-palette
|
||||||
|
|
|
@ -12,6 +12,7 @@
|
||||||
[app.common.files.helpers :as cfh]
|
[app.common.files.helpers :as cfh]
|
||||||
[app.common.types.shape :as cts]
|
[app.common.types.shape :as cts]
|
||||||
[app.common.uuid :as uuid]
|
[app.common.uuid :as uuid]
|
||||||
|
[app.config :as cf]
|
||||||
[app.main.data.workspace :as dw]
|
[app.main.data.workspace :as dw]
|
||||||
[app.main.refs :as refs]
|
[app.main.refs :as refs]
|
||||||
[app.main.store :as st]
|
[app.main.store :as st]
|
||||||
|
@ -335,7 +336,7 @@
|
||||||
:on-click add-filter}
|
:on-click add-filter}
|
||||||
[:div {:class (stl/css :filter-menu-item-name-wrapper)}
|
[:div {:class (stl/css :filter-menu-item-name-wrapper)}
|
||||||
[:span {:class (stl/css :filter-menu-item-icon)}
|
[: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)}
|
[:span {:class (stl/css :filter-menu-item-name)}
|
||||||
(tr "workspace.sidebar.layers.frames")]]
|
(tr "workspace.sidebar.layers.frames")]]
|
||||||
|
|
||||||
|
|
|
@ -10,6 +10,7 @@
|
||||||
[app.common.data.macros :as dm]
|
[app.common.data.macros :as dm]
|
||||||
[app.common.geom.point :as gpt]
|
[app.common.geom.point :as gpt]
|
||||||
[app.common.media :as cm]
|
[app.common.media :as cm]
|
||||||
|
[app.config :as cf]
|
||||||
[app.main.data.events :as ev]
|
[app.main.data.events :as ev]
|
||||||
[app.main.data.modal :as modal]
|
[app.main.data.modal :as modal]
|
||||||
[app.main.data.workspace :as dw]
|
[app.main.data.workspace :as dw]
|
||||||
|
@ -146,7 +147,7 @@
|
||||||
:on-click select-drawtool
|
:on-click select-drawtool
|
||||||
:data-tool "frame"
|
:data-tool "frame"
|
||||||
:data-testid "artboard-btn"}
|
:data-testid "artboard-btn"}
|
||||||
i/board]]
|
(if (cf/external-feature-flag "boards-01" "test") i/board-2 i/board)]]
|
||||||
[:li
|
[:li
|
||||||
[:button
|
[:button
|
||||||
{:title (tr "workspace.toolbar.rect" (sc/get-tooltip :draw-rect))
|
{:title (tr "workspace.toolbar.rect" (sc/get-tooltip :draw-rect))
|
||||||
|
|
Loading…
Add table
Reference in a new issue