Add pwa_logos and dynamically load them to manifest.json
What does this MR do and why?
Fixes partially #375708 (closed)
First MR !104079 (merged)
Makes logos in manifest.json
loading dynamicly
Screenshots or screen recordings
manifest.json
in browser:
How to set up and validate locally
- Open your local GitLab instance
- Click
f12
and inspectmanifest.json
in application tab - You should see default values for the titles, logos and so on
- Change your Appearance settings as explained here, for
logo
curl --location --request PUT "https://gitlab.example.com/api/v4/application/appearance?data=image/png" \
--header "Content-Type: multipart/form-data" \
--header "PRIVATE-TOKEN: <your_access_token>" \
--form "logo=@/path/to/logo.png"
- Reload your browser and recheck the manifest
- You should see the logo in the appropriate size.
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.
Edited by Andreas Deicha