From def0802c121cc6e3700f3ba6f51c33936194ad24 Mon Sep 17 00:00:00 2001 From: Philip Dimaano Date: Wed, 30 Aug 2023 18:31:18 -0700 Subject: [PATCH 1/5] added code to dynamically render list for tools filter --- assets/js/current-projects-check.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/assets/js/current-projects-check.js b/assets/js/current-projects-check.js index 20813ece0b..017fcdbc6f 100644 --- a/assets/js/current-projects-check.js +++ b/assets/js/current-projects-check.js @@ -17,7 +17,7 @@ document.addEventListener("DOMContentLoaded",function(){ // create filter dictionary from sorted project data let filters = createFilter(sortedProjectData); - + // Insert Checkbox Filter Into The Dom for(let [filterName,filterValue] of Object.entries(filters)){ // Add displayed filter title, resolves issue of "program areas" not being valid html attribute name due to spacing @@ -161,9 +161,10 @@ function createFilter(sortedProjectData){ return { // 'looking': [ ... new Set( (sortedProjectData.map(item => item.project.looking ? item.project.looking.map(item => item.category) : '')).flat() ) ].filter(v=>v!='').sort(), // ^ See issue #1997 for more info on why this is commented out - + 'technologies': [...new Set(sortedProjectData.map(item => (item.project.technologies?.length > 0) ? [item.project.technologies].flat() : '').flat() ) ].filter(v=>v!='').sort(), 'languages': [...new Set(sortedProjectData.map(item => (item.project.languages?.length > 0) ? [item.project.languages].flat() : '').flat() ) ].filter(v=>v!='').sort(), + 'tools': [...new Set(sortedProjectData.map(item => (item.project.tools?.length > 0) ? [item.project.tools].flat() : '').flat() ) ].filter(v=>v!='').sort(), } } @@ -485,7 +486,7 @@ return ` // ^ See issue #1997 for more info on why this is commented out } - ${project.languages?.length > 0 ? + ${project.languages?.length > 0 ? `
Languages: From b66a779677796869aa5f4b9453f8b71aff8582ab Mon Sep 17 00:00:00 2001 From: Philip Dimaano Date: Mon, 4 Sep 2023 19:11:58 -0700 Subject: [PATCH 2/5] updated js with tools filter and html to display proper cards --- assets/js/current-projects-check.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/assets/js/current-projects-check.js b/assets/js/current-projects-check.js index 017fcdbc6f..cdacc4762a 100644 --- a/assets/js/current-projects-check.js +++ b/assets/js/current-projects-check.js @@ -254,7 +254,7 @@ function updateFilterFrequency(){ let filterFrequencyObject = allFilters.reduce((acc,curr)=> (acc[curr]=0,acc),{}); - // Update values on the filterFrquencyObject if item in onPageFilter array exist as a key in this object. + // Update values on the filterFrequencyObject if item in onPageFilter array exist as a key in this object. for(const item of onPageFilters){ if(item in filterFrequencyObject){ filterFrequencyObject[item] += 1; @@ -319,7 +319,7 @@ function updateProjectCardDisplayState(filterParams){ } /** - * Updates the filter tags show on the page based on the url paramenter + * Updates the filter tags show on the page based on the url parameter */ function updateFilterTagDisplayState(filterParams){ // Clear all filter tags @@ -430,6 +430,7 @@ return ` data-looking="${project.looking ? [... new Set(project.looking.map(looking => looking.category)) ] : ''}" data-technologies="${project.technologies ? [... new Set(project.technologies.map(tech => tech))] : '' }" data-languages="${project.languages ? [... new Set(project.languages.map(lang => lang))] : '' }" + data-tools="${project.tools ? [... new Set(project.tools.map(tool => tool))] : '' }" data-location="${project.location? project.location.map(city => city) : '' }" data-programs="${project.programAreas ? project.programAreas.map(programArea => programArea) : '' }" > @@ -518,7 +519,7 @@ return ` } /** - * Takes a filter category name and array of filter stirings and returns the html string representing a single filter component + * Takes a filter category name and array of filter strings and returns the html string representing a single filter component */ function dropDownFilterComponent(categoryName,filterArray,filterTitle){ return ` From 5f765d625dbebeee4537decb85d7667ff782e710 Mon Sep 17 00:00:00 2001 From: Philip Dimaano Date: Wed, 13 Sep 2023 15:02:57 -0700 Subject: [PATCH 3/5] moved AWS to technologies section --- _projects/home-unite-us.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/_projects/home-unite-us.md b/_projects/home-unite-us.md index 97962d63ce..f7d8f5704b 100644 --- a/_projects/home-unite-us.md +++ b/_projects/home-unite-us.md @@ -123,6 +123,7 @@ looking: technologies: - React - NoSQL + - AWS - Flask - Amazon Cognito - OIDC @@ -130,9 +131,8 @@ technologies: - MongoDB location: - Remote -tools: +tools: - Figma - - AWS - Nginx - Style Components - Zoom From 7f00a652168200fbb18c24312db28a73d34a74d4 Mon Sep 17 00:00:00 2001 From: Philip Dimaano Date: Wed, 13 Sep 2023 15:03:14 -0700 Subject: [PATCH 4/5] moved AWS to technologies section --- _projects/lucky-parking.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/_projects/lucky-parking.md b/_projects/lucky-parking.md index a33c7bbd91..dc73bf9b96 100644 --- a/_projects/lucky-parking.md +++ b/_projects/lucky-parking.md @@ -63,8 +63,8 @@ leadership: - name: Sam Sengupta role: UX/UI Designer links: - slack: - github: + slack: + github: picture: https://avatars.githubusercontent.com/u/41702879 - name: Seymour Liao role: Data Scientist @@ -81,8 +81,8 @@ leadership: - name: Carlos Olivas role: Data Scientist links: - slack: - github: + slack: + github: picture: https://avatars.githubusercontent.com/u/41702877 - name: Pratibha Shivanand role: Data Scientist @@ -128,6 +128,7 @@ looking: skill: Data Analyst/Data Scientist (data cleaning) technologies: - React + - AWS - PostgreSQL - Node.js - Mapbox @@ -135,10 +136,9 @@ location: # - Santa Monica - Remote partner: Department of Neighborhood Empowerment -tools: +tools: - Jupyter Notebooks - Google Colab - - AWS program-area: - Citizen Engagement visible: true From e869953f804df54808553cbbc8270a7a6aeed1ef Mon Sep 17 00:00:00 2001 From: Philip Dimaano Date: Wed, 13 Sep 2023 15:03:52 -0700 Subject: [PATCH 5/5] added technologies section before transferring AWS to new section --- _projects/metro-ontime.md | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/_projects/metro-ontime.md b/_projects/metro-ontime.md index 52ba31e600..124590183c 100644 --- a/_projects/metro-ontime.md +++ b/_projects/metro-ontime.md @@ -25,15 +25,16 @@ links: url: 'https://www.metro.net/' - name: Observable url: 'https://observablehq.com/@ctsexton/railstats-marey-diagram' +technologies: + - AWS location: # - Downtown LA - Remote partner: LA Metro -tools: - - AWS +tools: - Observable visible: true -program-area: +program-area: - Environment status: Completed ---