Skip to content

Fix Program Area for Diversity/Equity/Inclusion#4270

Merged
roslynwythe merged 3 commits intohackforla:gh-pagesfrom
t-will-gillis:fix-program-areas-4120
Mar 27, 2023
Merged

Fix Program Area for Diversity/Equity/Inclusion#4270
roslynwythe merged 3 commits intohackforla:gh-pagesfrom
t-will-gillis:fix-program-areas-4120

Conversation

@t-will-gillis
Copy link
Member

Fixes #4120

What changes did you make and why did you make them ?

  • Fixed the ' Program Areas' dropdown filter on the HfLA Projects page so that visitors can select programs in the area of Diversity, Equity & Inclusion.
  • Note that the fix also addresses the same bug at the same dropdown on the HfLA homepage.
  • Note that the fix also addresses a similar bug on the 'Diversity, Equity, and Inclusion' card on the HfLA Program Areas page.
  • It appears that the script as written is breaking due to both the comma and the ampersand in the program area name - Diversity, Equity & Inclusion . Per discussion with Bonnie and Jessica (re: notes in 4120), instead of refactoring the assets/js/current-projects.js script to work with the current program name, we are changing the program name to Diversity / Equity / Inclusion to work with the script.
  • Also included in this commit are changes to spelling in the comments section (that is, doesn't affect code)
  • Finally, the notes for Issue 4120 ask about potentially changing text for the headers in three pages. These potential changes are not included since they were not in the original scope

Screenshots of Proposed Changes Of The Website (if any, please do not screen shot code changes)

Visuals before changes are applied

before_projects

before_homepage

program areas

Visuals after changes are applied

after_homepage

after_projects

after_program_areas

@github-actions
Copy link

Want to review this pull request? Take a look at this documentation for a step by step guide!

From your project repository, check out a new branch and test the changes.

git checkout -b t-will-gillis-fix-program-areas-4120 gh-pages
git pull https://github.com/t-will-gillis/website.git fix-program-areas-4120

@github-actions github-actions bot added Bug Something isn't working role: front end Tasks for front end developers Complexity: Medium time sensitive Needs to be worked on by a particular timeframe P-Feature: Projects page https://www.hackforla.org/projects/ size: 1pt Can be done in 4-6 hours labels Mar 24, 2023
@nnr-nnr
Copy link
Member

nnr-nnr commented Mar 26, 2023

Review ETA: EOD Mon. 3/27/23
Availability: 12-4 PM 3/26, 3-8 PM 3/27–328/

Copy link
Member

@nnr-nnr nnr-nnr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome work, @t-will-gillis ! This PR fixes the Diversity, Equity, and Inclusion (DEI) filter on the Projects, Home, and Program Areas pages. The DEI filter works with the other filters (ie, Status, Languages/Technology), as well. It passes the ABCs plus you've addressed some pesky typos, which is great.

One note:
There appears to be a preexisting bug with the Write for All project (one of the two DEI projects) when it's being filtered by Languages/Technology.

  • With this new branch, you can recreate the bug by filtering by DEI then by a Languages/Technology used in the Write for All project (ie, HTML, JavaScript, Svelte, or CSS). The Write for All project will not appear, only the New Schools Today project (the other DEI project) if you choose JavaScript, HTML, or CSS (see image below). Svelte, the other Languages/Technology used in the Write for All project, doesn't even appear in the filter list for Languages/Technology.
  • With this current site/old code, you can see this by trying to filter by Svelte, a Languages/Technology used exclusively by the Write for All project; Svelte doesn't even appear in the filter list for Languages/Technology. Write for All also doesn't appear when JavaScript, HTML, or CSS Languages/Technology filters are used.

It seems like a new Issue could be created for this unless leadership is already aware of it? This bug might be due to the _projects/writeforall.md file not having a technologies attribute, as some of the other files in _projects have. However, I'm not positive where this Languages/Technology data is being pulled from. Please advise, as I haven't created an issue before. Thank you + nice work on this PR, again!

Screenshot 2023-03-26 at 1 32 14 PM

Pictured above: See how there's only (1) project listed under the CSS Languages/Technology filter even though both of the DEI projects have this technology listed.

@t-will-gillis
Copy link
Member Author

t-will-gillis commented Mar 26, 2023

Hi @nnr-nnr Awesome catch! I did not see that- you're right it is ignoring Write for All's languages completely. I think I unwittingly stumbled across the code that causes this-(current-projects.js line 27) but the fix might not be so easy so definitely this calls for a new issue. If you would like to write an issue for this, we would be happy to help you. It's also OK if you don't- just let us know. But in either case, thanks for finding the (new) bug!

@nnr-nnr
Copy link
Member

nnr-nnr commented Mar 27, 2023

Yes, I'd be happy to create a new issue to address this with some guidance. Maybe at Tuesday's dev meeting or Thursday OHs or if there's documentation I can follow? Otherwise, my schedule's pretty flexible, let me know whenever. Thanks!

@roslynwythe
Copy link
Member

Availability: 3/27 2 - 4pm
ETA: 3/28 EOD

Copy link
Member

@roslynwythe roslynwythe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great work @t-will-gillis ! This PR is well-formed and testing confirms that it resolves issues on the homepage, Projects Page, and Program Areas pages. Thank you also for fixing the typos.

@roslynwythe roslynwythe merged commit f6df44e into hackforla:gh-pages Mar 27, 2023
@t-will-gillis t-will-gillis deleted the fix-program-areas-4120 branch April 2, 2023 03:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Bug Something isn't working Complexity: Medium P-Feature: Projects page https://www.hackforla.org/projects/ role: front end Tasks for front end developers size: 1pt Can be done in 4-6 hours time sensitive Needs to be worked on by a particular timeframe

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Fix Program Areas filter for Diversity, Equity & Inclusion

3 participants