Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Visual Distinction between Environments #21293

Closed
pwei1018 opened this issue May 16, 2024 · 6 comments
Closed

Visual Distinction between Environments #21293

pwei1018 opened this issue May 16, 2024 · 6 comments
Assignees
Labels
Names Team Name Request Name Examination Team SRE SRE team task

Comments

@pwei1018
Copy link
Collaborator

pwei1018 commented May 16, 2024

Part of the QA process for for both dev/feature testing and market release verification requires end to end testing in the DEV and TEST environments, as well as a spot check of the UI in PROD. As such, being logged in to two or all three environments is often required for comparisons. Currently there is no visual distinction at all between the environments, meaning if one is not paying close attention, it is quite possible to perform an action or task/transaction in the incorrect environment.

Some sort of standard color coded banner or badge should always be present in the DEV and TEST environments with language something like "You are logged in to the TEST environment" so that teams can easily see where they are and what they should be doing. The colors between DEV and TEST should also be different from each other, and neither should be using the banner alert colour that is in place in PROD.

Design:

https://www.figma.com/file/fP5tJHl6QSURASmYkfHl19/Visual-Distinction%3A-DEV%2C-TEST%2C-SANDBOX?type=design&node-id=0%3A1&mode=design&t=334LJZW2r5i4sM5F-1

@pwei1018 pwei1018 added the SRE SRE team task label May 16, 2024
@pwei1018
Copy link
Collaborator Author

@ozamani9gh ozamani9gh added the Names Team Name Request Name Examination Team label May 16, 2024
@ozamani9gh
Copy link
Collaborator

@pwei1018 I will get @EPortman to work on this. does it need to be this sprint, or can we groom it and give it to him next week

@EPortman EPortman self-assigned this May 16, 2024
@EPortman
Copy link
Collaborator

Finished coding for this. The new component needs to be assed the environment variable for this to work. It can be passed either 'DEV', 'TEST', OR 'SANDBOX'. Passing it anything else or nothing at all will cause the banner to not appear.

@EPortman
Copy link
Collaborator

@pwei1018. This has been merged to master. Visual distinction between environments are displayed when the app-header gets passed the environment variable. An example of using this:
`

  <SbcHeader
    id="namerequest-sbc-header"
    :inAuth="false"
    :showActions="true"
    :environment="environment"
  />

`

The environment needs to be 'DEV', 'TEST', or 'SANDBOX'. Anything else and the environment alert in the app header will not render.

@EPortman
Copy link
Collaborator

The repo this belongs to is https://github.com/bcgov/sbc-common-components

@EPortman
Copy link
Collaborator

App Header is located in:
sbc-common-components/vue/sbc-common-components/src/components/SbcHeader.vue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Names Team Name Request Name Examination Team SRE SRE team task
Projects
None yet
Development

No branches or pull requests

3 participants