Skip to content

Commit d6deb0c

Browse files
fixing bugs, removing debug code, and adding some tooltips (#159)
1 parent 6002ace commit d6deb0c

File tree

8 files changed

+24
-23
lines changed

8 files changed

+24
-23
lines changed

electron/app/locales/en/webui.json

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@
4242
"kubectl-config-file-label": "Kubernetes Client Config File(s)",
4343
"kubectl-config-file-help": "The Kubernetes client configuration file(s) to use. Leave this empty to use the default location.",
4444
"kubectl-config-context-label": "Kubectl Config Context to Use",
45+
"kubectl-config-context-tooltip": "Get the current Kubernetes cluster context from the Kubernetes Client Config File",
4546
"kubectl-config-context-help": "The Kubernetes config file context name for the cluster to which you want to connect. The default is to use whatever the current context is, if any.",
4647
"kubectl-helm-exe-file-path-label": "Helm Executable to Use",
4748
"kubectl-helm-exe-file-path-help": "The full path to the Helm executable that is used to install the WebLogic Kubernetes Operator and some ingress controllers in your Kubernetes cluster.",
@@ -1425,7 +1426,8 @@
14251426
"vz-component-design-namespace-label": "Component Namespace",
14261427
"vz-component-design-namespace-help": "The Kubernetes namespace to which the Verrazzano component will be deployed.",
14271428
"vz-component-design-installed-version-label": "Verrazzano Version",
1428-
"vz-component-design-installed-version-help": "The three digit version number of the target Verrazzano installation.",
1429+
"vz-component-design-installed-version-help": "The three digit version number of the installed Verrazzano version from the target environment.",
1430+
"vz-component-design-installed-version-tooltip": "Get the installed version of Verrazzano from the target environment",
14291431

14301432
"vz-component-code-script-title": "Install Script",
14311433
"vz-component-code-component-resource-title": "Component Resource",
@@ -1548,16 +1550,16 @@
15481550
"vz-application-design-component-ingress-trait-secret-name-help": "The name of the TLS secret to associate with the routes defined by this ingress.",
15491551
"vz-application-design-choose-ingress-trait-secret-validation-error-title": "Choose Secret for Ingress Trait Aborted",
15501552
"vz-application-design-choose-ingress-trait-get-secrets-error-message": "Unable to choose secret due to an error while getting the list of available secrets: {{error}}.",
1551-
"vz-application-design-ingress-trait-rules-uid-label": "Unique ID",
1553+
"vz-application-design-ingress-trait-rules-table-title": "Ingress Rules",
1554+
"vz-application-design-ingress-trait-rules-table-aria-label": "Ingress Rules table",
15521555
"vz-application-design-ingress-trait-rules-hosts-label": "Hosts",
15531556
"vz-application-design-ingress-trait-rules-first-path-type-label": "First Path Type",
15541557
"vz-application-design-ingress-trait-rules-first-path-label": "First Path",
15551558
"vz-application-design-ingress-trait-rules-destination-host-label": "Destination Host",
15561559
"vz-application-design-ingress-trait-rules-destination-port-label": "Destination Port",
1557-
"vz-application-design-rules-table-aria-label": "Ingress Trait Rules table",
1558-
"vz-application-design-add-rule-label": "Add Ingress Trait Rule",
1559-
"vz-application-design-edit-rule-label": "Edit Ingress Trait Rule",
1560-
"vz-application-design-delete-rule-label": "Delete Ingress Trait Rule",
1560+
"vz-application-design-add-rule-label": "Add Ingress Rule",
1561+
"vz-application-design-edit-rule-label": "Edit Ingress Rule",
1562+
"vz-application-design-delete-rule-label": "Delete Ingress Rule",
15611563

15621564
"vz-application-design-component-logging-trait-enabled-label": "Enable Logging Trait",
15631565
"vz-application-design-component-logging-trait-enabled-help": "Enable the Logging Trait for this component.",
@@ -1609,13 +1611,13 @@
16091611
"vz-application-design-ingress-trait-rule-edit-destination-host-label": "Host",
16101612
"vz-application-design-ingress-trait-rule-edit-destination-host-help": "Destination host for the ingress path.",
16111613
"vz-application-design-ingress-trait-rule-edit-destination-port-label": "Port",
1612-
"vz-application-design-ingress-trait-rule-edit-destination-port-help": "Destination port for the ingress path (-1 indicates that the value is not set).",
1614+
"vz-application-design-ingress-trait-rule-edit-destination-port-help": "Destination port for the ingress path.",
16131615
"vz-application-design-ingress-trait-rule-edit-destination-cookie-name-label": "Session Affinity Cookie Name",
16141616
"vz-application-design-ingress-trait-rule-edit-destination-cookie-name-help": "The name of the HTTP Cookie to use for session affinity for this path.",
16151617
"vz-application-design-ingress-trait-rule-edit-destination-cookie-path-label": "Session Affinity Cookie Path",
16161618
"vz-application-design-ingress-trait-rule-edit-destination-cookie-path-help": "The path of the HTTP Cookie to use for session affinity for this path.",
16171619
"vz-application-design-ingress-trait-rule-edit-destination-cookie-ttl-label": "Session Affinity Cookie Time-to-Live Seconds",
1618-
"vz-application-design-ingress-trait-rule-edit-destination-cookie-ttl-help": "The lifetime of the HTTP Cookie in seconds to use for session affinity for this path (-1 indicates that the value is not set).",
1620+
"vz-application-design-ingress-trait-rule-edit-destination-cookie-ttl-help": "The lifetime of the HTTP Cookie in seconds to use for session affinity for this path.",
16191621

16201622
"vz-application-code-script-title": "Deploy Script",
16211623
"vz-application-code-application-resource-title": "Application Resource",

electron/package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

webui/src/js/utils/vz-actions-base.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ define(['utils/wkt-actions-base', 'utils/validation-helper', 'utils/dialog-helpe
1818
kubectlFormConfig.formName = 'kubectl-form-name';
1919

2020
validationObject.addField('kubectl-exe-file-path-label',
21-
validationHelper.validateRequiredField(this.project.settings.javaHome.value), kubectlFormConfig);
21+
validationHelper.validateRequiredField(this.project.kubectl.executableFilePath.value), kubectlFormConfig);
2222

2323
return validationObject;
2424
}

webui/src/js/utils/vz-get-installed-version.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ function(VzActionsBase, project, wktConsole, i18n, projectIo, dialogHelper) {
2727
const validatableObject = this.getValidatableObject('flow-verrazzano-get-install-version-name');
2828
if (validatableObject.hasValidationErrors()) {
2929
const validationErrorDialogConfig = validatableObject.getValidationErrorDialogConfig(errTitle);
30-
dialogHelper.openDialog('validation-error-dialog', validationErrorDialogConfig);
30+
await dialogHelper.openDialog('validation-error-dialog', validationErrorDialogConfig);
3131
return Promise.resolve(false);
3232
}
3333

webui/src/js/viewModels/vz-application-design-view.js

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ function (project, accUtils, utils, ko, i18n, BufferingDataProvider, ArrayDataPr
6262

6363
this.addComponent = async () => {
6464
// First, determine if the required fields are set...
65-
const errTitle = 'vz-application-design-add-component-validation-error-title';
65+
const errTitle = this.labelMapper('add-component-validation-error-title');
6666
const validationObject = this.getValidationObject('vz-application-design-add-component-flow-nane');
6767
if (validationObject.hasValidationErrors()) {
6868
const validationErrorDialogConfig = validationObject.getValidationErrorDialogConfig(errTitle);
@@ -400,10 +400,6 @@ function (project, accUtils, utils, ko, i18n, BufferingDataProvider, ArrayDataPr
400400

401401
// this is dynamic to allow i18n fields to load correctly
402402
this.ingressTraitRulesColumnData = [
403-
{
404-
'headerText': this.labelMapper('ingress-trait-rules-uid-label'),
405-
'sortable': 'disable',
406-
},
407403
{
408404
'headerText': this.labelMapper('ingress-trait-rules-hosts-label'),
409405
'sortable': 'disable',

webui/src/js/views/kubectl-page.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ <h6><oj-bind-text value="[[labelMapper('title')]]"></oj-bind-text></h6>
4343
help.instruction="[[labelMapper('config-context-help')]]">
4444
<oj-button slot="end" display="icons" chroming="borderless" on-oj-action="[[getCurrentContext]]">
4545
<span slot="endIcon" class="oj-ux-ico-annotation" role="img"></span>
46+
<oj-bind-text value="[[labelMapper('config-context-tooltip')]]"></oj-bind-text>
4647
</oj-button>
4748
</oj-input-text>
4849
<oj-bind-if test="[[usingWko() === true]]">

webui/src/js/views/vz-application-design-view.html

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,10 @@ <h6 class="wkt-subheading"><oj-bind-text value="[[labelMapper('title')]]"></oj-b
2323
</oj-input-text>
2424
<oj-input-text label-hint="[[i18n.t('vz-component-design-installed-version-label')]]"
2525
value="{{project.vzInstall.actualInstalledVersion.observable}}"
26-
help.instructions="[[i18n.t('vz-component-design-installed-version-help')]]">
26+
help.instruction="[[i18n.t('vz-component-design-installed-version-help')]]">
2727
<oj-button slot="end" display="icons" chroming="borderless" on-oj-action="[[getInstalledVersionNumber]]">
2828
<span slot="endIcon" class="oj-ux-ico-annotation" role="img"></span>
29+
<oj-bind-text value="[[i18n.t('vz-component-design-installed-version-tooltip')]]"></oj-bind-text>
2930
</oj-button>
3031
</oj-input-text>
3132
</oj-form-layout>
@@ -122,9 +123,12 @@ <h6 slot="header">
122123
</oj-input-text>
123124
</oj-form-layout>
124125
<div>
126+
<h6 class="wkt-subheading">
127+
<oj-bind-text value="[[labelMapper('ingress-trait-rules-table-title')]]"></oj-bind-text>
128+
</h6>
125129
<oj-table :id="[[`ingress-rules-table-${component.index}`]]"
126130
class="wkt-model-properties-table"
127-
:aria-label="[[labelMapper('rules-table-aria-label')]]"
131+
:aria-label="[[labelMapper('ingress-trait-rules-table-aria-label')]]"
128132
data="[[componentsIngressTraitRulesDataProvider(component.data)]]"
129133
display="grid"
130134
horizontal-grid-visible="enabled"
@@ -133,9 +137,6 @@ <h6 slot="header">
133137
columns='[[ingressTraitRulesColumnData]]'>
134138
<template slot="rowTemplate" data-oj-as="row">
135139
<tr>
136-
<td>
137-
<oj-bind-text value="[[row.data.uid]]"></oj-bind-text>
138-
</td>
139140
<td>
140141
<oj-bind-text value="[[row.data.hosts]]"></oj-bind-text>
141142
</td>

webui/src/js/views/vz-component-design-view.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,10 @@ <h6 class="wkt-subheading"><oj-bind-text value="[[labelMapper('title')]]"></oj-b
1515
</oj-input-text>
1616
<oj-input-text label-hint="[[labelMapper('installed-version-label')]]"
1717
value="{{project.vzInstall.actualInstalledVersion.observable}}"
18-
help.instructions="[[labelMapper('installed-version-help')]]">
18+
help.instruction="[[labelMapper('installed-version-help')]]">
1919
<oj-button slot="end" display="icons" chroming="borderless" on-oj-action="[[getInstalledVersionNumber]]">
2020
<span slot="endIcon" class="oj-ux-ico-annotation" role="img"></span>
21+
<oj-bind-text value="[[labelMapper('installed-version-tooltip')]]"></oj-bind-text>
2122
</oj-button>
2223
</oj-input-text>
2324
<oj-input-text label-hint="[[domainLabelMapper('wls-credential-label')]]"

0 commit comments

Comments
 (0)