Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(seo): update headings for user profiles #3530

Merged

Conversation

codisart
Copy link
Contributor

PR Checklist

PR Type

  • [?] Bug fix (non-breaking change which fixes an issue)
  • [?] New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Developer experience (improves developer workflows for contributing to the project)

Description

What this PR does
This PR update all Heading tags in the User (members and others) profile to specific html heading tags from the default h2 to h1, h2 or h3. It should respect a correct hierarchical structure. To sum up, all tabs are now confirmed h2, and every other heading in the card is now a h3 and the name of the user is now a h1.

Git Issues

Helps to close #3424

Screenshots/Videos

If useful, provide screenshot or capture to highlight main changes


What happens next?

Thanks for the contribution! We try to make sure all PRs are reviewed ahead of our monthly maintainers call (first Monday of the month)

If the PR is working as intended it'll be merged and included in the next platform release, if not changes will be requested and re-reviewed once updated.

If you need more immediate feedback you can try reaching out on Discord in the Community Platform development channel.

@codisart codisart requested a review from a team as a code owner May 10, 2024 19:26
Copy link

codecov bot commented May 10, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 67.40%. Comparing base (59276fa) to head (c330a36).

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #3530      +/-   ##
==========================================
+ Coverage   67.37%   67.40%   +0.02%     
==========================================
  Files         433      433              
  Lines       13707    13707              
  Branches     2467     2467              
==========================================
+ Hits         9235     9239       +4     
+ Misses       4426     4422       -4     
  Partials       46       46              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link

cypress bot commented May 10, 2024

Passing run #5569 ↗︎

0 80 1 0 Flakiness 0

Details:

feat(seo): update headings for user profiles
Project: onearmy-community-platform Commit: c330a36b3b
Status: Passed Duration: 04:16 💡
Started: May 10, 2024 7:38 PM Ended: May 10, 2024 7:42 PM

Review all test suite changes for PR #3530 ↗︎

@@ -127,6 +127,7 @@ export const MemberProfile = ({ user, docs }: IProps) => {
</Flex>
<Box sx={{ flexDirection: 'column' }} mb={3}>
<Heading
as="h1"
Copy link
Collaborator

Choose a reason for hiding this comment

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

question: Do we want to introduce any tests that verify this document structure? This would prevent us from accidentally introducing a regression

Copy link
Contributor Author

@codisart codisart May 12, 2024

Choose a reason for hiding this comment

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

This is a good idea but there are different ways of testing. We could test each component implementation to validate the html tags used. We could also test the hierarchy of a full page. That would be better IMO for a semantic sense and it removes coupling between tests and code. The ideal way would be to test / assert the semantic of the html of the app but I don't know any way of doing that.

@benfurber benfurber merged commit 3664350 into ONEARMY:master May 17, 2024
19 checks passed
@cypress cypress bot mentioned this pull request May 17, 2024
@onearmy-bot
Copy link
Collaborator

🎉 This PR is included in version 1.183.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

@onearmy-bot
Copy link
Collaborator

🎉 This PR is included in version 1.182.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

Quick SEO wins
4 participants