Skip to content

Commit

Permalink
Merge pull request #73 from Backbase/feature/VOYAGE-1485-engagements-…
Browse files Browse the repository at this point in the history
…templates

VOYAGE-1485: engagement templates
  • Loading branch information
ksenmal authored Nov 1, 2024
2 parents e747f91 + d912d6d commit d718834
Show file tree
Hide file tree
Showing 154 changed files with 2,767 additions and 4 deletions.
48 changes: 44 additions & 4 deletions ci/scripts/create-collections.sh
Original file line number Diff line number Diff line change
Expand Up @@ -56,14 +56,54 @@ fi

custom_engagements_location=${workspace}/collections/${PRODUCT_LINE}/custom-engagements
if [ -d "${custom_engagements_location}" ] && [ ! -z "$(ls -A ${custom_engagements_location})" ]; then
echo "Create Custom Engagements package"
echo "Create Custom Engagements package for banners"
cd ${custom_engagements_location}
buildZipsFromSubFolders placeholders
addManifestEntries placeholders content-enricher:/placeholder
buildZipsFromSubFolders templates
addManifestEntries templates content-enricher:/template
cd ${custom_engagements_location}/templates
buildZipsFromSubFolders banner
addManifestEntries banner content-enricher:/template
writeManifestFile
cd assembly && zip -r "${workspace}/target/assembly/${PRODUCT_LINE}/collections/custom-engagements-banner-${PRODUCT_LINE}.zip" "." && cd - && rm -rf assembly
fi

custom_engagements_location=${workspace}/collections/${PRODUCT_LINE}/custom-engagements
if [ -d "${custom_engagements_location}" ] && [ ! -z "$(ls -A ${custom_engagements_location})" ]; then
echo "Create Custom Engagements package for message-center"
cd ${custom_engagements_location}
buildZipsFromSubFolders placeholders
addManifestEntries placeholders content-enricher:/placeholder
cd ${custom_engagements_location}/templates
buildZipsFromSubFolders message-center
addManifestEntries message-center content-enricher:/template
writeManifestFile
cd assembly && zip -r "${workspace}/target/assembly/${PRODUCT_LINE}/collections/custom-engagements-message-center-${PRODUCT_LINE}.zip" "." && cd - && rm -rf assembly
fi

custom_engagements_location=${workspace}/collections/${PRODUCT_LINE}/custom-engagements
if [ -d "${custom_engagements_location}" ] && [ ! -z "$(ls -A ${custom_engagements_location})" ]; then
echo "Create Custom Engagements package for push"
cd ${custom_engagements_location}
buildZipsFromSubFolders placeholders
addManifestEntries placeholders content-enricher:/placeholder
cd ${custom_engagements_location}/templates
buildZipsFromSubFolders push
addManifestEntries push content-enricher:/template
writeManifestFile
cd assembly && zip -r "${workspace}/target/assembly/${PRODUCT_LINE}/collections/custom-engagements-push-${PRODUCT_LINE}.zip" "." && cd - && rm -rf assembly
fi

custom_engagements_location=${workspace}/collections/${PRODUCT_LINE}/custom-engagements
if [ -d "${custom_engagements_location}" ] && [ ! -z "$(ls -A ${custom_engagements_location})" ]; then
echo "Create Custom Engagements package for overlays"
cd ${custom_engagements_location}
buildZipsFromSubFolders placeholders
addManifestEntries placeholders content-enricher:/placeholder
cd ${custom_engagements_location}/templates
buildZipsFromSubFolders overlays
addManifestEntries overlays content-enricher:/template
writeManifestFile
cd assembly && zip -r "${workspace}/target/assembly/${PRODUCT_LINE}/collections/custom-engagements-${PRODUCT_LINE}.zip" "." && cd - && rm -rf assembly
cd assembly && zip -r "${workspace}/target/assembly/${PRODUCT_LINE}/collections/custom-engagements-overlays-${PRODUCT_LINE}.zip" "." && cd - && rm -rf assembly
fi

engagement_types_location=${workspace}/collections/${PRODUCT_LINE}/engagement-types
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
<meta name="robots" content="noindex, nofollow" />
<meta name="googlebot" content="noindex, nofollow" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>Low Interest Loans</title>
<style>
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500&display=swap");
</style>
<style>
* {
box-sizing: border-box;
}

html,
body {
margin: 0;
padding: 0;
overflow: auto;
}

body {
font-family: 'Libre Franklin', sans-serif;
font-size: 14px;
width: 100vw;
height: 100vh;
}

.container {
width: 18.75rem;
height: 15.625rem;
margin: auto;
padding: 2rem 2.5rem;
border-radius: 1rem;
overflow: hidden;
background-color: rgba(0, 27, 70, 1);
}

.content {
display: flex;
flex-direction: column;
align-items: center;
}

img {
max-width: 13.625rem;
margin-top: 0.5rem;
}

