diff --git a/.cspell.json b/.cspell.json index cc7ff3552..2a0e1004f 100644 --- a/.cspell.json +++ b/.cspell.json @@ -331,7 +331,8 @@ "nodesource", "Koyeb", "Northflank", - "prebuild" + "prebuild", + "dataToDisplay" ], "useGitignore": true, "ignorePaths": [ diff --git a/apps/web/app/[locale]/page-component.tsx b/apps/web/app/[locale]/page-component.tsx index dd2727d1c..24e9ef2ba 100644 --- a/apps/web/app/[locale]/page-component.tsx +++ b/apps/web/app/[locale]/page-component.tsx @@ -50,7 +50,6 @@ function MainPage() { { title: t(`common.${view}`), href: `/` } ]; const { online } = useNetworkState(); - console.log(path, 'path'); useEffect(() => { if (view == IssuesView.KANBAN && path == '/') { setView(IssuesView.CARDS); diff --git a/apps/web/app/[locale]/profile/[memberId]/page.tsx b/apps/web/app/[locale]/profile/[memberId]/page.tsx index 2a68f67a5..d2415ed75 100644 --- a/apps/web/app/[locale]/profile/[memberId]/page.tsx +++ b/apps/web/app/[locale]/profile/[memberId]/page.tsx @@ -122,7 +122,7 @@ const Profile = React.memo(function ProfilePage({ params }: { params: { memberId )} - {hook.tab !== 'worked' ? ( + {hook.tab !== 'worked' || activityFilter == 'Tasks' ? ( ) : ( activityScreens[activityFilter] ?? null diff --git a/apps/web/app/[locale]/settings/layout.tsx b/apps/web/app/[locale]/settings/layout.tsx index 4e03ee4b1..b38a32b6a 100644 --- a/apps/web/app/[locale]/settings/layout.tsx +++ b/apps/web/app/[locale]/settings/layout.tsx @@ -24,32 +24,30 @@ const SettingsLayout = ({ children }: { children: JSX.Element }) => { return ; } else { return ( -
- -
-
- -
- - - + +
+
+ +
+ + + - -
-
-
-
-
- +
+ +
+
+
+
+
{children}
-
{children}
- -
+
+ ); } }; diff --git a/apps/web/app/[locale]/settings/personal/page.tsx b/apps/web/app/[locale]/settings/personal/page.tsx index fa65fe4b1..4646d5c2f 100644 --- a/apps/web/app/[locale]/settings/personal/page.tsx +++ b/apps/web/app/[locale]/settings/personal/page.tsx @@ -12,40 +12,37 @@ const Personal = () => { return ( <> - - - - - - {/* - {t('pages.settings.HEADING_DESCRIPTION')} - */} - - - - - - - - - - - + + + + + {/* + {t('pages.settings.HEADING_DESCRIPTION')} + */} + + + + + + + + + ); }; diff --git a/apps/web/app/[locale]/settings/team/page.tsx b/apps/web/app/[locale]/settings/team/page.tsx index 029a0128e..f523a31de 100644 --- a/apps/web/app/[locale]/settings/team/page.tsx +++ b/apps/web/app/[locale]/settings/team/page.tsx @@ -17,7 +17,6 @@ import { InvitationSetting } from 'lib/settings/invitation-setting'; import { IssuesSettings } from 'lib/settings/issues-settings'; import { MemberSetting } from 'lib/settings/member-setting'; - const Team = () => { const t = useTranslations(); const [user] = useRecoilState(userState); @@ -25,94 +24,92 @@ const Team = () => { const { isTeamManager } = useIsMemberManager(user); return ( <> + {isTeamMember ? ( + <> + + + + {/* General Settings */} + +
+ + +
+
- {isTeamMember ? ( - < > - - - - {/* General Settings */} - -
- - -
-
- - {/* Invitations */} - {isTeamManager ? ( - - - - ) : null} - - {/* Members */} - {isTeamManager ? ( - - - - ) : null} + {/* Invitations */} + {isTeamManager ? ( + + + + ) : null} - {isTeamManager && ( - - - - )} + {/* Members */} + {isTeamManager ? ( + + + + ) : null} - {/* Issues Settings */} - - - + {isTeamManager && ( + + + + )} - {/* TODO */} - {/* Notification Settings */} - {/* - - */} + {/* Issues Settings */} + + + - {/* Danger Zone */} - - - - - ) : ( -
- - - -
- )} + {/* TODO */} + {/* Notification Settings */} + {/* + + */} + {/* Danger Zone */} + + + + + ) : ( +
+ + + +
+ )} ); }; diff --git a/apps/web/lib/features/task/task-input.tsx b/apps/web/lib/features/task/task-input.tsx index 9e8cac2be..495328456 100644 --- a/apps/web/lib/features/task/task-input.tsx +++ b/apps/web/lib/features/task/task-input.tsx @@ -573,7 +573,7 @@ function TaskCard({ {/* Task list */} -
    +
      {forParentChildRelationship && data?.map((task, i) => { const last = (datas.filteredTasks?.length || 0) - 1 === i; diff --git a/apps/web/lib/features/user-profile-tasks.tsx b/apps/web/lib/features/user-profile-tasks.tsx index 220eec776..38fcbfe6d 100644 --- a/apps/web/lib/features/user-profile-tasks.tsx +++ b/apps/web/lib/features/user-profile-tasks.tsx @@ -31,7 +31,8 @@ export function UserProfileTask({ profile, tabFiltered }: Props) { profile.member?.running == true ? t.id !== profile.activeUserTeamTask?.id : t ); const { nextOffset, data } = useInfinityScrolling(otherTasks); - const dataTodisplay = otherTasks.length > 10 ? otherTasks : data; + const dataToDisplay = otherTasks.length < 10 ? otherTasks : data; + // const { total, onPageChange, itemsPerPage, itemOffset, endOffset, setItemsPerPage, currentItems } = // usePagination(otherTasks); @@ -85,7 +86,7 @@ export function UserProfileTask({ profile, tabFiltered }: Props) { )}
        - {dataTodisplay.map((task, index) => { + {dataToDisplay.map((task, index) => { return (
      • diff --git a/apps/web/lib/settings/invitation-table.tsx b/apps/web/lib/settings/invitation-table.tsx index 12bc99c9c..7d2fd6267 100644 --- a/apps/web/lib/settings/invitation-table.tsx +++ b/apps/web/lib/settings/invitation-table.tsx @@ -19,7 +19,7 @@ export const InvitationTable = ({ invitations }: { invitations: (IInvitation | I return (
        -
        +
        @@ -31,31 +31,31 @@ export const InvitationTable = ({ invitations }: { invitations: (IInvitation | I @@ -64,7 +64,7 @@ export const InvitationTable = ({ invitations }: { invitations: (IInvitation | I {currentItems.map((invitation, index) => ( - +
        {t('pages.invite.invitationTable.POSITION')} {t('pages.invite.invitationTable.DATE_AND_TIME_REQUEST')} {t('pages.invite.invitationTable.CV_OR_ATTACHMENT')} {t('common.LINK')} {t('common.STATUS')}