fix(fe): fix sidebar router links, shrink header height to 44px, and refine workspace tabs UI

This commit is contained in:
2026-08-15 20:21:55 +09:00
parent b843275126
commit 4a3d881455
3 changed files with 52 additions and 44 deletions
+1 -1
View File
@@ -201,7 +201,7 @@ const toggleTheme = () => {
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: space-between; justify-content: space-between;
height: 64px; height: 44px;
max-width: 100%; max-width: 100%;
margin: 0 auto; margin: 0 auto;
padding: 0 var(--spacing-4); padding: 0 var(--spacing-4);
+27 -21
View File
@@ -28,53 +28,59 @@ const expandedSections = ref(new Set<string>())
const menuItems: MenuItem[] = [ const menuItems: MenuItem[] = [
{ {
id: 'dashboard', id: 'dashboard',
label: '대시보드', label: '대시보드 (홈)',
icon: '📊', icon: '📊',
path: '/', path: '/home',
}, },
{ {
id: 'shadow-run', id: 'shadow-run',
label: 'Shadow Run', label: 'Shadow Run',
icon: '⚡', icon: '⚡',
path: '/shadow-run/queue', path: '/model-ops/shadow-run-jobs',
children: [ children: [
{ id: 'sr-queue', label: '작업 큐', icon: '📋', path: '/shadow-run/queue' }, { id: 'sr-queue', label: '작업 큐', icon: '📋', path: '/model-ops/shadow-run-jobs' },
{ id: 'sr-history', label: '실행 이력', icon: '📜', path: '/shadow-run/history' }, { id: 'sr-history', label: '실행 검증', icon: '📜', path: '/model-ops/shadow-runs' },
{ id: 'sr-settings', label: '설정', icon: '⚙️', path: '/shadow-run/settings' }, { id: 'sr-settings', label: '데이터 품질', icon: '⚙️', path: '/ops/data-quality' },
], ],
}, },
{ {
id: 'models', id: 'models',
label: '모델', label: '모델 관리',
icon: '🤖', icon: '🤖',
path: '/models/list', path: '/model-ops/models-master',
children: [ children: [
{ id: 'models-list', label: '모델 목록', icon: '📂', path: '/models/list' }, { id: 'models-list', label: '모델 마스터-상세', icon: '📂', path: '/model-ops/models-master' },
{ id: 'models-detail', label: '상세 분석', icon: '🔍', path: '/models/detail' }, { id: 'models-ops', label: '모델 버전 거버넌스', icon: '🔍', path: '/ops/model-operations' },
{ id: 'models-compare', label: '비교 분석', icon: '⚖️', path: '/models/compare' }, { id: 'models-compare', label: '모델 관리', icon: '⚖️', path: '/model-ops/models' },
], ],
}, },
{ {
id: 'approval', id: 'approval',
label: '승인', label: '승인 워크벤치',
icon: '✅', icon: '✅',
path: '/approval/queue', path: '/governance/approvals',
children: [ children: [
{ id: 'apr-queue', label: '승인 큐', icon: '📋', path: '/approval/queue' }, { id: 'apr-queue', label: '승인 큐', icon: '📋', path: '/governance/approvals' },
{ id: 'apr-history', label: '승인 이력', icon: '✔️', path: '/approval/history' }, { id: 'apr-sell', label: '매도 의사결정', icon: '💵', path: '/research/sell-decision' },
], ],
}, },
{ {
id: 'reports', id: 'portfolio',
label: '보고서', label: '포트폴리오',
icon: '📈', icon: '📈',
path: '/reports/daily', path: '/portfolio/risk',
children: [ children: [
{ id: 'rep-daily', label: '일일 보고서', icon: '📄', path: '/reports/daily' }, { id: 'port-risk', label: '리스크 대시보드', icon: '🛡️', path: '/portfolio/risk' },
{ id: 'rep-weekly', label: '주간 보고서', icon: '📋', path: '/reports/weekly' }, { id: 'port-rebalance', label: '리밸런싱 제안', icon: '⚖️', path: '/portfolio/rebalance' },
{ id: 'rep-export', label: '내보내기', icon: '💾', path: '/reports/export' }, { id: 'market-data', label: '시장 데이터 수집', icon: '💾', path: '/ops/market-data-ingestion' },
], ],
}, },
{
id: 'ui-catalog',
label: 'UI 컴포넌트 갤러리',
icon: '🎨',
path: '/internal/ui-standard',
},
] ]
const isActive = (path: string) => route.path === path const isActive = (path: string) => route.path === path
+24 -22
View File
@@ -83,52 +83,54 @@ const isTabActive = (tabId: string) => activeTabId.value === tabId
.ks-tabs { .ks-tabs {
display: flex; display: flex;
align-items: center; align-items: center;
height: 44px; height: var(--ks-shell-tabs-height);
background-color: var(--color-background-primary); background-color: var(--ks-color-surface);
border-bottom: 1px solid var(--color-border-primary); border-bottom: 1px solid var(--ks-color-border);
overflow-x: auto; overflow-x: auto;
overflow-y: hidden; overflow-y: hidden;
gap: var(--spacing-2); gap: var(--ks-space-2);
padding: 0 var(--spacing-3); padding: 0 var(--ks-space-4);
} }
.ks-tabs__list { .ks-tabs__list {
display: flex; display: flex;
gap: var(--spacing-2); gap: var(--ks-space-2);
flex: 1; flex: 1;
min-width: 0; min-width: 0;
overflow-x: auto; overflow-x: auto;
scroll-behavior: smooth; scroll-behavior: smooth;
align-items: center;
height: 100%;
} }
.ks-tabs__tab { .ks-tabs__tab {
display: flex; display: flex;
align-items: center; align-items: center;
gap: var(--spacing-2); gap: var(--ks-space-2);
padding: var(--spacing-1) var(--spacing-3); padding: 0 var(--ks-space-3);
background-color: var(--color-background-secondary); height: 32px;
border: 1px solid var(--color-border-primary); background-color: var(--ks-color-neutral-100);
border-radius: var(--border-radius-base) var(--border-radius-base) 0 0; border: 1px solid var(--ks-color-border);
color: var(--color-text-secondary); border-radius: var(--ks-radius-sm);
color: var(--ks-color-text-muted);
cursor: pointer; cursor: pointer;
font-size: var(--font-size-sm); font-size: var(--ks-font-grid);
white-space: nowrap; white-space: nowrap;
flex-shrink: 0; flex-shrink: 0;
transition: all var(--transition-base); transition: var(--ks-transition-fast);
border-bottom: 2px solid transparent;
} }
.ks-tabs__tab:hover { .ks-tabs__tab:hover {
background-color: var(--color-background-hover); background-color: var(--ks-color-neutral-200);
color: var(--color-text-primary); color: var(--ks-color-text);
} }
.ks-tabs__tab--active { .ks-tabs__tab--active {
background-color: var(--color-background-primary); background-color: var(--ks-color-surface);
color: var(--color-text-primary); color: var(--ks-color-action);
border-color: var(--color-border-secondary) var(--color-border-secondary) var(--color-background-primary) var(--color-border-secondary); border-color: var(--ks-color-action);
border-bottom-color: var(--color-primary-500); box-shadow: var(--ks-shadow-sm);
font-weight: var(--font-weight-semibold); font-weight: 600;
} }
.ks-tabs__icon { .ks-tabs__icon {