From 991cdde784c613ac2fd46a32926cc5cdccc956b6 Mon Sep 17 00:00:00 2001 From: Norm Rasmussen Date: Tue, 26 Nov 2024 16:39:18 -0500 Subject: [PATCH] Created script to get sent webhooks from our endpoint. Not many filtering options. Update some templates for Spark, and Luminate. --- .../_calendar.html.liquid | 325 ++++++++++++ .../_content_by_cards.html.liquid | 50 ++ .../_header.html.liquid | 10 +- .../homepage.html.liquid | 491 ++++-------------- .../master.html.liquid | 1 + .../styles.css.liquid | 28 +- .../Walmart Spark Prod/courses.html.liquid | 2 +- Scripts/API_Tests/Apikeys.py | 1 + .../__pycache__/Apikeys.cpython-310.pyc | Bin 1578 -> 1624 bytes Scripts/API_Tests/get_courses_from_groups.py | 45 +- Scripts/API_Tests/get_sent_webhooks.py | 17 + 11 files changed, 533 insertions(+), 437 deletions(-) create mode 100644 Custom_Templates/customer_templates/Walmart Luminate Sandbox/_calendar.html.liquid create mode 100644 Custom_Templates/customer_templates/Walmart Luminate Sandbox/_content_by_cards.html.liquid create mode 100644 Scripts/API_Tests/get_sent_webhooks.py diff --git a/Custom_Templates/customer_templates/Walmart Luminate Sandbox/_calendar.html.liquid b/Custom_Templates/customer_templates/Walmart Luminate Sandbox/_calendar.html.liquid new file mode 100644 index 00000000..7ee83fe9 --- /dev/null +++ b/Custom_Templates/customer_templates/Walmart Luminate Sandbox/_calendar.html.liquid @@ -0,0 +1,325 @@ + +{% for training_event in training_events.available %} + {% for session in training_event.sessions %} + + {% endfor %} + {% endfor %} + + + +
+
+
+
+
+ +
+

""

+
+ +
+ +
+ +
+
Su
+
Mo
+
Tu
+
We
+
Th
+
Fr
+
Sa
+
+
+
+
Today
+ +
+
+ + + + \ No newline at end of file diff --git a/Custom_Templates/customer_templates/Walmart Luminate Sandbox/_content_by_cards.html.liquid b/Custom_Templates/customer_templates/Walmart Luminate Sandbox/_content_by_cards.html.liquid new file mode 100644 index 00000000..f4e9c9df --- /dev/null +++ b/Custom_Templates/customer_templates/Walmart Luminate Sandbox/_content_by_cards.html.liquid @@ -0,0 +1,50 @@ +{% assign categories = current_school.filterable_categories %} + +
+ {% for category in categories %} +
+
+ {{ category.name }} +
+
+
+ {% endfor %} +
+ + \ No newline at end of file diff --git a/Custom_Templates/customer_templates/Walmart Luminate Sandbox/_header.html.liquid b/Custom_Templates/customer_templates/Walmart Luminate Sandbox/_header.html.liquid index 9e5eaa11..28aeae28 100644 --- a/Custom_Templates/customer_templates/Walmart Luminate Sandbox/_header.html.liquid +++ b/Custom_Templates/customer_templates/Walmart Luminate Sandbox/_header.html.liquid @@ -36,15 +36,15 @@

Walmart Luminate Learn
- Walmart Luminate + Scintilla Shopper Behavior Customer Perception Report Builder @@ -54,7 +54,7 @@
Learn
-
Walmart Luminate Learn
+
Learn Scintilla

