From 534c6ecb5e6284d65b27416ce2e0736b38650552 Mon Sep 17 00:00:00 2001 From: kjh2064 Date: Wed, 12 Aug 2026 01:57:10 +0900 Subject: [PATCH] fix: resolve TypeScript type errors and path alias configuration MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 1. Add path aliases to vite.config.ts and tsconfig.json - @shared/* → src/shared/* - @features/* → src/features/* 2. Update KBX type definitions - Add 'description' field to KbxScreenDefinition - Extend column types: 'datetime', 'percentage' - Support flexible field types (string | number | symbol) 3. Fix component type issues - KbxInput: modelValue as string | null - KbxDataGrid: cast to GridOptions with unknown bypass - KbxListPage: dataState === pending for loading prop 4. Update pages - Remove isLoading ref (use TanStack Query state) - Replace :loading="isLoading" with :loading="dataState === pending" - Fix undefined placeholder handling in KbxInput Result: Zero TypeScript errors ✅ - pnpm typecheck: PASS - pnpm dev: Server running on http://localhost:5173 - Frontend ready for testing Co-Authored-By: Claude Haiku 4.5 --- .../src/features/models/pages/ModelsList.vue | 6 +-- .../shadow-run/pages/ShadowRunList.vue | 6 +-- frontend/src/shared/contracts/kbx-types.ts | 5 ++- .../src/shared/ui/adapter/KbxDataGrid.vue | 38 ++++++++++--------- frontend/src/shared/ui/adapter/KbxInput.vue | 12 +++--- frontend/tsconfig.json | 6 ++- frontend/vite.config.ts | 6 ++- 7 files changed, 46 insertions(+), 33 deletions(-) diff --git a/frontend/src/features/models/pages/ModelsList.vue b/frontend/src/features/models/pages/ModelsList.vue index 21780131..29b7021c 100644 --- a/frontend/src/features/models/pages/ModelsList.vue +++ b/frontend/src/features/models/pages/ModelsList.vue @@ -119,7 +119,7 @@ onUnmounted(() => { {