From ca52c4d02cc559fa0e5cfc6fb2899fb78a8e4926 Mon Sep 17 00:00:00 2001 From: AKILIMAILI CIZUNGU Innocent <51681130+Innocent-Akim@users.noreply.github.com> Date: Sun, 8 Dec 2024 20:00:16 +0200 Subject: [PATCH] [Feat]: Manage Permissions and Improve Time entries view (#3403) * fix: Kanban | Cards are broken when toogle FullWidth Mode * fix: cspell * feat: manage permissions and improve time entries view * fix:coderabbitai * feat(timesheet): calculate and display total duration * improve:Enhanced user permissions management in the Timesheet components * improve: update status style for tasks in timesheet --- apps/web/app/[locale]/kanban/page.tsx | 18 +++-- .../[memberId]/components/AddTaskModal.tsx | 2 +- .../[memberId]/components/CalendarView.tsx | 4 +- .../[memberId]/components/TimesheetFilter.tsx | 27 ++++--- .../components/TimesheetFilterDate.tsx | 13 ++-- .../[memberId]/components/TimesheetView.tsx | 5 +- .../[locale]/timesheet/[memberId]/page.tsx | 37 ++++++---- .../hooks/features/useTimelogFilterOptions.ts | 14 +++- apps/web/app/hooks/features/useTimesheet.ts | 14 ++-- .../calendar/table-time-sheet.tsx | 30 +++++--- apps/web/lib/features/task/task-displays.tsx | 20 ++++-- .../lib/features/team-members-kanban-view.tsx | 72 +++++++++---------- apps/web/lib/settings/member-table.tsx | 2 +- 13 files changed, 160 insertions(+), 98 deletions(-) diff --git a/apps/web/app/[locale]/kanban/page.tsx b/apps/web/app/[locale]/kanban/page.tsx index 018561643..f4cf38ee6 100644 --- a/apps/web/app/[locale]/kanban/page.tsx +++ b/apps/web/app/[locale]/kanban/page.tsx @@ -31,6 +31,7 @@ import { useAtomValue } from 'jotai'; import { fullWidthState } from '@app/stores/fullWidth'; import { CircleIcon } from 'lucide-react'; import { XMarkIcon } from '@heroicons/react/20/solid'; +import { cn } from '@/lib/utils'; const Kanban = () => { const { @@ -161,11 +162,10 @@ const Kanban = () => {