From 7671fb808349950beb1b1a6d019b75a978931623 Mon Sep 17 00:00:00 2001 From: znaim Date: Fri, 18 Oct 2024 13:00:00 -0400 Subject: [PATCH 1/6] created the footer component with the privacy policy and EULA --- .../localization/en/protocol_generator.json | 1 + .../src/molecules/Footer/Footer.stories.tsx | 22 +++++++ .../Footer/__tests__/Footer.test.tsx | 31 ++++++++++ .../src/molecules/Footer/index.tsx | 58 +++++++++++++++++++ 4 files changed, 112 insertions(+) create mode 100644 opentrons-ai-client/src/molecules/Footer/Footer.stories.tsx create mode 100644 opentrons-ai-client/src/molecules/Footer/__tests__/Footer.test.tsx create mode 100644 opentrons-ai-client/src/molecules/Footer/index.tsx diff --git a/opentrons-ai-client/src/assets/localization/en/protocol_generator.json b/opentrons-ai-client/src/assets/localization/en/protocol_generator.json index f44eff34e73..e31304dd01e 100644 --- a/opentrons-ai-client/src/assets/localization/en/protocol_generator.json +++ b/opentrons-ai-client/src/assets/localization/en/protocol_generator.json @@ -20,6 +20,7 @@ "pcr_flex": "PCR (Flex)", "pcr": "PCR", "pipettes": "Pipettes: Specify your pipettes, including the volume, number of channels, and whether they’re mounted on the left or right.", + "privacy_policy": "By continuing, you agree to the Opentrons \nPrivacy Policy\n and \nEnd user license agreement\n Copyright © 2024 Opentrons", "reagent_transfer_flex": "Reagent Transfer (Flex)", "reagent_transfer": "Reagent Transfer", "reload_page": "To start over and create a new protocol, simply reload the page.", diff --git a/opentrons-ai-client/src/molecules/Footer/Footer.stories.tsx b/opentrons-ai-client/src/molecules/Footer/Footer.stories.tsx new file mode 100644 index 00000000000..5869d9af146 --- /dev/null +++ b/opentrons-ai-client/src/molecules/Footer/Footer.stories.tsx @@ -0,0 +1,22 @@ +import { type Meta, type StoryObj } from '@storybook/react' +import { Footer } from '.' +import { COLORS, Flex } from '@opentrons/components' + +const meta: Meta = { + title: 'AI/Molecules/Footer', + component: Footer, + decorators: [ + Story => ( + + + + ), + ] +} +export default meta + +type Story = StoryObj + +export const FooterExample: Story = { +} \ No newline at end of file diff --git a/opentrons-ai-client/src/molecules/Footer/__tests__/Footer.test.tsx b/opentrons-ai-client/src/molecules/Footer/__tests__/Footer.test.tsx new file mode 100644 index 00000000000..70b1f846377 --- /dev/null +++ b/opentrons-ai-client/src/molecules/Footer/__tests__/Footer.test.tsx @@ -0,0 +1,31 @@ +import { Footer } from '..'; +import { renderWithProviders } from '../../../__testing-utils__' +import { screen } from '@testing-library/react' + +const render = () => { + return renderWithProviders(