Migrate deprecated bs-callout to alert component in pages
What does this MR do and why?
Migrate deprecated bs-callout
to Pajamas::AlertComponent
in app/views/projects/pages/*
It's a part of Pajamas adoption project
Changed according to migration guide available in next epic: &5213
MR acceptance checklist
Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.
Screenshots or screen recordings
Before | After |
---|---|
How to set up and validate locally
- Enable
external_http
for gitlab pages inconfig/gitlab.yml
:
development:
pages:
enabled: true
access_control: false
host: 127.0.0.1.nip.io
port: 3010
https: false # Set to true if you serve the pages with HTTPS
external_http: ["1.1.1.1:80", "[2001::1]:80"] # If defined, enables custom domain support in GitLab Pages
- Open some project
- Goto
Deploy -> Pages
- Setup pages(if required).
- Add new domain.
- Verify warning messages. You can mock next methods to see warnings:
app/presenters/pages_domain_presenter.rb#L6
app/presenters/pages_domain_presenter.rb#L10
-
Modify account namespace name (to include dot
.
) to see theHTTPS with subdomains of subdomains
warning message. -
Disable pages for this project or mock it here app/models/project.rb#L2123 to see the
pages are disabled
warning message.
Related to #441112 (closed)
Edited by Taras Tadai