all versions in search | new badges | new labels

This commit is contained in:
typescreep
2025-10-04 16:09:55 +03:00
parent 61b7b8a11d
commit 5ef3c7f6fb
3 changed files with 10 additions and 7 deletions

8
package-lock.json generated
View File

@@ -11,7 +11,7 @@
"@ant-design/icons": "5.6.0",
"@monaco-editor/react": "4.6.0",
"@originjs/vite-plugin-federation": "1.3.6",
"@prorobotech/openapi-k8s-toolkit": "^0.0.1-alpha.126",
"@prorobotech/openapi-k8s-toolkit": "^0.0.1-alpha.127",
"@readme/openapi-parser": "4.0.0",
"@reduxjs/toolkit": "2.2.5",
"@tanstack/react-query": "5.62.2",
@@ -2804,9 +2804,9 @@
}
},
"node_modules/@prorobotech/openapi-k8s-toolkit": {
"version": "0.0.1-alpha.126",
"resolved": "https://registry.npmjs.org/@prorobotech/openapi-k8s-toolkit/-/openapi-k8s-toolkit-0.0.1-alpha.126.tgz",
"integrity": "sha512-sTEz+LeMhddSOnhOEtFmH1KNHwANVAkuaoF++umrnIQ1msMKLRCbCNHEeH7glQYr10D7HJQCwlgyplRCtUmvAg==",
"version": "0.0.1-alpha.127",
"resolved": "https://registry.npmjs.org/@prorobotech/openapi-k8s-toolkit/-/openapi-k8s-toolkit-0.0.1-alpha.127.tgz",
"integrity": "sha512-2FWxPJxiEyhBgJq+dqdDKn0SVCG8MlwN5vDF0V/7xpXhbfQk/h9tduFf+KAofPIPJWSyBfAgWcAS83b7/TLwsw==",
"license": "MIT",
"dependencies": {
"@monaco-editor/react": "4.6.0",

View File

@@ -20,7 +20,7 @@
"@ant-design/icons": "5.6.0",
"@monaco-editor/react": "4.6.0",
"@originjs/vite-plugin-federation": "1.3.6",
"@prorobotech/openapi-k8s-toolkit": "0.0.1-alpha.126",
"@prorobotech/openapi-k8s-toolkit": "0.0.1-alpha.127",
"@readme/openapi-parser": "4.0.0",
"@reduxjs/toolkit": "2.2.5",
"@tanstack/react-query": "5.62.2",

View File

@@ -8,7 +8,7 @@ import {
TKindIndex,
TKindWithVersion,
getKinds,
getSortedKinds,
getSortedKindsAll,
LookingGlassIcon,
} from '@prorobotech/openapi-k8s-toolkit'
import { ConfigProvider, theme as antdtheme, Form, Spin, Alert } from 'antd'
@@ -103,7 +103,7 @@ export const Search: FC = () => {
getKinds({ clusterName: cluster })
.then(data => {
setKindIndex(data)
setKindWithVersion(getSortedKinds(data))
setKindWithVersion(getSortedKindsAll(data))
setIsLoading(false)
setError(undefined)
})
@@ -262,6 +262,9 @@ export const Search: FC = () => {
return <Alert type="error" message="Error while loading kinds" description="Empty" />
}
console.log(kindIndex)
console.log(kindsWithVersion)
return (
<Styled.Container $height={height}>
<Styled.OverflowContainer>