From 9e52d6f017941d346b7e2dba61f33a52de2a157e Mon Sep 17 00:00:00 2001 From: JAESEON PARK Date: Thu, 6 Aug 2026 15:07:21 +0900 Subject: [PATCH 01/57] =?UTF-8?q?style:=20=EC=9B=8C=ED=81=AC=EC=8A=A4?= =?UTF-8?q?=ED=8E=98=EC=9D=B4=EC=8A=A4=20=EB=94=94=EC=9E=90=EC=9D=B8=20?= =?UTF-8?q?=EB=B3=80=EA=B2=BD=20(grid-cols-2=EB=A1=9C=20=EC=88=98=EC=A0=95?= =?UTF-8?q?=20=EB=B0=8F=20=EC=A0=84=EC=B2=B4=EC=A0=81=EC=9D=B8=20=EB=94=94?= =?UTF-8?q?=EC=9E=90=EC=9D=B8=20=EB=94=94=ED=85=8C=EC=9D=BC=20=EA=B9=94?= =?UTF-8?q?=EB=81=8C=ED=95=98=EA=B2=8C=20=EC=88=98=EC=A0=95)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/workspace/WorkspaceCard.tsx | 102 +++++++++++------- .../workspace/WorkspaceListLoading.tsx | 29 ++--- src/pages/workspace/Workspace.tsx | 4 +- 3 files changed, 75 insertions(+), 60 deletions(-) diff --git a/src/components/workspace/WorkspaceCard.tsx b/src/components/workspace/WorkspaceCard.tsx index 75968f34..88304f4e 100644 --- a/src/components/workspace/WorkspaceCard.tsx +++ b/src/components/workspace/WorkspaceCard.tsx @@ -4,7 +4,8 @@ import { twMerge } from "tailwind-merge"; import type { TWorkspace } from "@/types/workspace/workspace"; import { ROLE_LABEL_MAP } from "@/constants/workspaceRole"; -import BuildingIcon from "@/assets/icon/common/building.svg?react"; +import Badge from "@/components/common/badge/Badge"; + import { getImageUrl } from "@/lib/getImageUrl"; type TProps = { @@ -22,60 +23,81 @@ function WorkspaceCard({ workspace: w, isSelected = false, onClick }: TProps) { const imageSrc = w.logoUrl ? getImageUrl(w.logoUrl) : null; const showPlaceholder = !imageSrc || imageError; + const initial = (w.name.trim()[0] ?? "?").toUpperCase(); return ( -
  • +
  • diff --git a/src/components/workspace/WorkspaceListLoading.tsx b/src/components/workspace/WorkspaceListLoading.tsx index 55beb01f..15fc5404 100644 --- a/src/components/workspace/WorkspaceListLoading.tsx +++ b/src/components/workspace/WorkspaceListLoading.tsx @@ -2,18 +2,15 @@ import { Skeleton } from "@/components/common/skeleton/Skeleton"; function WorkspaceCardSkeleton() { return ( - <> -
  • -
    - -
    - - - -
    -
    -
  • - +
  • + + + + +
    + +
    +
  • ); } @@ -24,16 +21,12 @@ export default function WorkspaceListLoading() { aria-label="워크스페이스 목록 불러오는 중" className="w-full flex flex-col gap-8" > -
    - - -
    -