Skip to content

Commit

Permalink
feat: add 2024 projects (nishantwrp#128)
Browse files Browse the repository at this point in the history
* feat: add 2024 projects

* chore: update notification and year filters in home and org page

* fix: newFilteredOrganizations() push 2024 organizations
  • Loading branch information
beingnoble03 authored Jul 7, 2024
1 parent f93c849 commit 8ab252e
Show file tree
Hide file tree
Showing 6 changed files with 14,328 additions and 3,678 deletions.
17,990 changes: 14,320 additions & 3,670 deletions api/data/2024.json

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions src/components/notification.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ const Notification = () => {
return (
<Message positive style={style}>
<Message.Header>
Organizations participating in GSoC 2024 have been announced. View them
in the official site{" "}
Coding period for GSoC 2024 has started. You can check the program
timeline{" "}
<a
href="https://summerofcode.withgoogle.com/programs/2024/organizations"
href="https://developers.google.com/open-source/gsoc/timeline"
target="_blank"
>
<u>here</u>
Expand Down
4 changes: 2 additions & 2 deletions src/components/org-info.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ const OrgInfo = ({ data }) => {
}}
></div>
</div>
{isParticipatingIn2024 && (
{/* {isParticipatingIn2024 && (
<Message color="orange" style={{ margin: "1%" }}>
<Message.Header>
{data.name} is participating in{" "}
Expand Down Expand Up @@ -87,7 +87,7 @@ const OrgInfo = ({ data }) => {
for this organization.
</Message.Header>
</Message>
)}
)} */}
<div className="org-info-site-container">
<OutboundLink href={data.url} rel="noreferrer" target="_blank">
<Button icon labelPosition="left" color="orange">
Expand Down
2 changes: 1 addition & 1 deletion src/components/projects-graph.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ const ProjectsGraph = ({ data }) => {
const years = queryData.filter.years
.map(item => item.name)
.sort()
.filter(item => item != 2024)
.filter(item => item != 2025)
const numProjects = []

for (const year of years) {
Expand Down
2 changes: 1 addition & 1 deletion src/components/projects-section.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const ProjectsSection = ({ data }) => {
const projectColumns = useBreakpoint().l ? 3 : 4

const projectPanes = Object.entries(data)
.filter(([year, _]) => year != 2024)
.filter(([year, _]) => year != 2025)
.map(([year, yearData]) => {
return {
menuItem: year,
Expand Down
2 changes: 1 addition & 1 deletion src/templates/organization.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ const OrganizationPage = ({ pageContext: { organization }, data }) => {
</Grid.Column>
</Grid>
{/* TODO(nishantwrp): This is temp fix. Refactor it. */}
{!!Object.keys(organization.years).filter(y => y != 2024).length && (
{!!Object.keys(organization.years).filter(y => y != 2025).length && (
<>
<div className="organization-heading-container">Past Projects</div>
<ProjectsSection data={organization.years} />
Expand Down

0 comments on commit 8ab252e

Please sign in to comment.