From fa77a691324ca61232b2961be7bd327313d06c11 Mon Sep 17 00:00:00 2001 From: Norm Rasmussen Date: Tue, 14 Apr 2026 17:14:29 -0400 Subject: [PATCH] thats it. last commit at gainsight. closing this repo soon. --- .../_language_selector.html.liquid | 2 +- .../Sandata Learn/login.html.liquid | 2 + .../_category_cards.html.liquid | 324 ++++++------------ .../__pycache__/Apikeys.cpython-310.pyc | Bin 1824 -> 1307 bytes Scripts/API_Tests/bulk_invite_and_props.py | 2 +- 5 files changed, 115 insertions(+), 215 deletions(-) diff --git a/Custom_Templates/customer_templates/Instacart - Partners/_language_selector.html.liquid b/Custom_Templates/customer_templates/Instacart - Partners/_language_selector.html.liquid index 7078e003..453e73b3 100644 --- a/Custom_Templates/customer_templates/Instacart - Partners/_language_selector.html.liquid +++ b/Custom_Templates/customer_templates/Instacart - Partners/_language_selector.html.liquid @@ -30,7 +30,7 @@ {% endif %} " onclick="toggleLanguageSelector('{{parentClass}}')"> Language -
+ English (USA) Español (Estados Unidos) {% comment %} Français  (Québec) {% endcomment %} diff --git a/Custom_Templates/customer_templates/Sandata Learn/login.html.liquid b/Custom_Templates/customer_templates/Sandata Learn/login.html.liquid index 33776909..2c935a9a 100644 --- a/Custom_Templates/customer_templates/Sandata Learn/login.html.liquid +++ b/Custom_Templates/customer_templates/Sandata Learn/login.html.liquid @@ -33,11 +33,13 @@ {% t .forgot_password %} + {% comment %} {% if features.account_creation? %} {% t shared.sign_up %} {% endif %} + {% endcomment %} {% if features.request_access? %} -
-
- Getting Started Category Icon -
-
-
-
New
-
{{school_category}} -
-
-
- -
{% include "filtered_courses_tray", category_name: school_category %} - {% endif %} - {% endfor %} - {% comment %} EARNINGS {% endcomment %} - {% for school_category in school_categories %} - {% if school_category == "Earnings" %} -
-
-
Earnings Category Icon -
-
-
-
New
-
-
{{school_category}} -
-
-
- -
{% include "filtered_courses_tray", category_name: school_category %} - {% endif %} - {% endfor %} - {% comment %} SHOPPING & DELIVERY {% endcomment %} - {% for school_category in school_categories %} - {% if school_category == "Shopping & Delivery" %} -
-
-
- Shopping & Delivery Category Icon -
-
-
-
New
-
-
{{school_category}}
-
-
- -
{% include "filtered_courses_tray", category_name: school_category %} - {% endif %} - {% endfor %} - {% comment %} DELIVERY {% endcomment %} - {% for school_category in school_categories %} - {% if school_category == "Delivery" %} -
-
-
- Delivery Category Icon -
-
-
-
New
-
-
{{school_category}}
-
-
- -
- {% include "filtered_courses_tray", category_name: school_category %} - {% endif %} - {% endfor %} - {% comment %} USING THE APP {% endcomment %} - {% for school_category in school_categories %} - {% if school_category == "Using the App" %} -
-
-
- Using the App Category Icon -
-
-
-
New
-
-
{{school_category}}
-
-
- -
- {% include "filtered_courses_tray", category_name: school_category %} - {% endif %} - {% endfor %} - {% comment %} CONTACTING CUSTOMERS {% endcomment %} - {% for school_category in school_categories %} - {% if school_category == "Contacting Customers" %} -
-
-
- Contacting Customers Category Icon -
-
-
-
New
-
-
{{school_category}}
-
-
-
- {% include "filtered_courses_tray", category_name: school_category %} - {% endif %} - {% endfor %} - {% comment %} SAFETY {% endcomment %} - {% for school_category in school_categories %} - {% if school_category == "Safety" %} -
-
-
- Safety Icon -
-
-
-
New
-
-
{{school_category}}
-
-
-
- {% include "filtered_courses_tray", category_name: school_category %} - {% endif %} - {% endfor %} - {% comment %} REWARDS {% endcomment %} - {% for school_category in school_categories %} - {% if school_category == "Rewards" %} -
-
-
- Rewards Icon -
-
-
-
New
-
-
{{school_category}}
-
-
-
- {% include "filtered_courses_tray", category_name: school_category %} - {% endif %} - {% endfor %} - - {% 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" or school_category == "Rewards" %} - {% if school_category == "Resource Bundles" %} - {% if features.learning_paths? and learning_paths.enrolled.any? %} -
-
-
- Category Icon -
-
-
Resource Bundles
-
-
- -
- {% 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 - {% elsif school_category == "Rewards" %} - Rewards Icon - {% elsif school_category == "Safety" %} - Safety Icon - {% else %} - Category Icon - {% endif %} -
-
-
-
New
-
-
{{school_category}}
-
-
- -
- {% include "filtered_courses_tray", category_name: school_category %} - {% endif %} - {% endunless %} - {% endfor %} - -{% endif %} +{% if courses.enrolled.any? %} + +{% comment %} + ============================================================================ + CATEGORY CARDS - Refactored for DRY & Maintainability + ============================================================================ + To add a new category: + 1. Add it to 'ordered_categories' in the desired position + 2. Add its icon URL to the icon lookup section below + That's it! No more copy-pasting 20 lines of code. + ============================================================================ +{% endcomment %} + +{% comment %} Define the display order for categories {% endcomment %} +{% assign ordered_categories = "Getting Started,Using the App,Earnings,Safety,Offer Acceptance,Arrival & Pick Up,Delivery,Shopping & Delivery,Returns,Rewards,Troubleshooting" | split: "," %} + +{% comment %} ==================== ORDERED CATEGORIES ==================== {% endcomment %} +{% for category_name in ordered_categories %} + {% for school_category in school_categories %} + {% if school_category == category_name %} + + {% comment %} Icon lookup - add new category icons here {% endcomment %} + {% case school_category %} + {% when "Getting Started" %} + {% assign category_icon = "https://cdn.northpass.io/walmart/categories-img-label.webp" %} + {% assign category_alt = "Getting Started Category Icon" %} + {% when "Using the App" %} + {% assign category_icon = "https://cdn.northpass.io/walmart/category-using-the-app-icon.webp" %} + {% assign category_alt = "Using the App Category Icon" %} + {% when "Earnings" %} + {% assign category_icon = "https://cdn.northpass.io/walmart/category-earnings-icon.webp" %} + {% assign category_alt = "Earnings Category Icon" %} + {% when "Safety" %} + {% assign category_icon = "https://cdn.northpass.io/walmart/category-safety-icon.webp" %} + {% assign category_alt = "Safety Icon" %} + {% when "Offer Acceptance" %} + {% assign category_icon = "https://cdn.northpass.io/walmart/category-offer-acceptance-icon.webp" %} + {% assign category_alt = "Offer Acceptance Icon" %} + {% when "Arrival & Pick Up" %} + {% assign category_icon = "https://cdn.northpass.io/walmart/category-arrival-pickup-icon.webp" %} + {% assign category_alt = "Arrival & Pick Up Icon" %} + {% when "Delivery" %} + {% assign category_icon = "https://cdn.northpass.io/walmart/category-delivery-icon.webp" %} + {% assign category_alt = "Delivery Category Icon" %} + {% when "Shopping & Delivery" %} + {% assign category_icon = "https://cdn.northpass.io/walmart/category-shopping-delivery-icon.webp" %} + {% assign category_alt = "Shopping & Delivery Category Icon" %} + {% when "Returns" %} + {% assign category_icon = "https://cdn.northpass.io/walmart/category-returns-icon.webp" %} + {% assign category_alt = "Returns Icon" %} + {% when "Rewards" %} + {% assign category_icon = "https://cdn.northpass.io/walmart/category-rewards-icon.webp" %} + {% assign category_alt = "Rewards Icon" %} + {% when "Troubleshooting" %} + {% assign category_icon = "https://cdn.northpass.io/walmart/category-troubleshooting-icon.webp" %} + {% assign category_alt = "Troubleshooting Icon" %} + {% endcase %} + +
+
+
+ {{ category_alt }} +
+
+
+
{{ school_category }}
+
+
+ +
+ {% include "filtered_courses_tray", category_name: school_category %} + + {% endif %} + {% endfor %} +{% endfor %} + +{% comment %} ==================== REMAINING CATEGORIES ==================== {% endcomment %} +{% comment %} Catches any categories not in the ordered list above {% endcomment %} +{% for school_category in school_categories %} + {% unless ordered_categories contains school_category %} + + {% comment %} Icon lookup for non-ordered categories {% endcomment %} + {% case school_category %} + {% when "Drop Off & Returns" %} + {% assign category_icon = "https://cdn.northpass.io/walmart/category-dropoff-returns-icon.webp" %} + {% when "Special Topics" %} + {% assign category_icon = "https://cdn.northpass.io/walmart/category-troubleshooting-icon.webp" %} + {% when "Trust & Safety" %} + {% assign category_icon = "https://cdn.northpass.io/walmart/category-trust-safety-icon.webp" %} + {% else %} + {% assign category_icon = "https://cdn.northpass.io/walmart/category-spark-icon.webp" %} + {% endcase %} + +
+
+
+ {{ school_category }} Category Icon +
+
+
+
{{ school_category }}
+
+
+ +
+ {% include "filtered_courses_tray", category_name: school_category %} + + {% endunless %} +{% endfor %} + +{% endif %} diff --git a/Scripts/API_Tests/__pycache__/Apikeys.cpython-310.pyc b/Scripts/API_Tests/__pycache__/Apikeys.cpython-310.pyc index bb3f4c252b87e2fd9e6aad7c30cc248344a5c2c5..3a353a8384827b59fa83160d5191c734c7640ca3 100644 GIT binary patch delta 246 zcmWO1Jx+sQ9LI5>Kq+s1qoouMU}NH-Q8aO(N(`}m&_ZMQ&Htv+m}nYP6IV|_p3%X^ z&As=iC-4GZLcZf?`)=$H-F~txU8uUb*xnz?r5%XR<$h48P^peOY0#*F2I^a~I}ama=pjP2yIRbiU0h;KK%dy delta 771 zcmYjPId2nT6ii~{I3{rjA;*T03&J4^VsCtvdwjMxyZe3XJ>u+ZBAe$UzK{4y!!MwS zwnRb!(a_QJKPc!CHNOD1t!P@>{QduD=fE0X7#N);@f;n?M|&UaEX{mTjo%6)xy*o#riR)&`)KPe8byX z=rq!q{#ijTWm~*FR(h7j94TSwne!xYy-K0nX;z(%tL2QUax;^rRc)B$Pl2mUa&lj* z4Vx{!GrR8JIL%Ug(yl32zzrNnr6Une25plX)obx|*mmoMgywx*_-xQuFW{b~I*JTo zmAID8DEYbQP?fSGh2<VkUw0qN2%pB4~F0lE?-#{oJbu zl*E6<*hwY>Ycjh~bj5Zr6>1Zc3L32WtSi*9E{Sev%q7J87D#VIW#;5G!6KTb__Gj{ z6q@pW2j1)jE!FoSRWLBJOh4gxvL@eYH|($~2`!2j$)z