Add basic description of Discover Regen app

This commit is contained in:
Maikel Linke
2023-12-11 16:59:13 +11:00
parent d4ce3965b1
commit ca7b02d3ee
6 changed files with 41 additions and 3 deletions

View File

@@ -1 +1,11 @@
in progress
%div
.connected-app__head
%div
%h3= t ".title"
%p= t ".tagline"
%div
%button
= t ".action"
%hr
.connected-app__description
= t ".description_html"

View File

@@ -83,6 +83,7 @@
@import "alert";
@import "animations";
@import "change_type_form";
@import "connected_apps";
@import "customers";
@import "dashboard_item";
@import "dashboard-single-ent";

View File

@@ -0,0 +1,15 @@
.connected-app__head {
display: flex;
justify-content: space-between;
margin-bottom: 1em;
h3 {
margin-bottom: 1em;
}
}
.connected-app__description {
p {
margin-bottom: 1em;
}
}

View File

@@ -87,6 +87,7 @@
@import "../admin/alert";
@import "../admin/animations";
@import "pages/change_type_form"; // admin_v3
@import "../admin/connected_apps";
@import "../admin/customers";
@import "dashboard/dashboard_item"; // admin_v3
@import "pages/dashboard-single-ent"; // admin_v3

View File

@@ -1281,6 +1281,17 @@ en:
custom_tab_content: "Content for custom tab"
connected_apps:
legend: "Connected apps"
title: "Discover Regenerative"
tagline: "Allow website to publish your enterprise information."
action: "Share data"
description_html: |
<p>
Discover Regenerative makes it easier for buyers to discover
regenerative produce for their procurement, showcase producers that
are using regenerative farming practices, support connection
between buyers and producers within a trusted network.
</p>
<p><a href="" target="_blank"><b>Visit website</b> <i class="icon-external-link"></i></a></p>
actions:
edit_profile: Settings
properties: Properties

View File

@@ -30,10 +30,10 @@ describe "Connected Apps", feature: :connected_apps do
it "is visible" do
visit edit_admin_enterprise_path(enterprise)
expect(page).to have_content "CONNECTED APPS"
scroll_to :bottom
click_link "Connected apps"
expect(page).to have_content "in progress"
expect(page).to have_content "Discover Regenerative"
expect(page).to have_button "Share data"
end
end