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
Refactor the Extensions settings page #2221
Conversation
twice-install.mov |
This pull request has conflicts, please resolve those before we can evaluate the pull request. |
Conflicts have been resolved. A maintainer will review the pull request shortly. |
This pull request has conflicts, please resolve those before we can evaluate the pull request. |
Conflicts have been resolved. A maintainer will review the pull request shortly. |
If you already have a long list of extensions the spinner is not even visible unless you scroll to the bottom |
I see know, reverting to the button having the animation. |
@aleksfront @jakolehm @jim-docker I have fixed the issues that Aleks discovered and reverted to the older loading animation (for install). PTALA |
@Nokel81 There's still 2 issue available. 1 and 3 from the previous list. |
This pull request has conflicts, please resolve those before we can evaluate the pull request. |
Signed-off-by: Sebastian Malton <sebastian@malton.name>
Signed-off-by: Sebastian Malton <sebastian@malton.name>
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Add support for installing extensions by name - Optionally specify the version, defaults to latest non-prerelease version - Usable via the protocol handlers, but requires user confirmation to actually install Signed-off-by: Sebastian Malton <sebastian@malton.name> * resolve pr comments Signed-off-by: Sebastian Malton <sebastian@malton.name> * add confirm dialog message Signed-off-by: Sebastian Malton <sebastian@malton.name> * display error when registry returns not found as JSON Signed-off-by: Sebastian Malton <sebastian@malton.name> * fix unit test Signed-off-by: Sebastian Malton <sebastian@malton.name> * fix registry error detection Signed-off-by: Sebastian Malton <sebastian@malton.name>
src/extensions/extension-loader.ts
Outdated
if (extEntrypoint !== "") { | ||
if (!fs.existsSync(extEntrypoint)) { | ||
console.log(`${logModule}: entrypoint ${extEntrypoint} not found, skipping ...`); | ||
const extensionEntryPointAbsolutePath = path.resolve(path.join(path.dirname(extension.manifestPath), extensionEntryPointRelativePath)); |
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.
these path functions can all throw a TypeError
so why not keep this statement in the try
block?
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.
They can throw but only if it is not a string.
|
||
fireEvent.change(screen.getByPlaceholderText("Path or URL to an extension package", { | ||
fireEvent.change(res.getByPlaceholderText("Path or URL to an extension package", { |
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.
The placeholder text has changed but I guess this still works because it's not looking for an exact match?
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.
Probably
Signed-off-by: Sebastian Malton <sebastian@malton.name>
Signed-off-by: Sebastian Malton <sebastian@malton.name>
dispose(); | ||
fse.unlink(validatedRequest.tempFile).catch(noop); | ||
} | ||
onClose: dispose, |
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.
much cleaner!
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
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Fix: logs data disapearing causing crashes (#2566) Signed-off-by: Sebastian Malton <sebastian@malton.name> * Refactor helm-chart.api and improve kube validation and error handling (#2265) Signed-off-by: Sebastian Malton <sebastian@malton.name> * Fix: HPA's not sortable by age (#2565) Signed-off-by: Sebastian Malton <sebastian@malton.name> * Conditionally render status icon for kube meta (#2298) Signed-off-by: Sebastian Malton <sebastian@malton.name> * Fix custom resource loading spinner appears above extensions' cluster menus (#2344) Signed-off-by: Sebastian Malton <sebastian@malton.name> * Lens should point to the release docs (#2268) Signed-off-by: Sebastian Malton <sebastian@malton.name> * Refactor the Extensions settings page (#2221) Signed-off-by: Sebastian Malton <sebastian@malton.name> * try and get jest to not core dump Signed-off-by: Sebastian Malton <sebastian@malton.name>
Simplify the install logic by refactoring out the multi-install logic
Revamp the
ExtensionInstallStateStore
to more strictly track the lifetime of an install or uninstall requestFix the install of an already installed extension just hanging visually
Display a spinner more often for more visual feedback
Signed-off-by: Sebastian Malton sebastian@malton.name
fixes #2116