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

Added important links button to the organization information page #144

Closed
wants to merge 5 commits into from

Conversation

pnishant23
Copy link

In the organization information page we have the buttons which directs to various link of a particular organization. However not all the important links are getting fetched from the Open API. Hence those missing important links have been added to the imp_links.json file created by @nishantwrp and I have fetched that file in the compile-data.js file which feeds the data to organization information page.

To added these important links head towards the imp_links.json file in /api folder and added the json object.

Guide to add the links

  • The icon field in the object takes all the icons that are available in the schemantic UI. Refer to the link to add the particular icon
  • The title field appears as a tooltip when we hover on the icon button

@nishantwrp, @beingnoble03 please review the code and let me know. If everything seems to be alright do merge the code so that this feature can be implemented on the live site

@pnishant23
Copy link
Author

@nishantwrp please review this PR and let me know if this is mergeable or not OR should I create a merge request with master branch.

@nishantwrp nishantwrp changed the base branch from important-links-proposals to master December 3, 2024 20:06
Copy link
Owner

@nishantwrp nishantwrp left a comment

Choose a reason for hiding this comment

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

Thanks @pnishant23 for taking this up! Took an initial pass, will take a more thorough look once the deploy preview is ready.

@@ -177,6 +178,25 @@ const OrgInfo = ({ data }) => {
}
/>
)}
{data.links &&
data?.links?.map(item => {
Copy link
Owner

Choose a reason for hiding this comment

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

don't need optional chaining

Copy link
Author

Choose a reason for hiding this comment

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

Ok, will remove that

Copy link
Owner

Choose a reason for hiding this comment

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

you can revert this change

@@ -241,7 +245,18 @@ const compileData = () => {
const distinctOrganizations = organizationSet.extract()
const gsocOrganizations = []
distinctOrganizations.forEach(orgList => {
gsocOrganizations.push(getCombinedOrgJson(orgList))
// ---------new code ------------
Copy link
Owner

Choose a reason for hiding this comment

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

can you please clean these comments.

Copy link
Author

Choose a reason for hiding this comment

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

i have removed this comments form the file

@nishantwrp nishantwrp closed this Dec 3, 2024
@nishantwrp nishantwrp reopened this Dec 3, 2024
@nishantwrp nishantwrp closed this Dec 3, 2024
@nishantwrp nishantwrp reopened this Dec 3, 2024
@nishantwrp nishantwrp closed this Dec 3, 2024
@nishantwrp nishantwrp reopened this Dec 3, 2024
@nishantwrp nishantwrp closed this Dec 3, 2024
@nishantwrp nishantwrp reopened this Dec 3, 2024
@nishantwrp
Copy link
Owner

Just to give some context, I was trying to get netlify deploy preview to work. Seems like changes to package-lock.json & yarn-lock.json need to be reverted.

I have removed the comments from this file
Copy link

netlify bot commented Dec 10, 2024

Deploy Preview for gsoc-organizations ready!

Name Link
🔨 Latest commit f767c58
🔍 Latest deploy log https://app.netlify.com/sites/gsoc-organizations/deploys/6757ed74f431610008c74a0e
😎 Deploy Preview https://deploy-preview-144--gsoc-organizations.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@pnishant23 pnishant23 closed this Dec 10, 2024
@pnishant23
Copy link
Author

pnishant23 commented Dec 10, 2024

closing this PR because created an updated PR for, which is PR 148

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

Successfully merging this pull request may close these issues.

2 participants