dashboard icon indicating copy to clipboard operation
dashboard copied to clipboard

Provide user feedback for image file upload

Open cnotv opened this issue 3 years ago • 8 comments

Detailed Description

Provide user feedback for image file upload when used within the form:

  • Weight, user is not informed
  • Format, we may restrict the upload, but the user is not informed
  • Proportions, images may not be square, nor we crop them
  • Limitations, in some cases we set 20000 in others 200000, while server triggers EOT error

Issue: on image limitation, no feedback is provided and the image is not added

Context

While uploading images, we do not provide these information, nor any feedback related to server communication.

Usage cases

Navlinks

  • Path: /c/local/explorer/ui.cattle.io.navlink/create#group
  • How to reach:
    • Search for resource navlink
    • Create new resource
  • Custom component adopted: FileImageSelector

Screenshot from 2022-02-22 17-56-14

Global Settings> Branding > Logo

  • Path: /c/local/settings/brand
  • How to reach:
    • Open global settings
    • Navigate to Branding
    • Scroll to Logo settings
    • Enable "Use a custom logo"

Screenshot from 2022-02-22 17-58-04

cnotv avatar Feb 22 '22 17:02 cnotv

Hi @cnotv , could you please clarify if what we have for Branding/logo is sufficient and we should do the same for NavLink or if we want to enhance both places. Thank you, Eva

eva-vashkevich avatar Jul 05 '23 18:07 eva-vashkevich

For the UI details you should coordinate with @kwwii When I created the issue, I just mentioned that were missing the parameters information. It is unknown which format, size and max weight the user has to upload, as defined in the issue. There's also no feedbacks in the UI in case of errors.

cnotv avatar Jul 05 '23 18:07 cnotv

@eva-vashkevich This has a 2.7.x milestone and is linked to a PR marked as 2.7.x. Can you confirm which version the fix was shipped with and update both milestones? We also need to consider how to get this passed QA

richard-cox avatar Oct 25 '23 12:10 richard-cox

@richard-cox this went in July, so I think it is part of 2.7. Not sure why it is not tested yet.

eva-vashkevich avatar Oct 25 '23 17:10 eva-vashkevich

@eva-vashkevich it needs to have a specific version. v2.7.x is generic and won't show up in filters QA look at

richard-cox avatar Oct 27 '23 10:10 richard-cox

@richard-cox or @eva-vashkevich as we evaluate things for 2.7.next1, remind me: is this also fixed in 2.8.0 or later? This may need a forward port if so but I can't tell which branch this wound up in. If this is already in 2.8.0, then I'd lean towards having that fixed there and not worry about this ticket and maybe just update the milestone.

(This tells me I need to look over the other 2.7.x tickets but I'll deal with what I know about elsewhere.)

gaktive avatar Dec 09 '23 00:12 gaktive

@gaktive The change was merged to master in July sometime in the 2.7.x releases. So it should appear in release-2.8.0 and the go forward master branch.

The issue was that the milestone in both gh issue and pr had an incorrect milestones (2.7.x) so did not go through QA. So this issue just needs that part to complete the process.

richard-cox avatar Dec 11 '23 09:12 richard-cox

Unit test coverage looks good I don't feel inclined to have any E2E on this one unless @yonasberhe23 has anything to chime in.

This Branding Image uploads is similar to other issues we reviewed in the past and it could be a good case for visual testing using cypress in the future.

izaac avatar Apr 26 '24 14:04 izaac