diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml
index 8c4106c4..526f3fa2 100644
--- a/.github/workflows/test.yaml
+++ b/.github/workflows/test.yaml
@@ -17,5 +17,5 @@ jobs:
with:
node-version: "16.x"
- run: npm ci
- - run: npm ts
- - run: npm test
\ No newline at end of file
+ - run: npm run ts
+ - run: npm run test
\ No newline at end of file
diff --git a/src/components/FadingWrapper.tsx b/src/components/FadingWrapper.tsx
new file mode 100644
index 00000000..7e0d61ce
--- /dev/null
+++ b/src/components/FadingWrapper.tsx
@@ -0,0 +1,18 @@
+import { Box } from "@chakra-ui/react"
+import React from "react"
+
+type FadingWrapperProps = {
+ gridColumn: string
+ gridRow: string
+}
+
+export const FadingWrapper = ({ gridColumn, gridRow }: FadingWrapperProps) => (
+ <>
+
+
+ >
+)
diff --git a/src/components/MatchColumns.tsx b/src/components/MatchColumns.tsx
index 85121655..001a5430 100644
--- a/src/components/MatchColumns.tsx
+++ b/src/components/MatchColumns.tsx
@@ -1,80 +1,50 @@
-import React, { useMemo } from "react"
-import { MatchColumnsFields } from "./MatchColumnsFields"
-import { generateOptions } from "../utils/generateOptions"
-import { Box, Text, Button } from "@chakra-ui/react"
+import React from "react"
+import { Box, Flex, Heading, Text } from "@chakra-ui/react"
+import { FadingWrapper } from "./FadingWrapper"
-const MATCH_COLUMNS_TITLE = "Validate if columns were matched correctly"
-const CANCEL_BUTTON_TITLE = "Cancel"
-const CONFIRM_BUTTON_TITLE = "Confirm and continue"
-const REQUIRED_ERROR_TEXT = "Required"
-const DUPLICATE_COLUMN_TEXT = "Duplicate column"
+const MATCH_COLUMNS_TITLE = "Validate column matching"
+const USER_TABLE_TITLE = "Your table"
+const TEMPLATE_TITLE = "Will become"
type MatchColumnsProps = {
- onCancel: () => void
- headerValues: string[]
- table: any
- onContinue: (matchedColumns: object) => void
- error?: string
- values: object
- loading: boolean
+ headerRow: string[]
}
-export const MatchColumns = ({
- onCancel,
- headerValues,
- table,
- onContinue,
- error,
- values,
- loading,
-}: MatchColumnsProps) => {
- const options = useMemo(() => generateOptions(table), [table])
- // const generatedSchema = useMemo(
- // () =>
- // yup.object(
- // Object.fromEntries(
- // headerValues.map((headerValue) => [
- // headerValue,
- // yup
- // .string()
- // .required(REQUIRED_ERROR_TEXT)
- // .test(
- // "duplicate",
- // DUPLICATE_COLUMN_TEXT,
- // (value: string | undefined, context: { [key: string]: any }): any => {
- // const isUnique =
- // Object.values(context.parent).filter((parentValue) => value && parentValue === value).length <= 1
- // return isUnique
- // },
- // ),
- // ]),
- // ),
- // ),
- // [headerValues],
- // )
-
- //