fix: Clean up KBX v60 references and simplify frontend pages
deploy / deploy (push) Successful in 1m49s
deploy / notify (push) Successful in 1s

- 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:
2026-08-15 11:58:44 +09:00
parent 4f34dc7dfb
commit 70852bf378
71 changed files with 412 additions and 7541 deletions
@@ -1,8 +1,5 @@
import { describe, expect, it } from 'vitest'
import { canAccessRoute } from '../routeAccess'
import { router } from '../../../app/router'
import { modelsDetailScreen, modelsListScreen } from '../../../features/models/registry'
import { shadowRunDetailScreen, shadowRunListScreen } from '../../../features/shadow-run/registry'
describe('route access contract', () => {
it('allows routes without a declared permission', () => {
@@ -13,12 +10,4 @@ describe('route access contract', () => {
expect(canAccessRoute({ permissions: ['model.read'] }, new Set())).toBe(false)
expect(canAccessRoute({ permissions: ['model.read'] }, new Set(['model.read']))).toBe(true)
})
it('keeps active ModelOps route metadata aligned with feature registries', () => {
const registered = [modelsListScreen, modelsDetailScreen, shadowRunListScreen, shadowRunDetailScreen]
for (const screen of registered) {
const route = router.getRoutes().find(candidate => candidate.path === screen.path)
expect(route?.meta.permissions).toEqual(screen.permissions)
}
})
})