diff --git a/apps/web/app/constants.ts b/apps/web/app/constants.ts index 55dd56ec2..3fe5fe151 100644 --- a/apps/web/app/constants.ts +++ b/apps/web/app/constants.ts @@ -169,7 +169,8 @@ export const APPLICATION_LANGUAGES_CODE = [ export enum IssuesView { CARDS = 'CARDS', TABLE = 'TABLE', - BLOCKS = 'BLOCKS' + BLOCKS = 'BLOCKS', + KANBAN = 'KANBAN' } export const TaskStatus = { diff --git a/apps/web/components/ui/svgs/kanaban.tsx b/apps/web/components/ui/svgs/kanaban.tsx new file mode 100644 index 000000000..9cb793d96 --- /dev/null +++ b/apps/web/components/ui/svgs/kanaban.tsx @@ -0,0 +1,9 @@ +export default function KanbanIcon({ + className +}: { + className?: string +}) { + return ( + + ) +} \ No newline at end of file diff --git a/apps/web/lib/components/Kanban.tsx b/apps/web/lib/components/Kanban.tsx index 1f6cdb8af..835a980b8 100644 --- a/apps/web/lib/components/Kanban.tsx +++ b/apps/web/lib/components/Kanban.tsx @@ -54,7 +54,7 @@ function InnerItemList({items, title}: { }) { return ( <> -
+
{items.map((item: ITeamTask, index: number) => ( {(dragProvided: DraggableProvided, dragSnapshot: DraggableStateSnapshot) => ( diff --git a/apps/web/lib/components/kanban-card.tsx b/apps/web/lib/components/kanban-card.tsx index 909a7efd9..a5b0cbeb5 100644 --- a/apps/web/lib/components/kanban-card.tsx +++ b/apps/web/lib/components/kanban-card.tsx @@ -5,6 +5,9 @@ import { DraggableProvided } from "react-beautiful-dnd"; import CircularProgress from "@components/ui/svgs/circular-progress"; import PriorityIcon from "@components/ui/svgs/priority-icon"; import { Tag } from "@app/interfaces"; +import { useTimer } from "@app/hooks"; +import { pad } from "@app/helpers"; +import { TaskStatus } from "@app/constants"; function getStyle(provided: DraggableProvided, style: any) { if (!style) { @@ -134,6 +137,10 @@ export default function Item(props: any) { isClone, index, } = props; + + const { + fomatedTimeCounter: { hours, minutes, seconds } + } = useTimer(); return (
-
- Worked: -

0 h 0 m

-
+ + {item.status === TaskStatus.INPROGRESS ? ( +
+ Live: +

{pad(hours)}:{pad(minutes)}:{pad(seconds)}

+
+ ): ( +
+ Worked: +

{pad(hours)}:{pad(minutes)}:{pad(seconds)}

+
+ )} +
-
+
{item.members.map((option: any, index: number)=> { return ( (IssuesView.CARDS); const { online } = useNetworkState(); + const router = useRouter(); if (!online) { return ; @@ -44,6 +47,10 @@ function MainPage() { {/* */}
+ + + + + + + + +