diff --git a/apps/web/app/[locale]/page-component.tsx b/apps/web/app/[locale]/page-component.tsx index 24e9ef2ba..fca662406 100644 --- a/apps/web/app/[locale]/page-component.tsx +++ b/apps/web/app/[locale]/page-component.tsx @@ -78,7 +78,7 @@ function MainPage() { -
+
{isTeamMember ? : null} {view === IssuesView.CARDS && isTeamMember ? ( diff --git a/apps/web/app/[locale]/settings/personal/page.tsx b/apps/web/app/[locale]/settings/personal/page.tsx index 4646d5c2f..1bc0a9065 100644 --- a/apps/web/app/[locale]/settings/personal/page.tsx +++ b/apps/web/app/[locale]/settings/personal/page.tsx @@ -11,7 +11,7 @@ const Personal = () => { const t = useTranslations(); return ( - <> +
); }; export default withAuthentication(Personal, { displayName: 'Personal' }); diff --git a/apps/web/app/[locale]/settings/team/page.tsx b/apps/web/app/[locale]/settings/team/page.tsx index f523a31de..f99f5bc3a 100644 --- a/apps/web/app/[locale]/settings/team/page.tsx +++ b/apps/web/app/[locale]/settings/team/page.tsx @@ -23,7 +23,7 @@ const Team = () => { const { isTeamMember, activeTeam } = useOrganizationTeams(); const { isTeamManager } = useIsMemberManager(user); return ( - <> +
{isTeamMember ? ( <> @@ -110,7 +110,7 @@ const Team = () => {
)} - +
); }; diff --git a/apps/web/lib/features/task/task-card.tsx b/apps/web/lib/features/task/task-card.tsx index 2ee7c1650..1d0021a97 100644 --- a/apps/web/lib/features/task/task-card.tsx +++ b/apps/web/lib/features/task/task-card.tsx @@ -118,7 +118,7 @@ export function TaskCard(props: Props) {
-
+
{/* Task information */} + ); } @@ -32,7 +27,7 @@ export function UserInfoCell({ cell }: { cell: any }) { const publicTeam = get(cell, 'column.columnDef.meta.publicTeam', false); const memberInfo = useTeamMemberCard(member); - return ; + return ; } export function WorkedOnTaskCell({ row }: { row: any }) { @@ -45,7 +40,7 @@ export function WorkedOnTaskCell({ row }: { row: any }) { memberInfo={memberInfo} task={memberInfo.memberTask} isAuthUser={memberInfo.isAuthUser} - className="2xl:w-32 3xl:w-[8rem] min-w-[15rem] w-52 lg:w-1/5 flex flex-col gap-y-[1.125rem] justify-center" + className="2xl:w-48 3xl:w-[12rem] w-1/5 lg:px-4 flex flex-col gap-y-[1.125rem] justify-center" /> ); } @@ -60,7 +55,7 @@ export function TaskEstimateInfoCell({ row }: { row: any }) { memberInfo={memberInfo} edition={taskEdition} activeAuthTask={true} - className="lg:px-3 2xl:w-52 3xl:w-64 min-w-[15rem] w-52 lg:w-1/5" + className="w-1/5 lg:px-3 2xl:w-52 3xl:w-64" /> ); } diff --git a/apps/web/lib/features/team-members.tsx b/apps/web/lib/features/team-members.tsx index 1119ef926..d480926fb 100644 --- a/apps/web/lib/features/team-members.tsx +++ b/apps/web/lib/features/team-members.tsx @@ -25,7 +25,11 @@ export function TeamMembers({ publicTeam = false, kanbanView: view = IssuesView. const orderedMembers = [...members].sort((a, b) => (sortByWorkStatus(a, b) ? -1 : 1)); const blockViewMembers = - activeFilter == 'all' ? orderedMembers : orderedMembers.filter((m) => m.timerStatus === activeFilter); + activeFilter == 'all' + ? orderedMembers + : activeFilter == 'idle' + ? orderedMembers.filter((m: OT_Member) => m.timerStatus == undefined || m.timerStatus == 'idle') + : orderedMembers.filter((m) => m.timerStatus === activeFilter); const currentUser = members.find((m) => m.employee.userId === user?.id); const $members = members @@ -112,7 +116,8 @@ const sortByWorkStatus = (user_a: OT_Member, user_b: OT_Member) => { return user_a.timerStatus == 'running' || (user_a.timerStatus == 'online' && user_b.timerStatus != 'running') || (user_a.timerStatus == 'pause' && user_b.timerStatus !== 'running' && user_b.timerStatus !== 'online') || - (user_a.timerStatus == 'idle' && user_b.timerStatus == 'suspended') + (user_a.timerStatus == 'idle' && user_b.timerStatus == 'suspended') || + (user_a.timerStatus === undefined && user_b.timerStatus == 'suspended') ? true : false; }; diff --git a/apps/web/lib/features/team/invite/user-invite-card.tsx b/apps/web/lib/features/team/invite/user-invite-card.tsx index 738a19b14..82ea889a8 100644 --- a/apps/web/lib/features/team/invite/user-invite-card.tsx +++ b/apps/web/lib/features/team/invite/user-invite-card.tsx @@ -68,18 +68,18 @@ export function InvitedCard({ invitation, className }: Props) { {/* Task information */} - {t('common.TASK_TITTLE')} + {t('common.TASK_TITTLE')} {/* TaskTime */} -
+
{t('common.TODAY')}: 0h : 0m
{/* TaskEstimateInfo */} -
+
{/* : @@ -89,7 +89,7 @@ export function InvitedCard({ invitation, className }: Props) { {/* Card menu */} -
+
0h : 0m
diff --git a/apps/web/lib/features/team/user-team-block/index.tsx b/apps/web/lib/features/team/user-team-block/index.tsx index 07ea97078..565173a7b 100644 --- a/apps/web/lib/features/team/user-team-block/index.tsx +++ b/apps/web/lib/features/team/user-team-block/index.tsx @@ -83,7 +83,7 @@ export function UserTeamBlock({ className, active, member, publicTeam = false }: shadow="bigger" className={clsxm( 'relative items-center py-3 !px-4 dark:bg-[#1E2025] min-h-[7rem]', - ['dark:border border-t-[6px] ', cardColorType[timerStatusValue]], + ['dark:border border-t-[6px] dark:border-t-[6px]', cardColorType[timerStatusValue]], className )} > diff --git a/apps/web/lib/features/team/user-team-block/user-team-block-header.tsx b/apps/web/lib/features/team/user-team-block/user-team-block-header.tsx index 13b912613..3ad755f58 100644 --- a/apps/web/lib/features/team/user-team-block/user-team-block-header.tsx +++ b/apps/web/lib/features/team/user-team-block/user-team-block-header.tsx @@ -41,6 +41,7 @@ export function UserTeamBlockHeader() { members?.map((item) => { // eslint-disable-next-line @typescript-eslint/no-non-null-assertion membersStatusNumber[item.timerStatus!]++; + if (item.timerStatus === undefined) membersStatusNumber.idle += 1; }); return ( @@ -128,8 +129,7 @@ export function UserTeamBlockHeader() {

Paused

@@ -203,30 +203,6 @@ export function UserTeamBlockHeader() { )}
- {/*
- - {hook.filterType === 'search' && ( - { - hook.toggleFilterType('search'); - }} - /> - )} - -
*/} ); diff --git a/apps/web/lib/features/team/user-team-card/index.tsx b/apps/web/lib/features/team/user-team-card/index.tsx index 7c2fe52ad..f2eb407c2 100644 --- a/apps/web/lib/features/team/user-team-card/index.tsx +++ b/apps/web/lib/features/team/user-team-card/index.tsx @@ -132,7 +132,7 @@ export function UserTeamCard({ {/* Task information */} -
+
diff --git a/apps/web/lib/features/team/user-team-table/user-team-table-header.tsx b/apps/web/lib/features/team/user-team-table/user-team-table-header.tsx index 68f815ae4..6c706626e 100644 --- a/apps/web/lib/features/team/user-team-table/user-team-table-header.tsx +++ b/apps/web/lib/features/team/user-team-table/user-team-table-header.tsx @@ -3,11 +3,11 @@ import React from 'react'; function UserTeamTableHeader() { return (
-

Name

-

Task

-

Worked on Task

-

Estimate

-

Action

+

Name

+

Task

+

Worked on Task

+

Estimate

+

Action

); } diff --git a/apps/web/lib/features/timer/timer.tsx b/apps/web/lib/features/timer/timer.tsx index 108a17ec9..861a6eaf3 100644 --- a/apps/web/lib/features/timer/timer.tsx +++ b/apps/web/lib/features/timer/timer.tsx @@ -60,7 +60,7 @@ export function Timer({ className }: IClassName) { return (
@@ -69,7 +69,7 @@ export function Timer({ className }: IClassName) {