Skip to content

Migrate issuable form branch chooser alert to Pajamas ViewComponent

What does this MR do and why?

Migrate issuable form branch chooser alert to Pajamas ViewComponent

Related to Migrate to Pajamas::AlertComponent ViewComponen... (#325394 - closed)

Screenshots or screen recordings

Before After
image image

Snapshot before

<div class="gl-alert gl-alert-warning gl-alert-not-dismissible gl-max-content gl-mt-4">
  <div class="gl-alert-container">
    <div class="gl-alert-content" role="alert">
      <svg class="s16 gl-icon gl-alert-icon gl-alert-icon-no-title" data-testid="warning-icon"><use href="/assets/icons-f305926186cfc3bb530f27269d545937c385578ba62adb0088d74f0d2d02cb56.svg#warning"></use></svg>
      <div class="gl-alert-body">

        <br>
        Review the target project before submitting to avoid exposing private changes.
      </div>
    </div>
  </div>
</div>

Snapshot after

<div class="gl-alert gl-alert-warning gl-alert-not-dismissible gl-max-content gl-mt-4" role="alert">
  <svg class="s16 gl-alert-icon gl-alert-icon-no-title" data-testid="warning-icon"><use href="/assets/icons-f305926186cfc3bb530f27269d545937c385578ba62adb0088d74f0d2d02cb56.svg#warning"></use></svg>
  <div class="gl-alert-content" role="alert">
    <div class="gl-alert-body">

      <br>
      Review the target project before submitting to avoid exposing private changes.

    </div>
  </div>
</div>

How to set up and validate locally


+- visibilityMismatchString = i18n["#{0}#{10}"]

+- if true #source_level < target_level
Edited by Alper Akgun

Merge request reports

Loading