From 08516ac7cae02abfc927ad87a8b9b3eeace12480 Mon Sep 17 00:00:00 2001 From: Pablo Alba Date: Fri, 13 Dec 2024 10:51:25 +0100 Subject: [PATCH] Revert ":sparkles: Add test AB renaming "Libraries" to "Add library"" This reverts commit ec7f8a6aa7be03870a69be123d54b309de75e9b9. --- .../app/main/ui/workspace/sidebar/assets.cljs | 20 +++++----------- .../app/main/ui/workspace/sidebar/assets.scss | 23 ------------------- frontend/translations/en.po | 3 --- frontend/translations/es.po | 3 --- 4 files changed, 6 insertions(+), 43 deletions(-) diff --git a/frontend/src/app/main/ui/workspace/sidebar/assets.cljs b/frontend/src/app/main/ui/workspace/sidebar/assets.cljs index 4ec585f2d..6c4d03a07 100644 --- a/frontend/src/app/main/ui/workspace/sidebar/assets.cljs +++ b/frontend/src/app/main/ui/workspace/sidebar/assets.cljs @@ -8,7 +8,6 @@ (:require-macros [app.main.style :as stl]) (:require [app.common.data.macros :as dm] - [app.config :as cf] [app.main.data.modal :as modal] [app.main.data.workspace :as dw] [app.main.data.workspace.assets :as dwa] @@ -87,7 +86,6 @@ section (:section filters) ordering (:ordering filters) reverse-sort? (= :desc ordering) - num-libs (count (mf/deref refs/workspace-libraries)) toggle-ordering (mf/use-fn @@ -157,18 +155,12 @@ [:article {:class (stl/css :assets-bar)} [:div {:class (stl/css :assets-header)} (when-not ^boolean read-only? - (if (and (cf/external-feature-flag "templates-02" "test") - (zero? num-libs)) - [:button {:class (stl/css :add-library-button) - :on-click show-libraries-dialog - :data-testid "libraries"} - (tr "workspace.assets.add-library")] - [:button {:class (stl/css :libraries-button) - :on-click show-libraries-dialog - :data-testid "libraries"} - [:span {:class (stl/css :libraries-icon)} - i/library] - (tr "workspace.assets.libraries")])) + [:button {:class (stl/css :libraries-button) + :on-click show-libraries-dialog + :data-testid "libraries"} + [:span {:class (stl/css :libraries-icon)} + i/library] + (tr "workspace.assets.libraries")]) [:div {:class (stl/css :search-wrapper)} [:& search-bar {:on-change on-search-term-change diff --git a/frontend/src/app/main/ui/workspace/sidebar/assets.scss b/frontend/src/app/main/ui/workspace/sidebar/assets.scss index 21f7af9d5..acb9f3431 100644 --- a/frontend/src/app/main/ui/workspace/sidebar/assets.scss +++ b/frontend/src/app/main/ui/workspace/sidebar/assets.scss @@ -25,50 +25,34 @@ width: 100%; margin-bottom: $s-4; border-radius: $s-8; - .libraries-icon { @include flexCenter; width: $s-24; height: 100%; - svg { @include flexCenter; @extend .button-icon; stroke: var(--icon-foreground); } } - &:hover { background-color: var(--button-secondary-background-color-hover); color: var(--button-secondary-foreground-color-hover); border: $s-1 solid var(--button-secondary-border-color-hover); - svg { stroke: var(--button-secondary-foreground-color-hover); } } - &:focus { background-color: var(--button-secondary-background-color-focus); color: var(--button-secondary-foreground-color-focus); border: $s-1 solid var(--button-secondary-border-color-focus); - svg { stroke: var(--button-secondary-foreground-color-focus); } } } -.add-library-button { - @extend .button-primary; - text-transform: uppercase; - gap: $s-2; - height: $s-32; - width: 100%; - margin-bottom: $s-4; - border-radius: $s-8; -} - .section-button { @include flexCenter; @include buttonStyle; @@ -78,39 +62,32 @@ border: $s-1 solid var(--input-border-color-rest); border-radius: $br-8 $br-2 $br-2 $br-8; background-color: var(--input-background-color-rest); - svg { height: $s-16; width: $s-16; stroke: var(--icon-foreground); } - &:focus { border: $s-1 solid var(--input-border-color-focus); outline: 0; background-color: var(--input-background-color-focus); color: var(--input-foreground-color-focus); - svg { background-color: var(--input-background-color-focus); } } - &:hover { border: $s-1 solid var(--input-border-color-hover); background-color: var(--input-background-color-hover); - svg { background-color: var(--input-background-color-hover); stroke: var(--button-foreground-hover); } - &:focus { border: $s-1 solid var(--input-border-color-focus); outline: 0; background-color: var(--input-background-color-focus); color: var(--input-foreground-color-focus); - svg { background-color: var(--input-background-color-focus); } diff --git a/frontend/translations/en.po b/frontend/translations/en.po index 2c0b4b84a..a6d13afe9 100644 --- a/frontend/translations/en.po +++ b/frontend/translations/en.po @@ -4064,9 +4064,6 @@ msgstr "Group name" msgid "workspace.assets.libraries" msgstr "Libraries" -msgid "workspace.assets.add-library" -msgstr "Add library" - #: src/app/main/ui/workspace/sidebar/assets/components.cljs:523 msgid "workspace.assets.list-view" msgstr "List view" diff --git a/frontend/translations/es.po b/frontend/translations/es.po index 23691241e..0e17088a7 100644 --- a/frontend/translations/es.po +++ b/frontend/translations/es.po @@ -4064,9 +4064,6 @@ msgstr "Nombre del grupo" msgid "workspace.assets.libraries" msgstr "Bibliotecas" -msgid "workspace.assets.add-library" -msgstr "AƱadir biblioteca" - #: src/app/main/ui/workspace/sidebar/assets/components.cljs:523 msgid "workspace.assets.list-view" msgstr "Ver como lista"