Skip to content
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

Tweak install extension ux #1510

Merged
merged 28 commits into from
Nov 25, 2020
Merged

Tweak install extension ux #1510

merged 28 commits into from
Nov 25, 2020

Conversation

jakolehm
Copy link
Contributor

Tweaks #1456

image

ixrock and others added 24 commits November 19, 2020 19:49
… in add-cluster-page)

Signed-off-by: Roman <ixrock@gmail.com>
Signed-off-by: Roman <ixrock@gmail.com>
Signed-off-by: Roman <ixrock@gmail.com>
Signed-off-by: Roman <ixrock@gmail.com>
Signed-off-by: Roman <ixrock@gmail.com>
…ard`

Signed-off-by: Roman <ixrock@gmail.com>
Signed-off-by: Roman <ixrock@gmail.com>
Signed-off-by: Roman <ixrock@gmail.com>
Signed-off-by: Roman <ixrock@gmail.com>
Signed-off-by: Roman <ixrock@gmail.com>
Signed-off-by: Roman <ixrock@gmail.com>
Signed-off-by: Roman <ixrock@gmail.com>
Signed-off-by: Roman <ixrock@gmail.com>
# Conflicts:
#	src/renderer/components/+extensions/extensions.tsx
#	src/renderer/utils/downloadFile.ts
Signed-off-by: Roman <ixrock@gmail.com>
Signed-off-by: Roman <ixrock@gmail.com>
Signed-off-by: Roman <ixrock@gmail.com>
Signed-off-by: Roman <ixrock@gmail.com>
Signed-off-by: Roman <ixrock@gmail.com>
Signed-off-by: Roman <ixrock@gmail.com>
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
@jakolehm jakolehm added enhancement New feature or request area/ui area/extension Something to related to the extension api labels Nov 25, 2020
@jakolehm jakolehm added this to the 4.0.0 milestone Nov 25, 2020
@jakolehm jakolehm requested a review from a team November 25, 2020 06:02
@ixrock
Copy link
Member

ixrock commented Nov 25, 2020

image

Is it looks better now? Or there are was some useless info? (right column) 🙈

Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
@jakolehm
Copy link
Contributor Author

Is it looks better now? Or there are was some useless info? (right column) 🙈

Rewrote texts and took unnecessary information away. This UI is for Lens users, not Lens extension developers.. less is more 🙂 .

@ixrock
Copy link
Member

ixrock commented Nov 25, 2020

Write less, do more © jQuery :D

This UI is for Lens users, not Lens extension developers..

Some users already requested to clean up UI? Or how do you know what they need?

Sebastian for example already has used the tip for getting tarball url from NPM...

Comment on lines +293 to 294
label="Install"
onClick={this.addExtensions}
Copy link
Member

@ixrock ixrock Nov 25, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[nit]™ for sake of consistency ^_^

Suggested change
label="Install"
onClick={this.addExtensions}
label="Install"
onClick={this.installExtensions}

@jakolehm
Copy link
Contributor Author

This UI is for Lens users, not Lens extension developers..

Some users already requested to clean up UI? Or how do you know what they need?

Sebastian for example already has used tip for getting tarball url from NPM...

I don't really get your point, this UI is targeted for Lens users so internals of extension API are not exactly what they need to see (or know). That said this PR is just my idea how UI would be cleaner and more user friendly. There are still pieces that needs to be tweaked, for example url input should follow with an icon to browse extension package (see how kubeconfig browse works). But we should improve these in follow-up PRs so that we can get #1456 approved & merged sooner.

Let's wait for other maintainers opinions (especially @miskun & @aleksfront).

Base automatically changed from extension_install_1277 to master November 25, 2020 07:55
@aleksfront
Copy link
Contributor

  1. Install button doesn't actually install anything, but shows Open dialog, it can be confusing. For example, when you paste a valid url and hit install, the behavior isn't appears to be right.
  2. Error object needs to be parsed into string and be more clear. Now we have [object Object] notation and some unclear message.

ext error 1

ext error 2

@jakolehm
Copy link
Contributor Author

  1. Install button doesn't actually install anything, but shows Open dialog, it can be confusing. For example, when you paste a valid url and hit install, the behavior isn't appears to be right.

Yes I agree, it's out of scope but we definitely should improve that (I already mentioned that we should streamline input/button to look like kubeconfig input).

  1. Error object needs to be parsed into string and be more clear. Now we have [object Object] notation and some unclear message.

Also out of scope, lets open separate issues about these.

@ixrock
Copy link
Member

ixrock commented Nov 25, 2020

  • Install button doesn't actually install anything, but shows Open dialog, it can be confusing. For example, when you paste a valid url and hit install, the behavior isn't appears to be right.

Install button designed as single "gateway" to install:

  • when URL is filled it acts as "install-from-url"
  • when there is no URL it opens select-files-dialog (but now with simplified UX it's unclear indeed)
  • also there is no mentioning about D&D support to install files with new layout
  • Error object needs to be parsed into string and be more clear. Now we have [object Object] notation and some unclear message.
  • Yeah, this bug is happening when URL is pointing not-a-tar file or non-existing but valid URL, therefore some object/non-stringifiable error is returned and we have [object Object] and other irrelevant error messages.

@jakolehm
Copy link
Contributor Author

  • Install button doesn't actually install anything, but shows Open dialog, it can be confusing. For example, when you paste a valid url and hit install, the behavior isn't appears to be right.

Install button designed as single "gateway" to install:

  • when URL is filled it acts as "install-from-url"
  • when there is no URL it opens select-files-dialog (but now with simplified UX it's unclear indeed)
  • also there is no mentioning about D&D support to install files with new layout

To me the biggest usability issue here is this single "gateway" button. It's really hard to understand if input field is mandatory or not. That's why I'm suggesting something that we already have in "browse kubeconfig" UI (Add Cluster page). My UI skills are not enough for this kind of change so let's fix these in follow-up PRs 🙂

Drag & drop: maybe we need to put it back.. it's not something that usually is tipped in app UI's but I just realised that we have similar pro-tip in "Add Cluster".

Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
@jakolehm
Copy link
Contributor Author

@ixrock d&d pro-tip is back 🎉

@jakolehm jakolehm merged commit 8753b2b into master Nov 25, 2020
@jakolehm jakolehm deleted the tweak_extension_install_1277 branch November 25, 2020 09:53
@jakolehm jakolehm mentioned this pull request Nov 25, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/extension Something to related to the extension api area/ui enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants