From ab46c1b9641e32d5fed8c07ff9c0debfd9369902 Mon Sep 17 00:00:00 2001 From: Ben Hutton Date: Mon, 23 Jun 2025 11:47:35 +0100 Subject: [PATCH 1/2] No longer used Remember component. Resolves https://github.com/json-schema-org/website/issues/1726 --- components/Remember.tsx | 106 ---------------------------------------- 1 file changed, 106 deletions(-) delete mode 100644 components/Remember.tsx diff --git a/components/Remember.tsx b/components/Remember.tsx deleted file mode 100644 index 55ff3c963..000000000 --- a/components/Remember.tsx +++ /dev/null @@ -1,106 +0,0 @@ -import React from 'react'; -import { Card, CardHeader, CardContent, CardTitle } from '@/components/ui/card'; -const linkProps = { className: 'underline', rel: 'noreferrer' }; - -export const Remember = () => ( - - - - - - - Remember - - - -
- - Contribute to the JSON Schema Docs - -

- Code isn't the only way to contribute to OSS; Docs are extremely - import for the JSON Schema Ecosystem. At JSON Schema, We value Docs - contributions as much as every other type of contribution! -

-
- -
- - To get started as a Docs contributor: - -
    -
  1. - Familiarize yourself with our project's{' '} - - Contribution Guide - {' '} - and our{' '} - - Code of Conduct - - . -
  2. -
  3. - Head over to our{' '} - - JSON Schema Docs Board - - . -
  4. -
  5. - Pick an issue you would like to contribute to and leave a comment - introducing yourself. This is also the perfect place to leave any - questions you may have on how to get started. -
  6. -
  7. - If there is no work done in that Docs issue yet, feel free to open a - PR and get started! -
  8. -
-
- -
- - Docs contributor questions? - -

- Do you have a documentation contributor question? Please leave a - comment in the issue or PR or join the #contribute or{' '} - #documentation channels on{' '} - - Slack - {' '} - and leave a message. -

-
-
-
-); From af94963591aac0af5a56c7f6cbdf94fdfb23761e Mon Sep 17 00:00:00 2001 From: Ben Hutton Date: Tue, 24 Jun 2025 16:10:31 +0100 Subject: [PATCH 2/2] Also remove tests for Remember component as it is no longer used --- cypress/components/Remember.cy.tsx | 66 ------------------------------ 1 file changed, 66 deletions(-) delete mode 100644 cypress/components/Remember.cy.tsx diff --git a/cypress/components/Remember.cy.tsx b/cypress/components/Remember.cy.tsx deleted file mode 100644 index 5766bd7e3..000000000 --- a/cypress/components/Remember.cy.tsx +++ /dev/null @@ -1,66 +0,0 @@ -import React from 'react'; -import { Remember } from '~/components/Remember'; - -describe('Remember Component', () => { - // Should render the Remember component correctly - it('should render the Remember component', () => { - // Mount the Remember component - cy.mount(); - - // Should have the correct elements and text - cy.get('[data-test="remember-heading"]') - .should('have.prop', 'tagName', 'DIV') - .and('contain.text', 'Remember') - .and('have.class', 'text-h5mobile') - .and('have.class', 'md:text-h5') - .and('have.class', 'leading-none') - .and('have.class', 'font-semibold'); - - cy.get('[data-test="contribute-docs-span"]') - .should('have.prop', 'tagName', 'SPAN') - .and('contain.text', 'Contribute to the JSON Schema Docs'); - - cy.get('[data-test="contribute-docs-div"]').should('exist'); - - cy.get('[data-test="get-started-span"]') - .should('have.prop', 'tagName', 'SPAN') - .and('contain.text', 'To get started as a Docs contributor:'); - - cy.get('ol').should('exist'); - - cy.get('li').should('have.length', 4); - - cy.get('[data-test="contribute-docs-questions-span"]') - .should('have.prop', 'tagName', 'SPAN') - .and('contain.text', 'Docs contributor questions?'); - - cy.get('[data-test="contribute-docs-questions-div"]').should('exist'); - - // Should have the correct links - cy.get('a').should('have.length', 4); - cy.get('a') - .eq(0) - .should( - 'have.attr', - 'href', - 'https://github.com/json-schema-org/community/blob/main/CONTRIBUTING.md', - ); - cy.get('a') - .eq(1) - .should( - 'have.attr', - 'href', - 'https://github.com/json-schema-org/.github/blob/main/CODE_OF_CONDUCT.md', - ); - cy.get('a') - .eq(2) - .should( - 'have.attr', - 'href', - 'https://github.com/orgs/json-schema-org/projects/16', - ); - cy.get('a') - .eq(3) - .should('have.attr', 'href', 'https://json-schema.org/slack'); - }); -});