Skip to content

Make alert widget loading state optional

Dhiraj Bodicherla requested to merge make-alert-widget-loading-optional into master

What does this MR do?

The second iteration for the dashboard refresh button #207549 (closed) requires the chart panel to have its own loading spinner. This MR makes the alert widget's loading spinner optional (true by default) so that it can be hidden once the chart panel has its own loading spinner.

Why not completely remove loading spinner?

The loading state is not completely removed so that this widget can still be used in other places if required.

Why consolidate?

The rationale behind consolidating the loading spinners is here &2702 (comment 308764439)

Note The alert widget's loading state is visible by default so there is no UI change for now.

Screenshots

Current This is how no loading state would look like (Imagine this together with the below image)
alert_widget_with_loading alert_widget_without_loading

This is how the chart loading state would look like

image

Conformity

Availability and Testing

Security

If this MR contains changes to processing or storing of credentials or tokens, authorization and authentication methods and other items described in the security review guidelines:

  • Label as security and @ mention @gitlab-com/gl-security/appsec
  • The MR includes necessary changes to maintain consistency between UI, API, email, or other methods
  • Security reports checked/validated by a reviewer from the AppSec team

Mentions #207549

Edited by 🤖 GitLab Bot 🤖

Merge request reports