silverstripe / silverstripe-asset-admin

Silverstripe assets gallery for asset management
BSD 3-Clause "New" or "Revised" License
20 stars 79 forks source link

Error message when adding large files are not readable #895

Open robbieaverill opened 6 years ago

robbieaverill commented 6 years ago

Originally from https://github.com/silverstripe/silverstripe-elemental-fileblock/issues/9

Reproduce

  1. Install silverstripe/elemental-fileblock on 2.x-dev and dnadesign/silverstripe-elemental on 4.x-dev
  2. Create a page that has the ElementalPageExtension enabled
  3. Add a FileBlock via the Add Block button
  4. Click on the newly created File Block to expand it
  5. Use the Browse link to add a file that is 2MB+
  6. Observe an truncated error message as shown below

image

  1. Hover over the error message and see that the tooltip does not show the entire message either

Acceptance criteria

Design notes

ScopeyNZ commented 6 years ago

I think this component lives in asset-admin?

robbieaverill commented 6 years ago

Ha, true. I don't want to move it again though =D

newleeland commented 5 years ago

The confirmation messages don't work too well there in small screen widths. Update uploadfield design to accommodate longer messages

clarkepaul commented 5 years ago

I'm getting the same issue but also the error message isn't readable either. SS4.3 using large image. image

ScopeyNZ commented 5 years ago

Yeah it seems to just dump the response of the validation request verbatim. In your case it's obviously receiving some HTML page that it's dumping the source of 😞 .

kinglozzer commented 5 years ago

I suspect that https://github.com/silverstripe/silverstripe-asset-admin/issues/925 is the reason that @clarkepaul is seeing HTML instead of a friendly error message

robbieaverill commented 4 years ago

Note that the escaped HTML part of this is tracked here: https://github.com/silverstripe/silverstripe-asset-admin/issues/915

This issue should just address the fact that a message like "Filesize is too large" isn't able to be rendered. I believe someone made a PR that would show the full message as a title/hover tooltip, which is an improvement and might be enough to close this issue.

brynwhyman commented 4 years ago

Noting that this issue has been updated to include some new ACs. @silverstripeux noted that they want to have another look at the designs to check everything is in order

sachajudd commented 4 years ago

Updated designs can be found here: Silverstripe CMS Design System

Few notes:

Let me know if you have any thoughts or feedback 🙂

emteknetnz commented 4 years ago

@sachajudd DSM link isn't working for me, I've tried logging in an out. Not sure what's going on

Could you take a screenshot of the design and post it here as a comment?

sachajudd commented 4 years ago

Sorted with @emteknetnz offline. Link is working correctly.

emteknetnz commented 3 years ago

Looks like this was indirectly fixed by https://github.com/silverstripe/silverstripe-asset-admin/pull/1138

This is how it now renders:

image

@brynwhyman you happy to close this?

brynwhyman commented 3 years ago

@emteknetnz the screenshot in the description looks to have a reduced-width. Have you tested that also?

I'm guessing that the messaging still won't be as responsive as we want it to be. When we looked at this issue, we felt that new designs would be the best way to solve the high-level bug that is: 'the error message is not readable'.

I wouldn't expect to close this issue until the following AC is met:

New design direction is followed

emteknetnz commented 3 years ago

image

Same width as original screenshot, still does not look particularly good

sachajudd commented 3 years ago

Agree with @brynwhyman to leave open until the new design direction has been followed.