From a15bbfdd3f2c76bf19b2c9344f53a183ba236791 Mon Sep 17 00:00:00 2001 From: Elia Schito Date: Tue, 8 Aug 2023 19:05:30 +0200 Subject: [PATCH 1/2] Fix the spacing for the index action area --- .../components/solidus_admin/products/index/component.html.erb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/admin/app/components/solidus_admin/products/index/component.html.erb b/admin/app/components/solidus_admin/products/index/component.html.erb index 417637b704d..e3f60b05641 100644 --- a/admin/app/components/solidus_admin/products/index/component.html.erb +++ b/admin/app/components/solidus_admin/products/index/component.html.erb @@ -4,13 +4,12 @@ <%= title %> -
+
<%= render @button_component.new( tag: :a, text: t('.add_product'), href: spree.new_admin_product_path, icon: "add-line", - classes: "ml-auto" ) %>
From 1a620a8dd18b3a5d0e9cce1ff2301571da24b149 Mon Sep 17 00:00:00 2001 From: Elia Schito Date: Tue, 8 Aug 2023 19:22:00 +0200 Subject: [PATCH 2/2] Add a button for giving feedback to the products page --- .../solidus_admin/products/index/component.html.erb | 13 ++++++++++++- .../solidus_admin/products/index/component.yml | 2 ++ 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/admin/app/components/solidus_admin/products/index/component.html.erb b/admin/app/components/solidus_admin/products/index/component.html.erb index e3f60b05641..c1c1e177d3a 100644 --- a/admin/app/components/solidus_admin/products/index/component.html.erb +++ b/admin/app/components/solidus_admin/products/index/component.html.erb @@ -4,7 +4,18 @@ <%= title %> -
+
+ + <%= render @button_component.new( + tag: :a, + text: t(".give_feedback"), + href: "https://solidus.io/feedback?category=solidus-admin", + icon: "feedback-line", + scheme: :secondary, + target: :_blank, + ) %> <%= render @button_component.new( tag: :a, text: t('.add_product'), diff --git a/admin/app/components/solidus_admin/products/index/component.yml b/admin/app/components/solidus_admin/products/index/component.yml index 8e7beaac206..b347ff0d31f 100644 --- a/admin/app/components/solidus_admin/products/index/component.yml +++ b/admin/app/components/solidus_admin/products/index/component.yml @@ -14,3 +14,5 @@ en: activate: 'Activate' filters: with_deleted: Include deleted + give_feedback: 'Give feedback' + feedback_description: 'We are constantly trying to improve. Please let us know what you think about this admin page.'