{% else %} diff --git a/Custom_Templates/customer_templates/Walmart Luminate Sandbox/homepage.html.liquid b/Custom_Templates/customer_templates/Walmart Luminate Sandbox/homepage.html.liquid index 254ef852..8a6fdd16 100644 --- a/Custom_Templates/customer_templates/Walmart Luminate Sandbox/homepage.html.liquid +++ b/Custom_Templates/customer_templates/Walmart Luminate Sandbox/homepage.html.liquid @@ -1,69 +1,3 @@ - - -{% assign catalog_courses = courses.in_catalog %} - -{% assign survey_courses = "" %} -{% assign survey_course_completed = false %} -{% if current_school.id == "10183441-2254-4b1e-a9f7-9549ca773257" %} - {% comment %} LIVE SCHOOL {% endcomment %} - {% assign survey_course = catalog_courses | where: "id", "b3225a47-448d-4988-962a-18d37d6616d0" %} -{% elsif current_school.id == "804edb32-c300-42f3-82b7-e5d55fcbc2a6" %} - {% comment %} SANDBOX SCHOOL {% endcomment %} - {% assign survey_course = catalog_courses | where: "id", "fdc8acdc-0b7c-4064-a52b-1955379d411b" %} -{% endif %} - -{% for course in survey_course %} - {% if course.progress == 100 %} - {% assign survey_course_completed = true %} - {% endif %} -{% endfor %} - {% include "header" %}
@@ -86,329 +20,97 @@
{% include "sub_navigation" %} - - {% include "homepage_featured", items: catalog_courses %} +
{% include "footer" %} - - - - -{% if current_person.signed_in? %} - {% unless current_person.email contains "+preview" %} - {% if current_person.properties.first_time_user_popup_seen == false %} - - {% elsif current_person.properties.first_time_user_popup_seen == true %} - - {% else %} - - {% endif %} - {% endunless %} -{% endif %} - - + \ No newline at end of file diff --git a/Custom_Templates/customer_templates/Walmart Luminate Sandbox/master.html.liquid b/Custom_Templates/customer_templates/Walmart Luminate Sandbox/master.html.liquid index 63345068..71c36b9d 100644 --- a/Custom_Templates/customer_templates/Walmart Luminate Sandbox/master.html.liquid +++ b/Custom_Templates/customer_templates/Walmart Luminate Sandbox/master.html.liquid @@ -1 +1,2 @@ {% body %} + diff --git a/Custom_Templates/customer_templates/Walmart Luminate Sandbox/styles.css.liquid b/Custom_Templates/customer_templates/Walmart Luminate Sandbox/styles.css.liquid index 13bc2a19..96f72549 100644 --- a/Custom_Templates/customer_templates/Walmart Luminate Sandbox/styles.css.liquid +++ b/Custom_Templates/customer_templates/Walmart Luminate Sandbox/styles.css.liquid @@ -66,18 +66,8 @@ html { box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1); } -.np-resource-title, -.np-dashboard-resources-title { - color: #333; - font-weight: 400; - font-size: 24px; - line-height: 32px; -} -.np-dashboard .np-dashboard-resources-title { - margin-bottom: 20px; - text-transform:capitalize; -} + .np-resource-subtitle { color: #333; @@ -130,10 +120,6 @@ html { color: #333; } -.np-dashboard-resources-title { - margin-bottom: 8px; - color: #333; -} .np-learning-paths-resources-container, .np-dashboard-resources-container { @@ -234,17 +220,7 @@ html { padding-top: 64px; } -.np-sub-navigation:not(.homepage-nav):not(.np-page-container) { - position: fixed; - top: 64px; - left: 0; - width: 100%; - background-color: #fff; - box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1); - padding-top: 0px; - margin-bottom: 0; - z-index: 49; -} + .np-sub-navigation.fixed { position: fixed; 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 2a1eabe5..17945ed6 100644 --- a/Custom_Templates/customer_templates/Walmart Spark Prod/courses.html.liquid +++ b/Custom_Templates/customer_templates/Walmart Spark Prod/courses.html.liquid @@ -31,7 +31,7 @@ fa-arrow-left{% endcapture %} {% include "mobile_header", title: "Resource Center", back_icon: icon, back_link: "javascript:sendMessage();" %} {% if current_school.properties.banner_toggle == true %} -
+
{{ current_school.properties.banner_text }}
{% endif %} diff --git a/Scripts/API_Tests/Apikeys.py b/Scripts/API_Tests/Apikeys.py index 76a5485f..f05aadf2 100644 --- a/Scripts/API_Tests/Apikeys.py +++ b/Scripts/API_Tests/Apikeys.py @@ -31,3 +31,4 @@ KARBON = "peQbnkfUnYLGPfIzyCxfLs634" BLOOMERANG = "ewGDqLgsklMnytqzUka2wmgIi" GSU = "rUUKNuBZ0rmRNPftB4smYhQ5L" EMPLOY = "qcNggCm4SBtC0gTqLGv30vX8l" +LUMAFINTECH = "oDFA7XSmjEKjEwIDIKLm0rxs1" diff --git a/Scripts/API_Tests/__pycache__/Apikeys.cpython-310.pyc b/Scripts/API_Tests/__pycache__/Apikeys.cpython-310.pyc index 51fb43d2e91ca338b75b135966e59ddd7ae882bd..c9fd931f85cd082f5386c1cc353b3e0e1223bfa1 100644 GIT binary patch delta 145 zcmZ3*bAyLBpO=@50SJl>-O__6^2##yOw{h=h*C^Z3}(<&+PEW@*&s?X-^I<*JR&$Z z%hfx}wcOLi)7vN4ps1qQ&`(n-iZ$3f)YB!3!`n47IKT9xEA&n1PlRF;AYr8p7rRWU??!{=jN6iH(DagAo8l9VSfx delta 93 zcmcb?vx