Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: handle package catalog edge case #1187

Merged
merged 4 commits into from Aug 29, 2023
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion engine/frontend/src/App.js
Expand Up @@ -3,7 +3,7 @@ import Home from './component/Home';
import { ChakraProvider } from '@chakra-ui/react'

const App = () => {
console.log("Enclave Manager version: 2023-08-28-5")
console.log("Enclave Manager version: 2023-08-28-6")
return (
<ChakraProvider>
<div className="h-screen w-screen">
Expand Down
24 changes: 16 additions & 8 deletions engine/frontend/src/component/PackageCatalog.js
Expand Up @@ -44,7 +44,13 @@ const PackageCatalog = ({kurtosisPackages: defaultPackages}) => {
if (value === "") {
setKurtosisPackages(defaultPackages)
}
const filteredPackages = defaultPackages.filter(pack => pack.name.includes(value))
const filteredPackages = defaultPackages.filter(pack => {
if ("name" in pack) {
return pack.name.includes(value)
}
return false;
}
)

setKurtosisPackages(filteredPackages)
}
Expand Down Expand Up @@ -80,13 +86,15 @@ const PackageCatalog = ({kurtosisPackages: defaultPackages}) => {
{
kurtosisPackages.map( (kurtosisPackage, index) => {
const bgcolor = (index === chosenPackage) ? '#24BA27' : 'gray.300'
return (
<ListItem bg={bgcolor} key={index} onClick={() => selectPackage(index)}>
<Center h="70px" w="100%">
<Text fontSize={"2xl"} color='blue.800' fontWeight={"bold"}> {kurtosisPackage.name} </Text>
</Center>
</ListItem>
)
if ("name" in kurtosisPackage) {
return (
<ListItem bg={bgcolor} key={index} onClick={() => selectPackage(index)}>
<Center h="70px" w="100%">
<Text fontSize={"2xl"} color='blue.800' fontWeight={"bold"}> {kurtosisPackage.name} </Text>
</Center>
</ListItem>
)
}
})
}
</List>
Expand Down
6 changes: 3 additions & 3 deletions engine/server/webapp/asset-manifest.json
@@ -1,13 +1,13 @@
{
"files": {
"main.css": "./static/css/main.b81f850e.css",
"main.js": "./static/js/main.6966d62c.js",
"main.js": "./static/js/main.60caf139.js",
"index.html": "./index.html",
"main.b81f850e.css.map": "./static/css/main.b81f850e.css.map",
"main.6966d62c.js.map": "./static/js/main.6966d62c.js.map"
"main.60caf139.js.map": "./static/js/main.60caf139.js.map"
},
"entrypoints": [
"static/css/main.b81f850e.css",
"static/js/main.6966d62c.js"
"static/js/main.60caf139.js"
]
}
2 changes: 1 addition & 1 deletion engine/server/webapp/index.html
@@ -1 +1 @@
<!doctype html><html lang="en"><head><meta charset="utf-8"/><meta name="viewport" content="width=device-width,initial-scale=1"/><meta name="theme-color" content="#000000"/><title>Kurtosis Enclave Manager</title><script defer="defer" src="./static/js/main.6966d62c.js"></script><link href="./static/css/main.b81f850e.css" rel="stylesheet"></head><body><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div></body></html>
<!doctype html><html lang="en"><head><meta charset="utf-8"/><meta name="viewport" content="width=device-width,initial-scale=1"/><meta name="theme-color" content="#000000"/><title>Kurtosis Enclave Manager</title><script defer="defer" src="./static/js/main.60caf139.js"></script><link href="./static/css/main.b81f850e.css" rel="stylesheet"></head><body><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div></body></html>
3 changes: 3 additions & 0 deletions engine/server/webapp/static/js/main.60caf139.js

Large diffs are not rendered by default.

83 changes: 83 additions & 0 deletions engine/server/webapp/static/js/main.60caf139.js.LICENSE.txt
@@ -0,0 +1,83 @@
/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */

/**
* @license React
* react-dom.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/

/**
* @license React
* react-jsx-runtime.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/

/**
* @license React
* react.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/

/**
* @license React
* scheduler.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/

/**
* @remix-run/router v1.7.1
*
* Copyright (c) Remix Software Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE.md file in the root directory of this source tree.
*
* @license MIT
*/

/**
* React Router DOM v6.14.1
*
* Copyright (c) Remix Software Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE.md file in the root directory of this source tree.
*
* @license MIT
*/

/**
* React Router v6.14.1
*
* Copyright (c) Remix Software Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE.md file in the root directory of this source tree.
*
* @license MIT
*/

/** @license React v16.13.1
* react-is.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
1 change: 1 addition & 0 deletions engine/server/webapp/static/js/main.60caf139.js.map

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions engine/server/webapp/static/js/main.ed1bf2e9.js

Large diffs are not rendered by default.

83 changes: 83 additions & 0 deletions engine/server/webapp/static/js/main.ed1bf2e9.js.LICENSE.txt
@@ -0,0 +1,83 @@
/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */

/**
* @license React
* react-dom.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/

/**
* @license React
* react-jsx-runtime.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/

/**
* @license React
* react.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/

/**
* @license React
* scheduler.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/

/**
* @remix-run/router v1.7.1
*
* Copyright (c) Remix Software Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE.md file in the root directory of this source tree.
*
* @license MIT
*/

/**
* React Router DOM v6.14.1
*
* Copyright (c) Remix Software Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE.md file in the root directory of this source tree.
*
* @license MIT
*/

/**
* React Router v6.14.1
*
* Copyright (c) Remix Software Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE.md file in the root directory of this source tree.
*
* @license MIT
*/

/** @license React v16.13.1
* react-is.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
1 change: 1 addition & 0 deletions engine/server/webapp/static/js/main.ed1bf2e9.js.map

Large diffs are not rendered by default.