Skip to content

Fix #7112: Update 'Github' to 'GitHub' in social.yml#8018

Merged
santiseccovidal merged 1 commit intohackforla:gh-pagesfrom
ihop-56:fix-github-name-social-yml-issue-7112
Apr 16, 2025
Merged

Fix #7112: Update 'Github' to 'GitHub' in social.yml#8018
santiseccovidal merged 1 commit intohackforla:gh-pagesfrom
ihop-56:fix-github-name-social-yml-issue-7112

Conversation

@ihop-56
Copy link
Member

@ihop-56 ihop-56 commented Mar 24, 2025

Please note: You must be a member of the HFLA website team in order to create pull requests. Please see our page on how to join us as a member at HFLA: https://www.hackforla.org/getting-started. Delete this message if you joined this team via onboarding.

Fixes #7112

What changes did you make?

  • Updated _data/navigation/social.yml to change name: Githubname: GitHub to reflect correct branding.
  • Verified the affected sections in the codebase that render social media links.
  • Documented the file relationships and testing plan.

Why did you make the changes (we will use this info to test)?

  • The brand name GitHub was incorrectly capitalized as “Github.”
  • This change ensures the correct and professional representation of GitHub in the website footer.
  • The label used in the footer is directly sourced from site.data.navigation.social.

CodeQL Alerts

After the PR has been submitted and the resulting GitHub actions/checks have been completed, developers should check the PR for CodeQL alert annotations.

Check the PR's comments. If present on your PR, the CodeQL alert looks similar as shown

Screenshot 2024-10-28 154514

Please let us know that you have checked for CodeQL alerts. Please do not dismiss alerts.

  • I have checked this PR for CodeQL alerts and none were found.
  • I found CodeQL alert(s), and (select one):
    • I have resolved the CodeQL alert(s) as noted
    • I believe the CodeQL alert(s) is a false positive (Merge Team will evaluate)
    • I have followed the Instructions below, but I am still stuck (Merge Team will evaluate)
Instructions for resolving CodeQL alerts

If CodeQL alert/annotations appear, refer to How to Resolve CodeQL alerts.

In general, CodeQL alerts should be resolved prior to PR reviews and merging

Screenshots of Proposed Changes To The Website

  • No visual layout changes, but screen reader text will now correctly read "GitHub" instead of "Github". This change can be confirmed by inspecting the HTML span with class sr-only in the site footer.

Test Plan

Steps:

  1. Start the website locally using docker compose up or preview in deployment.
  2. Visit http://localhost:4000.
  3. Scroll to the footer of the homepage (or any page).
  4. Right-click on the GitHub icon and select Inspect.
  5. Confirm that the following HTML appears:
    <span class="sr-only">GitHub</span>

Test Notes

Unable to run Docker locally on my machine. As an alternative, I manually reviewed:

  • _data/navigation/social.yml: Contains the social media metadata.

  • _includes/footer.html: Renders the footer and pulls from the above data using {{ item.name }}.

  • _layouts/default.html: Includes footer.html on every page of the site.

Because footer.html uses the name field in social.yml, the text update from “Github” to “GitHub” should be accurately reflected site-wide in the footer.

Please help confirm through local testing or deployment preview.

@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 ihop-56-fix-github-name-social-yml-issue-7112 gh-pages
git pull https://github.com/ihop-56/website.git fix-github-name-social-yml-issue-7112

@github-actions github-actions bot added role: front end Tasks for front end developers role: back end/devOps Tasks for back-end developers Complexity: Medium status: To Update! No update has been provided P-Feature: Navigation size: 1pt Can be done in 4-6 hours labels Mar 24, 2025
@nchanyal nchanyal self-requested a review March 25, 2025 17:59
@nchanyal
Copy link
Member

Review ETA: 1:45 PM EST 3/26/25
Availability: 11 - 1:30 PM EST Mon - Fri

@dvernon5 dvernon5 self-requested a review March 26, 2025 02:04
@dvernon5
Copy link
Member

