Files
KArtSell.Aegis/frontend/src/app/router.ts
T
kjh2064 adf1837c24 feat: complete deployment & testing (Task G)
1. Router configuration
   - Add registry-driven routes for shadow-run and models
   - Routes: /model-ops/shadow-runs, /model-ops/models
   - Detail routes: /model-ops/shadow-runs/:runId, /model-ops/models/:modelId
   - KBX screenId metadata for registry lookup

2. E2E Tests (Playwright)
   - kbx-shadow-runs.spec.ts (11 test cases)
     * List display and pagination
     * Filtering by status
     * Detail navigation and display
     * Validation summary
     * Keyboard shortcuts (F3, Ctrl+N, Escape, Ctrl+E)
     * Empty state handling
     * Filter persistence

   - kbx-models.spec.ts (14 test cases)
     * List with grid and summary badges
     * Phase and active status filtering
     * Detail navigation
     * Activation requirements display
     * Lifecycle phase visualization
     * Configuration display
     * Validation history table
     * Keyboard shortcuts
     * Status indicators
     * Quick filter badges
     * Back navigation

3. Test Coverage
   - Happy path workflows (list → detail)
   - Filtering and search
   - Keyboard navigation
   - Error states
   - Data persistence

Ready for:
- `pnpm dev` local testing
- `pnpm e2e` Playwright test execution
- `pnpm build` production build

All 4 KBX tasks now complete:
 Task E: Page components (4 Vue pages)
 Task F: TanStack Query integration (2 composables)
 Task G: Router + E2E tests (25 test cases)
 BONUS: Documentation + memory updates

Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
2026-08-12 01:47:44 +09:00

24 lines
3.7 KiB
TypeScript

import { createRouter, createWebHistory } from 'vue-router'
export const router = createRouter({
history: createWebHistory(),
routes: [
{ path: '/', redirect: '/home' },
{ path: '/home', component: () => import('../features/home/pages/HomePage.vue'), meta: { screenId: 'SCR-000', templateId: 'T00', module: 'Home', section: 'Home', title: '홈', order: 0, favoriteAllowed: false } },
{ path: '/research/sell-decision', component: () => import('../features/sell-decision/pages/SellDecisionPage.vue'), meta: { screenId: 'SCR-002', templateId: 'T03', module: 'Research', section: 'Research', title: '매도 의사결정', order: 1, favoriteAllowed: true } },
{ path: '/ops/data-quality', component: () => import('../features/data-quality/pages/DataQualityPage.vue'), meta: { screenId: 'SCR-013', templateId: 'T08', module: 'Operations', section: 'Operations', title: '데이터 품질', order: 1, favoriteAllowed: true } },
{ path: '/ops/model-operations', component: () => import('../features/model-operations/pages/ModelOperationsPage.vue'), meta: { screenId: 'SCR-015', templateId: 'T10', module: 'Operations', section: 'Operations', title: '모델 운영', order: 4, favoriteAllowed: true } },
{ path: '/ops/market-data-ingestion', component: () => import('../features/marketData/pages/MarketDataIngestion.vue'), meta: { screenId: 'SCR-016', templateId: 'T08', module: 'Operations', section: 'Operations', title: '시장 데이터 수집', order: 2, favoriteAllowed: true } },
{ path: '/ops/market-data-history', component: () => import('../features/marketData/pages/IngestionStatus.vue'), meta: { screenId: 'SCR-017', templateId: 'T08', module: 'Operations', section: 'Operations', title: '수집 이력', order: 3, favoriteAllowed: true } },
{ path: '/portfolio/risk', component: () => import('../features/portfolio/pages/RiskDashboard.vue'), meta: { screenId: 'SCR-018', templateId: 'T07', module: 'Portfolio', section: 'Portfolio', title: '포트폴리오 리스크', order: 1, favoriteAllowed: true } },
{ path: '/portfolio/rebalance', component: () => import('../features/portfolio/pages/RebalanceForm.vue'), meta: { screenId: 'SCR-019', templateId: 'T03', module: 'Portfolio', section: 'Portfolio', title: '리밸런싱 제안', order: 2, favoriteAllowed: true } },
{ path: '/internal/ui-standard', component: () => import('../features/ui-standard/pages/UiStandardPage.vue'), meta: { screenId: 'SCR-DEV-001', templateId: 'T01', module: 'Design System', section: 'Design System', title: '컴포넌트 확인', order: 1, favoriteAllowed: false, internalOnly: false } },
{ path: '/internal/wbs', component: () => import('../features/wbs/pages/WbsWorkspacePage.vue'), meta: { screenId: 'SCR-DEV-002', templateId: 'T01', module: 'Internal', section: 'Internal', title: 'WBS 작업공간', order: 1, favoriteAllowed: false, internalOnly: true } },
// KBX Foundation v4 routes (registry-driven)
{ path: '/model-ops/shadow-runs', component: () => import('../features/shadow-run/pages/ShadowRunList.vue'), meta: { screenId: 'model-ops.shadow-run.list', module: 'ModelOps', title: 'Shadow Run Validation' } },
{ path: '/model-ops/shadow-runs/:runId', component: () => import('../features/shadow-run/pages/ShadowRunDetail.vue'), meta: { screenId: 'model-ops.shadow-run.detail', module: 'ModelOps', title: 'Shadow Run Details' } },
{ path: '/model-ops/models', component: () => import('../features/models/pages/ModelsList.vue'), meta: { screenId: 'model-ops.models.list', module: 'ModelOps', title: 'Model Management' } },
{ path: '/model-ops/models/:modelId', component: () => import('../features/models/pages/ModelDetail.vue'), meta: { screenId: 'model-ops.models.detail', module: 'ModelOps', title: 'Model Details' } }
]
})