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 51fb43d2..c9fd931f 100644 Binary files a/Scripts/API_Tests/__pycache__/Apikeys.cpython-310.pyc and b/Scripts/API_Tests/__pycache__/Apikeys.cpython-310.pyc differ diff --git a/Scripts/API_Tests/get_courses_from_groups.py b/Scripts/API_Tests/get_courses_from_groups.py index 08191b32..d9582120 100644 --- a/Scripts/API_Tests/get_courses_from_groups.py +++ b/Scripts/API_Tests/get_courses_from_groups.py @@ -12,20 +12,6 @@ HEADERS = { } BASEURL = "https://api.northpass.com/v2/" GROUPS = [ - "Academic Economics", - "Academy Use/Navigation", - "Accreditation", - "Anthology 101", - "Baseline", - "Course Evaluations", - "Engage", - "Evaluate", - "Finance & HCM", - "Learn", - "Portfolio", - "Power BI", - "Raise", - "Reach", "Student", ] @@ -34,23 +20,24 @@ def all_groups(): Get all Group IDs """ gids = [] - group_count = 0 - while True: - group_count += 1 - url = f"https://api.northpass.com/v2/groups?page={group_count}" - gresponse = requests.get(url, headers=HEADERS) - gdata = gresponse.json() - gnext = gdata["links"] + for group in GROUPS: + group_count = 0 + while True: + group_count += 1 + url = f"https://api.northpass.com/v2/groups?filter[name][cont]={group}&page={group_count}" + gresponse = requests.get(url, headers=HEADERS) + gdata = gresponse.json() + gnext = gdata["links"] - for response in gdata["data"]: - group_id = response["id"] - group_name = response["attributes"]["name"] - group_tupe = (group_id, group_name) - print(group_tupe) - gids.append(group_tupe) + for response in gdata["data"]: + group_id = response["id"] + group_name = response["attributes"]["name"] + group_tupe = (group_id, group_name) + print(group_tupe) + gids.append(group_tupe) - if "next" not in gnext: - break + if "next" not in gnext: + break get_courses(gids) diff --git a/Scripts/API_Tests/get_sent_webhooks.py b/Scripts/API_Tests/get_sent_webhooks.py new file mode 100644 index 00000000..7083d868 --- /dev/null +++ b/Scripts/API_Tests/get_sent_webhooks.py @@ -0,0 +1,17 @@ +import requests +import Apikeys +import pprint + +PP = pprint.PrettyPrinter(indent=4) +APIKEY = Apikeys.LUMAFINTECH +HEADERS = {"content-type": "application/json", "X-Api-Key": APIKEY } +BASEURL = "https://api.northpass.com/v2/webhooks" +FILTURL = f"{BASEURL}?filter[attempt_left][eq]=28" +# filter[type][in]=course_completed_events + +print(FILTURL) +response = requests.get(FILTURL, headers=HEADERS) +resp = response.json() +for i in resp['data']: + print(i['attributes']['created_at'] ) +# PP.pprint(resp)