Review ETA: Wednesday 03/26 2:30 PST
Availablity: Monday - Thursday 2PM - 6PM and Friday 2PM - 4PM

Copy link
Member

@nchanyal nchanyal left a comment

Choose a reason for hiding this comment

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

Hey @ihop-56.

First of all, thank you for making this PR. You did well following the instructions, but I have a few changes I would like you to make before I approve.

I would say the biggest change you can make is with the test procedure. Right now it isn't clear to me. The reason being is that you say that there are no visual changes to the website but ask us to check that the label in the header and footer now says 'GitHub' instead of 'Github.' I need clarification here.

But, assuming there are visual changes, I don't see them in both the header and footer. When I checked the header, there wasn't any label with 'Github' nor 'GitHub.' I also checked the footer but didn't see any labels.

You'll also want to include before and after screenshots of the website if you decide that visual changes were made. I understand you're having difficulty with Docker and would suggest you go to office hours to get that sorted. Viewing the changes you made yourself helps us reviewers complete our reviews faster.

This is relatively minor, but I want to bring it up because it's important that we follow the action items in the original issue. You did a great job documenting the test procedure in this PR; however, you should also comment on it in the original issue and include a link in this PR as the original issue asks. Here's the quote if you're wondering:

'Write a test procedure, in a comment, and then use it to test the change. Include a link to this comment in your PR'.

If you have any questions about what I said, feel free to ask.

@github-project-automation github-project-automation bot moved this from PR Needs review to PRs being reviewed in P: HfLA Website: Project Board Mar 26, 2025
Copy link
Member

@dvernon5 dvernon5 left a comment

Choose a reason for hiding this comment

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

Hello @ihop-56

Thank you for taking this issue. Your contribution is greatly appreciated.

You did an excellent job following the instruction of your issue. You made the correct changes in the codebase without breaking the GitHub link.

Some suggestions:

Suggestion #1:

In your Why did you make the changes section, the third bullet point is not fully true. The footer links will render properly with the correct name (e.g GitHub), that is correct. However, when you say footer and header that is incorrect because there is no social media links for the header. In the social.yml file GitHub header element is set to false meaning there will not be any GitHub links on any header webpages. Just remove header from the third bullet point to make the entirely of your explanation true. Beside that good explanation.

Suggestion #2:

In your Test Plan section in step 3; again it is not entirely true because there is no social media link for your header. Furthermore, Step 4 is ambiguous because like you said in your comment session in the original issue “No visual changes expected; just a text update from “Github” to “GitHub”, so in order for the user to see that change, they would need to use their browser developer tool. A developer-friendly explanation would be something of the line of:

Confirm the label shows GitHub by:

  1. Right-clicking on the GitHub icon link (bottom of the webpage).
  2. Select inspect from the list.
  3. In your developer tool select the Elements tab. From there you’ll see a line <span class="sr-only”>GitHub</span> confirm that the content between the <span> tag is GitHub not Github

Suggestion #3

In the Test Notes section I see that you’re unable to run docker locally, there can be many reasons for that, but definitely bring this up at one of the meetings. Furthermore, your explanation is not entirely true. Even though both are getting data from data/navigation/social.yml that does not mean {{ item.name }} is rendering the correct data on the webpage. In matter of fact only one of those files is relavant and being used. That file is _includes/footer.html. Check out website/_layouts/default.html file and in that file you'll find a line that looks like this: {%- include footer.html -%} what that is saying is on any webpage located at the footer of the page use footer.html to rendered all the data that are in data/navigation/social.yml That is the reason why you see the links at the footer of each page. As for _includes/social.html (for header) you can remove that from your explanation, becuase it does not have any bearing or use cases on your issue. Again, your social media links will not be displayed on any webpages headers.

I do want to confirm that you did everything right and GitHub is properly showing on the webpage. Just remove everything with headers and I think you'll be good for approval.

Great job on your PR! Just re-request me when you are finish.

@santiseccovidal
Copy link
Member

Review ETA: 1 PM 4/1/25
Availability: 1-3 PM Monday PDT

Copy link
Member

