From 232680155621ff88b7102ff607e2fa32b23d0dd2 Mon Sep 17 00:00:00 2001 From: John Cox Date: Thu, 6 Feb 2025 11:22:13 -0700 Subject: [PATCH 1/4] grid or list view toggle --- acf-json/group_645ebe42aaa12.json | 56 ++++++++++++++++++++++--------- 1 file changed, 41 insertions(+), 15 deletions(-) diff --git a/acf-json/group_645ebe42aaa12.json b/acf-json/group_645ebe42aaa12.json index bb5d3fb..e2ebfa6 100644 --- a/acf-json/group_645ebe42aaa12.json +++ b/acf-json/group_645ebe42aaa12.json @@ -93,6 +93,7 @@ "choices": { "N1716573612": " Healthy Urban Environments (N1716573612)", "N1716573817": " Lightworks (N1716573817)", + "N1738622714": "AI Acceleration (N1738622714)", "3560": "AIMS Consortium (3560)", "1388": "AISSS (1388)", "1599": "AISSS - Poly (1599)", @@ -359,6 +360,7 @@ "197667": "Brand Creative (197667)", "467225": "Brand Strategy and Performance Marketing (467225)", "95864": "Budget Operations (95864)", + "N1738622344": "Budget and Finance (N1738622344)", "32399": "Bus & Fin Communications Group (32399)", "144835": "Business Operations (144835)", "151617": "Business Support (151617)", @@ -495,6 +497,7 @@ "1691": "Communications and Web Services (1691)", "N1720199692": "Community Education Services (N1720199692)", "1524": "Community Outreach (1524)", + "N1738623042": "Community Partners (N1738623042)", "182112": "Complex Adaptive Supply Networks Research Accelerator (182112)", "1469": "Complex Adaptive Systems Initiative (1469)", "N1717026911": "Complex Systems Research Group (N1717026911)", @@ -505,11 +508,12 @@ "197669": "Copywriting and Video (197669)", "N1699568351": "Cores Sales & Marketing (N1699568351)", "338029": "Corporate Engagement & Strategic Partnerships (338029)", - "382740": "Creative & Communication (382740)", "467231": "Creative Operations (467231)", "144832": "Creative Strategy and Brand Execution (144832)", + "382740": "Creative and Communication (382740)", "2204": "Ctr Neural Interface & Design (2204)", "440431": "Curriculum & Instructional Design (440431)", + "N1738624236": "Cybersecurity (N1738624236)", "1386": "DARS (1386)", "473737": "DC ASU Local Site (473737)", "1532": "DPC Academic Affairs (1532)", @@ -536,6 +540,7 @@ "N1720199931": "Data Strategy Tempe (N1720199931)", "N1720199973": "Data Strategy West (N1720199973)", "154040": "Data Warehouse (154040)", + "34292": "Data and Analytics (34292)", "154037": "Data and Business Intel (154037)", "2134": "Database & Production Supt (2134)", "1526": "Dean of Students Tempe (1526)", @@ -561,6 +566,7 @@ "1569": "Development, Mobility, & Smart Cities (1569)", "342242": "Digital Brand Creative (342242)", "1808": "Digital Document Services (1808)", + "N1738623821": "Digital Infrastructure (N1738623821)", "320968": "Digital Preservation (320968)", "2161": "Digital Transformation (2161)", "3534": "Dining (3534)", @@ -569,9 +575,6 @@ "194240": "Division Teacher Prep\/Poly (194240)", "194241": "Division Teacher Prep\/Tempe (194241)", "194242": "Division Teacher Prep\/West (194242)", - "193308": "Division of Educational Leadership & Innovation Ply (193308)", - "194234": "Division of Educational Leadership & Innovation Tmp (194234)", - "194235": "Division of Educational Leadership & Innovation Wst (194235)", "N1663800981": "Dreamscape Learn (N1663800981)", "361955": "E-Learning and Instruction (361955)", "1435": "EHS (1435)", @@ -631,6 +634,7 @@ "396706": "Emeritus College Council (396706)", "396707": "Emeritus College Leadership (396707)", "1688": "Engagement and Learning Services (1688)", + "2133": "Engineering (2133)", "1637": "Engineering Communications (1637)", "N1709593381": "Engineering Education Systems and Design, The Polytechnic School (N1709593381)", "1640": "Engineering Technical Services (1640)", @@ -645,7 +649,6 @@ "473740": "Enterprise Planning (473740)", "1802": "Enterprise Risk and Resilience (1802)", "1359": "Enterprise Technology (1359)", - "2133": "Enterprise Technology - Engineering Core (2133)", "N1700671721": "Entrepreneurship + Innovation Venture Mentors (N1700671721)", "557685": "Entrepreneurship Catalysts (557685)", "558215": "Environmental Biotechnology Administration (558215)", @@ -665,6 +668,8 @@ "373848": "Executive Administration (373848)", "440428": "Executive Education & Professional Education (440428)", "N1706894792": "Executive Education, Corporate Partnerships and Lifelong Learning (N1706894792)", + "N1738622577": "Executive Enablement (N1738622577)", + "N1738623907": "Experience Center (N1738623907)", "1736": "Eyring Materials Center (1736)", "334959": "Eyring Materials Center (334959)", "1607": "FA Scholarship Services Dwtn (1607)", @@ -915,12 +920,6 @@ "1771": "Lincoln Center Applied Ethics (1771)", "2393": "Lodestar Center for Philanthropy & Nonprofit Innovation (2393)", "1753": "MCMSC (1753)", - "192466": "MLF Teachers College (192466)", - "192484": "MLF Teachers College T (192484)", - "192486": "MLF Teachers College W (192486)", - "N1720201065": "MLFTC Development Tempe (N1720201065)", - "N1720202233": "MLFTC Development West (N1720202233)", - "192497": "MLFTC Division of Educational Leadership & Innovation (192497)", "2259": "MTBI (2259)", "1803": "Mail Services (1803)", "N1661807962": "Makerspace (N1661807962)", @@ -929,6 +928,7 @@ "N1720200875": "Marketing Tempe (N1720200875)", "N1720200901": "Marketing West (N1720200901)", "1696": "Marketing and Communications (1696)", + "192466": "Mary Lou Fulton College for Teaching and Learning Innovation (192466)", "1718": "Master of Real Estate Development (1718)", "448589": "Materials of the Universe Center (448589)", "2242": "Mathematics (2242)", @@ -956,6 +956,7 @@ "1527": "Multicultural Student Services (1527)", "334957": "NanoFabrication Core (334957)", "1776": "Naval Science (1776)", + "N1730849444": "NetZ-CMI (N1730849444)", "2135": "Network Communications (2135)", "557397": "Neurodegenerative Disease Administration (557397)", "N1663004217": "Neurodegenerative Disease Associate Faculty (N1663004217)", @@ -974,7 +975,7 @@ "N1709918704": "New College – Strategic Communications (N1709918704)", "N1709918760": "New College – Undergraduate Services (N1709918760)", "1520": "New Student Programs (1520)", - "382742": "Next Lab (382742)", + "382742": "Next Labs (382742)", "2123": "Nina Mason Pulliam Scholars (2123)", "1819": "OHR Total Rewards (1819)", "199467": "ORSPA Award Management (199467)", @@ -1012,7 +1013,6 @@ "237815": "Open Stacks (237815)", "1566": "Operating & Digital Transformation (1566)", "154022": "Operations (154022)", - "1565": "Operations (1565)", "337599": "Operations Project Management (337599)", "467226": "Operations and Execution (467226)", "1777": "Origins (1777)", @@ -1030,6 +1030,7 @@ "558213": "Pathfinder Faculty (558213)", "558212": "Pathfinder Researchers (558212)", "1797": "Payables & Reimbursements (1797)", + "1565": "People Operations (1565)", "557906": "Personalized Diagnostics Administration (557906)", "N1663263155": "Personalized Diagnostics Associate Faculty (N1663263155)", "557962": "Personalized Diagnostics Faculty (557962)", @@ -1041,6 +1042,7 @@ "1431": "Police Department (1431)", "154036": "Policy and Communications (154036)", "444133": "Policy and governance (444133)", + "N1738624018": "Portfolio Management and Execution (N1738624018)", "422225": "Preparedness & Security Initiatives (422225)", "1767": "Prgm Soc Dynamics & Complexity (1767)", "N1720204713": "Principled Innovation (N1720204713)", @@ -1195,6 +1197,7 @@ "N1659649552": "School of Manufacturing Systems and Networks (N1659649552)", "96259": "School of Mathematical and Natural Sciences (96259)", "2243": "School of Mathematical and Statistical Sciences (2243)", + "N1730313775": "School of Medicine and Advanced Medical Engineering (N1730313775)", "1734": "School of Molecular Sciences (1734)", "392823": "School of Music, Dance and Theatre (392823)", "N1662572787": "School of Ocean Futures (N1662572787)", @@ -1253,6 +1256,7 @@ "317651": "Student Support Resources (317651)", "159369": "Success by Design (UC) (159369)", "1809": "Sun Card Office (1809)", + "N1738622493": "Sun Corridor Network (N1738622493)", "1352": "Sun Devil Athletics (1352)", "2036": "Sun Devil Fitness Tempe (2036)", "1811": "Surplus Property (1811)", @@ -1279,6 +1283,7 @@ "352994": "TW Lewis Center for Personal Development (352994)", "N1676397455": "Team (N1676397455)", "1684": "Technology Services (1684)", + "N1738623746": "Technology Shared Services (N1738623746)", "1710": "Technology Strategy and Operations (1710)", "1492": "Technology Support (1492)", "35494": "Technology, Entrepreneurship and Management, The Polytechnic School (35494)", @@ -1297,6 +1302,7 @@ "473738": "Title IX (473738)", "3518": "Transfer Systems Develop (3518)", "444100": "Transportation Research (444100)", + "N1738622825": "Trust, Trusted Learner Network and Pocket (N1738622825)", "1798": "UBS Applications & Planning (1798)", "159727": "UC - Office of the Dean (159727)", "215841": "UC Leadership (215841)", @@ -1313,7 +1319,6 @@ "1604": "Univ Registrar Services Dwtn (1604)", "1603": "Univ Registrar Services Poly (1603)", "1602": "Univ Registrar Services West (1602)", - "34292": "University Analytics and Data Services (34292)", "237818": "University Archives (237818)", "3593": "University Audit & Advisory Services (3593)", "1427": "University Business Services (1427)", @@ -1395,6 +1400,27 @@ "ui_off_text": "Remove", "ui": 1 }, + { + "key": "field_67a4ece5e711d", + "label": "Front end initial display", + "name": "uds_webdir_grid", + "aria-label": "", + "type": "true_false", + "instructions": "", + "required": 0, + "conditional_logic": 0, + "wrapper": { + "width": "", + "class": "", + "id": "" + }, + "message": "", + "default_value": 0, + "allow_in_bindings": 0, + "ui_on_text": "Grid view", + "ui_off_text": "List view", + "ui": 1 + }, { "key": "field_66676e5392b06", "label": "Excluded profiles", @@ -3621,5 +3647,5 @@ "active": true, "description": "Contains UI elements for basic web directory configuration.", "show_in_rest": 0, - "modified": 1729618974 + "modified": 1738864831 } From c0f76a8ed0d06a28ca11ed60e817a912beec1cbb Mon Sep 17 00:00:00 2001 From: John Cox Date: Thu, 6 Feb 2025 11:25:53 -0700 Subject: [PATCH 2/4] $grid, set data- true or false --- acf-block-templates/web-directory/web-directory.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/acf-block-templates/web-directory/web-directory.php b/acf-block-templates/web-directory/web-directory.php index 14096de..0716959 100644 --- a/acf-block-templates/web-directory/web-directory.php +++ b/acf-block-templates/web-directory/web-directory.php @@ -27,6 +27,7 @@ $campus = get_field( 'uds_webdir_filter_campus' ); $showfilter = get_field( 'uds_webdir_filter_display'); $custom_list = get_field( 'uds_webdir_custom_list' ); +$grid = get_field( 'uds_webdir_grid' ); $spacing = pitchfork_people_acf_calculate_spacing( $block ); @@ -98,6 +99,12 @@ $data_attributes[] = 'data-alphaFilter="false"'; } +if ( $grid ) { + $data_attributes[] = 'data-grid="true"'; +} else { + $data_attributes[] = 'data-grid="false"'; +} + //set dept id to 1466 if no dept id is selected if ($display === 'people') { $dept_string = '1466'; From c03ce519c16e89d31a8a55cdab8ecdd4d1695673 Mon Sep 17 00:00:00 2001 From: John Cox Date: Thu, 6 Feb 2025 11:28:00 -0700 Subject: [PATCH 3/4] dataset grid, display.grid --- src/scripts/app-webdir-init.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/scripts/app-webdir-init.js b/src/scripts/app-webdir-init.js index 85b1b45..7aaa815 100644 --- a/src/scripts/app-webdir-init.js +++ b/src/scripts/app-webdir-init.js @@ -11,12 +11,14 @@ window.addEventListener("DOMContentLoaded", event => { const employeeType = webDirTarget.dataset.employeetype; const campus = webDirTarget.dataset.campus; const ids = webDirTarget.dataset.ids; + const grid = webDirTarget.dataset.grid; const display = { defaultSort: "last_name", doNotDisplayProfiles: exclude, profilesPerPage: pagination, usePager: "1", + grid: grid }; const filters = { employee: employeeType, From 24508aceed6b53eceb6813f87216a3d16bd2a6a3 Mon Sep 17 00:00:00 2001 From: John Cox Date: Thu, 6 Feb 2025 11:28:59 -0700 Subject: [PATCH 4/4] gulp-wp latest js - grid updates --- dist/js/app-webdir-init.asset.php | 2 +- dist/js/app-webdir-init.js | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/dist/js/app-webdir-init.asset.php b/dist/js/app-webdir-init.asset.php index 5346432..f1bc979 100644 --- a/dist/js/app-webdir-init.asset.php +++ b/dist/js/app-webdir-init.asset.php @@ -1 +1 @@ - array(), 'version' => '558deec0b630f413ad97'); + array(), 'version' => 'e92d07336a491cd3266a'); diff --git a/dist/js/app-webdir-init.js b/dist/js/app-webdir-init.js index e615ad8..ca077d3 100644 --- a/dist/js/app-webdir-init.js +++ b/dist/js/app-webdir-init.js @@ -14,11 +14,13 @@ window.addEventListener("DOMContentLoaded", event => { const employeeType = webDirTarget.dataset.employeetype; const campus = webDirTarget.dataset.campus; const ids = webDirTarget.dataset.ids; + const grid = webDirTarget.dataset.grid; const display = { defaultSort: "last_name", doNotDisplayProfiles: exclude, profilesPerPage: pagination, - usePager: "1" + usePager: "1", + grid: grid }; const filters = { employee: employeeType,