Skip to content

Added Hyperlinks in Ways to Contribute Section#302

Merged
isabelcosta merged 17 commits intoanitab-org:developfrom
anishfyi:hyperlink-contribution
Oct 18, 2021
Merged

Added Hyperlinks in Ways to Contribute Section#302
isabelcosta merged 17 commits intoanitab-org:developfrom
anishfyi:hyperlink-contribution

Conversation

@anishfyi
Copy link
Contributor

@anishfyi anishfyi commented Oct 16, 2021

Description

Added Relevant Hyperlinks In Ways To Contribute Section

Fixes #299

  • Hyperlinks Added

Type of Change:

  • Code

Checklist:

  • My PR follows the style guidelines of this project
  • I have performed a self-review of my own code or materials

Code/Quality Assurance Only

  • My changes generate no new warnings

changes

@isabelcosta
Copy link
Member

@daxoron I edited your PR description, to include Fixes #299 because in this way it gets linked to your issue, and once this gets merged, that will get closed. This is also important, for me to see that you submitted a PR related to the correct issue. Please consider this for future PRs, it helps maintainers a lot 🤗

Copy link
Member

@isabelcosta isabelcosta left a comment

Choose a reason for hiding this comment

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

Nice work @daxoron !
Thank you for contributing 🙌🏾

<SectionSubheader title={section.title} />
{section.content.map((content, indx) => {
return <Description key={indx}>{content.par}</Description>;
return <Description key={indx}>{HTMLReactParser(content.par)}</Description>;
Copy link
Member

Choose a reason for hiding this comment

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

this was needed to make text linkable right?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@isabelcosta, Initially The Content Was Text, So React Could Easily Parse Text and Convert it To Equivalent Text Nodes but in Case You Have Any HTML Content Coming Inside the Content, We Needed to Help React To Parse The Content to be Treated as Valid and HTML Tags Passed To Be Converted To React Nodes, We Needed HTMLReactParser Which Converts HTML Tags To Equivalent React Nodes.

We Had Two Options 1.) dangerouslysetInnerHtml 2.) Third Party Library HTMLReactParser.

I Chose to Use HTMLReactParser because dangerouslyInnerHtml has some security concern and react may discard it in future versions, Thereby Used HTMLReactParser

@isabelcosta
Copy link
Member

@daxoron thank you for adding more context! Could you also fix the merge conflicts please 🙏🏾 I will request more reviews to get this approved :)

par:
"Each active repository has a stream to direct questions. \nIssues labeled as 'First Timers Only' are meant for contributors who have not contributed to the project yet. Please choose other issues to contribute to, if you have already contributed to these type of issues. \nMake sure to follow the Commit Message Style Guide when submitting PRs which will require review by at least one maintainer to be merged to the main code.",
'Each active repository has a stream to direct questions. \nIssues labeled as <a href = "https://github.com/anitab-org/anitab-org.github.io/issues?q=is%3Aopen+is%3Aissue+label%3A%22First+Timers+Only%22" target="_blank">First Timers</a> Only are meant for contributors who have not contributed to the project yet. Please choose other issues to contribute to, if you have already contributed to these type of issues. \nMake sure to follow the <a href = "https://github.com/anitab-org/mentorship-android/wiki/Commit-Message-Style-Guide" target="_blank">Commit Message Style Guide</a> when submitting PRs which will require review by at least one maintainer to be merged to the main code.',
},
Copy link
Member

Choose a reason for hiding this comment

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

@daxoron can you update the hyperlinked text to "First Timers Only", right now it's just First Timers
Once done, this PR is good to go 🚀

Copy link
Member

Choose a reason for hiding this comment

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

Also there are some conflicts, please resolve them as well

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@vj-codes Sure, Doing It Right Now.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@vj-codes Done. Modified Text and Resolved the Merge Conflicts.

@vj-codes vj-codes added the Status: Changes Requested Changes are required to be done by the PR author. label Oct 17, 2021
@anishfyi
Copy link
Contributor Author

@vj-codes @isabelcosta Merge Conflicts Resolved, Please Review and Merge.

Copy link
Member

@vj-codes vj-codes left a comment

Choose a reason for hiding this comment

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

@daxoron Congratulations on your first contribution to the repository 🎉
LGMT!

@isabelcosta
Copy link
Member

@daxoron can you please check why the PR checks are failing? And hopefully, fix them 🤔

@anishfyi
Copy link
Contributor Author

anishfyi commented Oct 17, 2021

@daxoron can you please check why the PR checks are failing? And hopefully, fix them 🤔

Yes, Checking Right Away 👍🏻

Will Make Necessary Changes by The End Of The Day 👍🏻

@isabelcosta
Copy link
Member

No urgency here @daxoron :)

Comment on lines 23 to 28
with:
# Make sure the actual branch is checked out when running on pull requests
ref: ${{ github.event.pull_request.base.ref }}

# This is important to fetch the changes to the previous commit
fetch-depth: 0
Copy link
Member

Choose a reason for hiding this comment

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

hopefully, the changes to this file won't be needed, as these are already on their way in this pull request #305. Could you take a look, and if you agree with the changes leave an approval @daxoron ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@isabelcosta its just a draft change because of the recent prettier change, My PR Checks Were Failing and nothing due to my code.
Will Update within sometime for the final change.

Copy link
Member

Choose a reason for hiding this comment

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

yes, I understand :) If these changes help you and you approve the other PR, I can go ahead and merge it, and then you can get that change in your PR 😉 @daxoron

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@isabelcosta I Have Made Some Final Changes in deploy.yml aswell.
I Had A Look on #305 PR but those changes were not working with my PR.
So I have made the required changes and have a look and both #305 and #302 can be closed with my PR.

@anishfyi
Copy link
Contributor Author

@isabelcosta My PR Checks Will Pass if #305 Gets Merged.
👍🏻

@isabelcosta isabelcosta added Status: Needs Testing Work has been reviewed and needs the code tested by the quality assurance team. and removed Status: Changes Requested Changes are required to be done by the PR author. labels Oct 18, 2021
@isabelcosta
Copy link
Member

The changes made in this PR were tested locally. Following are the results:

  1. Code review - Done

  2. All possible responses (positive and negative tests) were tested as below:

    • Run and open homepage
      Screenshot/gif:
      ways to contribute page
      Expected Result: There should be hyperlinks in the "Ways to Contribute" section of the Homepage
      Actual Result: Verified, it works as expected. I can click parts of the "Ways to Contribute" section. The links take me to a new tab.
      ...
  3. Additional comments: N/A

  4. Status of PR Changed to: Ready to Merge.

@isabelcosta isabelcosta added Status: Ready to Merge Work has been tested and needs a final review and merge from a repo maintainer. and removed Status: Needs Testing Work has been reviewed and needs the code tested by the quality assurance team. labels Oct 18, 2021
@isabelcosta isabelcosta merged commit 4b63457 into anitab-org:develop Oct 18, 2021
@isabelcosta
Copy link
Member

Thank you @daxoron for collaborating with @ftonato to get this completed 💪🏾
Really love to see this!

@anishfyi
Copy link
Contributor Author

@isabelcosta Thank You For Assigning Me this Task.
Learned Alot and Thanks For Replying to Every Doubts of Mine :)

@anishfyi anishfyi deleted the hyperlink-contribution branch October 18, 2021 14:31
ftonato pushed a commit to ftonato/anitab-org.github.io that referenced this pull request Oct 19, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Status: Ready to Merge Work has been tested and needs a final review and merge from a repo maintainer.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add links to contribution section

3 participants