@santiseccovidal santiseccovidal left a comment

Choose a reason for hiding this comment

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

Hi all.
Thanks for taking up this issue Rak @ihop-56
I've tested thoroughly and found that everything works correctly, inspecting in the process.

First off, @ihop-56 update on if you could make Docker work and if you need help just Slack I can help 👍

For this issue it's very useful to use a global search on vsCode
Press Cmd + Shift + F (on Mac) or Ctrl + Shift + F (on Windows/Linux) to open global search.

I've been reading the previous reviews. I think that this issue should have had a bit more points, but anyways I agree that there should be a bit more documentation done and testing instructions/documentation as @dvernon5 @nchanyal mention. I would add that an explanation on what each files does/represents could be added also.
The issue instructions are more open because it's a medium issue, which is more complex, so there's much more stuff to research and gaps to fill. Many of us are jumping at this type of issue without having previous knowledge, so if we all provide a simple explanation it's very valuable.

social.yml contains the social media links of Hack for LA. I'll be redundant here but to clarify, the whole issue is about how changing this file affects other files. So knowing what those files are is important. The main idea is to learn how the website renders and works, even if the change is simple and not that important, ensuring that nothing breaks is very important.

Apparently footer.html that renders the data in social.yml is the main dependency. Though I noticed there's at least another file called social.html that uses it.
Then all files using footer.html are also affected by the change in social.yml

What's changed in the website while inspecting is

<a href="https://github.com/hackforla" rel="noopener" target="_blank" class="js-inline-link js-inline-link-github" aria-label="Github">

and for screen readers

 <span class="sr-only">Github</span>
              </a>

Please let me know if I got the idea right, this is what I understood 👍

@ihop-56
Copy link
Member Author

ihop-56 commented Apr 14, 2025

Hi @dvernon5 @nchanyal @santisecco

Thank you all for your thoughtful feedback!

✅ I've removed all references to the header since the GitHub social link is not displayed there (header: false in social.yml).

✅ The Why section and Test Plan are now updated to reflect that the change affects only the footer, not both header and footer.

✅ The Test Plan now includes a clearer explanation for checking the updated text using browser dev tools:

  • Right-click the GitHub icon in the footer.
  • Click "Inspect" and confirm the label is shown as <span class="sr-only">GitHub</span>.

✅ I’ve also added a comment with the test procedure on the original issue and included the link in the PR, as requested.

Let me know if there's anything else I should address. Appreciate your time reviewing!

Best,
Rak

@nchanyal nchanyal requested review from nchanyal and removed request for nchanyal April 14, 2025 19:06
@nchanyal nchanyal dismissed their stale review April 14, 2025 19:10

Hi @ihop-56,

Thanks for making the changes. I'm currently on hiatus so I can't check the changes you made but I believe the other reviewers can step in to do so.

Copy link
Member

@dvernon5 dvernon5 left a comment

Choose a reason for hiding this comment

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

@ihop-56

Great work revising your explanation! You nailed the feedback, and everything looks fantastic. Approved!

Thank you for the excellent effort!

Copy link
Member

@santiseccovidal santiseccovidal left a comment

Choose a reason for hiding this comment

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

Well done 👍

@github-project-automation github-project-automation bot moved this from PRs being reviewed to PRs ✅ waiting for merge team in P: HfLA Website: Project Board Apr 16, 2025
@santiseccovidal
Copy link
Member

@nchanyal Nathnael please review the new changes

@nchanyal nchanyal removed their request for review April 16, 2025 15:39
@santiseccovidal santiseccovidal merged commit b245343 into hackforla:gh-pages Apr 16, 2025
13 checks passed
@santiseccovidal
Copy link
Member

@ihop-56 Well done Rak you can move on to another issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Complexity: Medium P-Feature: Navigation role: back end/devOps Tasks for back-end developers role: front end Tasks for front end developers size: 1pt Can be done in 4-6 hours

Projects

Development

Successfully merging this pull request may close these issues.

Replace Github with GitHub in _data/navigation/social.yml

4 participants