Skip to content

Add CSS & JS global flags to represent browser and platform

Kushal Pandya requested to merge 50013-add-browser-platform-flags into master

What does this MR do?

This MR adds following flags to GitLab dynamically using browser gem;

  • CSS Flags: CSS flags are applied to body element.
    • Browser: Browser flag is gl-browser-*, where * can be; chrome, firefox, safari, opera, edge or ie. When no match is found, it is generic.
    • Platform: Platform flag is gl-platform-*, where * can be; windows, mac, linux, android or ios. When no match is found, it is other.
  • JS Flags: JS flags are applied to global gl.client object.
    • Browser: Browser flag is boolean is*, where * can be; Chrome, Firefox, Safari, Opera, Edge or Ie.
    • Platform: Platform flag is boolean is*, where * can be; Windows, Mac, Linux, Android or Ios.

Does this MR meet the acceptance criteria?

Closes #50013 (closed)

Edited by Kushal Pandya

Merge request reports