-
Notifications
You must be signed in to change notification settings - Fork 3
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
issue 1650 add advisory message bar for staging environment #1665
base: develop
Are you sure you want to change the base?
issue 1650 add advisory message bar for staging environment #1665
Conversation
❌ Deploy Preview for labs-zap failed.
|
23f9d0a
to
53ccc93
Compare
@@ -11,7 +11,6 @@ export default class ApplicationAdapter extends JSONAPIAdapter { | |||
session; | |||
|
|||
get headers() { | |||
console.log(this.session); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, it seemed unnecessary to have the session printing to the console. I was thinking this was probably left after some some debugging.
showSandboxWarningOn = ENV.featureFlagShowSandboxWarning; | ||
|
||
// @argument | ||
message = false; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe make this an empty string if you need a default value? That way you aren't mixing bools and strings on the same property.
@@ -0,0 +1,5 @@ | |||
<div class="advisory-message"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe check if this.message
is truthy and conditionally render the div
based on that? That way we never accidentally render an empty bar.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think we would accidentally render an empty div as there is a check in the application template looking for the truthy value of the feature flag.
Were you thinking of something like:
{{#if this.message}}
<div class="advisory-message">
// ... code
- add advisory message component and template - added advisory message bar to application template - updated client environment with getFeatureFlagShowSandboxWarning function setting FEATURE_FLAG_SHOW_SANDBOX_WARNING env var - added application controller to access env vars in application template
53ccc93
to
e229823
Compare
Summary
Advisory message bar for staging environment
getFeatureFlagShowSandboxWarning
function settingFEATURE_FLAG_SHOW_SANDBOX_WARNING
env varTasks/Bug Numbers