-
Notifications
You must be signed in to change notification settings - Fork 60
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: improve access to the EMUI 'ports' fields (#2201)
## Description: This PR improves the accessibility of service ports per #2188. Specifically it shows (clickable) named ports on the enclave list and enclave overview screens. Additionally the services in an enclave are shown once the enclave logs have successfully finished. ### Screenshots ![Screenshot from 2024-02-21 14-40-18](https://github.com/kurtosis-tech/kurtosis/assets/4419574/d94e8872-30ee-4a25-ad7a-9c10c1a6c711) ![Screenshot from 2024-02-21 14-59-02](https://github.com/kurtosis-tech/kurtosis/assets/4419574/32072fec-9cc7-41ea-8c71-4db0dc733c43) ![Screenshot from 2024-02-21 15-13-28](https://github.com/kurtosis-tech/kurtosis/assets/4419574/3994637e-9b41-4e44-a412-8a474b30fdcb) ## Is this change user facing? YES ## References (if applicable): * Fixes #2188 Co-authored-by: Anders Schwartz <[email protected]>
- Loading branch information
1 parent
0c71e5c
commit 486ea2e
Showing
17 changed files
with
162 additions
and
173 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
import Cookies from "js-cookie"; | ||
|
||
export const instanceUUID = Cookies.get("_kurtosis_instance_id") || ""; | ||
export const apiKey = Cookies.get("_kurtosis_api_key") || ""; | ||
export const jwtToken = Cookies.get("_kurtosis_jwt_token"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 0 additions & 19 deletions
19
...manager/web/packages/app/src/emui/enclaves/components/widgets/EnclaveArtifactsSummary.tsx
This file was deleted.
Oops, something went wrong.
21 changes: 21 additions & 0 deletions
21
enclave-manager/web/packages/app/src/emui/enclaves/components/widgets/PortMaybeLink.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
import { ExternalLinkIcon } from "@chakra-ui/icons"; | ||
import { Link, Text } from "@chakra-ui/react"; | ||
import { PortsTableRow } from "../tables/PortsTable"; | ||
|
||
type PortMaybeLinkProps = { | ||
port: PortsTableRow; | ||
}; | ||
export const PortMaybeLink = ({ port }: PortMaybeLinkProps) => { | ||
return ( | ||
<Text> | ||
{port.port.applicationProtocol?.startsWith("http") ? ( | ||
<Link href={port.link} isExternal> | ||
{port.port.name} | ||
<ExternalLinkIcon mx="2px" /> | ||
</Link> | ||
) : ( | ||
port.port.name | ||
)} | ||
</Text> | ||
); | ||
}; |
Oops, something went wrong.