Skip to content

Commit 3361bef

Browse files
committed
fixed/ui/ux improvement:my teams button
1 parent 74005d2 commit 3361bef

1 file changed

Lines changed: 35 additions & 32 deletions

File tree

‎apps/codebility/app/home/my-team/[projectId]/_components/TeamDetailView.tsx‎

Lines changed: 35 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -321,12 +321,41 @@ const TeamDetailView = ({ projectData }: TeamDetailViewProps) => {
321321
</Button>
322322
)}
323323

324-
{viewMode === "attendance" && isCurrentUserTeamLead && (
325-
<SyncAllAttendance
326-
projectId={projectInfo.id}
327-
isTeamLead={isCurrentUserTeamLead}
328-
/>
329-
)}
324+
{/* Sync All Points, Schedule Meeting, Kanban Board in One row */}
325+
<div className=" flex flex-col sm:flex-row items-stretch sm:items-center gap-2 w-full">
326+
{viewMode === "attendance" && isCurrentUserTeamLead && (
327+
<SyncAllAttendance
328+
projectId={projectInfo.id}
329+
isTeamLead={isCurrentUserTeamLead}
330+
/>
331+
)}
332+
333+
{/* Schedule Meeting - ONLY VISIBLE TO TEAM LEADS */}
334+
{isCurrentUserTeamLead && (
335+
<Button
336+
variant="outline"
337+
size="sm"
338+
className="flex items-center gap-2 h-9 border-gray-300 text-gray-700 hover:bg-gray-50 dark:border-gray-600 dark:text-gray-300 dark:hover:bg-gray-800"
339+
title="Schedule Meetings"
340+
onClick={() => setShowScheduleMeetingModal(true)}
341+
>
342+
<CalendarDays className="h-4 w-4" />
343+
Schedule Meeting
344+
</Button>
345+
)}
346+
347+
{/* Kanban Board Button - VISIBLE TO ALL MEMBERS */}
348+
<Button
349+
variant="outline"
350+
size="sm"
351+
className="flex items-center gap-2 h-9 border-purple-300 text-purple-700 hover:bg-purple-50 dark:border-purple-600 dark:text-purple-300 dark:hover:bg-purple-900/20"
352+
title="Go to Kanban Board"
353+
onClick={() => router.push(`/home/kanban/${projectInfo.id}`)}
354+
>
355+
<Kanban className="h-4 w-4" />
356+
Kanban Board
357+
</Button>
358+
</div>
330359

331360
{/* Manage Members - ONLY VISIBLE TO TEAM LEADS in Team View */}
332361
{viewMode === "team" && isCurrentUserTeamLead && (
@@ -340,32 +369,6 @@ const TeamDetailView = ({ projectData }: TeamDetailViewProps) => {
340369
{isLoadingMembers ? 'Loading...' : 'Manage Members'}
341370
</Button>
342371
)}
343-
344-
{/* Schedule Meeting - ONLY VISIBLE TO TEAM LEADS */}
345-
{isCurrentUserTeamLead && (
346-
<Button
347-
variant="outline"
348-
size="sm"
349-
className="flex items-center gap-2 h-9 border-gray-300 text-gray-700 hover:bg-gray-50 dark:border-gray-600 dark:text-gray-300 dark:hover:bg-gray-800"
350-
title="Schedule Meetings"
351-
onClick={() => setShowScheduleMeetingModal(true)}
352-
>
353-
<CalendarDays className="h-4 w-4" />
354-
Schedule Meeting
355-
</Button>
356-
)}
357-
358-
{/* Kanban Board Button - VISIBLE TO ALL MEMBERS */}
359-
<Button
360-
variant="outline"
361-
size="sm"
362-
className="flex items-center gap-2 h-9 border-purple-300 text-purple-700 hover:bg-purple-50 dark:border-purple-600 dark:text-purple-300 dark:hover:bg-purple-900/20"
363-
title="Go to Kanban Board"
364-
onClick={() => router.push(`/home/kanban/${projectInfo.id}`)}
365-
>
366-
<Kanban className="h-4 w-4" />
367-
Kanban Board
368-
</Button>
369372
</div>
370373
)}
371374
</div>

0 commit comments

Comments
 (0)