From 291237710269ef67bf6261a14c6a36defe8bf8fa Mon Sep 17 00:00:00 2001 From: Norm Rasmussen Date: Fri, 3 Nov 2023 16:52:02 -0400 Subject: [PATCH] New talkspace script. Added a bunch of templates as backup. --- .../_course_progress_and_cta.html.liquid | 2 +- .../_courses_catalog.html.liquid | 12 +- .../_filter_by_product.html.liquid | 72 ++++--- .../_header.html.liquid | 4 +- .../homepage.html.liquid | 31 +-- .../login.html.liquid | 61 ++++++ .../sign_up.html.liquid | 8 +- .../_cards_learning_path.html.liquid | 66 ++++++ .../_courses_index.html.liquid | 16 ++ .../BigIdeas Sandbox/_header.html.liquid | 192 ++++++++++++++++++ .../_learning_paths_index.html.liquid | 14 ++ .../_sub_navigation.html.liquid | 118 +++++++++++ .../_sub_navigation_item.html.liquid | 21 ++ .../BigIdeas Sandbox/dashboard.html.liquid | 31 +++ .../learning_path.html.liquid | 10 + .../learning_paths.html.liquid | 16 ++ .../BigIdeas Sandbox/styles.css.liquid | 60 ++++++ CustomerNotes/Anthology/Anthology.md | 7 + .../BigIdeasLearning/BigIdeasLearning.md | 6 + CustomerNotes/DataSnipper/DataSnipper.md | 8 + Scripts/API_Tests/Apikeys.py | 34 ++-- .../__pycache__/Apikeys.cpython-311.pyc | Bin 962 -> 962 bytes Scripts/API_Tests/talkspace_no-user_ids.py | 36 ++++ 23 files changed, 731 insertions(+), 94 deletions(-) create mode 100644 Custom_Templates/customer_templates/Anthology Academy - Prod/login.html.liquid create mode 100644 Custom_Templates/customer_templates/BigIdeas Sandbox/_cards_learning_path.html.liquid create mode 100644 Custom_Templates/customer_templates/BigIdeas Sandbox/_courses_index.html.liquid create mode 100644 Custom_Templates/customer_templates/BigIdeas Sandbox/_header.html.liquid create mode 100644 Custom_Templates/customer_templates/BigIdeas Sandbox/_learning_paths_index.html.liquid create mode 100644 Custom_Templates/customer_templates/BigIdeas Sandbox/_sub_navigation.html.liquid create mode 100644 Custom_Templates/customer_templates/BigIdeas Sandbox/_sub_navigation_item.html.liquid create mode 100644 Custom_Templates/customer_templates/BigIdeas Sandbox/dashboard.html.liquid create mode 100644 Custom_Templates/customer_templates/BigIdeas Sandbox/learning_path.html.liquid create mode 100644 Custom_Templates/customer_templates/BigIdeas Sandbox/learning_paths.html.liquid create mode 100644 Custom_Templates/customer_templates/BigIdeas Sandbox/styles.css.liquid create mode 100644 Scripts/API_Tests/talkspace_no-user_ids.py diff --git a/Custom_Templates/customer_templates/Anthology Academy - Prod/_course_progress_and_cta.html.liquid b/Custom_Templates/customer_templates/Anthology Academy - Prod/_course_progress_and_cta.html.liquid index 58bdaca8..5a0aa01d 100644 --- a/Custom_Templates/customer_templates/Anthology Academy - Prod/_course_progress_and_cta.html.liquid +++ b/Custom_Templates/customer_templates/Anthology Academy - Prod/_course_progress_and_cta.html.liquid @@ -18,7 +18,7 @@ -{% if external_course_url != '' %} +{% if external_course_url != '' and external_course_url != null %} {% for course in courses.enrolled %} - {% unless course.progress > 0 %} -
- {%- comment -%} {% include "cards_course" with course, flag: 'catalog' %} {%- endcomment -%} - {% include "cards_course" with course, flag: 'null' %} -
- {% endunless %} + {%- comment -%} {% unless course.progress > 0 %} + {% endunless %} {%- endcomment -%} +
+ {%- comment -%} {% include "cards_course" with course, flag: 'catalog' %} {%- endcomment -%} + {% include "cards_course" with course, flag: 'null' %} +
{% endfor %} diff --git a/Custom_Templates/customer_templates/Anthology Academy - Prod/_filter_by_product.html.liquid b/Custom_Templates/customer_templates/Anthology Academy - Prod/_filter_by_product.html.liquid index 7f83247f..be8d75db 100644 --- a/Custom_Templates/customer_templates/Anthology Academy - Prod/_filter_by_product.html.liquid +++ b/Custom_Templates/customer_templates/Anthology Academy - Prod/_filter_by_product.html.liquid @@ -60,48 +60,46 @@ } let filterByProduct = () => { - let filter = event.target.value.toLowerCase(); - filter = filter.replaceAll(' ', '+'); - filter = filter.replaceAll('&', '%26'); - console.log(filter); + //let filter = event.target.value.toLowerCase(); + //filter = filter.replaceAll(' ', '+'); + //filter = filter.replaceAll('&', '%26'); + //console.log(filter); + //window.location.assign(`https://newacademy.anthology.com/app/search/23777883-6b85-449d-8d25-2e548c6e9ecc?q=${filter}`); - window.location.assign(`https://newacademy.anthology.com/app/search/23777883-6b85-449d-8d25-2e548c6e9ecc?q=${filter}`); + let allLearning = document.querySelector('.np-catalog-courses').children; - //let allLearning = document.querySelector('.np-catalog-courses').children; + for(let i = 0; i < allLearning.length; i++){ + if(event.target.value == 'Default'){ - //for(let i = 0; i < allLearning.length; i++){ - // if(event.target.value == 'Default'){ + if(!allLearning[i].classList.contains('hidden-by-search')){ + allLearning[i].style.display = 'block'; + } + allLearning[i].classList.remove('filtered') + } else { + if(allLearning[i].dataset.product != event.target.value){ + allLearning[i].style.display = 'none'; + allLearning[i].classList.add('filtered'); + } else { + if(!allLearning[i].classList.contains('hidden-by-search')){ + allLearning[i].style.display = 'block'; + } + allLearning[i].classList.remove('filtered'); + }; + }; + }; - // if(!allLearning[i].classList.contains('hidden-by-search')){ - // allLearning[i].style.display = 'block'; - // } - // allLearning[i].classList.remove('filtered') - // } else { - - // if(allLearning[i].dataset.product != event.target.value){ - // allLearning[i].style.display = 'none'; - // allLearning[i].classList.add('filtered'); - // } else { - // if(!allLearning[i].classList.contains('hidden-by-search')){ - // allLearning[i].style.display = 'block'; - // } - // allLearning[i].classList.remove('filtered'); - // }; - // }; - //}; - - //for(let i = 0; i < popular.length; i++){ - // if(event.target.value == 'Default'){ - // popular[i].style.display = 'block'; - // } else { - // if(popular[i].dataset.product != event.target.value){ - // popular[i].style.display = 'none'; - // } else { - // popular[i].style.display = 'block'; - // }; - // }; - //}; + for(let i = 0; i < popular.length; i++){ + if(event.target.value == 'Default'){ + popular[i].style.display = 'block'; + } else { + if(popular[i].dataset.product != event.target.value){ + popular[i].style.display = 'none'; + } else { + popular[i].style.display = 'block'; + }; + }; + }; } {% elsif page == 'Dashboard' %} if(allProductTypesDash.length > 1){ diff --git a/Custom_Templates/customer_templates/Anthology Academy - Prod/_header.html.liquid b/Custom_Templates/customer_templates/Anthology Academy - Prod/_header.html.liquid index f5d19bd7..8a92c0a2 100644 --- a/Custom_Templates/customer_templates/Anthology Academy - Prod/_header.html.liquid +++ b/Custom_Templates/customer_templates/Anthology Academy - Prod/_header.html.liquid @@ -136,9 +136,9 @@ {%- comment -%} Desktop Profile Button {%- endcomment -%}
- + {%- comment -%} Tell Us What You Think! - + {%- endcomment -%} + + {% t .forgot_password %} + + {% if features.account_creation? %} + + {% t shared.sign_up %} + + {% endif %} + {% if features.request_access? %} + + {{ current_school.request_access_label }} + + {% endif %} + +
+ + diff --git a/Custom_Templates/customer_templates/Anthology Academy - Prod/sign_up.html.liquid b/Custom_Templates/customer_templates/Anthology Academy - Prod/sign_up.html.liquid index c4c0a3c7..62d79340 100644 --- a/Custom_Templates/customer_templates/Anthology Academy - Prod/sign_up.html.liquid +++ b/Custom_Templates/customer_templates/Anthology Academy - Prod/sign_up.html.liquid @@ -32,7 +32,7 @@
\ No newline at end of file + diff --git a/Custom_Templates/customer_templates/BigIdeas Sandbox/_cards_learning_path.html.liquid b/Custom_Templates/customer_templates/BigIdeas Sandbox/_cards_learning_path.html.liquid new file mode 100644 index 00000000..8dc5e18e --- /dev/null +++ b/Custom_Templates/customer_templates/BigIdeas Sandbox/_cards_learning_path.html.liquid @@ -0,0 +1,66 @@ +
+
+
+ {{ learning_path.name }} +
+
+ +
{% t shared.learning_path.title %}
+
+ {{ learning_path.items.count }} {% t .items %} +
+
+
+
{% t shared.learning_path.title %}
+ +
+ +
+

+ {{ learning_path.name }} +

+ +
+ {{ learning_path.instructor_names }} +
+ +
+ {{ learning_path.description }} +
+ +
+ {% t shared.progress, count: learning_path.progress %} +
+ +
+
+
+
+ + +
+
+
+
+
diff --git a/Custom_Templates/customer_templates/BigIdeas Sandbox/_courses_index.html.liquid b/Custom_Templates/customer_templates/BigIdeas Sandbox/_courses_index.html.liquid new file mode 100644 index 00000000..2cd6b31d --- /dev/null +++ b/Custom_Templates/customer_templates/BigIdeas Sandbox/_courses_index.html.liquid @@ -0,0 +1,16 @@ +{% if courses.enrolled.any? %} +
+ {% for course in courses.enrolled %} +
+ {% include "cards_course" with course %} +
+ {% endfor %} +
+{% else %} + {% capture message %} + {% t shared.zero_state.courses.index, + key: current_school.course_vocabulary + %} + {% endcapture %} + {% include "courses_zero_state", message: message %} +{% endif %} diff --git a/Custom_Templates/customer_templates/BigIdeas Sandbox/_header.html.liquid b/Custom_Templates/customer_templates/BigIdeas Sandbox/_header.html.liquid new file mode 100644 index 00000000..b5c3f084 --- /dev/null +++ b/Custom_Templates/customer_templates/BigIdeas Sandbox/_header.html.liquid @@ -0,0 +1,192 @@ +
+
+
+ {% if current_person.signed_in? %} + + + {% endif %} +
+ {% if current_school.logo_url %} +

+ + {{ current_school.name }} + +

+ {% else %} + + {{ current_school.name }} + + {% endif %} + + + {% if current_person.signed_in? %} +
+ + +
+ {% else %} +
+ + +
+
+ +{% include "messages" %} + + + \ No newline at end of file diff --git a/Custom_Templates/customer_templates/BigIdeas Sandbox/_learning_paths_index.html.liquid b/Custom_Templates/customer_templates/BigIdeas Sandbox/_learning_paths_index.html.liquid new file mode 100644 index 00000000..0725cd6d --- /dev/null +++ b/Custom_Templates/customer_templates/BigIdeas Sandbox/_learning_paths_index.html.liquid @@ -0,0 +1,14 @@ + {% if items.any? %} + {% for learning_path in items %} +
+ {% include "cards_learning_path" with learning_path %} +
+ {% endfor %} + {% else %} +
+
+ {% t .empty %} +
+ {% t .empty %} +
+ {% endif %} diff --git a/Custom_Templates/customer_templates/BigIdeas Sandbox/_sub_navigation.html.liquid b/Custom_Templates/customer_templates/BigIdeas Sandbox/_sub_navigation.html.liquid new file mode 100644 index 00000000..b782091f --- /dev/null +++ b/Custom_Templates/customer_templates/BigIdeas Sandbox/_sub_navigation.html.liquid @@ -0,0 +1,118 @@ + + + + + + \ No newline at end of file diff --git a/Custom_Templates/customer_templates/BigIdeas Sandbox/_sub_navigation_item.html.liquid b/Custom_Templates/customer_templates/BigIdeas Sandbox/_sub_navigation_item.html.liquid new file mode 100644 index 00000000..1d4eddd6 --- /dev/null +++ b/Custom_Templates/customer_templates/BigIdeas Sandbox/_sub_navigation_item.html.liquid @@ -0,0 +1,21 @@ +
+ + +
+ {{ label }} +
+
+
+
+ + diff --git a/Custom_Templates/customer_templates/BigIdeas Sandbox/dashboard.html.liquid b/Custom_Templates/customer_templates/BigIdeas Sandbox/dashboard.html.liquid new file mode 100644 index 00000000..c8a2ffb9 --- /dev/null +++ b/Custom_Templates/customer_templates/BigIdeas Sandbox/dashboard.html.liquid @@ -0,0 +1,31 @@ +{% include "header" %} +{% include "course_version_outdated_alert", courses: courses.enrolled %} +{% include "sub_navigation" %} +
+
+ {% t shared.learning_paths %} +
+
+ {% if features.learning_paths? %} + {% include "learning_paths_index", items: learning_paths.enrolled %} + {% endif %} +
+ +
+ {% t shared.course_vocabulary.plural, key: current_school.course_vocabulary %} +
+
+ {% include "courses_index", class: "col-xs-12 col-sm-6 col-lg-4 np-stretch-content" %} +
+ + {% if features.training_events? %} +
+
+ {% t .upcoming_events %} +
+ {% include "training_events_dashboard" %} +
+ {% endif %} + +
+{% include "footer" %} diff --git a/Custom_Templates/customer_templates/BigIdeas Sandbox/learning_path.html.liquid b/Custom_Templates/customer_templates/BigIdeas Sandbox/learning_path.html.liquid new file mode 100644 index 00000000..5cbb5a93 --- /dev/null +++ b/Custom_Templates/customer_templates/BigIdeas Sandbox/learning_path.html.liquid @@ -0,0 +1,10 @@ +{% include "header" %} +
+
+ {% include "learning_path_desktop_view" %} +
+
+ {% include "learning_path_mobile_view" %} +
+
+{% include "footer" %} diff --git a/Custom_Templates/customer_templates/BigIdeas Sandbox/learning_paths.html.liquid b/Custom_Templates/customer_templates/BigIdeas Sandbox/learning_paths.html.liquid new file mode 100644 index 00000000..ce186dd2 --- /dev/null +++ b/Custom_Templates/customer_templates/BigIdeas Sandbox/learning_paths.html.liquid @@ -0,0 +1,16 @@ +{% include "header" %} +{% include "sub_navigation" %} +
+
+
+ {% t shared.learning_paths %} +
+
+ {% t .subtitle %} +
+
+ {% include "learning_paths_index", items: learning_paths.available%} +
+
+
+{% include "footer" %} diff --git a/Custom_Templates/customer_templates/BigIdeas Sandbox/styles.css.liquid b/Custom_Templates/customer_templates/BigIdeas Sandbox/styles.css.liquid new file mode 100644 index 00000000..9fcd38f1 --- /dev/null +++ b/Custom_Templates/customer_templates/BigIdeas Sandbox/styles.css.liquid @@ -0,0 +1,60 @@ + /* + Put your custom overlay styles in here + You can use your northpass color palette in this file + +{{ color_palette.button_font_color }} +{{ color_palette.button_color }} +{{ color_palette.button_hover_color }} +{{ color_palette.header_font_color }} +{{ color_palette.header_font_hover_color }} +{{ color_palette.header_color }} +*/ + +h1 { + margin: 0; +} + +@media screen and (min-width: 768px) { + .np-resource-title { + margin-bottom: 0px; + background: #62769e; + color: #fff; + padding: 1rem 1.5rem; + } + .np-resource-subtitle { + padding: 0; + background: #62769e; + color: #fff; + padding: 0.5rem 1.5rem; + } + .np-learning-paths-main { + background: #fff; + } + .np-learning-path { + display: initial; + } + .np-learning-path-image { + width: 100% !important; + min-height: unset !important; + } + .lp-row, .courses-index { + margin-right: 0!important; + margin-left: 0!important; + } + .lp-card { + padding: 1.5rem !important; + } + .courses-index { + background: #fff; + padding-top: 2rem; + } + .np-resource-subtitle { + margin-bottom: 0px; + } + .lp-row { + background: #fff; + } + .mb-3 { + margin-bottom: 3rem; + } +} \ No newline at end of file diff --git a/CustomerNotes/Anthology/Anthology.md b/CustomerNotes/Anthology/Anthology.md index 9b1f6b5e..87b565ac 100644 --- a/CustomerNotes/Anthology/Anthology.md +++ b/CustomerNotes/Anthology/Anthology.md @@ -323,3 +323,10 @@ Workflow: Sign up page Modal/warning - Ask Rachel for designs Create Google Form for Amit to submit new domains + +## 11/3/2023 + +### Post mini-launch Discussion - KC + +All the small bug work is paying off! 100 people added without any tickets or issues! +TODO: Add 's' to "previous platform" and update email to "Campus or Work Email Address" diff --git a/CustomerNotes/BigIdeasLearning/BigIdeasLearning.md b/CustomerNotes/BigIdeasLearning/BigIdeasLearning.md index 2acbfcc4..a85213eb 100644 --- a/CustomerNotes/BigIdeasLearning/BigIdeasLearning.md +++ b/CustomerNotes/BigIdeasLearning/BigIdeasLearning.md @@ -391,3 +391,9 @@ DONE: Get Sophia a marketing number on usage increase between embedded and non-e * Procurement time for renewals: * In the past they took way too long * Numbers need to be in by December + +## 11/03/2023 + +### Check in with Sophia + + diff --git a/CustomerNotes/DataSnipper/DataSnipper.md b/CustomerNotes/DataSnipper/DataSnipper.md index 81c74b1b..b292f98b 100644 --- a/CustomerNotes/DataSnipper/DataSnipper.md +++ b/CustomerNotes/DataSnipper/DataSnipper.md @@ -214,3 +214,11 @@ Get UUIDs of Learning Paths for Gab Use Hubspot workflows for Learning Path inactivity nudges Ask about cloning NP courses into DataSnipper for DS implementation managers. Told him about embedding support articles. + +## 11/3/2023 + +### Big Sync with Hande, Dirk, and Sushant + +* Accredible's "Shared on LinkedIn" button: https://www.linkedin.com/sharing/share-offsite/?url=https%3A%2F%2Fwww.credential.net%2Fd9c470f9-5726-4ebe-9106-5ee2a325a0c6 +* Workato Link for DataSnipper Hubspot: webhooks.workato.com/webhooks/rest/bd1a1eb7-7e79-4208-a1db-8e9c7440bcc9/datasnipper-hubspot-flow + diff --git a/Scripts/API_Tests/Apikeys.py b/Scripts/API_Tests/Apikeys.py index 496c8505..0194f2b0 100644 --- a/Scripts/API_Tests/Apikeys.py +++ b/Scripts/API_Tests/Apikeys.py @@ -1,17 +1,17 @@ -skuid = "shdX7ht5PZHoOBKOZqZsTMaCJ" -unknown = "SlpQlju219WnWogn94dQUT6Yt" -forcemanager = "3ia7mWFkdeALYQFYoB51yh6Ov" -talkspace_core = "2vfHw6ksqGfT1gUhPM8pXx2wW" -wildhealth_edportal = "HWxj6VTNPwbc3WghFTPzr7SjE" -normsandbox = "SlpQlju219WnWogn94dQUT6Yt" -walmartprod = "6hUfJdAartHTHhHc0WIRZYPWe" -recast = "9LISLpq7Ebqot3Xrggn5twKWZ" -mizuno = "stXNF84HWL8aCGeRjHEo2rJ1U" -mizuno_running = "XeRrtgm0BFYPjOjPekVwCdGkW" -sps = "VNDXh8K4tLYJ-Nvp78bo6w" -anthology = "8ALsk8jDOlynEwn8ScMBSnG87" -talkspace_1099 = "ga5FEVoqrJRZWePHtNnyV2Ep7" -doximity_internal = "vAnSR4CvxpII6buj3uT23MPBY" -terminus_employee = "M2er8m0DMQyCyP7zOg3Gbae9k" -bigideas = "mgGWRtmhebC9xulTXeSohVtop" -zenjob = "LIXqtHXEqcXHyN0EtezngnpzA" +SKUID = "shdX7ht5PZHoOBKOZqZsTMaCJ" +UNKNOWN = "SlpQlju219WnWogn94dQUT6Yt" +FORCEMANAGER = "3ia7mWFkdeALYQFYoB51yh6Ov" +TALKSPACE_CORE = "2vfHw6ksqGfT1gUhPM8pXx2wW" +WILDHEALTH_EDPORTAL = "HWxj6VTNPwbc3WghFTPzr7SjE" +NORMSANDBOX = "SlpQlju219WnWogn94dQUT6Yt" +WALMARTPROD = "6hUfJdAartHTHhHc0WIRZYPWe" +RECAST = "9LISLpq7Ebqot3Xrggn5twKWZ" +MIZUNO = "stXNF84HWL8aCGeRjHEo2rJ1U" +MIZUNO_RUNNING = "XeRrtgm0BFYPjOjPekVwCdGkW" +SPS = "VNDXh8K4tLYJ-Nvp78bo6w" +ANTHOLOGY = "8ALsk8jDOlynEwn8ScMBSnG87" +TALKSPACE_1099 = "ga5FEVoqrJRZWePHtNnyV2Ep7" +DOXIMITY_INTERNAL = "vAnSR4CvxpII6buj3uT23MPBY" +TERMINUS_EMPLOYEE = "M2er8m0DMQyCyP7zOg3Gbae9k" +BIGIDEAS = "mgGWRtmhebC9xulTXeSohVtop" +ZENJOB = "LIXqtHXEqcXHyN0EtezngnpzA" diff --git a/Scripts/API_Tests/__pycache__/Apikeys.cpython-311.pyc b/Scripts/API_Tests/__pycache__/Apikeys.cpython-311.pyc index 4de73c57caedff57e385cb3d89a1b296ceef9184..cbb3aafd273c034ff21616512e443341be85cc82 100644 GIT binary patch delta 237 zcmYj~F;2rk5CBn-Y``Q^M9m*UnU1w@u@~R%p7zdioaUawBj69zd?5{g*ssuFiH2#W zm|`yVrEWgA+q-M@%-7=WQiwOs~3rU)IDP8987ChrCW zpNE1jimu%n77Yp5wQ{m%1|L9kRB=`*c961FfzA_)?fzVJVkYkGI>nsq7B~;$rCe$)RRL?S*|rZiE5}Rw)jVxJ(p1Q5U3g-dS+{Qzd-T9CVANd(H>ChQnqDI6<4n$u z2riEXZIHNjZCIjDz_yc``PqE`0_4VEDgXcg diff --git a/Scripts/API_Tests/talkspace_no-user_ids.py b/Scripts/API_Tests/talkspace_no-user_ids.py new file mode 100644 index 00000000..04dd2882 --- /dev/null +++ b/Scripts/API_Tests/talkspace_no-user_ids.py @@ -0,0 +1,36 @@ +import requests +import pandas as pd +import Apikeys + +APIKEY = Apikeys.TALKSPACE_1099 +HEADERS = {"accept": "application/json", "X-Api-Key": APIKEY} +DF = pd.DataFrame() + + +def find_no_ids(): + """ + This function paginates to find all + """ + count = 0 + user_list = [] + + while True: + count += 1 + url = f"https://api.northpass.com/v2/properties/people?limit=100&page={count}" + response = requests.get(url, headers=HEADERS) + response = response.json() + nextlink = response["links"] + data = response["data"][0]["attributes"]["properties"] + + if data["user_id"] is None: + user_tupe = (data["first_name"], data["last_name"], data["email"]) + user_list.append(user_tupe) + + if "next" not in nextlink: + break + pp = DF.from_dict(user_list) + pp.to_csv("~/Downloads/Talkspace_NoIDs_11.3.23.csv") + + +if __name__ == "__main__": + find_no_ids()