Installation
bash
npx axis-cli add plan-card --agenticInteractive Demo
배포 파이프라인
승인 대기0/5 단계 완료
○
환경 설정
개발 환경 구성
○
데이터베이스 마이그레이션
Schema 업데이트 실행
○
API 엔드포인트 구현
REST API 추가
○
테스트 실행
유닛/통합 테스트
○
배포
프로덕션 배포
Status States
승인 대기 계획
승인 대기0/2 단계 완료
○
1단계
○
2단계
실행 중 계획
실행 중1/3 단계 완료
✓
데이터 로드
⟳
처리 중
○
결과 저장
완료된 계획
완료3/3 단계 완료
✓
분석
✓
검토
✓
배포
Usage
tsx
import { PlanCard } from '@axis-ds/agentic-ui'
export function Example() {
const steps = [
{ id: '1', label: '데이터 수집', status: 'complete' },
{ id: '2', label: '분석 수행', status: 'running' },
{ id: '3', label: '보고서 생성', status: 'pending' },
]
return (
<PlanCard
title="데이터 분석 계획"
steps={steps}
status="executing"
onApprove={() => console.log('승인')}
onReject={() => console.log('거절')}
/>
)
}Props
| Prop | Type | Default | Description |
|---|---|---|---|
titleRequired | string | - | 계획 제목 |
stepsRequired | PlanStep[] | - | 단계 목록 |
status | "draft" | "pending" | "approved" | "rejected" | "executing" | "completed" | "pending" | 계획 상태 |
onApprove | () => void | - | 승인 콜백 |
onEdit | () => void | - | 편집 콜백 |
onReject | () => void | - | 거절 콜백 |
className | string | - | 추가 CSS 클래스 |
titleRequiredType:
string계획 제목
stepsRequiredType:
PlanStep[]단계 목록
statusType:
"draft" | "pending" | "approved" | "rejected" | "executing" | "completed"Default:
"pending"계획 상태
onApproveType:
() => voidDefault:
-승인 콜백
onEditType:
() => voidDefault:
-편집 콜백
onRejectType:
() => voidDefault:
-거절 콜백
classNameType:
stringDefault:
-추가 CSS 클래스
PlanStep Type
| Prop | Type | Default | Description |
|---|---|---|---|
idRequired | string | - | 단계 고유 식별자 |
labelRequired | string | - | 단계 이름 |
statusRequired | "pending" | "running" | "complete" | "error" | "skipped" | - | 단계 상태 |
description | string | - | 단계 설명 |
idRequiredType:
string단계 고유 식별자
labelRequiredType:
string단계 이름
statusRequiredType:
"pending" | "running" | "complete" | "error" | "skipped"단계 상태
descriptionType:
stringDefault:
-단계 설명