Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Experimental content CSV import #61

Merged
merged 4 commits into from
Nov 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,10 @@ jobs:
uses: actions/checkout@v4
with:
repository: praekeltfoundation/flow_tester
ref: v0.3.5
ref: v0.3.8
path: flow_tester
ssh-key: ${{ secrets.SSH_PRIVATE_KEY }}

- name: Test flows
run: |
./flow_tester/run_flow_tests.exs HelpCentre/QA/tests/ Onboarding/QA/tests/

./flow_tester/run_flow_tests.exs HelpCentre/QA/tests/ Onboarding/QA/tests/
35 changes: 35 additions & 0 deletions Onboarding/QA/content/error-messages.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
no,slug,parent,web_title,whatsapp_title,Image,whatsapp_body,footer,ButtonA,ButtonB,ButtonC,ListOption,OptionA,OptionB,OptionC,OptionD,OptionE,OptionF,OptionG,OptionH,OptionI,OptionJ,list_items,ButtonA Goto,ButtonB Goto,ButtonC Goto,ButtonA Type,ButtonB Type,ButtonC Type,buttons,locale
1,mnch_onboarding_error_handling_button,Onboarding,error handling - button,error handling - button,,"I don't understand your reply.

👇🏽 Please try that again and respond by tapping a button.",,,,,,,,,,,,,,,,,,,,,,,,English
2,mnch_onboarding_error_handling_list_message,Onboarding,error handling - list message,error handling - list message,,"I don't understand your reply. Please try that again.

👇🏽 Tap on the button below the message, choose your answer from the list, and send.",,,,,,,,,,,,,,,,,,,,,,,,English
3,mnch_onboarding_error_handling_number_input,Onboarding,error handling - number input,error handling - number input,,"I don't understand your reply.

👇🏽 Please try that again and respond with the number that comes before your answer.",,,,,,,,,,,,,,,,,,,,,,,,English
4,mnch_onboarding_error_handling_undefined,Onboarding,error handling - undefined,error handling - undefined,,"Something doesn't look right.

Please read the previous instruction and try that again.",,,,,,,,,,,,,,,,,,,,,,,,English
5,mnch_onboarding_unrecognised_number,Onboarding,Unrecognised_number,Unrecognised_number,,"Sorry, I didn’t get that – let's try again.

👇🏽 Please reply with a number between {minimum} and {maximum}.",,,,,,,,,,,,,,,,,,,,,,,,English
6,mnch_onboarding_unrecognised_year,Onboarding,Unrecognised_year,Unrecognised_year,,"Sorry, I didn’t get that – let's try again.

👇🏽 Please reply with a specific year, like 2008 or 1998.",,,,,,,,,,,,,,,,,,,,,,,,English
7,mnch_onboarding_unrecognised_list,Onboarding,Unrecognised_list,Unrecognised_list,,"Sorry, I didn’t get that – let’s try again.

👇🏽 To respond, tap the menu button and then select the option from the list that best matches your response.",,,,,,,,,,,,,,,,,,,,,,,,English
8,mnch_onboarding_intent_error,Onboarding,intent_error,intent_error,,"Something doesn't look right. Let's try that again.

