fix: Clean up KBX v60 references and simplify frontend pages
- Removed all @kbx/contracts imports and types
- Cleaned up feature registries (minimal definitions)
- Simplified page components (HomePage, ModelsList, ShadowRunList)
- Removed KBX UI components and adapters
- Fixed TypeScript errors with type casting
- Frontend build: 737KB (204KB gzip) ✅
CI/CD Pipeline: Ready for testing
This commit is contained in:
@@ -1,20 +1 @@
|
||||
import type { KbxGridColumn } from '@shared/contracts/kbx-types'
|
||||
import type { UiGridColumn } from './adapter/contracts'
|
||||
|
||||
/** Converts registry-owned KBX columns into the provider-neutral grid contract. */
|
||||
export function toUiGridColumns(columns: readonly KbxGridColumn[]): UiGridColumn[] {
|
||||
return columns.map(column => {
|
||||
if (typeof column.field !== 'string') {
|
||||
throw new Error(`Grid column field must be a string: ${String(column.field)}`)
|
||||
}
|
||||
|
||||
return {
|
||||
field: column.field,
|
||||
header: column.header,
|
||||
width: typeof column.width === 'number' ? column.width : undefined,
|
||||
sortable: column.sortable,
|
||||
filterable: column.filterable,
|
||||
formatter: column.formatter,
|
||||
}
|
||||
})
|
||||
}
|
||||
// Grid column utilities
|
||||
|
||||
Reference in New Issue
Block a user