From 87b721483f8136bb59d9fb68294663413cf7c5c6 Mon Sep 17 00:00:00 2001 From: Norm Rasmussen Date: Wed, 22 Nov 2023 22:38:06 -0500 Subject: [PATCH] Update Walmart Spark templates. Backedup all their hidden tags in course settings and removed so they don't show up in the search results anymore. --- .../Walmart Spark Prod/.DS_Store | Bin 0 -> 6148 bytes .../_cards_course.html.liquid | 40 +++++- .../_cards_learning_path.html.liquid | 25 ++++ ..._cards_learning_path_condensed.html.liquid | 25 ++++ .../_category_cards.html.liquid | 71 ++++++---- .../_filtered_learning_paths_tray.html.liquid | 14 ++ .../Walmart Spark Prod/_head.html.liquid | 12 +- .../_learning_path_course.html.liquid | 51 +++++++ .../_search_result.html.liquid | 5 +- .../Walmart Spark Prod/course.html.liquid | 84 +++++++----- .../Walmart Spark Prod/courses.html.liquid | 124 +++++++++++++----- .../learning_path.html.liquid | 120 ++++++++++++++++- .../learning_path_summary.html.liquid | 113 ++++++++++++++++ CustomerNotes/Walmart/RC-search-tags.html | 51 +++++++ 14 files changed, 630 insertions(+), 105 deletions(-) create mode 100644 Custom_Templates/customer_templates/Walmart Spark Prod/.DS_Store create mode 100644 Custom_Templates/customer_templates/Walmart Spark Prod/_cards_learning_path.html.liquid create mode 100644 Custom_Templates/customer_templates/Walmart Spark Prod/_cards_learning_path_condensed.html.liquid create mode 100644 Custom_Templates/customer_templates/Walmart Spark Prod/_filtered_learning_paths_tray.html.liquid create mode 100644 Custom_Templates/customer_templates/Walmart Spark Prod/_learning_path_course.html.liquid create mode 100644 Custom_Templates/customer_templates/Walmart Spark Prod/learning_path_summary.html.liquid create mode 100644 CustomerNotes/Walmart/RC-search-tags.html diff --git a/Custom_Templates/customer_templates/Walmart Spark Prod/.DS_Store b/Custom_Templates/customer_templates/Walmart Spark Prod/.DS_Store new file mode 100644 index 0000000000000000000000000000000000000000..5008ddfcf53c02e82d7eee2e57c38e5672ef89f6 GIT binary patch literal 6148 zcmeH~Jr2S!425mzP>H1@V-^m;4Wg<&0T*E43hX&L&p$$qDprKhvt+--jT7}7np#A3 zem<@ulZcFPQ@L2!n>{z**++&mCkOWA81W14cNZlEfg7;MkzE(HCqgga^y>{tEnwC%0;vJ&^%eQ zLs35+`xjp>T0 created_at_date_seconds %}{% assign course_is_new = true %}{% endif %}{% if course_is_new %}{% if course.progress == 0 %}{% capture course_label %}
New
{% endcapture %}{% capture course_data_label %}new{% endcapture %} {% endif %} {% endif %} {% if course.progress > 0 and course.progress < 100 %}{% capture course_label %}
In progress
{% endcapture %}{% capture course_data_label %}in-progress{% endcapture %} {% elsif course.completed? %} {% capture course_label %}
Viewed
{% endcapture %}{% capture course_data_label %}viewed{% endcapture %}{% endif %}
{% if course.ribbon %}
{{ course.ribbon }}
{% endif %}{{ course.name }}

{{ course.name }}

