Skip to content
This repository has been archived by the owner on Jun 6, 2024. It is now read-only.

Highlight Test and Sandbox environments differently #158

Merged
merged 9 commits into from
Aug 18, 2020

Conversation

Blackbaud-TerryHelems
Copy link
Contributor

@Blackbaud-TerryHelems Blackbaud-TerryHelems commented Aug 14, 2020

When a user is in an environment that is marked as either Test or Sandbox, highlight the environment bar in a style default then just the gray color.

Addresses #143

@@ -578,7 +623,7 @@ function messageHandler(event: MessageEvent): void {
BBOmnibarUserActivity.userRenewedSession();
break;
case 'environment-update':
handleEnvironmentUpdate(message.name);
handleEnvironmentUpdate(message.name, message.additionalInfo, message.url);

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would prefer description over additionalInfo for the property name.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I prefer description as well. Thanks!

text-overflow: ellipsis;
white-space: nowrap;
}

.sky-omnibar-environment-info {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would look into using flexbox or another technique rather than float: right, since floating elements has an effect on subsequent elements and usually needs a clear: both after it.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Per our side conversation, I changed these new elements to spans.

@codecov-commenter
Copy link

Codecov Report

Merging #158 into master will not change coverage.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff            @@
##            master      #158   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           20        20           
  Lines         1120      1138   +18     
  Branches       189       191    +2     
=========================================
+ Hits          1120      1138   +18     
Impacted Files Coverage Δ
src/omnibar/omnibar.ts 100.00% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 1fd4d28...69cfffb. Read the comment docs.

@Blackbaud-PaulCrowder Blackbaud-PaulCrowder merged commit e6505b8 into master Aug 18, 2020
@Blackbaud-PaulCrowder Blackbaud-PaulCrowder deleted the sandbox-info branch August 18, 2020 13:57
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants