contentful / field-editors

React components and extensions for building Contentful entry editor
https://contentful-field-editors.netlify.app/
MIT License
149 stars 114 forks source link

feat: update design of error cards for resources [DANTE-1340] #1633

Closed msieroslawska closed 2 months ago

msieroslawska commented 2 months ago

The goal of this PR is to replace the custom Card that we were using for non-resolvable link with a variant of Entry Card that gives more information on the reason of error and the source of the data.

Resource fields

Before for all resources (same space, xspace and external resources)

Screenshot 2024-04-08 at 17 46 15

After for same space

01-same-space

After for cross-space and external resources

02-xspace-external

Rich Text

Before

Screenshot 2024-04-05 at 16 35 15

After

03-rich-text

Unsupported entities

Here we also updated the design to use the same layout for unsupported entities.

Before

04-not-supported-before

After

05-not-supported-after

Notes

sbezludny commented 2 months ago

Looking at the message: Entry is missing or inaccessible vs Content was deleted or archived or you don't have access rights.

We no longer indicate a specific entity type that is missing -- entry or asset. What is the reason for this change, do we intentionally give less actionable information?

sbezludny commented 2 months ago

Are we changing anything for Assets?

msieroslawska commented 2 months ago

The error copies have been adjusted to be less speculative and also to be suitable to all use cases.

Assets will be addressed in a separate ticket.