{% if course.instructors.size > 0 %}
{{ course.instructor_names }}
{% endif %}
{% if course.properties.course_length != 'NULL' %}
{{ course.properties.course_length }}
{% endif %}{{course_label}}
\ No newline at end of file +{% capture course_label %}{% endcapture %} +{% capture course_data_label %}none{% endcapture %} +{% assign course_is_new = false %} +{% assign created_at_date_seconds = current_person.created_at | date: "%s" %} +{% assign course_published_date_seconds = course.properties.initial_publish_date | date: "%s" %} +{% if course_published_date_seconds > created_at_date_seconds %}{% assign course_is_new = true %}{% endif %} +{% if course_is_new %} + {% if course.progress == 0 %} + {% capture course_label %}
New
{% endcapture %} + {% capture course_data_label %}new{% endcapture %} + {% endif %} +{% endif %} +{% if course.progress > 0 and course.progress < 100 %} + {% capture course_label %}
In progress
{% endcapture %} + {% capture course_data_label %}in-progress{% endcapture %} +{% elsif course.completed? %} + {% capture course_label %}
Viewed
{% endcapture %} + {% capture course_data_label %}viewed{% endcapture %} +{% endif %} + + +
+ {{ course.name }} +
+ + +
+ {% if course.properties.course_length != 'NULL' %} +
{{ course.properties.course_length }}
+ {% endif %} + {{course_label}} +
+
+
+
\ No newline at end of file diff --git a/Custom_Templates/customer_templates/Walmart Spark Prod/_cards_learning_path.html.liquid b/Custom_Templates/customer_templates/Walmart Spark Prod/_cards_learning_path.html.liquid new file mode 100644 index 00000000..e70a0779 --- /dev/null +++ b/Custom_Templates/customer_templates/Walmart Spark Prod/_cards_learning_path.html.liquid @@ -0,0 +1,25 @@ + +
+ {{ learning_path.name }} +
+ + +
+
{{ learning_path.items.count }} resources
+ · + {% for item in learning_path.items %} + {% if item.course? %} + {% for enrolled_course in enrolled_courses %} + {% if item.id == enrolled_course.id %} + {% assign course_time = enrolled_course.properties.course_length | split: " " %} + {% assign course_time_number = course_time | slice: 0 %} +
+ {% endif %} + {% endfor %} + {% endif %} + {% endfor %} +
+
+
+
+
\ No newline at end of file diff --git a/Custom_Templates/customer_templates/Walmart Spark Prod/_cards_learning_path_condensed.html.liquid b/Custom_Templates/customer_templates/Walmart Spark Prod/_cards_learning_path_condensed.html.liquid new file mode 100644 index 00000000..74b6d9b1 --- /dev/null +++ b/Custom_Templates/customer_templates/Walmart Spark Prod/_cards_learning_path_condensed.html.liquid @@ -0,0 +1,25 @@ +{% capture course_label %}{% endcapture %} +{% capture course_data_label %}none{% endcapture %} + +{% if learning_path.progress > 0 and learning_path.progress < 100 %} + {% capture course_label %}
In progress
{% endcapture %} + {% capture course_data_label %}in-progress{% endcapture %} +{% elsif learning_path.completed? %} + {% capture course_label %}
Viewed
{% endcapture %} + {% capture course_data_label %}viewed{% endcapture %} +{% endif %} + + +
+
+
{{ learning_path.name }}
+
+ {{ learning_path.description | strip_html }} +
+
+
{{ learning_path.items.count }} resources
+
{{course_label}}
+
+
+
+
\ No newline at end of file diff --git a/Custom_Templates/customer_templates/Walmart Spark Prod/_category_cards.html.liquid b/Custom_Templates/customer_templates/Walmart Spark Prod/_category_cards.html.liquid index 4fb37dfb..205ce8d4 100644 --- a/Custom_Templates/customer_templates/Walmart Spark Prod/_category_cards.html.liquid +++ b/Custom_Templates/customer_templates/Walmart Spark Prod/_category_cards.html.liquid @@ -3,36 +3,53 @@ {% comment %} NON SPECIFIED {% endcomment %} {% for school_category in school_categories %} {% unless school_category == "Getting Started" or school_category == "Earnings" or school_category == "Shopping & Delivery" or school_category == "Delivery" or school_category == "Using the App" or school_category == "Contacting Customers" %} -
-
-
- {% if school_category == "Arrival & Pick Up" %} - Category Icon - {% elsif school_category == "Drop Off & Returns" %} - Category Icon - {% elsif school_category == "Troubleshooting" %} - Category Icon - {% elsif school_category == "Trust & Safety" %} - Category Icon - {% elsif school_category == "Offer Acceptance" %} - Category Icon - {% elsif school_category == "Returns" %} - Category Icon - {% else %} - Category Icon - {% endif %} -
-
-
-
New
+ {% if school_category == "Resource Bundles" %} + {% if features.learning_paths? and learning_paths.enrolled.any? %} +
+
+
+ Category Icon +
+
+
Resource Bundles
+
-
{{school_category}}
+
+ {% include "filtered_learning_paths_tray", category_name: "Resource Bundles" %} + {% endif %} + {% else %} +
+
+
+ {% if school_category == "Arrival & Pick Up" %} + Category Icon + {% elsif school_category == "Drop Off & Returns" %} + Category Icon + {% elsif school_category == "Troubleshooting" %} + Category Icon + {% elsif school_category == "Trust & Safety" %} + Category Icon + {% elsif school_category == "Offer Acceptance" %} + Category Icon + {% elsif school_category == "Returns" %} + Category Icon + {% else %} + Category Icon + {% endif %} +
+
+
+
New
+
+
{{school_category}}
+
+
+
- -
- {% include "filtered_courses_tray", category_name: school_category %} + {% include "filtered_courses_tray", category_name: school_category %} + {% endif %} {% endunless %} {% endfor %} - + {% endif %} \ No newline at end of file diff --git a/Custom_Templates/customer_templates/Walmart Spark Prod/_filtered_learning_paths_tray.html.liquid b/Custom_Templates/customer_templates/Walmart Spark Prod/_filtered_learning_paths_tray.html.liquid new file mode 100644 index 00000000..e2eaecba --- /dev/null +++ b/Custom_Templates/customer_templates/Walmart Spark Prod/_filtered_learning_paths_tray.html.liquid @@ -0,0 +1,14 @@ +
+
{{category_name}}
+ {% if current_person.signed_in? %}{% endif %} +
+ {% assign learning_paths_by_progress = enrolled_learning_paths | sort: "progress" %} + {% for learning_path in learning_paths_by_progress %} + {% for lp_category in learning_path.categories %} + {% if school_category == lp_category.name %} + {% include "cards_learning_path_condensed" with learning_path %} + {% endif %} + {% endfor %} + {% endfor %} +
+
\ No newline at end of file diff --git a/Custom_Templates/customer_templates/Walmart Spark Prod/_head.html.liquid b/Custom_Templates/customer_templates/Walmart Spark Prod/_head.html.liquid index 4cec26ab..d24a466e 100644 --- a/Custom_Templates/customer_templates/Walmart Spark Prod/_head.html.liquid +++ b/Custom_Templates/customer_templates/Walmart Spark Prod/_head.html.liquid @@ -7,11 +7,11 @@ {% assign live_school_id = "3c8229bf-a77c-4c88-8c65-75a03b0b1212" %} {% if current_school.id == staging_school_id %} - {% comment %} {% endcomment %} + {% comment %} {% endcomment %} {% elsif current_school.id == production_sandbox_school_id %} - {% comment %} {% endcomment %} + {% comment %} {% endcomment %} {% elsif current_school.id == live_school_id %} - + {% endif %} @@ -19,11 +19,11 @@ {% if current_school.id == staging_school_id %} - {% comment %} {% endcomment %} + {% comment %} {% endcomment %} {% include "js_scripts" %} {% elsif current_school.id == production_sandbox_school_id %} - {% comment %} {% endcomment %} + {% comment %} {% endcomment %} {% include "js_scripts" %} {% elsif current_school.id == live_school_id %} - + {% endif %} \ No newline at end of file diff --git a/Custom_Templates/customer_templates/Walmart Spark Prod/_learning_path_course.html.liquid b/Custom_Templates/customer_templates/Walmart Spark Prod/_learning_path_course.html.liquid new file mode 100644 index 00000000..caad67f2 --- /dev/null +++ b/Custom_Templates/customer_templates/Walmart Spark Prod/_learning_path_course.html.liquid @@ -0,0 +1,51 @@ +{% if learning_path.enrolled? and course.unlocked? %} + +{% else %} +
+
+
{{courses_index}}
+
+
+
+ {{ course.name }} +
+
+ Lorem ipsum dolor sit amit +
+
+
XX min
+
+
+
+
+{% endif %} \ No newline at end of file diff --git a/Custom_Templates/customer_templates/Walmart Spark Prod/_search_result.html.liquid b/Custom_Templates/customer_templates/Walmart Spark Prod/_search_result.html.liquid index 2c80e695..d88c8b36 100644 --- a/Custom_Templates/customer_templates/Walmart Spark Prod/_search_result.html.liquid +++ b/Custom_Templates/customer_templates/Walmart Spark Prod/_search_result.html.liquid @@ -1,7 +1,7 @@ {% if result.type == "course" %}
- +
-{% endif %} - +{% endif %} \ No newline at end of file diff --git a/Custom_Templates/customer_templates/Walmart Spark Prod/course.html.liquid b/Custom_Templates/customer_templates/Walmart Spark Prod/course.html.liquid index c3fb2d0d..272af09a 100644 --- a/Custom_Templates/customer_templates/Walmart Spark Prod/course.html.liquid +++ b/Custom_Templates/customer_templates/Walmart Spark Prod/course.html.liquid @@ -1,6 +1,8 @@ -{% if course.properties.skip_course_outline_page %} - -{% else %} +{% if course.properties.skip_course_outline_page %} + +{% else %} {% assign back_button_url = "/app/courses" %} {% for category in course.categories %} {% assign cat_name = category.name | replace: " ", "-" | downcase %} @@ -8,41 +10,45 @@ {% endfor %}
- -
{{course.name}}
+ + + +
{{ course.name }}
- +
-
- {% unless course.image_url contains "/assets/defaults/learning_experience/course-" %} - {{ course.name }} - {% endunless %} -
{{ course.name }}
-
-
- {% if course.properties.course_length != 'NULL' %} -
{{ course.properties.course_length }}
- {% endif %} +
+
+ {{ course.name }} +
+
{{ course.name }}
+
{{ course.full_description }}
+
+ {% if course.properties.course_length != 'NULL' %} +
{{ course.properties.course_length }}
+ {% endif %} +
-
-
-
-

