- 디자인 시스템: #151515 배경, 1px 보더 카드, CSS vars, mono 포인트 - GlobalStyle/theme.ts v2 (DESIGN-SYSTEM.md 기반) - 공통 컴포넌트 (ui/base.tsx): LabelMeta, BracketValue, Card, TechBar, Timeline 등 - Sidebar: [대시] 브라켓 네비 + 모바일 하단 탭바 (767px) - LayoutShell: SidebarContext 제거, 단순화 - 대시보드 (/): SYS 상태 카드 4개 + ONGOING PROJECTS + ACTIVITY FEED - 활동 로그 (/activities): 로그 테이블 + 필터 + 검색 + 페이지네이션 (신규) - 설정 (/settings): 4섹션 Toggle/Bracket Input 그리드 - 자매 노드 관리 (/sisters): 3열 수평 레이아웃 (INFO/GRAPH/SYNC) - 자매 상세 (/sisters/[name]): 간소화 + 터미널 스타일 - 조직도 (/org): 터미널 카드 트리 구조 + 레벨 색상 - 프로젝트 목록 (/projects): 새 라우트 - 프로젝트 상세 (/projects/[id]): Phase Timeline + Audit Log + Checklist - FE 14 routes build 성공
80 lines
1.5 KiB
TypeScript
80 lines
1.5 KiB
TypeScript
'use client';
|
|
|
|
import React from 'react';
|
|
import styled from 'styled-components';
|
|
import { theme } from '@/styles/theme';
|
|
|
|
interface Subagent {
|
|
name: string;
|
|
file: string;
|
|
}
|
|
|
|
const Grid = styled.div`
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
|
|
gap: 12px;
|
|
`;
|
|
|
|
const Card = styled.div`
|
|
background: rgba(0,0,0,0.2);
|
|
border: 1px solid var(--border-color);
|
|
border-radius: 8px;
|
|
padding: 14px 16px;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
`;
|
|
|
|
const Icon = styled.span`
|
|
font-size: 20px;
|
|
`;
|
|
|
|
const Info = styled.div``;
|
|
|
|
const Name = styled.div`
|
|
font-size: 13px;
|
|
font-weight: 600;
|
|
color: var(--text-primary);
|
|
margin-bottom: 2px;
|
|
`;
|
|
|
|
const File = styled.div`
|
|
font-size: 11px;
|
|
color: var(--text-secondary);
|
|
font-family: monospace;
|
|
`;
|
|
|
|
const Empty = styled.div`
|
|
padding: 32px;
|
|
text-align: center;
|
|
color: var(--text-secondary);
|
|
font-size: 13px;
|
|
`;
|
|
|
|
const agentIcons: Record<string, string> = {
|
|
coder: '👨💻',
|
|
'test-writer': '🧪',
|
|
'db-designer': '🗄️',
|
|
'code-reviewer': '🔍',
|
|
'security-auditor': '🔒',
|
|
'nginx-manager': '🌐',
|
|
};
|
|
|
|
export default function SubagentList({ agents }: { agents: Subagent[] }) {
|
|
if (!agents.length) return <Empty>서브에이전트 없음</Empty>;
|
|
|
|
return (
|
|
<Grid>
|
|
{agents.map((a) => (
|
|
<Card key={a.name}>
|
|
<Icon>{agentIcons[a.name] ?? '🤖'}</Icon>
|
|
<Info>
|
|
<Name>{a.name}</Name>
|
|
<File>{a.file}</File>
|
|
</Info>
|
|
</Card>
|
|
))}
|
|
</Grid>
|
|
);
|
|
}
|