From a938b12448ee9f590fd6e4980d4ca8924d87805c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=ED=99=8D=EC=B0=BD=EA=B8=B0?= Date: Thu, 3 Oct 2024 20:37:48 +0900 Subject: [PATCH] =?UTF-8?q?Design:=20browse=20=ED=8E=98=EC=9D=B4=EC=A7=80,?= =?UTF-8?q?=20=EB=A6=AC=EB=B7=B0=20=ED=8E=98=EC=9D=B4=EC=A7=80=20=EB=A6=AC?= =?UTF-8?q?=ED=8C=A9=ED=86=A0=EB=A7=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/components/ManageLayout/index.tsx | 32 ++++++++------- .../src/components/MemberAddModal/index.tsx | 2 +- frontend/src/components/ProjectCard/index.tsx | 6 +-- .../components/ProjectCreateModal/index.tsx | 2 +- .../src/components/ReviewList/ReviewItem.tsx | 4 +- frontend/src/components/ReviewList/index.tsx | 4 +- .../WorkspaceBrowseLayout/index.tsx | 41 +++++++++++-------- frontend/src/pages/ProjectMemberManage.tsx | 8 ++-- frontend/src/pages/ProjectReviewList.tsx | 4 +- frontend/src/pages/ReviewDetail.tsx | 38 +++++++++-------- frontend/src/pages/WorkspaceBrowseDetail.tsx | 18 ++++---- frontend/src/pages/WorkspaceMemberManage.tsx | 8 ++-- frontend/src/pages/WorkspaceReviewList.tsx | 4 +- 13 files changed, 91 insertions(+), 80 deletions(-) diff --git a/frontend/src/components/ManageLayout/index.tsx b/frontend/src/components/ManageLayout/index.tsx index d1488a1..ae5c5b0 100644 --- a/frontend/src/components/ManageLayout/index.tsx +++ b/frontend/src/components/ManageLayout/index.tsx @@ -22,27 +22,29 @@ export default function ManageLayout({ tabTitle }: { tabTitle: string }) {
-
-
+
+
{workspaceTitle}
- {projects.map((project: ProjectResponse) => ( - - {project.title} - - ))} +
+ {projects.map((project: ProjectResponse) => ( + + {project.title} + + ))} +
diff --git a/frontend/src/components/MemberAddModal/index.tsx b/frontend/src/components/MemberAddModal/index.tsx index 31a2724..34d25b6 100644 --- a/frontend/src/components/MemberAddModal/index.tsx +++ b/frontend/src/components/MemberAddModal/index.tsx @@ -38,7 +38,7 @@ export default function MemberAddModal({ projectId, buttonClass = '' }: MemberAd diff --git a/frontend/src/components/WorkspaceBrowseLayout/index.tsx b/frontend/src/components/WorkspaceBrowseLayout/index.tsx index c5e19cb..9a35aee 100644 --- a/frontend/src/components/WorkspaceBrowseLayout/index.tsx +++ b/frontend/src/components/WorkspaceBrowseLayout/index.tsx @@ -38,28 +38,33 @@ export default function WorkspaceBrowseLayout() {
-
-
-

+
+
+

내 워크스페이스

- {workspaces.length > 0 ? ( - workspaces.map((workspace: WorkspaceResponse) => ( - - cn('cursor-pointer rounded-lg p-3 hover:bg-gray-200', isActive ? 'body-strong bg-gray-300' : 'body') - } - > - {workspace.title} - - )) - ) : ( -

워크스페이스가 없습니다.

- )} +
+ {workspaces.length > 0 ? ( + workspaces.map((workspace: WorkspaceResponse) => ( + + cn( + 'cursor-pointer rounded-lg p-3 hover:bg-gray-200', + isActive ? 'body-strong bg-gray-300' : 'body' + ) + } + > + {workspace.title} + + )) + ) : ( +

워크스페이스가 없습니다.

+ )} +
diff --git a/frontend/src/pages/ProjectMemberManage.tsx b/frontend/src/pages/ProjectMemberManage.tsx index cf6ca05..bb471fd 100644 --- a/frontend/src/pages/ProjectMemberManage.tsx +++ b/frontend/src/pages/ProjectMemberManage.tsx @@ -88,14 +88,14 @@ export default function ProjectMemberManage() { }; return ( -
+
-
-

프로젝트 멤버 관리

+
+

프로젝트 멤버 관리

{isAdminOrManager && }
-
+
{sortedMembers.length === 0 ? (
프로젝트에 멤버가 없습니다.
) : ( diff --git a/frontend/src/pages/ProjectReviewList.tsx b/frontend/src/pages/ProjectReviewList.tsx index cdf87cc..b0e8d2c 100644 --- a/frontend/src/pages/ProjectReviewList.tsx +++ b/frontend/src/pages/ProjectReviewList.tsx @@ -60,8 +60,8 @@ export default function ProjectReviewList() { return (
}>
-
-

프로젝트 리뷰

+
+

프로젝트 리뷰

by

-

- {reviewDetail.reviewer.nickname} ({reviewDetail.reviewer.email}) -

+

{reviewDetail.reviewer.nickname}

+

({reviewDetail.reviewer.email})

+

{timeAgo(reviewDetail.updatedAt)}

+

({formatDateTime(reviewDetail.updatedAt)})

) : ( -

updated

+ <> +

by

+

{reviewDetail.author.nickname}

+

({reviewDetail.author.email})

+

{timeAgo(reviewDetail.createdAt)}

+

({formatDateTime(reviewDetail.createdAt)})

+ )} - -

{timeAgo(reviewDetail.updatedAt)}

-

({formatDateTime(reviewDetail.updatedAt)})

-
-
-

- {reviewDetail.author.nickname} ({reviewDetail.author.email}) -

-

requested a review

-

{timeAgo(reviewDetail.createdAt)}

-

({formatDateTime(reviewDetail.createdAt)})

+ {reviewDetail.reviewStatus === 'APPROVED' || reviewDetail.reviewStatus === 'REJECTED' ? ( +
+

{reviewDetail.author.nickname}

+

({reviewDetail.author.email}) requested a review

+

{timeAgo(reviewDetail.createdAt)}

+

({formatDateTime(reviewDetail.createdAt)})

+
+ ) : ( + <> + )}
diff --git a/frontend/src/pages/WorkspaceBrowseDetail.tsx b/frontend/src/pages/WorkspaceBrowseDetail.tsx index 41fec6c..0ef2ecc 100644 --- a/frontend/src/pages/WorkspaceBrowseDetail.tsx +++ b/frontend/src/pages/WorkspaceBrowseDetail.tsx @@ -29,7 +29,7 @@ export default function WorkspaceBrowseDetail() { }; return ( -
+
void; }) { return ( -
-

{workspaceName}

+
+

{workspaceName}

-
- -
+
); @@ -96,7 +94,7 @@ function ProjectList({ projects, workspaceId }: { projects: ProjectResponse[]; w } return ( -
+
{projects.map((project: ProjectResponse) => ( +
-
-

워크스페이스 멤버 관리

+
+

워크스페이스 멤버 관리

-
+
{members.length === 0 ? (
워크스페이스에 멤버가 없습니다.
) : ( diff --git a/frontend/src/pages/WorkspaceReviewList.tsx b/frontend/src/pages/WorkspaceReviewList.tsx index 11e62a5..bc14e38 100644 --- a/frontend/src/pages/WorkspaceReviewList.tsx +++ b/frontend/src/pages/WorkspaceReviewList.tsx @@ -60,8 +60,8 @@ export default function WorkspaceReviewList() { return (
}>
-
-

워크스페이스 리뷰

+
+

워크스페이스 리뷰