About the Resource

-
{{ course.full_description }}
{% include "course_outline" %}
- {% if course.learner_can_retake? %} + {% if course.learner_can_retake? %}
{% form_authenticity_token %}
{% else %} - + {% if course.progress > 0 and course.progress < 100 %} Resume {% elsif course.completed? %} @@ -53,20 +59,36 @@ {% endif %}
-
+
{% endif %} - + \ No newline at end of file diff --git a/Custom_Templates/customer_templates/Walmart Spark Prod/courses.html.liquid b/Custom_Templates/customer_templates/Walmart Spark Prod/courses.html.liquid index 321ca2f3..c9ab298e 100644 --- a/Custom_Templates/customer_templates/Walmart Spark Prod/courses.html.liquid +++ b/Custom_Templates/customer_templates/Walmart Spark Prod/courses.html.liquid @@ -1,48 +1,108 @@ {% assign available_school_categories = '' | split: '' %} {% assign enrolled_courses = courses.enrolled %} -{% for course in enrolled_courses %} +{% for course in enrolled_courses %} {% for cat in course.categories %} {% assign cat_name = cat.name | split: '!@#$%^&*()' %} {% assign available_school_categories = available_school_categories | concat: cat_name %} {% endfor %} {% endfor %} +{% assign enrolled_learning_paths = learning_paths.enrolled %} +{% for learning_path in enrolled_learning_paths %} + {% for lp_cat in learning_path.categories %} + {% assign lp_cat_name = lp_cat.name | split: '!@#$%^&*()' %} + {% assign available_school_categories = available_school_categories | concat: lp_cat_name %} + {% endfor %} +{% endfor %} {% assign unique_school_categories = available_school_categories | uniq | sort %} -{% capture icon %} fa-arrow-left{% endcapture %} + +{% assign resource_bundles_to_display = "" %} +{% if features.learning_paths? %} + {% if enrolled_learning_paths.any? %} + {% if current_person.properties.access_level == "EXPERIENCED" %} + {% assign resource_bundles_to_display = current_school.properties.featured_resource_bundles_experienced | downcase %} + {% elsif current_person.properties.access_level == "BEGINNER" %} + {% assign resource_bundles_to_display = current_school.properties.featured_resource_bundles_beginner | downcase %} + {% endif %} + {% endif %} +{% endif %} +{% assign resource_bundles_to_display_array = resource_bundles_to_display | split: "," %} + +{% capture icon %} + fa-arrow-left{% endcapture %} {% include "mobile_header", title: "Resource Center", back_icon: icon, back_link: "javascript:sendMessage();" %} {% include "sub_navigation" %}
-{% if current_person.signed_in? %} - -{% endif %} -{% if current_person.properties.show_welcome_message %} -
Explore these videos and text-based resources to get the most out of the Spark Driver™ App.
-{% endif %} -{% if courses.enrolled.any? %} -
- \ No newline at end of file + \ No newline at end of file diff --git a/Custom_Templates/customer_templates/Walmart Spark Prod/learning_path.html.liquid b/Custom_Templates/customer_templates/Walmart Spark Prod/learning_path.html.liquid index 40410b5d..711abdc0 100644 --- a/Custom_Templates/customer_templates/Walmart Spark Prod/learning_path.html.liquid +++ b/Custom_Templates/customer_templates/Walmart Spark Prod/learning_path.html.liquid @@ -1,10 +1,120 @@ -{% capture icon %} - fa-arrow-left -{% endcapture %} -{% include "mobile_header", title: learning_path.name, back_icon: icon, back_link: "/app/courses" %} +
+ {% learning_path_next_step_button learning_path, class: "lp-button np-top-button np-button-font-color np-button np-button-big" %} +
+{% include "sub_navigation" %} + +{% capture icon %}fa-arrow-left{% endcapture %} +{% include "mobile_header", title: learning_path.name, back_icon: icon, back_link: "/app/courses#resource-bundles" %} + +{% assign courses = courses.enrolled %}
- {% include "learning_path_mobile_view" %} +
+
+ {{ learning_path.name }} +
+
{{ learning_path.name }}
+
{{ learning_path.description | strip_html }}
+
+
{{ learning_path.items.count }} resources
+ · +
+
+
+
+
+
+
+
Contents
+ {% assign courses_index = 1 %} + {% for item in learning_path.items %} + {% assign course_desc = "" %} + {% assign course_length = "" %} + {% assign course_is_new = false %} + {% for course in courses %} + {% if course.id == item.id %} + {% assign course_desc = course.short_description %} + {% assign course_length = course.properties.course_length %} + {% assign created_at_date_seconds = current_person.created_at | date: "%s" %} + {% assign course_published_date_seconds = course.properties.initial_publish_date | date: "%s" %} + {% if course_published_date_seconds > created_at_date_seconds %}{% assign course_is_new = true %}{% endif %} + {% endif %} + {% endfor %} + {% if item.course? %} + {% if learning_path.enrolled? and item.unlocked? %} + + {% else %} +
+
+
{{courses_index}}
+
+
+
{{ item.name }}
+
{{course_desc}}
+
+
{{course_length}}
+
+
New
+
+
+
+
+
+ {% endif %} + {% endif %} + {% assign courses_index = courses_index | plus: 1 %} + {% endfor %} +
+
+
+ + \ No newline at end of file diff --git a/Custom_Templates/customer_templates/Walmart Spark Prod/learning_path_summary.html.liquid b/Custom_Templates/customer_templates/Walmart Spark Prod/learning_path_summary.html.liquid new file mode 100644 index 00000000..b9029bda --- /dev/null +++ b/Custom_Templates/customer_templates/Walmart Spark Prod/learning_path_summary.html.liquid @@ -0,0 +1,113 @@ +
+ {% learning_path_next_step_button learning_path, class: "lp-button np-top-button np-button-font-color np-button np-button-big" %} +
+{% include "sub_navigation" %} + + +{% capture icon %}fa-arrow-left{% endcapture %} +{% include "mobile_header", title: learning_path.name, back_icon: icon, back_link: "/app/courses#resource-bundles" %} + +{% assign courses = courses.enrolled %} +
+
+
+
+ {{ learning_path.name }} +
+
{{ learning_path.name }}
+
{{ learning_path.description | strip_html }}
+
+
{{ learning_path.items.count }} resources
+ · +
+
+
+
+
+
+
+
Contents
+ {% assign courses_index = 1 %} + {% for item in learning_path.items %} + {% assign course_desc = "" %} + {% assign course_length = "" %} + {% for course in courses %} + {% if course.id == item.id %} + {% assign course_desc = course.short_description %} + {% assign course_length = course.properties.course_length %} + {% endif %} + {% endfor %} + {% if item.course? %} + {% if learning_path.enrolled? and item.unlocked? %} + + {% else %} +
+
+
{{courses_index}}
+
+
+
{{ item.name }}
+
{{course_desc}}
+
+
{{course_length}}
+
+
New
+
+
+
+
+
+ {% endif %} + {% endif %} + {% assign courses_index = courses_index | plus: 1 %} + {% endfor %} +
+
+
+
+ + + \ No newline at end of file diff --git a/CustomerNotes/Walmart/RC-search-tags.html b/CustomerNotes/Walmart/RC-search-tags.html new file mode 100644 index 00000000..18478af7 --- /dev/null +++ b/CustomerNotes/Walmart/RC-search-tags.html @@ -0,0 +1,51 @@ +About Your Earnings +
+Pay, Paid, Payment, Earn, Money, Income +
+ +Checking the status of your driver referrals +
+Referral status, Referred, Friend, Family +
+ +Claiming your Branch Wallet +
+Pay, Paid, Payment, Wallet, Earnings, Claim +
+ +Earnings FAQ +
+Paid, Payment, Pay, Money, Deposit, Bonus, Earn, Branch, ONE, Income +
+ + +How to apply for ONE for existing drivers +--NO TAGS-- + +How to apply for ONE for new drivers +
+Sign-up, Create account, Instant pay, Same day pay, Payment, Paid, Pay, Money, Earnings, How to apply +
+ +How to switch earnings accounts +
+Switch payment, Switch account, Switch earnings, New pay account, Pay account, Bank +
+ +Information on when driver referrals are updated +
+Referral error, Report missing referral, Incorrect referral, +
+ +Referral incentives +
+Referrals, Incentives, Earn Money, Earn Extra Money, Refer friend, Refer family +
+ +Rewards Program +--NO TAGS-- + +Viewing your earnings +
+Paid, Pay, Payment, View pay, Find payment, Income, Money, Earn +