From eaeb00c5640d2fcc45d3ae8192282f69edc234d8 Mon Sep 17 00:00:00 2001 From: mohiit1502 Date: Sun, 6 Oct 2024 00:07:08 +0530 Subject: [PATCH] Task Manager related components placed in this repo --- .../TaskList/TaskList.component.scss | 3 + src/app/components/TaskList/TaskList.test.ts | 8 + src/app/components/TaskList/TaskList.tsx | 107 ++++++++ src/app/components/TaskList/index.ts | 3 + .../TaskLoginPrompt.component.scss | 3 + .../TaskLoginPrompt/TaskLoginPrompt.test.ts | 8 + .../TaskLoginPrompt/TaskLoginPrompt.tsx | 61 +++++ src/app/components/TaskLoginPrompt/index.ts | 3 + .../TaskViewer/TaskViewer.component.scss | 12 + .../components/TaskViewer/TaskViewer.test.ts | 8 + src/app/components/TaskViewer/TaskViewer.tsx | 257 ++++++++++++++++++ src/app/components/TaskViewer/index.ts | 3 + 12 files changed, 476 insertions(+) create mode 100755 src/app/components/TaskList/TaskList.component.scss create mode 100755 src/app/components/TaskList/TaskList.test.ts create mode 100755 src/app/components/TaskList/TaskList.tsx create mode 100755 src/app/components/TaskList/index.ts create mode 100755 src/app/components/TaskLoginPrompt/TaskLoginPrompt.component.scss create mode 100755 src/app/components/TaskLoginPrompt/TaskLoginPrompt.test.ts create mode 100755 src/app/components/TaskLoginPrompt/TaskLoginPrompt.tsx create mode 100755 src/app/components/TaskLoginPrompt/index.ts create mode 100755 src/app/components/TaskViewer/TaskViewer.component.scss create mode 100755 src/app/components/TaskViewer/TaskViewer.test.ts create mode 100755 src/app/components/TaskViewer/TaskViewer.tsx create mode 100755 src/app/components/TaskViewer/index.ts diff --git a/src/app/components/TaskList/TaskList.component.scss b/src/app/components/TaskList/TaskList.component.scss new file mode 100755 index 0000000..600beb3 --- /dev/null +++ b/src/app/components/TaskList/TaskList.component.scss @@ -0,0 +1,3 @@ +.ar-TaskList { + +} diff --git a/src/app/components/TaskList/TaskList.test.ts b/src/app/components/TaskList/TaskList.test.ts new file mode 100755 index 0000000..3fa7d52 --- /dev/null +++ b/src/app/components/TaskList/TaskList.test.ts @@ -0,0 +1,8 @@ +import React from "react" +import TaskList from "./TaskList" + +describe("TaskList", () => { + it("renders without error", () => { + + }) +}) diff --git a/src/app/components/TaskList/TaskList.tsx b/src/app/components/TaskList/TaskList.tsx new file mode 100755 index 0000000..27c5658 --- /dev/null +++ b/src/app/components/TaskList/TaskList.tsx @@ -0,0 +1,107 @@ +import { useEffect, useState } from "react" +import { + ArButtonVariants, + ArPlacement, + ArSizes, + FunctionType, + Task, + TaskListProps, +} from "@armco/types" +import { Button, SidePanel } from ".." +import "./TaskList.component.scss" + +interface TaskItemProps { + setSelectedTask: FunctionType + task: Task +} + +const TaskItem = (props: TaskItemProps) => { + const { setSelectedTask, task } = props + return ( +