👇🏽 What do you want to do? ",,Create a profile,Explore the service,Go to help centre,,,,,,,,,,,,,,,,next_message,next_message,next_message,"[{""type"": ""next_message"",""title"": ""Create a profile"", ""slug"": """"},{""type"":""next_message"",""title"":""Explore the service"",""slug"":""""},{""type"":""next_message"",""title"":""Go to help centre"",""slug"":""""}]",English
9,mnch_onboarding_username_catchall,Onboarding,username_catchall,username_catchall,,"I can *only accept names with letters* – no numbers or symbols.

Let's try this again!

What would you like me to call you?

If you don't want to answer this right now, reply `Skip`",,,,,,,,,,,,,,,,,,,,,,,,English
10,mnch_onboarding_error_integer_01,Onboarding,error_integer_01,error_integer_01,,"I don’t understand.

👇🏽 Please try that again and send with a number.",,,,,,,,,,,,,,,,,,,,,,,,English
73 changes: 73 additions & 0 deletions Onboarding/QA/content/intro-and-welcome.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
no,slug,parent,web_title,whatsapp_title,Image,whatsapp_body,footer,ButtonA,ButtonB,ButtonC,ListOption,OptionA,OptionB,OptionC,OptionD,OptionE,OptionF,OptionG,OptionH,OptionI,OptionJ,list_items,ButtonA Goto,ButtonB Goto,ButtonC Goto,ButtonA Type,ButtonB Type,ButtonC Type,buttons,locale
1,mnch_onboarding_welcome,Onboarding,Welcome,Welcome,,"*Welcome to [my_health]*

Get free healthcare support for you and those you care for.

On this chatbot, you'll find personalised info, advice, and reminders.

👇🏽 Let’s get started!",,Get started,Change my language,,,,,,,,,,,,,,mnch_onboarding_languages,mnch_onboarding_languages,,go_to_page,go_to_page,,"[{""type"": ""go_to_page"",""title"": ""Get started"", ""slug"": ""mnch_onboarding_languages""},{""type"":""go_to_page"",""title"":""Change my language"",""slug"":""mnch_onboarding_languages""},{""type"":"""",""title"":"""",""slug"":""""}]",English
2,mnch_onboarding_languages,Onboarding,Languages,Languages,,"*Which language would you prefer?*

👇🏽 Choose from the list below.",,,,,Languages,English,Français,Português,عربي,Español,中国人,,,,,"English,Français,Português,عربي,Español,中国人",,,,,,,,English
3,mnch_onboarding_language_updated,Onboarding,Language_updated,Language_updated,,Your language has been updated to {language_selection}.,,"Ok, thanks",Choose another one,,,,,,,,,,,,,,mnch_onboarding_pp_document,mnch_onboarding_pp_document,,go_to_page,go_to_page,,"[{""type"": ""go_to_page"",""title"": ""Ok, thanks"", ""slug"": ""mnch_onboarding_pp_document""},{""type"":""go_to_page"",""title"":""Choose another one"",""slug"":""mnch_onboarding_pp_document""},{""type"":"""",""title"":"""",""slug"":""""}]",English
4,mnch_onboarding_pp_document,Onboarding,PP_document,PP_document,,"*Your information is safe and won't be shared* 🔒

The information you share is only used to give you personalised advice and information.

Read the privacy policy attached and let me know if you accept it.",,"Yes, I accept ✅","No, I don’t accept",Read a summary,,,,,,,,,,,,,mnch_onboarding_pp_summary,mnch_onboarding_pp_summary,mnch_onboarding_pp_summary,go_to_page,go_to_page,go_to_page,"[{""type"": ""go_to_page"",""title"": ""Yes, I accept ✅"", ""slug"": ""mnch_onboarding_pp_summary""},{""type"":""go_to_page"",""title"":""No, I don’t accept"",""slug"":""mnch_onboarding_pp_summary""},{""type"":""go_to_page"",""title"":""Read a summary"",""slug"":""mnch_onboarding_pp_summary""}]",English
5,mnch_onboarding_pp_summary,Onboarding,PP_summary,PP_summary,,"*What’s in the privacy policy*

*Privacy*
We keep your personal information safe and private.

*Terms and conditions*
This service gives you health information and self-help tools. It is not a replacement for advice from a real-life health worker or doctor, and professionals should still be relied upon for medical concerns.

👇🏽 Do you accept the privacy policy?",,Yes,No,,,,,,,,,,,,,,mnch_onboarding_pp_not_accepted,mnch_onboarding_pp_not_accepted,,go_to_page,go_to_page,,"[{""type"": ""go_to_page"",""title"": ""Yes"", ""slug"": ""mnch_onboarding_pp_not_accepted""},{""type"":""go_to_page"",""title"":""No"",""slug"":""mnch_onboarding_pp_not_accepted""},{""type"":"""",""title"":"""",""slug"":""""}]",English
6,mnch_onboarding_pp_not_accepted,Onboarding,PP_not_accepted,PP_not_accepted,,"In order to use [my_health], you need to accept the privacy policy.

👇🏾 What do you want to do?",,See privacy policy,Another button needed here,,,,,,,,,,,,,,mnch_onboarding_reminder_1,mnch_onboarding_reminder_1,,go_to_page,go_to_page,,"[{""type"": ""go_to_page"",""title"": ""See privacy policy"", ""slug"": ""mnch_onboarding_reminder_1""},{""type"":""go_to_page"",""title"":""Another button needed here"",""slug"":""mnch_onboarding_reminder_1""},{""type"":"""",""title"":"""",""slug"":""""}]",English
7,mnch_onboarding_reminder_1,Onboarding,Reminder_1,Reminder_1,,"Hey – let's finish signing you up!

The sooner you sign up to [my_health], the sooner you can take control of your health journey 💪🏾

👇🏽 Are you ready to continue?",,"Yes, let’s go! ✅",Remind me tomorrow,No thanks,,,,,,,,,,,,,mnch_onboarding_reminder_no,mnch_onboarding_reminder_no,mnch_onboarding_reminder_no,go_to_page,go_to_page,go_to_page,"[{""type"": ""go_to_page"",""title"": ""Yes, let’s go! ✅"", ""slug"": ""mnch_onboarding_reminder_no""},{""type"":""go_to_page"",""title"":""Remind me tomorrow"",""slug"":""mnch_onboarding_reminder_no""},{""type"":""go_to_page"",""title"":""No thanks"",""slug"":""mnch_onboarding_reminder_no""}]",English
8,mnch_onboarding_reminder_no,Onboarding,Reminder_no,Reminder_no,,"Alright, I'll be here whenever you're ready.

Continue where you left off at any time by sending in the word `Hi`",,,,,,,,,,,,,,,,,,,,,,,,English
9,mnch_onboarding_reminder_tomorrow,Onboarding,Reminder_tomorrow,Reminder_tomorrow,,"Great! I'll remind you tomorrow 🗓️

Chat soon.",,,,,,,,,,,,,,,,,,,,,,,,English
10,mnch_onboarding_opt_in,Onboarding,Opt_in,Opt_in,,"*Sometimes I'll need to send you important messages – like appointment reminders or urgent health news* 🔔

You can choose which types messages you want to receive later from your profile. It’s also easy to stop messages at any time.

👇🏽 Can I send you these messages?",,Yes ✅,Decide later,,,,,,,,,,,,,,mnch_onboarding_intent,mnch_onboarding_intent,,go_to_page,go_to_page,,"[{""type"": ""go_to_page"",""title"": ""Yes ✅"", ""slug"": ""mnch_onboarding_intent""},{""type"":""go_to_page"",""title"":""Decide later"",""slug"":""mnch_onboarding_intent""},{""type"":"""",""title"":"""",""slug"":""""}]",English
11,mnch_onboarding_intent,Onboarding,Intent,Intent,,"Let's create your profile! The better I know you, the more I can do for you.

*You have a few options:*

• Create your profile and take control of [my_health]

• Explore the service

• Get assistance from an expert at the help desk

👇🏽 What do you want to do?
",,Create a profile 👤,Explore the service,Go to help desk,,,,,,,,,,,,,mnch_onboarding_data_preferences,mnch_onboarding_data_preferences,mnch_onboarding_data_preferences,go_to_page,go_to_page,go_to_page,"[{""type"": ""go_to_page"",""title"": ""Create a profile 👤"", ""slug"": ""mnch_onboarding_data_preferences""},{""type"":""go_to_page"",""title"":""Explore the service"",""slug"":""mnch_onboarding_data_preferences""},{""type"":""go_to_page"",""title"":""Go to help desk"",""slug"":""mnch_onboarding_data_preferences""}]",English
12,mnch_onboarding_data_preferences,Onboarding,Data_preferences,Data_preferences,,"You can *choose* how to receive the information I have for you. This is so you can manage your data costs 📱

You can choose:

• Text, images, audio & video (All)

• Text and images

• Text only

👇🏽 What would you like?",,All,Text & images ,Text only,,,,,,,,,,,,,mnch_onboarding_data_preferences_yes,mnch_onboarding_data_preferences_yes,mnch_onboarding_data_preferences_yes,go_to_page,go_to_page,go_to_page,"[{""type"": ""go_to_page"",""title"": ""All"", ""slug"": ""mnch_onboarding_data_preferences_yes""},{""type"":""go_to_page"",""title"":""Text & images "",""slug"":""mnch_onboarding_data_preferences_yes""},{""type"":""go_to_page"",""title"":""Text only"",""slug"":""mnch_onboarding_data_preferences_yes""}]",English
13,mnch_onboarding_data_preferences_yes,Onboarding,Data_preferences_yes,Data_preferences_yes,,"Got it 👍🏽

I'll share {option_choice} for now.

You can change this at any time in `Settings`",,That's great!,,,,,,,,,,,,,,,,,,next_message,,,"[{""type"": ""next_message"",""title"": ""That's great!"", ""slug"": """"},{""type"":"""",""title"":"""",""slug"":""""},{""type"":"""",""title"":"""",""slug"":""""}]",English
Loading
Loading