How to visually tell the difference between DEV, QA, UAT, Etc.

Imitation is the Sincerest Form of Flattery, thanks to Kenneth Brill’s idea, I have created a Module Loadable Package that implements the concepts found in the post Visually mark your Dev, QA, and Production servers. In the post, Ken discusses how he implemented adding a watermark in order to know which instance you are working on.

Download the Module Loadable Package from sugardevelopersguide.substack.com

Watermark

Parents
  • Nice solution.


    We simply color code the Navigation Bar by setting the colors conditionally based on the site url in the config.

    custom/themes/clients/base/default/variables.php

    global $sugar_config;
    if(strpos($sugar_config['site_url'], 'dev')!== false){
      $lessdefs['colors']['BorderColor'] = '#ccccff';
      $lessdefs['colors']['NavigationBar'] = '#bb99ff';
    }elseif(strpos($sugar_config['site_url'], 'test')!== false){
      $lessdefs['colors']['BorderColor'] = '#ccffff';
      $lessdefs['colors']['NavigationBar'] = '#99bbff';
    }
    ?>
    

    I have not tested this with the dark mode option yet, since we don't yet have that option on our current version (Pro 11.0.3)... working to get to Ent v12 and see what I can break there ;)

Reply
  • Nice solution.


    We simply color code the Navigation Bar by setting the colors conditionally based on the site url in the config.

    custom/themes/clients/base/default/variables.php

    global $sugar_config;
    if(strpos($sugar_config['site_url'], 'dev')!== false){
      $lessdefs['colors']['BorderColor'] = '#ccccff';
      $lessdefs['colors']['NavigationBar'] = '#bb99ff';
    }elseif(strpos($sugar_config['site_url'], 'test')!== false){
      $lessdefs['colors']['BorderColor'] = '#ccffff';
      $lessdefs['colors']['NavigationBar'] = '#99bbff';
    }
    ?>
    

    I have not tested this with the dark mode option yet, since we don't yet have that option on our current version (Pro 11.0.3)... working to get to Ent v12 and see what I can break there ;)

Children
No Data