From 92c53ad5cfabad4c9cdad8715a26226970d49d95 Mon Sep 17 00:00:00 2001 From: maceteligolden Date: Mon, 27 Nov 2023 11:46:22 +0100 Subject: [PATCH 1/5] feat:add circular progress svg component --- .../components/ui/svgs/circular-progress.tsx | 50 +++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 apps/web/components/ui/svgs/circular-progress.tsx diff --git a/apps/web/components/ui/svgs/circular-progress.tsx b/apps/web/components/ui/svgs/circular-progress.tsx new file mode 100644 index 000000000..cbc79e264 --- /dev/null +++ b/apps/web/components/ui/svgs/circular-progress.tsx @@ -0,0 +1,50 @@ +export default function CircularProgress({ + radius=24, + cx=24, + cy=24, + percentage=55 +}: { + radius?: number, + cx?: number, + cy?: number, + percentage: number +}) { + const circumference = radius * 2 * Math.PI; + + return ( + <> +
+ + + + + + + {percentage}H + +
+ + ) +} \ No newline at end of file From 4a401e7e8396973d61c740bd65aaebefb5b14617 Mon Sep 17 00:00:00 2001 From: maceteligolden Date: Mon, 27 Nov 2023 11:46:50 +0100 Subject: [PATCH 2/5] update:add circular progress to task card --- apps/web/lib/components/kanban-card.tsx | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/apps/web/lib/components/kanban-card.tsx b/apps/web/lib/components/kanban-card.tsx index 23a48cdc7..24cdf4768 100644 --- a/apps/web/lib/components/kanban-card.tsx +++ b/apps/web/lib/components/kanban-card.tsx @@ -2,6 +2,7 @@ import BugIcon from "@components/ui/svgs/bug"; import Image from 'next/image'; import VerticalThreeDot from "@components/ui/svgs/vertical-three-dot"; import { DraggableProvided } from "react-beautiful-dnd"; +import CircularProgress from "@components/ui/svgs/circular-progress"; function getStyle(provided: DraggableProvided, style: any) { if (!style) { @@ -78,9 +79,7 @@ const stackImages = (index: number, length: number) => { * @param props * @returns */ -export default function Item(props: any) { - - +export default function Item(props: any) { const { item, @@ -91,7 +90,7 @@ export default function Item(props: any) { isClone, index, } = props; - + return (
-
-
+
+ -
-

#213

-

{item.content}

+ + #213 + {item.content}
-
+
+ +
From 5eb24a964a3e4285490a9762233e7c999c40745b Mon Sep 17 00:00:00 2001 From: maceteligolden Date: Mon, 27 Nov 2023 11:47:11 +0100 Subject: [PATCH 3/5] chore:change demo content --- apps/web/pages/kanban/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/web/pages/kanban/index.tsx b/apps/web/pages/kanban/index.tsx index 4e0acecf6..750971d42 100644 --- a/apps/web/pages/kanban/index.tsx +++ b/apps/web/pages/kanban/index.tsx @@ -27,7 +27,7 @@ const Kanban= () => { todo: [ { id: '1', - content: 'demo content', + content: 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.', tags: [ { id: 'tag-1', From 15584c69a522a3dd591d6181fdd603b9865d5d6e Mon Sep 17 00:00:00 2001 From: maceteligolden Date: Mon, 27 Nov 2023 12:04:18 +0100 Subject: [PATCH 4/5] chore:add demo words to cspell --- .cspell.json | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.cspell.json b/.cspell.json index c574fe37b..71ff229fb 100644 --- a/.cspell.json +++ b/.cspell.json @@ -5,6 +5,9 @@ "$schema": "https://raw.githubusercontent.com/streetsidesoftware/cspell/main/cspell.schema.json", "words": [ "appdev", + "adipiscing", + "amet", + "aliqua", "signin", "APPSTORE", "barcodes", @@ -19,7 +22,11 @@ "clsxm", "commitlint", "compodoc", + "consectetur", + "dolor", "dummyimage", + "eiusmod", + "elit", "envalid", "everco", "everteamsdesktop", @@ -31,11 +38,14 @@ "heroicons", "Huhn", "icnsutils", + "incididunt", "isdragging", "isdraggingfrom", "isdropdisabled", + "ipsum", "JITSU", "kanban", + "Lorem", "libappindicator", "lucide", "mathieudutour", @@ -56,6 +66,7 @@ "testid", "Timesheet", "tanstack", + "tempor", "vcpu", "Vercel", "HUBSTAFF", @@ -78,6 +89,7 @@ "hyperscript", "nocheck", "locatio", + "labore", "falsey", "unhang", "popperjs", From d2205536e6c5ec6fedfe292c8bb836b1acc15962 Mon Sep 17 00:00:00 2001 From: maceteligolden Date: Mon, 27 Nov 2023 12:07:08 +0100 Subject: [PATCH 5/5] chore: add dolore to cspell --- .cspell.json | 1 + 1 file changed, 1 insertion(+) diff --git a/.cspell.json b/.cspell.json index 71ff229fb..2d252ec5b 100644 --- a/.cspell.json +++ b/.cspell.json @@ -24,6 +24,7 @@ "compodoc", "consectetur", "dolor", + "dolore", "dummyimage", "eiusmod", "elit",