Move panel alerts to error details drawer

Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.

Background

This issue will cover the implementation work for moving dashboard panel errors from the panel header into the panel body

The current combination of displaying the error in the panel header + using a tooltip for the full information is limiting. Moving the error message to the panel body will give more flexibility.

Example of current state
Screen_Recording_2025-03-06_at_11.59.41

Additional example: !164261 (closed)

Concerns

  • We will need to ensure we can handle small panels, such as the single stats that have limited space

Related to the discussion in #467997 (comment 2199840460)

Proposal

Proposal A
Screenshot_2025-03-06_at_12.13.42
  • Leverage the drawer to surface error details
  • Add a short message with a button to "See details" in the panel body
  • Clicking "See details" opens the "Error details" drawer
  • The "Error details" drawer is populated with the name of the panel that triggered the error, the full error message and a link to next steps (if available).
Edited by 🤖 GitLab Bot 🤖