From c8adb915457e983eeac6cdc28bf2cf350466b093 Mon Sep 17 00:00:00 2001 From: Norm Rasmussen Date: Wed, 7 Aug 2024 19:37:41 +0200 Subject: [PATCH] Updated Anthology templates. Walmart and Datasnipper notes. Todos. --- .../_cards_course_revamped.html.liquid | 358 ++++++++++++++++++ .../_cards_searched_course.html.liquid | 7 +- .../_courses_catalog.html.liquid | 9 +- .../_filter_by_category.html.liquid | 86 ++++- .../_filter_by_product.html.liquid | 79 ++-- .../_header.html.liquid | 4 +- .../_product_bar.html.liquid | 97 +++++ .../_profile_card.html.liquid | 56 +-- .../_profile_logo_calculator.html.liquid | 42 +- .../_sub_navigation.html.liquid | 18 +- .../dashboard.html.liquid | 8 +- .../homepage.html.liquid | 59 +-- .../Anthology - Production/search.html.liquid | 54 ++- .../Anthology - Production/styles.css.liquid | 11 +- .../training_events.html.liquid | 1 + CustomerNotes/DataSnipper/DataSnipper.md | 5 + CustomerNotes/Walmart/Walmart.md | 6 + Scripts/API_Tests/api_extracts.py | 12 +- Todos.md | 9 +- 19 files changed, 782 insertions(+), 139 deletions(-) create mode 100644 Custom_Templates/customer_templates/Anthology - Production/_cards_course_revamped.html.liquid create mode 100644 Custom_Templates/customer_templates/Anthology - Production/_product_bar.html.liquid diff --git a/Custom_Templates/customer_templates/Anthology - Production/_cards_course_revamped.html.liquid b/Custom_Templates/customer_templates/Anthology - Production/_cards_course_revamped.html.liquid new file mode 100644 index 00000000..51445f46 --- /dev/null +++ b/Custom_Templates/customer_templates/Anthology - Production/_cards_course_revamped.html.liquid @@ -0,0 +1,358 @@ +{% if course.properties.product_names_for_course_cards == 'Anthology Reach' %} + {% assign product_logo = 'https://cdn.northpass.io/anthology/Reach.svg' %} + {% assign product_alt = 'Anthology Reach' %} + {% assign color_main = '#F06A32' %} + {% assign color_dark = '#731013' %} + {% assign color_light = '#F58545' %} +{% elsif course.properties.product_names_for_course_cards == 'Radius' %} + {% assign product_logo = 'blank' %} + {% assign color_main = '#F06A32' %} + {% assign color_dark = '#F3798A' %} + {% assign color_light = '#F58545' %} +{% elsif course.properties.product_names_for_course_cards == 'Anthology Engage' %} + {% assign product_logo = 'https://cdn.northpass.io/anthology/Engage.svg' %} + {% assign product_alt = 'Anthology Engage' %} + {% assign color_main = '#F06A32' %} + {% assign color_dark = '#F16423' %} + {% assign color_light = '#F3798A' %} +{% elsif course.properties.product_names_for_course_cards == 'Anthology Beacon' %} + {% assign product_logo = 'https://cdn.northpass.io/anthology/Beacon.svg' %} + {% assign product_alt = 'Anthology Beacon' %} + {% assign color_main = '#F06A32' %} + {% assign color_dark = '#D94827' %} + {% assign color_light = '#F16423' %} +{% elsif course.properties.product_names_for_course_cards == 'Anthology Milestone' %} + {% assign product_logo = 'https://cdn.northpass.io/anthology/Milestone.svg' %} + {% assign product_alt = 'Anthology Milestone' %} + {% assign color_main = '#F06A32' %} + {% assign color_dark = '#F3798A' %} + {% assign color_light = '#F9B5B5' %} +{% elsif course.properties.product_names_for_course_cards == 'Anthology Occupation Insight' %} + {% assign product_logo = 'https://cdn.northpass.io/anthology/Occupation+Insight.svg' %} + {% assign product_alt = 'Anthology Occupation Insight' %} + {% assign color_main = '#F06A32' %} + {% assign color_dark = '#F58545' %} + {% assign color_light = '#F9B5B5' %} +{% elsif course.properties.product_names_for_course_cards == 'Anthology Raise' %} + {% assign product_logo = 'https://cdn.northpass.io/anthology/Raise.svg' %} + {% assign product_alt = 'Anthology Raise' %} + {% assign color_main = '#F06A32' %} + {% assign color_dark = '#D94827' %} + {% assign color_light = '#F9B5B5' %} +{% elsif course.properties.product_names_for_course_cards == 'Anthology Digital Assistant' %} + {% assign product_logo = 'https://cdn.northpass.io/anthology/Digital+Assistant.svg' %} + {% assign product_alt = 'Anthology Digital Assistant' %} + {% assign color_main = '#F06A32' %} + {% assign color_dark = '#D94827' %} + {% assign color_light = '#F58545' %} +{% elsif course.properties.product_names_for_course_cards == 'Anthology Baseline' %} + {% assign product_logo = 'https://cdn.northpass.io/anthology/Baseline.svg' %} + {% assign product_alt = 'Anthology Baseline' %} + {% assign color_main = '#F06A32' %} + {% assign color_dark = '#731013' %} + {% assign color_light = '#D94827' %} +{% elsif course.properties.product_names_for_course_cards == 'Anthology Encompass' %} + {% assign product_logo = 'https://cdn.northpass.io/anthology/Encompass.svg' %} + {% assign product_alt = 'Anthology Encompass' %} + {% assign color_main = '#F06A32' %} + {% assign color_dark = '#731013' %} + {% assign color_light = '#F3798A' %} +{% elsif course.properties.product_names_for_course_cards == 'Talisma' %} + {% assign product_logo = 'blank' %} + {% assign color_main = '#F06A32' %} + {% assign color_dark = '#D94827' %} + {% assign color_light = '#F3798A' %} +{% elsif course.properties.product_names_for_course_cards == 'Anthology Student' %} + {% assign product_logo = 'https://cdn.northpass.io/anthology/Student.svg' %} + {% assign product_alt = 'Anthology Student' %} + {% assign color_main = '#82C342' %} + {% assign color_dark = '#96CA51' %} + {% assign color_light = '#F3E588' %} +{% elsif course.properties.product_names_for_course_cards == 'CVue' %} + {% assign product_logo = 'blank' %} + {% assign color_main = '#82C342' %} + {% assign color_dark = '#286734' %} + {% assign color_light = '#F3E588' %} +{% elsif course.properties.product_names_for_course_cards == 'Anthology Insight' %} + {% assign product_logo = 'https://cdn.northpass.io/anthology/Insight.svg' %} + {% assign product_alt = 'Anthology Insight' %} + {% assign color_main = '#82C342' %} + {% assign color_dark = '#286734' %} + {% assign color_light = '#82C342' %} +{% elsif course.properties.product_names_for_course_cards == 'Anthology Finance & HCM' %} + {% assign product_logo = 'https://cdn.northpass.io/anthology/Finance+%26+HCM.svg' %} + {% assign product_alt = 'Anthology Finance & HCM' %} + {% assign color_main = '#82C342' %} + {% assign color_dark = '#539542' %} + {% assign color_light = '#C9BD2E' %} +{% elsif course.properties.product_names_for_course_cards == 'Anthology Payroll' %} + {% assign product_logo = 'https://cdn.northpass.io/anthology/Payroll.svg' %} + {% assign product_alt = 'Anthology Payroll' %} + {% assign color_main = '#82C342' %} + {% assign color_dark = '#000000' %} + {% assign color_light = '#82C342' %} +{% elsif course.properties.product_names_for_course_cards == 'Anthology Academic Economics' %} + {% assign product_logo = 'https://cdn.northpass.io/anthology/Academic+Economics.svg' %} + {% assign product_alt = 'Anthology Academic Economics' %} + {% assign color_main = '#82C342' %} + {% assign color_dark = '#000000' %} + {% assign color_light = '#286734' %} +{% elsif course.properties.product_names_for_course_cards == 'Blackboard Learn' %} + {% assign product_logo = 'https://cdn.northpass.io/anthology/BBLearn.svg' %} + {% assign product_alt = 'Blackboard Learn' %} + {% assign color_main = '#1BA8E1' %} + {% assign color_dark = '#027BB6' %} + {% assign color_light = '#1BA8E1' %} +{% elsif course.properties.product_names_for_course_cards == 'Anthology Ally' %} + {% assign product_logo = 'https://cdn.northpass.io/anthology/Ally.svg' %} + {% assign product_alt = 'Anthology Ally' %} + {% assign color_main = '#1BA8E1' %} + {% assign color_dark = '#1BA8E1' %} + {% assign color_light = '#A3DBDC' %} +{% elsif course.properties.product_names_for_course_cards == 'Anthology Course Evaluations' %} + {% assign product_logo = 'https://s3.amazonaws.com/static.northpass.com/anthology/Course+Evaluations.svg' %} + {% assign product_alt = 'Anthology Course Evaluations' %} + {% assign color_main = '#1BA8E1' %} + {% assign color_dark = '#004C6D' %} + {% assign color_light = '#027BB6' %} +{%- comment -%} NEED DIFF IMG FORMAT FOR THIS ONE {%- endcomment -%} +{% elsif course.properties.product_names_for_course_cards == 'Anthology Evaluate' %} + {% assign product_logo = 'blank' %} + {% assign color_main = '#1BA8E1' %} + {% assign color_dark = '#027BB6' %} + {% assign color_light = '#A3DBDC' %} +{% elsif course.properties.product_names_for_course_cards == 'Anthology Portfolio' %} + {% assign product_logo = 'https://cdn.northpass.io/anthology/Portfolio.svg' %} + {% assign product_alt = 'Anthology Portfolio' %} + {% assign color_main = '#1BA8E1' %} + {% assign color_dark = '#0090A1' %} + {% assign color_light = '#5CC6CC' %} +{% elsif course.properties.product_names_for_course_cards == 'Anthology Program Review' %} + {% assign product_logo = 'https://s3.amazonaws.com/static.northpass.com/anthology/Program+Review.svg' %} + {% assign product_alt = 'Anthology Program Review' %} + {% assign color_main = '#1BA8E1' %} + {% assign color_dark = '#027BB6' %} + {% assign color_light = '#5CC6CC' %} +{% elsif course.properties.product_names_for_course_cards == 'Anthology Planning' %} + {% assign product_logo = 'https://cdn.northpass.io/anthology/Planning.svg' %} + {% assign product_alt = 'Anthology Planning' %} + {% assign color_main = '#1BA8E1' %} + {% assign color_dark = '#000000' %} + {% assign color_light = '#004C6D' %} +{% elsif course.properties.product_names_for_course_cards == 'Anthology Accreditation' %} + {% assign product_logo = 'https://cdn.northpass.io/anthology/Accreditation.svg' %} + {% assign product_alt = 'Anthology Accreditation' %} + {% assign color_main = '#1BA8E1' %} + {% assign color_dark = '#0090A1' %} + {% assign color_light = '#1BA8E1' %} +{% elsif course.properties.product_names_for_course_cards == 'Anthology 101' %} + {% assign product_logo = 'blank' %} + {% assign color_main = '#7F59A5' %} + {% assign color_dark = '#573376' %} + {% assign color_light = '#7F59A5' %} +{% elsif course.properties.product_names_for_course_cards == 'Academy Use & Navigation' %} + {% assign product_logo = 'blank' %} + {% assign color_main = '#7F59A5' %} + {% assign color_dark = '#6283C2' %} + {% assign color_light = '#87ADDB' %} +{% elsif course.properties.product_names_for_course_cards == 'Data Strategy' %} + {% assign product_logo = 'blank' %} + {% assign color_main = '#7F59A5' %} + {% assign color_dark = '#000000' %} + {% assign color_light = '#573376' %} +{% elsif course.properties.product_names_for_course_cards == 'Faculty Development' %} + {% assign product_logo = 'blank' %} + {% assign color_main = '#7F59A5' %} + {% assign color_dark = '#7F59A5' %} + {% assign color_light = '#AA7FB8' %} +{% elsif course.properties.product_names_for_course_cards == 'Power BI' %} + {% assign product_logo = 'blank' %} + {% assign color_main = '#7F59A5' %} + {% assign color_dark = '#573376' %} + {% assign color_light = '#87ADDB' %} +{% elsif course.properties.product_names_for_course_cards == 'Professional Development' %} + {% assign product_logo = 'blank' %} + {% assign color_main = '#7F59A5' %} + {% assign color_dark = '#000000' %} + {% assign color_light = '#87ADDB' %} +{% else %} + {% assign product_logo = 'blank' %} + {% assign color_main = '#DCE4E9' %} + {% assign color_dark = '#747A7B' %} + {% assign color_light = '#B2B7BA' %} +{% endif %} + +{% unless flag == 'dashboard' %} + {% assign flag = '' %} +{% endunless %} + +
+
+
+
+
+
+ {% if product_logo != 'blank' %} + + {% else %} + Anthology + {% endif %} +
+
+ {% comment %}
{% endcomment %} +
+
+

