동일 어구 이름이 서로 다른 MMSI 로 같은 5분 사이클에 동시 AIS 송출되는 공존 케이스를 신규 탐지 패턴으로 분리해 기록·분류한다. 부수 효과로 fleet_tracker.track_gear_identity 의 PK 충돌로 인한 사이클 실패도 해소. Prediction - algorithms/gear_identity.py: detect_gear_name_collisions + classify_severity - fleet_tracker.py: 공존/교체 분기 분리, UPSERT helper, savepoint 점수 이전 - output/event_generator.py: run_gear_identity_collision_events 추가 - scheduler.py: track_gear_identity 직후 이벤트 승격 호출 Backend (domain/analysis) - GearIdentityCollision 엔티티 + Repository(Specification+stats) - GearIdentityCollisionService (@Transactional readOnly / @Auditable resolve) - GearCollisionController /api/analysis/gear-collisions (list/stats/detail/resolve) - GearCollisionResponse / StatsResponse / ResolveRequest (record) DB - V030__gear_identity_collision.sql: gear_identity_collisions 테이블 + auth_perm_tree 엔트리(detection:gear-collision nav_sort=950) + 역할별 권한 Frontend - shared/constants/gearCollisionStatuses.ts + catalogRegistry 등록 - services/gearCollisionApi.ts (list/stats/get/resolve) - features/detection/GearCollisionDetection.tsx (PageContainer+Section+DataTable + 분류 액션 폼, design system SSOT 준수) - componentRegistry + feature index + i18n detection.json / common.json(ko/en)
158 lines
6.4 KiB
TypeScript
158 lines
6.4 KiB
TypeScript
import { lazy, type ComponentType } from 'react';
|
|
|
|
type LazyComponent = React.LazyExoticComponent<ComponentType<unknown>>;
|
|
|
|
/**
|
|
* DB menu_config.component_key → lazy-loaded React 컴포넌트 매핑.
|
|
* 메뉴 추가 시 이 레지스트리에 1줄만 추가하면 됨.
|
|
*/
|
|
export const COMPONENT_REGISTRY: Record<string, LazyComponent> = {
|
|
// ── 상황판·감시 ──
|
|
'features/dashboard/Dashboard': lazy(() =>
|
|
import('@features/dashboard/Dashboard').then((m) => ({ default: m.Dashboard })),
|
|
),
|
|
'features/monitoring/MonitoringDashboard': lazy(() =>
|
|
import('@features/monitoring/MonitoringDashboard').then((m) => ({
|
|
default: m.MonitoringDashboard,
|
|
})),
|
|
),
|
|
'features/surveillance/LiveMapView': lazy(() =>
|
|
import('@features/surveillance').then((m) => ({ default: m.LiveMapView })),
|
|
),
|
|
'features/surveillance/MapControl': lazy(() =>
|
|
import('@features/surveillance').then((m) => ({ default: m.MapControl })),
|
|
),
|
|
// ── 위험도·단속 ──
|
|
'features/risk-assessment/RiskMap': lazy(() =>
|
|
import('@features/risk-assessment').then((m) => ({ default: m.RiskMap })),
|
|
),
|
|
'features/risk-assessment/EnforcementPlan': lazy(() =>
|
|
import('@features/risk-assessment').then((m) => ({ default: m.EnforcementPlan })),
|
|
),
|
|
// ── 탐지 ──
|
|
'features/detection/DarkVesselDetection': lazy(() =>
|
|
import('@features/detection').then((m) => ({ default: m.DarkVesselDetection })),
|
|
),
|
|
'features/detection/GearDetection': lazy(() =>
|
|
import('@features/detection').then((m) => ({ default: m.GearDetection })),
|
|
),
|
|
'features/detection/ChinaFishing': lazy(() =>
|
|
import('@features/detection').then((m) => ({ default: m.ChinaFishing })),
|
|
),
|
|
'features/detection/GearCollisionDetection': lazy(() =>
|
|
import('@features/detection').then((m) => ({ default: m.GearCollisionDetection })),
|
|
),
|
|
// ── 단속·이벤트 ──
|
|
'features/enforcement/EnforcementHistory': lazy(() =>
|
|
import('@features/enforcement').then((m) => ({ default: m.EnforcementHistory })),
|
|
),
|
|
'features/enforcement/EventList': lazy(() =>
|
|
import('@features/enforcement').then((m) => ({ default: m.EventList })),
|
|
),
|
|
// ── 통계 ──
|
|
'features/statistics/Statistics': lazy(() =>
|
|
import('@features/statistics').then((m) => ({ default: m.Statistics })),
|
|
),
|
|
'features/statistics/ReportManagement': lazy(() =>
|
|
import('@features/statistics').then((m) => ({ default: m.ReportManagement })),
|
|
),
|
|
'features/statistics/ExternalService': lazy(() =>
|
|
import('@features/statistics').then((m) => ({ default: m.ExternalService })),
|
|
),
|
|
// ── 순찰 ──
|
|
'features/patrol/PatrolRoute': lazy(() =>
|
|
import('@features/patrol').then((m) => ({ default: m.PatrolRoute })),
|
|
),
|
|
'features/patrol/FleetOptimization': lazy(() =>
|
|
import('@features/patrol').then((m) => ({ default: m.FleetOptimization })),
|
|
),
|
|
// ── 현장작전 ──
|
|
'features/field-ops/AIAlert': lazy(() =>
|
|
import('@features/field-ops').then((m) => ({ default: m.AIAlert })),
|
|
),
|
|
'features/field-ops/MobileService': lazy(() =>
|
|
import('@features/field-ops').then((m) => ({ default: m.MobileService })),
|
|
),
|
|
'features/field-ops/ShipAgent': lazy(() =>
|
|
import('@features/field-ops').then((m) => ({ default: m.ShipAgent })),
|
|
),
|
|
// ── AI 운영 ──
|
|
'features/ai-operations/AIModelManagement': lazy(() =>
|
|
import('@features/ai-operations').then((m) => ({ default: m.AIModelManagement })),
|
|
),
|
|
'features/ai-operations/MLOpsPage': lazy(() =>
|
|
import('@features/ai-operations').then((m) => ({ default: m.MLOpsPage })),
|
|
),
|
|
'features/ai-operations/LGCNSMLOpsPage': lazy(() =>
|
|
import('@features/ai-operations').then((m) => ({ default: m.LGCNSMLOpsPage })),
|
|
),
|
|
'features/ai-operations/LLMOpsPage': lazy(() =>
|
|
import('@features/ai-operations').then((m) => ({ default: m.LLMOpsPage })),
|
|
),
|
|
'features/ai-operations/AIAssistant': lazy(() =>
|
|
import('@features/ai-operations').then((m) => ({ default: m.AIAssistant })),
|
|
),
|
|
// ── 관리 ──
|
|
'features/admin/AdminPanel': lazy(() =>
|
|
import('@features/admin').then((m) => ({ default: m.AdminPanel })),
|
|
),
|
|
'features/admin/SystemConfig': lazy(() =>
|
|
import('@features/admin').then((m) => ({ default: m.SystemConfig })),
|
|
),
|
|
'features/admin/DataHub': lazy(() =>
|
|
import('@features/admin').then((m) => ({ default: m.DataHub })),
|
|
),
|
|
'features/admin/AccessControl': lazy(() =>
|
|
import('@features/admin').then((m) => ({ default: m.AccessControl })),
|
|
),
|
|
'features/admin/NoticeManagement': lazy(() =>
|
|
import('@features/admin').then((m) => ({ default: m.NoticeManagement })),
|
|
),
|
|
'features/admin/AuditLogs': lazy(() =>
|
|
import('@features/admin/AuditLogs').then((m) => ({ default: m.AuditLogs })),
|
|
),
|
|
'features/admin/AccessLogs': lazy(() =>
|
|
import('@features/admin/AccessLogs').then((m) => ({ default: m.AccessLogs })),
|
|
),
|
|
'features/admin/LoginHistoryView': lazy(() =>
|
|
import('@features/admin/LoginHistoryView').then((m) => ({
|
|
default: m.LoginHistoryView,
|
|
})),
|
|
),
|
|
'features/admin/AISecurityPage': lazy(() =>
|
|
import('@features/admin').then((m) => ({ default: m.AISecurityPage })),
|
|
),
|
|
'features/admin/AIAgentSecurityPage': lazy(() =>
|
|
import('@features/admin').then((m) => ({ default: m.AIAgentSecurityPage })),
|
|
),
|
|
'features/admin/DataRetentionPolicy': lazy(() =>
|
|
import('@features/admin').then((m) => ({ default: m.DataRetentionPolicy })),
|
|
),
|
|
'features/admin/DataModelVerification': lazy(() =>
|
|
import('@features/admin').then((m) => ({ default: m.DataModelVerification })),
|
|
),
|
|
'features/admin/PerformanceMonitoring': lazy(() =>
|
|
import('@features/admin').then((m) => ({ default: m.PerformanceMonitoring })),
|
|
),
|
|
// ── 모선 워크플로우 ──
|
|
'features/parent-inference/ParentReview': lazy(() =>
|
|
import('@features/parent-inference/ParentReview').then((m) => ({
|
|
default: m.ParentReview,
|
|
})),
|
|
),
|
|
'features/parent-inference/ParentExclusion': lazy(() =>
|
|
import('@features/parent-inference/ParentExclusion').then((m) => ({
|
|
default: m.ParentExclusion,
|
|
})),
|
|
),
|
|
'features/parent-inference/LabelSession': lazy(() =>
|
|
import('@features/parent-inference/LabelSession').then((m) => ({
|
|
default: m.LabelSession,
|
|
})),
|
|
),
|
|
// ── 선박 (숨김 라우트) ──
|
|
'features/vessel/VesselDetail': lazy(() =>
|
|
import('@features/vessel').then((m) => ({ default: m.VesselDetail })),
|
|
),
|
|
};
|