Overview

The PageInfo component triggers the highest-level error boundary in the app if a problem while fetching data occurs. This means that the entire app becomes unusable when that happens.

This is easy to observe in #3523029: Content entity form: URL alias without leading slash should be prevented by client-side validation. While that issue and potential successors will ensure such error never occurs in the server, we need to account for any errors.

Proposed resolution

Display an error inside the panel that PageInfo opens if fetching the data was not successful for any reason. Ensure the app remains usable.

User interface changes

By quickly reusing the ErrorCard component we have, we can have:
Error inside PageInfo

CommentFileSizeAuthor
xb-page-info-error-card.jpg62.02 KBbalintbrews
Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

balintbrews created an issue. See original summary.

balintbrews’s picture

Assigned: balintbrews » Unassigned
Status: Active » Needs review

jessebaker made their first commit to this issue’s fork.

jessebaker’s picture

Status: Needs review » Fixed

Merged!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.