-
Notifications
You must be signed in to change notification settings - Fork 9
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
Show warnings in action editors when components are excluded from the build #450
base: main
Are you sure you want to change the base?
Conversation
Should we also show a warning in the send event action when the activity collection component is disabled? Jon's PR #449 will remove the sections and replace them with a "this component is disabled" message. We should unify on one strategy and messaging. |
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.
You missed:
- subscribeRulesetItem event - rulesEngine
- eventMergeId dataElement - eventMerge
- resetEventMergeId action - eventMerge
@@ -17,8 +17,13 @@ import textField from "../forms/textField"; | |||
import objectArray from "../forms/objectArray"; | |||
import dataElement from "../forms/dataElement"; | |||
import comboBox from "../forms/comboBox"; | |||
import ExcludedComponentNotice from "../forms/excludedComponentNotice"; |
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.
Can you make this lowercase like the others? "excludedComponentNotice"
src/view/actions/setConsent.jsx
Outdated
@@ -360,6 +359,10 @@ const SetConsent = () => { | |||
const orgId = instanceSettings?.orgId ?? initInfo.company.orgId; | |||
return ( | |||
<FormElementContainer> | |||
<ExcludedComponentNotice |
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.
Here you need to use the componentDependencyAlert directly. This view has not been converted to the form component system yet so it just uses regular React components. (Be sure to pass the initInfo. The React component needs this parameter)
@@ -45,6 +46,10 @@ const evaluateRulesetsForm = form( | |||
wrapGetSettings, | |||
}, | |||
[ | |||
ExcludedComponentNotice({ | |||
requiredComponent: "decisioningEngine", |
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.
This has been renamed to rulesEngine
|
||
const createMediaTrackerForm = form({}, [ | ||
ExcludedComponentNotice({ | ||
requiredComponent: "legacyMediaAnalytics", |
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.
This has been renamed to mediaAnalyticsBridge
src/view/actions/setConsent.jsx
Outdated
@@ -360,6 +359,10 @@ const SetConsent = () => { | |||
const orgId = instanceSettings?.orgId ?? initInfo.company.orgId; | |||
return ( | |||
<FormElementContainer> | |||
<ExcludedComponentNotice | |||
requiredComponent="privacy" |
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.
This has been renamed to consent
<Content> | ||
This action requires the {componentLabel} component which is currently | ||
disabled in the extension configuration. Please enable it to use this | ||
action. |
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.
Instead of "Please enable it..." how about, "If you do not enable the component in the extension configuration, this will not work."
@@ -27,6 +27,7 @@ import dataElement from "../forms/dataElement"; | |||
import mediaStates from "./constants/mediaStates"; | |||
import mediaContentTypes from "./constants/mediaContentTypes"; | |||
import mediaShowTypes from "./constants/mediaShowTypes"; | |||
import ExcludedComponentNotice from "../forms/excludedComponentNotice"; |
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.
lowercase e
Also, rebase with main and resolve the conflicting package-lock |
c495ee8
to
0cfaf99
Compare
When activity collection component is disabled, sendEvent still works. This does bring up a good point though because for example personalization fields in the send event action aren't going to work when personalization component is disabled. Regarding your second suggestion to replace the form with a this component is disabled. Let's discuss when we review this tomorrow during standup. |
64fec03
to
0cfaf99
Compare
… eventMergeId and subscribeRulesetItems.
… eventMergeId and subscribeRulesetItems.
.gitignore
Outdated
@@ -8,4 +8,3 @@ coverage | |||
.parcel-cache | |||
.token-cache.json | |||
extension.json | |||
.DS_Store |
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.
This should stay in the .gitignore
Description
Added alerts to notify users when required components are disabled:
Each action view will now display a red alert message using React Spectrum's InlineAlert
component when its required component is disabled in the extension configuration.
Related Issue
Motivation and Context
Screenshots (if appropriate):
Types of changes
Checklist: