Skip to content

Commit

Permalink
Merge pull request #742 from givtnl/develop
Browse files Browse the repository at this point in the history
  • Loading branch information
MaikelStuivenberg committed May 10, 2024
2 parents 4b523d1 + 5e1d034 commit 1fe5165
Show file tree
Hide file tree
Showing 58 changed files with 1,385 additions and 262 deletions.
9 changes: 9 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,15 @@
"--dart-define",
"STRIPE_MERCHANT_ID=merchant.net.givtapp.ios",
]
},
{
"name": "Golden",
"request": "launch",
"type": "dart",
"codeLens": {
"for": ["run-test", "run-test-file"]
},
"args": ["--update-goldens"]
}
]
}
Binary file added assets/images/calendar_clock.webp
Binary file not shown.
5 changes: 5 additions & 0 deletions assets/images/generosity_challenge_day_3.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 5 additions & 0 deletions assets/images/generosity_challenge_day_4.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 5 additions & 0 deletions assets/images/generosity_challenge_day_5.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 5 additions & 0 deletions assets/images/generosity_challenge_day_6.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 5 additions & 0 deletions assets/images/generosity_challenge_day_7.svg
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
Expand Up @@ -5,6 +5,7 @@
"text": "Before we start our adventure, what's the name of your Superhero team?",
"next": {
"type": "inputAnswer",
"inputAnswerType" : "text",
"side": "user",
"text": "Last Name",
"saveKey": "lastName",
Expand All @@ -20,53 +21,57 @@
"type": "buttonAnswer",
"side": "user",
"text": "Okay",
"answerText" : "Okay",
"next" : {
"answerText": "Okay",
"next": {
"type": "inputAnswer",
"inputAnswerType" : "text",
"side": "user",
"text": "First name of parent",
"saveKey": "firstName",
"hidden" : true,
"next" : {
"hidden": true,
"next": {
"type": "inputAnswer",
"inputAnswerType" : "email",
"side": "user",
"text": "E-mail address of parent",
"saveKey": "email",
"hidden" : true,
"next" : {
"hidden": true,
"next": {
"type": "inputAnswer",
"inputAnswerType" : "password",
"side": "user",
"text": "Password",
"saveKey": "password",
"hidden" : true,
"hidden": true,
"saveInAmplitude": false,
"next": {
"type": "textMessage",
"side": "interlocutor",
"text": "Thanks! I've made a note of that and it's all stored safely",
"next" : {
"next": {
"type": "textMessage",
"side": "interlocutor",
"text": "I want to encourage you throughout your mission",
"next": {
"type": "textMessage",
"side": "interlocutor",
"text": "I need to let you know how great a job you are doing and notify you to keep going. Okay?",
"next" : {
"next": {
"type": "buttonGroupAnswer",
"side": "user",
"options": [
"options": [
{
"type": "textMessage",
"side": "user",
"text": "Not right now",
"answerText" : "Not right now",
"answerText": "Not right now",
"amplitudeEvent": "custom_event_demo_name",
"next" : {
"next": {
"type": "textMessage",
"side": "interlocutor",
"text": "That's ok. I'll still try and help as much as I can. Let me show you what I found walking round the city today",
"next" : {
"branch" : "image01"
"next": {
"branch": "image01"
}
}
},
Expand All @@ -75,14 +80,14 @@
"side": "user",
"text": "Yes",
"amplitudeEvent": "generosity_challenge_chat_user_action",
"answerText" : "Yes",
"functionName" : "pushNotificationPermission",
"next" : {
"answerText": "Yes",
"functionName": "pushNotificationPermission",
"next": {
"type": "textMessage",
"side": "interlocutor",
"text": "Awesome! Let me show you show you what I found walking round the city today",
"next" : {
"branch" : "image01"
"next": {
"branch": "image01"
}
}
}
Expand All @@ -92,14 +97,14 @@
}
}
}
}
}
}
}
}
}
}
},
"image01" :{
"image01": {
"type": "imageMessage",
"side": "interlocutor",
"path": "https://givtstoragedebug.blob.core.windows.net/public/cdn/generosity-challenge/Givt_Superhero_THUMBNAILS_001.png",
Expand All @@ -117,29 +122,29 @@
"type": "textMessage",
"side": "interlocutor",
"text": "I've got our top research department to look into this and they found that there are 6 ways to show generosity",
"next" : {
"next": {
"type": "imageMessage",
"side": "interlocutor",
"path": "https://givtstoragedebug.blob.core.windows.net/public/cdn/generosity-challenge/Givt_Superhero_THUMBNAILS_003.png",
"path": "https://givtstoragedebug.blob.core.windows.net/public/cdn/generosity-challenge/Givt_Superhero_THUMBNAILS_004.png",
"mediaSourceType": "network",
"next" : {
"next": {
"type": "textMessage",
"side": "interlocutor",
"text": "I believe with your help each day, we can bring the color back into Tulsa",
"next" : {
"next": {
"type": "imageMessage",
"side": "interlocutor",
"path": "assets/images/day.gif",
"mediaSourceType": "asset",
"next" : {
"next": {
"type": "textMessage",
"side": "interlocutor",
"text": "Are you ready for your first assignment?",
"next" : {
"next": {
"type": "buttonAnswer",
"side": "user",
"text": "Let's go!",
"answerText" : "Let's go!"
"answerText": "Let's go!"
}
}
}
Expand All @@ -149,7 +154,7 @@
}
}
},
"postChat" :{
"postChat": {
"type": "textMessage",
"side": "user",
"text": "We filled in your letter and now it's on our fridge!",
Expand Down
Loading

0 comments on commit 1fe5165

Please sign in to comment.