h2 {
margin: 0;
padding: 0;
color: #ffffff;
font-size: 1rem;
font-weight: 600;
line-height: 1.25rem;
letter-spacing: 0.025rem;
}
</style>
</head>
<body>
<div class="container">
<div class="content">
<h2>{{title}}</h2>
<img
src="{{picture}}"
alt="Low interest loans"
/>
</div>
</div>
</body>
</html>
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
{
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "App downtime",
"description": "App downtime scheduled: 30th June - 1st July",
"type": "object",
"properties": {
"body":{
"title": "Body of message",
"type": "object",
"properties": {
"title": {
"title": "Title",
"type": "string",
"maxLength": 50,
"default": "App downtime scheduled: 30th June - 1st July",
"metadata": {
"placeholderText": "Enter a title (max. 50 chars)"
}
},
"picture": {
"title": "Image",
"type": "file",
"default": "{{contextRoot}}/assets/Bell.png",
"metadata": {
"renderingHint": "image"
}
}
},
"metadata": {
"layoutPath": "{{contextRoot}}/assets/index.html"
}
}
},
"required": [
"title",
"picture"
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"name": "app-downtime-scheduled",
"description": "App downtime scheduled: 30th June - 1st July",
"title": "App downtime",
"engagement": "custom",
"channel": "banner",
"default": false,
"thumbnailPath": "{{contextRoot}}/assets/thumbnail.png",
"tags": ["vertical","web","300x250"]
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1,119 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<title>Saving is good, smart saving is even better</title>
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
<meta name="robots" content="noindex, nofollow" />
<meta name="googlebot" content="noindex, nofollow" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<style>
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;700&display=swap');
</style>
<style>
html,
body {
margin: 0;
padding: 0;
overflow: auto;
}
body {
font-family: 'Libre Franklin', sans-serif;
font-size: 14px;
width: 100vw;
height: 100vh;
}
.container {
display: flex;
width: 100%;
height: 16.88rem;
margin: auto;
max-width: 46.75rem;
border-radius: 1rem;
align-items: center;
overflow: hidden;
background: #001b46;
}
.content-area {
padding: 0rem 0rem 0rem 3rem;
}
h1,
p {
margin: 0;
padding: 0;
color: white;
}
h1 {
font-weight: 500;
margin-bottom: 1rem;
letter-spacing: 0.25px;
}
p {
margin-bottom: 2rem;
font-size: 0.92rem;
line-height: 1.5rem;
font-weight: 100;
word-spacing: 1px;
letter-spacing: 1px;
}
img {
display: block;
width: 16rem;
margin-right: 5rem;
}

.cta-btn {
display: flex;
font-size: min(4.5vw, 14px);
font-weight: 300;
text-align: center;
line-height: 1.5;
align-items: center;
border: 0;
outline: 0;
color: #ffffff;
text-decoration: none;
}

.cta-btn-icon {
background-color: white;
display: flex;
align-items: center;
justify-content: center;
border-radius: 8px;
margin-right: 0.5rem;
height: min(10vw, 36px);
width: min(10vw, 36px);
}

.right-arrow {
border: solid #001c46;
display: inline-block;
transform: rotate(-45deg);
-webkit-transform: rotate(-45deg);
margin-left: -4px;
padding: min(1.2vw, 1vh, 4.5px);
border-width: 0 min(1vw, 1vh, 2.5px) min(1vw, 1vh, 2.5px) 0;
}
</style>
</head>
<body>
<div class="container">
<div class="content-area">
<h1>{{title}}</h1>
<a class="cta-btn" href="" target="_blank" rel="noopener">
<span class="cta-btn-icon">
<i class="right-arrow"> </i>
</span>
{{buttonText}}
</a>
</div>
<div class="img-placeholder">
<img
src="{{picture}}"
alt="A person holding a phone"
/>
</div>
</div>
</body>
</html>
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
{
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "Instant insurance cover",
"description": "Instant insurance cover in 10 minutes",
"type": "object",
"properties": {
"body": {
"title": "Body of the message",
"type": "object",
"properties": {
"title": {
"title": "Title",
"type": "string",
"maxLength": 50,
"default": "Instant insurance cover in 10 minutes",
"metadata": {
"placeholderText": "Enter a title (max. 100 chars)"
}
},
"picture": {
"title": "Image",
"type": "file",
"default":"{{contextRoot}}/assets/Success.png",
"metadata": {
"renderingHint": "image"
}
},
"buttonText": {
"title": "Button text",
"type": "string",
"maxLength": 40,
"default": "Get an insurance quote",
"metadata": {
"placeholderText": "Enter a button text (max. 40 chars)"
}
}
},
"metadata": {
"layoutPath": "{{contextRoot}}/assets/index.html"
}
}
},
"required": [
"title",
"picture",
"buttonText"
]
}

Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"name": "instant-insurance-cover",
"description": "Instant insurance cover in 10 minutes",
"title": "Instant insurance cover",
"engagement": "custom",
"channel": "banner",
"default": true,
"thumbnailPath": "{{contextRoot}}/assets/thumbnail.png",
"tags": ["web","1140x180"]
}

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit d718834

Please sign in to comment.