+ {{ course.name }} +

+
+ +
+ {% if flag == 'dashboard' %} +
+
+
+
+
+
+ {% endif %} + + + {% assign act_count = 0 %} + {% for section in course.sections %} + {% for activity in section.activities %} + {% assign act_count = act_count| plus: 1 %} + {% endfor %} + {% endfor %} + {{ act_count }} {% if act_count == 1 %}Activity{% else %}Activities{% endif %} + + + {% capture course_path %}{% route course, id: course.id %}{% endcapture %} + {% if course.has_to_restart? %} + {% include "course_version_outdated_popup", path: course_path %} + {% endif %} + + {% if course.progress > 0 and course.progress < 100 %} + Continue + {% else %} + View + {% endif %} + +
+
+
+
+ + + \ No newline at end of file diff --git a/Custom_Templates/customer_templates/Anthology - Production/_cards_searched_course.html.liquid b/Custom_Templates/customer_templates/Anthology - Production/_cards_searched_course.html.liquid index 5477203e..0893528e 100644 --- a/Custom_Templates/customer_templates/Anthology - Production/_cards_searched_course.html.liquid +++ b/Custom_Templates/customer_templates/Anthology - Production/_cards_searched_course.html.liquid @@ -190,7 +190,12 @@ {% endfor %} {% endfor %} -
+{% assign allCats = '' %} +{% for category in course.categories %} + {% assign allCats = allCats | append: category.name | append: ' || '%} +{% endfor %} + +
{%- comment -%} Catalog is not used in this school. The "catalog" is the set of unstarted enrolled courses shown at the homepage {%- endcomment -%} -
+
+ {% comment %} row row-with-thumbnails {% endcomment %} {% for course in courses.enrolled %} {%- comment -%} {% unless course.progress > 0 %} {% endunless %} {%- endcomment -%}
{%- comment -%} {% include "cards_course" with course, flag: 'catalog' %} {%- endcomment -%} - {% include "cards_course" with course, flag: 'null' %} + {% if current_person.email contains '+preview' or current_person.email == 'kfelton@anthology.com'%} + {% include "cards_course_revamped" with course, flag: 'null' %} + {% else %} + {% include "cards_course" with course, flag: 'null' %} + {% endif %}
{% endfor %}
diff --git a/Custom_Templates/customer_templates/Anthology - Production/_filter_by_category.html.liquid b/Custom_Templates/customer_templates/Anthology - Production/_filter_by_category.html.liquid index 51f6f212..032ab0df 100644 --- a/Custom_Templates/customer_templates/Anthology - Production/_filter_by_category.html.liquid +++ b/Custom_Templates/customer_templates/Anthology - Production/_filter_by_category.html.liquid @@ -5,29 +5,89 @@ type="text" name="category-filter-dropdown" id="category-filter-dropdown" - onchange="filterCatalog()" + onchange="filterByCategory()" > {% assign sorted_categories = current_school.filterable_categories | sort: "name" %} - + - {% for category in sorted_categories %} - + {% assign renderCat = false %} + + {% for course in courses.enrolled %} + {% for course_category in course.categories %} + {% if course_category.id == category.id %} + {% assign renderCat = true %} + {% endif %} + {% endfor %} + {% endfor %} + + {% comment %} Need to iterate over all filterable categories, target all searched cards, check if cat exists, render if found {% endcomment %} + + {% comment %} Need to generate category entires dynamically? Might not be possible because liquid is server side. Would need to pull all cats before load but all Searched Results after render {% endcomment %} + + {%if renderCat %} + + {% endif %} {% endfor %} -
\ No newline at end of file diff --git a/Custom_Templates/customer_templates/Anthology - Production/_filter_by_product.html.liquid b/Custom_Templates/customer_templates/Anthology - Production/_filter_by_product.html.liquid index c6653e79..d8ac1901 100644 --- a/Custom_Templates/customer_templates/Anthology - Production/_filter_by_product.html.liquid +++ b/Custom_Templates/customer_templates/Anthology - Production/_filter_by_product.html.liquid @@ -7,7 +7,7 @@ id="product-filter-dropdown" onchange="filterByProduct()" > - +
@@ -64,35 +64,67 @@ 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].classList.contains('hidden-by-search')){ + // allLearning[i].style.display = 'block'; + // } + + allLearning[i].style.display = 'block'; + allLearning[i].classList.remove('hidden-by-product'); + allLearning[i].classList.remove('filtered'); + } else { if(allLearning[i].dataset.product != event.target.value){ allLearning[i].style.display = 'none'; + allLearning[i].classList. add('hidden-by-product'); allLearning[i].classList.add('filtered'); } else { - if(!allLearning[i].classList.contains('hidden-by-search')){ - allLearning[i].style.display = 'block'; - } + // if(!allLearning[i].classList.contains('hidden-by-search')){ + // allLearning[i].style.display = 'block'; + // } + allLearning[i].style.display = 'block'; + allLearning[i].classList.remove('hidden-by-product'); 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'; - // }; - // }; - // }; - } + console.log($("#product-filter-dropdown > option:selected").text()); + + + + let allCategoryFiltersProduct = document.querySelectorAll('.category-filter-entry'); + let allSearchedResultsProduct = document.querySelectorAll('.course-card'); + + for(let i = 1; i < allCategoryFiltersProduct.length; i++){ + allCategoryFiltersProduct[i].style.display = 'block'; + } + + for(let i = 1; i < allCategoryFiltersProduct.length; i++){ + let catFound = false; + + for(let j = 0; j < allSearchedResultsProduct.length; j++){ + + if(allSearchedResultsProduct[j].dataset.categories.indexOf(allCategoryFiltersProduct[i].getAttribute('value')) > -1){ + if(allSearchedResultsProduct[j].style.display == 'block'){ + catFound = true; + } + } + } + + if(!catFound){ + allCategoryFiltersProduct[i].style.display = 'none'; + } else { + allCategoryFiltersProduct[i].style.display = 'block'; + } + + $('#category-filter-dropdown > option:nth-child(1)').attr('selected', true); + + // Last step is to return cat dropdown to always be all cats on product selection + // This will prevent cats that shouldnt be present from remaining selected + + // $('#category-filter-dropdown > option:nth-child(1)').text('All Categories'); + $('#category-filter-dropdown').val('Default'); + } + }; + } {% elsif page == 'Dashboard' %} if(allProductTypesDash.length > 1){ allProductTypesDash.map((product) => { @@ -121,8 +153,6 @@ if(event.target.value == 'Default'){ inProgressCourses[i].style.display = 'block'; } else { - //console.log(event.target.value) - //console.log(inProgressCourses[i].dataset.product) if(inProgressCourses[i].dataset.product != event.target.value){ inProgressCourses[i].style.display = 'none'; } else { @@ -135,7 +165,6 @@ if(event.target.value == 'Default'){ completedCourses[i].style.display = 'block'; } else { - console.log(completedCourses[i].dataset.product) if(completedCourses[i].dataset.product != event.target.value){ completedCourses[i].style.display = 'none'; } else { diff --git a/Custom_Templates/customer_templates/Anthology - Production/_header.html.liquid b/Custom_Templates/customer_templates/Anthology - Production/_header.html.liquid index 48146e4d..3cd374d7 100644 --- a/Custom_Templates/customer_templates/Anthology - Production/_header.html.liquid +++ b/Custom_Templates/customer_templates/Anthology - Production/_header.html.liquid @@ -161,7 +161,7 @@ {% endfor %} {%- endcomment -%} -
+ {% comment %}
{% for link in navigations.sub_navigation %} {% unless link.label == 'Catalog' or link.label == 'Learning Paths' %}
@@ -174,7 +174,7 @@ {% endunless %} {% endfor %}
-
+
{% endcomment %} {%- comment -%} Desktop Search Box {%- endcomment -%} {% if current_person.signed_in? %} diff --git a/Custom_Templates/customer_templates/Anthology - Production/_product_bar.html.liquid b/Custom_Templates/customer_templates/Anthology - Production/_product_bar.html.liquid new file mode 100644 index 00000000..aed490b0 --- /dev/null +++ b/Custom_Templates/customer_templates/Anthology - Production/_product_bar.html.liquid @@ -0,0 +1,97 @@ + + + \ No newline at end of file diff --git a/Custom_Templates/customer_templates/Anthology - Production/_profile_card.html.liquid b/Custom_Templates/customer_templates/Anthology - Production/_profile_card.html.liquid index 0add6bca..264c322c 100644 --- a/Custom_Templates/customer_templates/Anthology - Production/_profile_card.html.liquid +++ b/Custom_Templates/customer_templates/Anthology - Production/_profile_card.html.liquid @@ -67,22 +67,22 @@ {% assign product_sub_level = name_level_pair | slice: 1 | strip %} {% if product_sub_level contains 'Essential' %} -
  • - {% include "profile_logo_calculator", product: name_level_pair[0] %} - {%- comment -%} + {% include "profile_logo_calculator", product: name_level_pair[0] %} + {%- comment -%}
  • + {{ name_level_pair[0] }} - {%- endcomment -%} - {%- comment -%} + + {{ name_level_pair[1] }} - {%- endcomment -%} - {%- comment -%} {% if '{{name_level_pair[1]}}' == 'ESS' %} + + {% if '{{name_level_pair[1]}}' == 'ESS' %} Essential {% elsif '{{name_level_pair[1]}}' == 'ENH' %} Enhanced {% elsif '{{name_level_pair[1]}}' == 'ENH+' %} Enhanced Plus - {% endif %} {%- endcomment -%} -
  • + {% endif %} + {%- endcomment -%} {% endif %} {% endfor %} @@ -110,22 +110,9 @@ {% if product_sub_level contains 'Enhanced' %} {% unless product_sub_level contains 'Enhanced+' %} -
  • - {% include "profile_logo_calculator", product: name_level_pair[0] %} - {%- comment -%} - {{ name_level_pair[0] }} - {%- endcomment -%} - {%- comment -%} - {{ name_level_pair[1] }} - {%- endcomment -%} - {%- comment -%} {% if '{{name_level_pair[1]}}' == 'ESS' %} - Essential - {% elsif '{{name_level_pair[1]}}' == 'ENH' %} - Enhanced - {% elsif '{{name_level_pair[1]}}' == 'ENH+' %} - Enhanced Plus - {% endif %} {%- endcomment -%} -
  • + {% include "profile_logo_calculator", product: name_level_pair[0] %} + {% comment %}
  • +
  • {% endcomment %} {% endunless %} {% endif %} {% endfor %} @@ -151,22 +138,9 @@ {% assign product_sub_level = name_level_pair | slice: 1 | strip %} {% if product_sub_level contains 'Enhanced+' %} -
  • - {% include "profile_logo_calculator", product: name_level_pair[0] %} - {%- comment -%} - {{ name_level_pair[0] }} - {%- endcomment -%} - {%- comment -%} - {{ name_level_pair[1] }} - {%- endcomment -%} - {%- comment -%} {% if '{{name_level_pair[1]}}' == 'ESS' %} - Essential - {% elsif '{{name_level_pair[1]}}' == 'ENH' %} - Enhanced - {% elsif '{{name_level_pair[1]}}' == 'ENH+' %} - Enhanced Plus - {% endif %} {%- endcomment -%} -
  • + {% include "profile_logo_calculator", product: name_level_pair[0] %} + {% comment %}
  • +
  • {% endcomment %} {% endif %} {% endfor %} diff --git a/Custom_Templates/customer_templates/Anthology - Production/_profile_logo_calculator.html.liquid b/Custom_Templates/customer_templates/Anthology - Production/_profile_logo_calculator.html.liquid index 888b55bf..744b05e4 100644 --- a/Custom_Templates/customer_templates/Anthology - Production/_profile_logo_calculator.html.liquid +++ b/Custom_Templates/customer_templates/Anthology - Production/_profile_logo_calculator.html.liquid @@ -2,69 +2,101 @@ {% if product_name contains 'Reach' %} {% assign product_logo = 'https://cdn.northpass.io/anthology/Reach.svg' %} + {% assign product_query = 'Reach' %} {% elsif product_name contains 'Radius' %} {% assign product_logo = 'blank' %} + {% assign product_query = 'Radius' %} {% elsif product_name contains 'Engage' %} {% assign product_logo = 'https://cdn.northpass.io/anthology/Engage.svg' %} + {% assign product_query = 'Engage' %} {% elsif product_name contains 'Beacon' %} {% assign product_logo = 'https://cdn.northpass.io/anthology/Beacon.svg' %} + {% assign product_query = 'Beacon' %} {% elsif product_name contains 'Milestone' %} {% assign product_logo = 'https://cdn.northpass.io/anthology/Milestone.svg' %} + {% assign product_query = 'Milestone' %} {% elsif product_name contains 'Occupation Insight' %} {% assign product_logo = 'https://cdn.northpass.io/anthology/Occupation+Insight.svg' %} + {% assign product_query = 'Occupation Insight' %} {% elsif product_name contains 'Raise' %} {% assign product_logo = 'https://cdn.northpass.io/anthology/Raise.svg' %} + {% assign product_query = 'Raise' %} {% elsif product_name contains 'Digital Assistant' %} {% assign product_logo = 'https://s3.amazonaws.com/static.northpass.com/anthology/Digital+Assistant.svg' %} + {% assign product_query = 'Digital Assistant' %} {% elsif product_name contains 'Baseline' %} {% assign product_logo = 'https://cdn.northpass.io/anthology/Baseline.svg' %} + {% assign product_query = 'Baseline' %} {% elsif product_name contains 'Encompass' %} {% assign product_logo = 'https://cdn.northpass.io/anthology/Encompass.svg' %} + {% assign product_query = 'Encompass' %} {% elsif product_name contains 'Talisma' %} {% assign product_logo = 'blank' %} + {% assign product_query = 'Talisma' %} {% elsif product_name contains 'Student' %} {% assign product_logo = 'https://cdn.northpass.io/anthology/Student.svg' %} + {% assign product_query = 'Student' %} {% elsif product_name contains 'CVue' %} {% assign product_logo = 'blank' %} + {% assign product_query = 'CVue' %} {% elsif product_name contains 'Insight' %} {% assign product_logo = 'https://cdn.northpass.io/anthology/Insight.svg' %} + {% assign product_query = 'Insight' %} {% elsif product_name contains 'Finance & HCM' %} {% assign product_logo = 'https://s3.amazonaws.com/static.northpass.com/anthology/Finance+%26+HCM.svg' %} + {% assign product_query = 'Finance & HCM' %} {% elsif product_name contains 'Payroll' %} {% assign product_logo = 'https://cdn.northpass.io/anthology/Payroll.svg' %} + {% assign product_query = 'Payroll' %} {% elsif product_name contains 'Academic Economics' %} {% assign product_logo = 'https://s3.amazonaws.com/static.northpass.com/anthology/Academic+Economics.svg' %} + {% assign product_query = 'Academic Economics' %} {% elsif product_name contains 'Blackboard Learn' %} {% assign product_logo = 'https://cdn.northpass.io/anthology/BBLearn.svg' %} + {% assign product_query = 'Blackboard Learn' %} {% elsif product_name contains 'Ally' %} {% assign product_logo = 'https://cdn.northpass.io/anthology/Ally.svg' %} + {% assign product_query = 'Ally' %} {% elsif product_name contains 'Course Evaluations' %} {% assign product_logo = 'https://s3.amazonaws.com/static.northpass.com/anthology/Course+Evaluations.svg' %} + {% assign product_query = 'Course Evaluations' %} {%- comment -%} NEED DIFF IMG FORMAT FOR THIS ONE {%- endcomment -%} {% elsif product_name contains 'Evaluate' %} {% assign product_logo = 'blank' %} + {% assign product_query = 'Evaluate' %} {% elsif product_name contains 'Portfolio' %} {% assign product_logo = 'https://cdn.northpass.io/anthology/Portfolio.svg' %} + {% assign product_query = 'Portfolio' %} {% elsif product_name contains 'Program Review' %} {% assign product_logo = 'https://s3.amazonaws.com/static.northpass.com/anthology/Program+Review.svg' %} + {% assign product_query = 'Program Review' %} {% elsif product_name contains 'Planning' %} {% assign product_logo = 'https://cdn.northpass.io/anthology/Planning.svg' %} + {% assign product_query = 'Planning' %} {% elsif product_name contains 'Accreditation' %} {% assign product_logo = 'https://cdn.northpass.io/anthology/Accreditation.svg' %} + {% assign product_query = 'Accreditation' %} {% elsif product_name contains '101' %} {% assign product_logo = 'blank' %} + {% assign product_query = '101' %} {% elsif product_name contains 'Academy Use & Navigation' %} {% assign product_logo = 'blank' %} + {% assign product_query = 'Academy Use & Navigation' %} {% elsif product_name contains 'Data Strategy' %} {% assign product_logo = 'blank' %} + {% assign product_query = 'Data Strategy' %} {% elsif product_name contains 'Faculty Development' %} {% assign product_logo = 'blank' %} + {% assign product_query = 'Faculty Development' %} {% elsif product_name contains 'Power BI' %} {% assign product_logo = 'blank' %} + {% assign product_query = 'Power BI' %} {% elsif product_name contains 'Professional Development' %} {% assign product_logo = 'blank' %} + {% assign product_query = 'Professional Development' %} {% else %} {% assign product_logo = 'blank' %} + {% assign product_query = 'blank' %} {% endif %} {% comment %} {% if product_logo contains 'blank' %} @@ -78,7 +110,11 @@ {% endif %} {% endcomment %} {% unless product_logo contains 'blank' %} - - - +
  • + + + + + +
  • {% endunless %} diff --git a/Custom_Templates/customer_templates/Anthology - Production/_sub_navigation.html.liquid b/Custom_Templates/customer_templates/Anthology - Production/_sub_navigation.html.liquid index 2fe4c5f9..d5d64997 100644 --- a/Custom_Templates/customer_templates/Anthology - Production/_sub_navigation.html.liquid +++ b/Custom_Templates/customer_templates/Anthology - Production/_sub_navigation.html.liquid @@ -1,4 +1,4 @@ - {% endcomment %} + \ No newline at end of file diff --git a/Custom_Templates/customer_templates/Anthology - Production/dashboard.html.liquid b/Custom_Templates/customer_templates/Anthology - Production/dashboard.html.liquid index b60be675..b1f0486f 100644 --- a/Custom_Templates/customer_templates/Anthology - Production/dashboard.html.liquid +++ b/Custom_Templates/customer_templates/Anthology - Production/dashboard.html.liquid @@ -1,6 +1,12 @@ {% include "header" %} {% include "course_version_outdated_alert", courses: courses.enrolled %} - +{% include "sub_navigation" %} +{% comment %} {% if current_person.email contains '+preview' or current_person.email == 'kfelton@anthology.com'%} + {% assign sub_levels_length = current_person.properties.subscription_levels | size %} + {% if sub_levels_length > 0 %} + {% include "product_bar" %} + {% endif %} +{% endif %} {% endcomment %}
    {% include "profile_card" %} diff --git a/Custom_Templates/customer_templates/Anthology - Production/homepage.html.liquid b/Custom_Templates/customer_templates/Anthology - Production/homepage.html.liquid index 4aac7a55..e153f135 100644 --- a/Custom_Templates/customer_templates/Anthology - Production/homepage.html.liquid +++ b/Custom_Templates/customer_templates/Anthology - Production/homepage.html.liquid @@ -52,6 +52,14 @@
    + +{% if current_person.email contains '+preview' or current_person.email == 'kfelton@anthology.com'%} + {% assign sub_levels_length = current_person.properties.subscription_levels | size %} + {% if sub_levels_length > 0 %} + {% include "product_bar" %} + {% endif %} +{% endif %} +
    {% comment %} {% include "browse_by_product" %} {% endcomment %} @@ -81,8 +89,8 @@ {% comment %} ----------------------------------------------------------------- {% endcomment %} {% comment %} FOR NORM: {% endcomment %} - {% comment %} Ln 67-80 >> new search {% endcomment %} - {% comment %} Ln 83-92 >> old search {% endcomment %} + {% comment %} Ln 70-80 >> new search {% endcomment %} + {% comment %} Ln 89-99 >> old search {% endcomment %} {% comment %} ----------------------------------------------------------------- {% endcomment %} @@ -315,18 +323,6 @@ margin-bottom: 12px } - @media screen and (min-width: 1651px){ - .np-main{ - margin-top: 400px; - } - } - - @media screen and (min-width: 1440px){ - .np-main{ - margin-top: 350px; - } - } - @media screen and (min-width: 768px){ .np-main{ margin-top: none; @@ -342,12 +338,6 @@ max-width: 100%; } - {% comment %} - /*.np-subpage-container{ - padding: 50px 50px 184px; - }*/ - {% endcomment %} - .dropdown-menu{ left: 0; right: unset; @@ -355,23 +345,38 @@ .catalog-search-component{ margin-bottom: 0; - /* margin-right: 50px; */ } } @media screen and (min-width: 1440px){ + /* .np-main{ + margin-top: 350px; + } */ + + .product-bar{ + margin-top: 25.5%; + } + .np-homepage-hero{ width: calc(100vw + 1.75em); position: absolute; left: 0; } - - /* .catalog-header-wrapper{ - margin-top: 300px; - } */ } - @media screen and (min-width: 2200px){ + @media screen and (min-width: 1651px){ + .np-main{ + margin-top: 400px; + } + } + + @media screen and (min-width: 1900px){ + .np-main{ + margin-top: 425px; + } + } + + /* @media screen and (min-width: 2200px){ .catalog-header-wrapper{ margin-top: 350px; } @@ -381,5 +386,5 @@ .catalog-header-wrapper{ margin-top: 400px; } - } + } */ diff --git a/Custom_Templates/customer_templates/Anthology - Production/search.html.liquid b/Custom_Templates/customer_templates/Anthology - Production/search.html.liquid index 001cff10..59b49e02 100644 --- a/Custom_Templates/customer_templates/Anthology - Production/search.html.liquid +++ b/Custom_Templates/customer_templates/Anthology - Production/search.html.liquid @@ -1,8 +1,8 @@ {% include "header" %}
    -
    + {% comment %}
    {% t .title %} -
    +
    {% endcomment %}
    {% assign render_search = false %} {% if results.items.any? %} @@ -27,19 +27,25 @@ {% endfor %} {% endif %} -
    - {% t .showing %} +
    + {% comment %} {% t .showing %} {% endcomment %} {% if render_search %} {{ result_count }} {% else %} {{ results.count }} {% endif %} - {% t .results_for %} + {% comment %} {% t .results_for %} {% endcomment %} + Resources For "{{ results.term }}"
    {% if render_search %} - {% capture label %}{% t shared.filters.by_type %}{% endcapture %} - {% include "filter_by_product", page: 'Search' %} +
    +
    Filter By:
    + + {% capture label %}{% t shared.filters.by_type %}{% endcapture %} + {% include "filter_by_product", page: 'Search' %} + {% include "filter_by_category", page: 'Search' %} +
    {% endif %}
    {% if render_search %} @@ -62,6 +68,18 @@ {% include "footer" %} + \ No newline at end of file diff --git a/Custom_Templates/customer_templates/Anthology - Production/styles.css.liquid b/Custom_Templates/customer_templates/Anthology - Production/styles.css.liquid index 9c617042..66c0448e 100644 --- a/Custom_Templates/customer_templates/Anthology - Production/styles.css.liquid +++ b/Custom_Templates/customer_templates/Anthology - Production/styles.css.liquid @@ -92,10 +92,13 @@ main{ .card-bottom-details{ align-items: center; + background: #f2f4f5; + border-radius: 4px; display: flex; font-size: 0.875em; flex-direction: row; justify-content: space-between; + padding: 10px; } .np-course-outline-content-activity-title, .np-course-outline-content-activity-link{ @@ -162,8 +165,8 @@ main{ .product-filter-dropdown, .category-filter-dropdown{ background-color: #fefefe; - border-radius: 30px; - color: #595959; + border-radius: 4px; + color: #393939; font-size: 1em; font-weight: 700; height: 60px; @@ -178,11 +181,11 @@ main{ } .product-filter-dropdown{ - border: 1px solid #aa7fb9; + border: 1px solid #CE9DC7; } .category-filter-dropdown{ - border: 1px solid #ce9dc7; + border: 1px solid #CE9DC7; } @media screen and (min-width: 768px){ diff --git a/Custom_Templates/customer_templates/Anthology - Production/training_events.html.liquid b/Custom_Templates/customer_templates/Anthology - Production/training_events.html.liquid index 68b3a679..139717ee 100644 --- a/Custom_Templates/customer_templates/Anthology - Production/training_events.html.liquid +++ b/Custom_Templates/customer_templates/Anthology - Production/training_events.html.liquid @@ -1,4 +1,5 @@ {% include "header" %} +{% include "sub_navigation" %}
    diff --git a/CustomerNotes/DataSnipper/DataSnipper.md b/CustomerNotes/DataSnipper/DataSnipper.md index 7e3a6882..25c06661 100644 --- a/CustomerNotes/DataSnipper/DataSnipper.md +++ b/CustomerNotes/DataSnipper/DataSnipper.md @@ -355,3 +355,8 @@ Health Scoring for DataSnipper * KPIs are the health scores * Academy can negatively affect the score from the perspective if _no one_ accesses or completes a course. * 0-10, below 50% of people have completed a course, health score is 0 + +## 08-06-2024 + +Will be bringing on CC via Marketing. CE to be lead by Marketing. Dutch workforce contract - you get a month of holiday pay in July. Design stuff won't happen in earnest until the full handover happens. Dirk asked some questions about the flow of certain items in the academy. + diff --git a/CustomerNotes/Walmart/Walmart.md b/CustomerNotes/Walmart/Walmart.md index 067d9694..716e0b40 100644 --- a/CustomerNotes/Walmart/Walmart.md +++ b/CustomerNotes/Walmart/Walmart.md @@ -1038,3 +1038,9 @@ Running ETL Error screens? Which pages aren't working? They are looking for "error metrics". Negative KPIs across the business. This could be anything from an incorrect redirect, image not being displayed correctly. + +## 08-07-2024 + +Walmart meeting with Jessica and Mayra. Questions from Jessica: +* Automatic PDF with publishing. 99% done! +* Feedback from drivers - does blob storage help this project? Not really. The mechanism between capturing and sending feedback has too many variables. diff --git a/Scripts/API_Tests/api_extracts.py b/Scripts/API_Tests/api_extracts.py index 8c2e6b92..85a66328 100644 --- a/Scripts/API_Tests/api_extracts.py +++ b/Scripts/API_Tests/api_extracts.py @@ -5,16 +5,16 @@ import urllib.request import base64 # Variables of the needed elements -extract_id = "506c7250-2365-456d-be91-b1e146a398fe" -auth_token = "g5k8QpUlePaL5UFSz9Kob4nbYHIyEH0W2lhtbrDu" +extract_id = "ENTER_EXTRACT_ID" +auth_token = "ENTER_AUTH_TOKEN" base_url = "https://analytics.northpass.io/extracts" -encryption_key = "ba6iy6jPmTxlIs73f+7FcXC8FDXt98mW46WbmKpLPsY=" +encryption_key = "ENTER_ENCRYPTION_KEY" current_dir = "./" # Set the API endpoint, authentication headers, and other parameters headers = { "accept": "application/json", - "X-Api-Key": "g5k8QpUlePaL5UFSz9Kob4nbYHIyEH0W2lhtbrDu", + "X-Api-Key": "ENTER_API_KEY", } @@ -37,9 +37,9 @@ def download_file(base_url, headers, extract_id, file_id, encryption_key, iv): download_url = data["url"] # Downloads the file to the cwd - url_resp = urllib.request.urlretrieve(download_url, "UXDesign_API_Extract.csv.gz") + url_resp = urllib.request.urlretrieve(download_url, "Client_API_Extract.csv.gz") file_name = url_resp[0] - decrypted_file = "UXDesign_Accessible.csv.gz" + decrypted_file = "Client_File.csv.gz" # Base64 > Hex encryption_key = base64.b64decode(encryption_key).hex() diff --git a/Todos.md b/Todos.md index f9eb5ed3..68096832 100644 --- a/Todos.md +++ b/Todos.md @@ -367,11 +367,11 @@ message](https://northpasshq.slack.com/archives/C04RER4PH09/p1709147957374999?th ## 07-15-2024 -- [ ] MATTR - Create ticket spreadsheet to share with client. + - [ ] MATTR - Create ticket spreadsheet to share with client. ## 07-17-2024 -- [ ] Chubb - Send Steve Google App Script & ask Kim what report she needs + - [ ] Chubb - Send Steve Google App Script & ask Kim what report she needs - [ ] Chubb - Ask SE for Delivery Log export from db. They are trying to find the best way to reminder agents who haven't started anything to actually start the path. Include all the data. - [ ] Volt - They would like an Archive Webhook. "It's necessary for the whole equation of getting everything up to enterprise level standards." No rush but it would help fill in the whole circle. - [X] HH - Looker: Course Completion, only yes, last 24 hours, scheduled for "results are changed" and 8am every day. @@ -382,8 +382,11 @@ message](https://northpasshq.slack.com/archives/C04RER4PH09/p1709147957374999?th ## 08-06-2024 -- [ ] Datasnipper - Will be bringing on CC via Marketing. CE to be lead by Marketing. Dutch workforce contract - you get a month of holiday pay in July. Design stuff won't happen in earnest until the full handover happens. Dirk asked some questions about the flow of certain items in the academy. - [ ] Datasnipper - When you click Start LP, drop you into the first activity of the first course regardless of LP flow. - [ ] Datasnipper - When LP is free form, at what point do you get enrolled in the courses - enroll or start path? - [ ] Walmart Luminate - Write up that we CANNOT do their redirect, that we will help with their auth, and the language setup will need to be the same as Mexico. +## 08-07-2024 + +- [ ] Walmart - Resurrect the feedback mechanism and how we would have built it. What happens when someone clicks thumbs up? +