From 0b7eb6fa9f6f313a0782e42cfe2de6b02f05a4a1 Mon Sep 17 00:00:00 2001 From: Nick Mitchell Date: Tue, 27 Sep 2022 10:54:05 -0400 Subject: [PATCH] fix: update ProfileExplorer to allow "editing" of aspects of the profile This PR also leverages the "interactive for" feature in madwizard 1.1.0 --- package-lock.json | 16 +++--- .../src/components/DashboardSelect.tsx | 5 +- .../src/components/ProfileExplorer.tsx | 54 ++++++++++++++++--- .../components/SelectedProfileTerminal.tsx | 2 +- .../src/controller/terminal.tsx | 37 ++++++++++--- .../components/ProfileExplorer/_index.scss | 24 ++++++++- plugins/plugin-madwizard/package.json | 2 +- plugins/plugin-madwizard/src/plugin.ts | 11 +++- 8 files changed, 121 insertions(+), 30 deletions(-) diff --git a/package-lock.json b/package-lock.json index 3ec2626b..bc3c2ccd 100644 --- a/package-lock.json +++ b/package-lock.json @@ -8871,9 +8871,9 @@ } }, "node_modules/madwizard": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/madwizard/-/madwizard-1.0.3.tgz", - "integrity": "sha512-U73HXwvSK2C+40gDV7OQRLMky/V2ou1GeTSnHtwpDYx0WllLKNV1m1ynMShMZ1avQMNAZM/zZ1xbPIyaULy/Tw==", + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/madwizard/-/madwizard-1.1.0.tgz", + "integrity": "sha512-8ztAITScM20mWiAFrtzNxM2mFO44Mf34GegpSupscGQnn38etKkWhU6gfRc2ePMpHvUt0spfBz+lw94gNVTfRQ==", "dependencies": { "chalk": "^5.0.1", "cli-highlight": "^2.1.11", @@ -15950,7 +15950,7 @@ "license": "Apache-2.0", "dependencies": { "@guidebooks/store": "^0.14.1", - "madwizard": "^1.0.3" + "madwizard": "^1.1.0" } } }, @@ -16656,7 +16656,7 @@ "version": "file:plugins/plugin-madwizard", "requires": { "@guidebooks/store": "^0.14.1", - "madwizard": "^1.0.3" + "madwizard": "^1.1.0" } }, "@kui-shell/plugin-patternfly4-themes": { @@ -22603,9 +22603,9 @@ } }, "madwizard": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/madwizard/-/madwizard-1.0.3.tgz", - "integrity": "sha512-U73HXwvSK2C+40gDV7OQRLMky/V2ou1GeTSnHtwpDYx0WllLKNV1m1ynMShMZ1avQMNAZM/zZ1xbPIyaULy/Tw==", + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/madwizard/-/madwizard-1.1.0.tgz", + "integrity": "sha512-8ztAITScM20mWiAFrtzNxM2mFO44Mf34GegpSupscGQnn38etKkWhU6gfRc2ePMpHvUt0spfBz+lw94gNVTfRQ==", "requires": { "chalk": "^5.0.1", "cli-highlight": "^2.1.11", diff --git a/plugins/plugin-codeflare/src/components/DashboardSelect.tsx b/plugins/plugin-codeflare/src/components/DashboardSelect.tsx index a96a4a81..46851874 100644 --- a/plugins/plugin-codeflare/src/components/DashboardSelect.tsx +++ b/plugins/plugin-codeflare/src/components/DashboardSelect.tsx @@ -16,7 +16,7 @@ import React from "react" import { openWindow } from "../controller/profile/actions" -import { Select, SelectOption, SelectOptionObject, SelectVariant } from "@patternfly/react-core" +import { Select, SelectOption, SelectOptionObject } from "@patternfly/react-core" type Props = { selectedProfile?: string @@ -62,7 +62,8 @@ export default class DashboardSelect extends React.PureComponent { public render() { return (