-
Notifications
You must be signed in to change notification settings - Fork 92
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
Add new features for the ui of the vic plugin auto install functionality #1790
Add new features for the ui of the vic plugin auto install functionality #1790
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we need to revert the changes to the Init* variables, but their than that, this looks good!
@@ -30,35 +29,38 @@ | |||
</div> | |||
</header> | |||
<main class="content-container"> | |||
<div class="content-area"> | |||
<div id="getting-started-items-container"> | |||
{{if .InitErrorFeedback }} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We need to keep this variable here - it can be populated by messages other than those which you have put here.
installer/fileserver/html/index.html
Outdated
<div class="alert-item"> | ||
<span class="alert-text">{{ .InitErrorFeedback }}</span> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same as above.
installer/fileserver/html/index.html
Outdated
<div class="alert-actions"> | ||
<a href="/?login=true" title="Login" class="alert-action">Re-initialize</a> | ||
</div> | ||
</div> | ||
</div> | ||
{{ end }} | ||
{{if .InitSuccessFeedback }} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same as above, please!
installer/fileserver/html/index.html
Outdated
<div class="alert-item"> | ||
<span class="alert-text">{{ .InitSuccessFeedback }}</span> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same as above, please!
installer/fileserver/html/index.html
Outdated
$loginSpinner.style.display = ''; | ||
setTimeout(function() { | ||
$vc = document.getElementById('target').value; | ||
getThumbprint($vc,function (thumbprint,status) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! Please make sure to squash your changes before merging.
installer/fileserver/html/index.html
Outdated
</div> | ||
</div> | ||
{{ end }} | ||
<div id="feedback-alert-error" class="alert alert-danger mt-0" style="display: none"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we still need this?
installer/fileserver/html/index.html
Outdated
</body> | ||
|
||
</html> | ||
</html> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
add line break
installer/fileserver/html/index.html
Outdated
$pluginSpinner.style.display = ''; | ||
setTimeout(function() { | ||
$loginForm.submit(); | ||
}); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
setTimeout should have a second parameter for the timeout interval
installer/fileserver/html/index.html
Outdated
$vc = document.getElementById('target').value; | ||
getThumbprint($vc,function (thumbprint,status) { | ||
|
||
if (status ===200){ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: fix spacing
installer/fileserver/html/index.html
Outdated
xhr.onreadystatechange = function() { | ||
callback(xhr.response,xhr.status); | ||
}; | ||
xhr.send(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
let's make sure we cross-browser test all of this since we aren't using any libraries
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Few small comments. Also, the functions in this page should include at least some basic unit testing.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM with unit tests, one small comment.
installer/fileserver/html/index.html
Outdated
{{if .InitSuccessFeedback }} | ||
<div id="feedback-alert" class="alert alert-success"> | ||
<div class="alert-item"> | ||
<span class="alert-text">{{ .InitSuccessFeedback }}, please restart the vSphere client services</span> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please remove the , please restart the vSphere client services
, it will be populated on the backend.
36a27b3
to
5253c52
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good
Introduces caching of the vic-ui plugin artifacts as a component of the ova. Updates the fileserver provisioner to package vic-ui with the correct version numbers. Fixes vmware#1433.
2c8d734
to
c001e6b
Compare
Adds a new modal for thumbprint validation to the Getting Started Page in the Fileserver. Fixes vmware/vic-ui#465
Adds a new modal for thumbprint validation to the Getting Started Page in the Fileserver. Fixes vmware/vic-ui#465
Adds a new modal for thumbprint validation to the Getting Started Page in the Fileserver. Fixes vmware/vic-ui#465
Adds a new modal for thumbprint validation to the Getting Started Page in the Fileserver. Fixes vmware/vic-ui#465
Adds a new modal for thumbprint validation to the Getting Started Page in the Fileserver. Fixes vmware/vic-ui#465
Adds a new modal for thumbprint validation to the Getting Started Page in the Fileserver. Fixes vmware/vic-ui#465
Adds a new modal for thumbprint validation to the Getting Started Page in the Fileserver. Fixes vmware/vic-ui#465
Adds a new modal for thumbprint validation to the Getting Started Page in the Fileserver. Fixes vmware/vic-ui#465
Adds a new modal for thumbprint validation to the Getting Started Page in the Fileserver. Fixes vmware/vic-ui#465
Adds a new modal for thumbprint validation to the Getting Started Page in the Fileserver. Fixes vmware/vic-ui#465
Adds a new modal for thumbprint validation to the Getting Started Page in the Fileserver. Fixes vmware/vic-ui#465
Adds a new modal for thumbprint validation to the Getting Started Page in the Fileserver. Fixes vmware/vic-ui#465
Adds a new modal for thumbprint validation to the Getting Started Page in the Fileserver. Fixes vmware/vic-ui#465
Adds a new modal for thumbprint validation to the Getting Started Page in the Fileserver. Fixes vmware/vic-ui#465
Fix:vmware/vic-ui#465
This PR includes a new modal for plugin installation which includes an ajax call to the server to get the thumbprint.
Installing for the first time and success message

VC validation failed

Wrong credentials

Canceling plugin installation

Succes unit test example (jasmine + karma runner):

Failed unit test example (jasmine + karma runner):

User Statement:
As a user, I want to be able to manage VIC UI plugin auto install.
Details:
Acceptance Criteria: