iran 프로젝트의 gear-parent-flow 패턴을 차용하여 시스템 전체 데이터 흐름을
노드/엣지로 시각화하는 별도 React 앱 추가. 메인 SPA와 완전 분리.
## 인프라
- @xyflow/react 추가
- frontend/system-flow.html (별도 entry HTML)
- frontend/src/systemFlowMain.tsx (React entry)
- vite.config.ts: rollupOptions.input에 systemFlow 추가
- 빌드 산출물: dist/system-flow.html + dist/assets/systemFlow-*.js (231kB, 메인과 분리)
## 매니페스트 (frontend/src/flow/manifest/)
카테고리별 JSON 분할 + 빌드 시 병합:
- 01-ingest.json (6) — snpdb, vessel_store, refresh
- 02-pipeline.json (7) — 7단계 분류 파이프라인
- 03-algorithms.json (12) — zone/dark/spoofing/risk/transship 등
- 04-fleet.json (9) — fleet_tracker, polygon_builder, gear_correlation, parent_inference
- 05-output.json (8) — event/violation/kpi/stats/alert/redis
- 06-storage.json (18) — 핵심 DB 테이블
- 07-backend.json (15) — Spring Boot 컨트롤러 + endpoint
- 08-frontend.json (17) — 프론트 화면 (menu 매핑 포함)
- 09-decision.json (8) — 운영자 의사결정 액션
- 10-external.json (2) — iran, redis
- edges.json (133) — data/trigger/feedback 분류
## 뷰어 컴포넌트
- SystemFlowViewer.tsx — 3단 레이아웃 + React Flow + 상태 관리
- components/FilterBar.tsx — 검색/단계/메뉴/상세필터 + 레이아웃 토글
- components/NodeListSidebar.tsx — 좌측 카테고리별 노드 리스트
- components/NodeDetailPanel.tsx — 우측 선택 정보 + incoming/outgoing 흐름
- components/nodeShapes.ts — kind별 모양/색상 헬퍼
- SystemFlowViewer.css — 전용 다크 테마 스타일
## 기능
- stage(단계) ⇄ menu(메뉴) 두 가지 그룹화 토글
- 통합 검색 (label/file/symbol/tag)
- 다중 필터 (kind/trigger/status)
- 노드 모양: kind별 (algorithm=다이아몬드, decision=마름모, api=6각형 등)
- 엣지 색상: data=회색, trigger=녹색, feedback=노란 점선
- 딥링크: /system-flow.html#node=<id> (산출문서에서 직접 참조)
## /version 스킬 통합
- CLAUDE.md에 "/version 스킬 사후 처리" 섹션 추가
Claude가 /version 호출 후 자동으로 manifest.meta version/updatedAt/releaseDate 갱신
- .gitea/workflows/deploy.yml에 archive 보존 단계 추가
/deploy/kcg-ai-monitoring-archive/system-flow/v{version}_{date}/ 영구 누적
(nginx 노출 X, 서버 로컬 보존)
- docs/system-flow-guide.md 작성 (URL, 노드 ID 명명, 산출문서 참조법, 갱신 절차)
## URL
- 운영: https://kcg-ai-monitoring.gc-si.dev/system-flow.html
- 메인 SPA에 링크 노출 없음 (개발 단계 페이지)
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
190 lines
5.2 KiB
JSON
190 lines
5.2 KiB
JSON
[
|
|
{
|
|
"id": "ui.dashboard",
|
|
"label": "대시보드",
|
|
"shortDescription": "전체 KPI + 이벤트 요약",
|
|
"stage": "UI",
|
|
"menu": "대시보드",
|
|
"kind": "ui",
|
|
"trigger": "on_demand",
|
|
"status": "implemented",
|
|
"file": "frontend/src/features/dashboard/Dashboard.tsx"
|
|
},
|
|
{
|
|
"id": "ui.monitoring_dashboard",
|
|
"label": "모니터링 대시보드",
|
|
"shortDescription": "시스템 상태 + 분석 사이클",
|
|
"stage": "UI",
|
|
"menu": "모니터링",
|
|
"kind": "ui",
|
|
"trigger": "on_demand",
|
|
"status": "implemented",
|
|
"file": "frontend/src/features/monitoring/MonitoringDashboard.tsx"
|
|
},
|
|
{
|
|
"id": "ui.live_map",
|
|
"label": "실시간 지도",
|
|
"shortDescription": "선박 위치/궤적 실시간 표시",
|
|
"stage": "UI",
|
|
"menu": "감시",
|
|
"kind": "ui",
|
|
"trigger": "on_demand",
|
|
"status": "implemented",
|
|
"file": "frontend/src/features/surveillance/LiveMapView.tsx"
|
|
},
|
|
{
|
|
"id": "ui.gear_detection",
|
|
"label": "어구 탐지",
|
|
"shortDescription": "어구 그룹/모선 탐지 화면",
|
|
"stage": "UI",
|
|
"menu": "탐지",
|
|
"kind": "ui",
|
|
"trigger": "on_demand",
|
|
"status": "implemented",
|
|
"file": "frontend/src/features/detection/GearDetection.tsx"
|
|
},
|
|
{
|
|
"id": "ui.dark_vessel",
|
|
"label": "다크베셀 탐지",
|
|
"shortDescription": "AIS 신호 단절 선박 목록",
|
|
"stage": "UI",
|
|
"menu": "탐지",
|
|
"kind": "ui",
|
|
"trigger": "on_demand",
|
|
"status": "implemented",
|
|
"file": "frontend/src/features/detection/DarkVesselDetection.tsx"
|
|
},
|
|
{
|
|
"id": "ui.china_fishing",
|
|
"label": "중국어선 탐지",
|
|
"shortDescription": "412* 선박 위험도 화면",
|
|
"stage": "UI",
|
|
"menu": "탐지",
|
|
"kind": "ui",
|
|
"trigger": "on_demand",
|
|
"status": "implemented",
|
|
"file": "frontend/src/features/detection/ChinaFishing.tsx"
|
|
},
|
|
{
|
|
"id": "ui.transfer_detection",
|
|
"label": "환적 탐지",
|
|
"shortDescription": "환적 의심 페어 화면",
|
|
"stage": "UI",
|
|
"menu": "선박",
|
|
"kind": "ui",
|
|
"trigger": "on_demand",
|
|
"status": "implemented",
|
|
"file": "frontend/src/features/vessel/TransferDetection.tsx"
|
|
},
|
|
{
|
|
"id": "ui.vessel_detail",
|
|
"label": "선박 상세",
|
|
"shortDescription": "MMSI별 분석 결과 상세",
|
|
"stage": "UI",
|
|
"menu": "선박",
|
|
"kind": "ui",
|
|
"trigger": "on_demand",
|
|
"status": "implemented",
|
|
"file": "frontend/src/features/vessel/VesselDetail.tsx"
|
|
},
|
|
{
|
|
"id": "ui.event_list",
|
|
"label": "이벤트 목록",
|
|
"shortDescription": "단속 후보 이벤트 워크큐",
|
|
"stage": "UI",
|
|
"menu": "단속",
|
|
"kind": "ui",
|
|
"trigger": "on_demand",
|
|
"status": "implemented",
|
|
"file": "frontend/src/features/enforcement/EventList.tsx"
|
|
},
|
|
{
|
|
"id": "ui.enforcement_history",
|
|
"label": "단속 이력",
|
|
"shortDescription": "과거 단속 결과 조회",
|
|
"stage": "UI",
|
|
"menu": "단속",
|
|
"kind": "ui",
|
|
"trigger": "on_demand",
|
|
"status": "implemented",
|
|
"file": "frontend/src/features/enforcement/EnforcementHistory.tsx"
|
|
},
|
|
{
|
|
"id": "ui.enforcement_plan",
|
|
"label": "단속 계획",
|
|
"shortDescription": "위험도 기반 단속 계획 수립",
|
|
"stage": "UI",
|
|
"menu": "단속",
|
|
"kind": "ui",
|
|
"trigger": "on_demand",
|
|
"status": "implemented",
|
|
"file": "frontend/src/features/risk-assessment/EnforcementPlan.tsx"
|
|
},
|
|
{
|
|
"id": "ui.parent_review",
|
|
"label": "모선 추론 리뷰",
|
|
"shortDescription": "모선 후보 확정/반려",
|
|
"stage": "UI",
|
|
"menu": "모선워크플로우",
|
|
"kind": "ui",
|
|
"trigger": "on_demand",
|
|
"status": "implemented",
|
|
"file": "frontend/src/features/parent-inference/ParentReview.tsx"
|
|
},
|
|
{
|
|
"id": "ui.parent_exclusion",
|
|
"label": "후보 배제 관리",
|
|
"shortDescription": "운영자 배제 후보 관리",
|
|
"stage": "UI",
|
|
"menu": "모선워크플로우",
|
|
"kind": "ui",
|
|
"trigger": "on_demand",
|
|
"status": "implemented",
|
|
"file": "frontend/src/features/parent-inference/ParentExclusion.tsx"
|
|
},
|
|
{
|
|
"id": "ui.label_session",
|
|
"label": "라벨링 세션",
|
|
"shortDescription": "정답 라벨링 세션 관리",
|
|
"stage": "UI",
|
|
"menu": "모선워크플로우",
|
|
"kind": "ui",
|
|
"trigger": "on_demand",
|
|
"status": "implemented",
|
|
"file": "frontend/src/features/parent-inference/LabelSession.tsx"
|
|
},
|
|
{
|
|
"id": "ui.statistics",
|
|
"label": "통계",
|
|
"shortDescription": "시간/일/월별 통계 차트",
|
|
"stage": "UI",
|
|
"menu": "통계",
|
|
"kind": "ui",
|
|
"trigger": "on_demand",
|
|
"status": "implemented",
|
|
"file": "frontend/src/features/statistics/Statistics.tsx"
|
|
},
|
|
{
|
|
"id": "ui.ai_alert",
|
|
"label": "현장 AI 경보",
|
|
"shortDescription": "현장 단말용 경보 화면",
|
|
"stage": "UI",
|
|
"menu": "현장",
|
|
"kind": "ui",
|
|
"trigger": "on_demand",
|
|
"status": "implemented",
|
|
"file": "frontend/src/features/field-ops/AIAlert.tsx"
|
|
},
|
|
{
|
|
"id": "ui.ai_assistant",
|
|
"label": "AI 어시스턴트",
|
|
"shortDescription": "분석 컨텍스트 기반 채팅",
|
|
"stage": "UI",
|
|
"menu": "AI",
|
|
"kind": "ui",
|
|
"trigger": "on_demand",
|
|
"status": "implemented",
|
|
"file": "frontend/src/features/ai-operations/AIAssistant.tsx"
|
|
}
|
|
]
|