From 5e2cff6d7d9932245611d2287515c35ca75432f5 Mon Sep 17 00:00:00 2001 From: suhaniahirwar20 Date: Sat, 22 Mar 2025 15:20:28 -0400 Subject: [PATCH 1/3] Enhanced PR template with a professional formatting confirmation checkbox --- .github/pull_request_template.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/pull_request_template.md b/.github/pull_request_template.md index 6b4d2ba5c..446a300fc 100644 --- a/.github/pull_request_template.md +++ b/.github/pull_request_template.md @@ -36,5 +36,7 @@ Thanks for submitting a pull request! Please provide enough information so that # Checklist Please ensure the following tasks are completed before submitting this pull request. - -- [ ] Read, understood, and followed the [contributing guidelines](https://github.com/json-schema-org/website/blob/main/CONTRIBUTING.md). \ No newline at end of file +- [ ] I have reviewed my code for formatting and consistency. +- [ ] Read, understood, and followed the [contributing guidelines](https://github.com/json-schema-org/website/blob/main/CONTRIBUTING.md). +- [ ] I have tested my changes to ensure they work as expected. +- [ ] I have documented all relevant changes and updates as required. \ No newline at end of file From 84779d9287c3e03dc6ccfb599e6186fb8108b495 Mon Sep 17 00:00:00 2001 From: suhaniahirwar20 Date: Mon, 24 Mar 2025 21:41:46 -0400 Subject: [PATCH 2/3] Fix: Filter out past events in the Upcoming Events section --- pages/index.page.tsx | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/pages/index.page.tsx b/pages/index.page.tsx index 098f44bef..c877f5b80 100644 --- a/pages/index.page.tsx +++ b/pages/index.page.tsx @@ -521,7 +521,13 @@ const Home = (props: any) => { Upcoming events
    - {props.datesInfo.map((event: any, index: any) => ( + {(() => { + const today = new Date(); + const upcomingEvents = props.datesInfo.filter((event: any) => { + const eventDate = new Date(event.year, event.month - 1, event.day); + return eventDate >= today; + }); + return upcomingEvents.map((event: any, index: any) => (
  • @@ -535,7 +541,8 @@ const Home = (props: any) => {

- ))} + )); + })()} @@ -930,3 +937,4 @@ for Accounting integrations' export default Home; Home.getLayout = (page: React.ReactNode) => getLayout(page); + From 8c520dbfbacbf76bcc2eb695e891eb2e468352ab Mon Sep 17 00:00:00 2001 From: Suhani <164910079+Suhaniahirwar20@users.noreply.github.com> Date: Mon, 24 Mar 2025 11:53:43 -0400 Subject: [PATCH 3/3] Delete .github/pull_request_template.md --- .github/pull_request_template.md | 42 -------------------------------- 1 file changed, 42 deletions(-) delete mode 100644 .github/pull_request_template.md diff --git a/.github/pull_request_template.md b/.github/pull_request_template.md deleted file mode 100644 index 446a300fc..000000000 --- a/.github/pull_request_template.md +++ /dev/null @@ -1,42 +0,0 @@ - - - - - -**What kind of change does this PR introduce?** - - - -**Issue Number:** - -- Closes #___ -- Related to #___ -- Others? - - -**Screenshots/videos:** - - - -**If relevant, did you update the documentation?** - - - -**Summary** - - - - -**Does this PR introduce a breaking change?** - - - -# Checklist - -Please ensure the following tasks are completed before submitting this pull request. -- [ ] I have reviewed my code for formatting and consistency. -- [ ] Read, understood, and followed the [contributing guidelines](https://github.com/json-schema-org/website/blob/main/CONTRIBUTING.md). -- [ ] I have tested my changes to ensure they work as expected. -- [ ] I have documented all relevant changes and updates as required. \ No newline at end of file