From b3357e06632ea5e7be1b857e562ecec98683bc81 Mon Sep 17 00:00:00 2001 From: caadiq Date: Fri, 6 Feb 2026 18:01:15 +0900 Subject: [PATCH] =?UTF-8?q?refactor:=20BotCard=20=EB=94=94=EC=9E=90?= =?UTF-8?q?=EC=9D=B8=20=EA=B0=9C=EC=84=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 타입별 아이콘 제거 (섹션 헤더에서 표시) - 통계 정보 가로 배열로 컴팩트하게 변경 - 버튼을 하단에 플랫하게 배치 - 전체적으로 미니멀하고 깔끔한 스타일로 변경 Co-Authored-By: Claude Opus 4.5 --- .../src/components/pc/admin/bot/BotCard.jsx | 169 ++++++++---------- 1 file changed, 74 insertions(+), 95 deletions(-) diff --git a/frontend/src/components/pc/admin/bot/BotCard.jsx b/frontend/src/components/pc/admin/bot/BotCard.jsx index 85737b6..389048b 100644 --- a/frontend/src/components/pc/admin/bot/BotCard.jsx +++ b/frontend/src/components/pc/admin/bot/BotCard.jsx @@ -95,68 +95,49 @@ const BotCard = memo(function BotCard({ }) { return ( - {/* 상단 헤더 */} -
-
-
- {bot.type === 'x' ? ( - - ) : bot.type === 'meilisearch' ? ( - - ) : ( - - )} -
-
-

{bot.name}

-

- {bot.last_check_at - ? `${formatTime(bot.last_check_at)}에 업데이트됨` - : '아직 업데이트 없음'} + {/* 상단: 이름 + 상태 */} +

+
+
+

{bot.name}

+

+ {bot.last_check_at ? formatTime(bot.last_check_at) : '대기 중'}

-
- - {statusInfo.text} - -
- - {/* 통계 정보 */} -
-
-
{bot.schedules_added || 0}
-
총 추가
-
-
-
0 ? 'text-green-500' : 'text-gray-400'}`} + className={`flex-shrink-0 flex items-center gap-1.5 px-2 py-0.5 text-xs font-medium rounded-full ${statusInfo.bg} ${statusInfo.color}`} > - +{bot.last_added_count || 0} -
-
마지막
+ + {statusInfo.text} +
-
-
{formatInterval(bot.check_interval)}
-
업데이트 간격
+ + {/* 통계 */} +
+
+ 추가 + {bot.schedules_added || 0} +
+
+
+ 최근 + 0 ? 'text-green-600' : 'text-gray-400'}`}> + +{bot.last_added_count || 0} + +
+
+
+ 간격 + {formatInterval(bot.check_interval)} +
@@ -168,46 +149,44 @@ const BotCard = memo(function BotCard({ )} {/* 액션 버튼 */} -
-
- - -
+
+ +
);