-
Notifications
You must be signed in to change notification settings - Fork 291
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
Odd UX/UI on the 'Confirm changes' button and enabled state is incorrect #8821
Comments
AC LGTM ✅ |
Thanks @10upsimon looks good overall, just two comments:
If we are trying to rollback changers to the original state, we should be resetting it to the
It is probably a typo, I think you meant Also, please add an estimate |
@zutigrm this is not correct. We set both the settings and
Correct, good spot :) I updated this. Estimate added. |
@10upsimon Ah yes, indeed, I mistaken it for something else. Thanks, IB LGTM |
QA Update
|
@mohitwp Better to check it in follow up issue |
@benbowler It seems you forgot to unassign yourself. I unassigned you so it can be picked up for MR |
QA Update ✅
Ads Module Settings "Enhanced Conversion Tracking" toggle (PAX manner) Recording.1082.mp4Ads Module Settings "Enhanced Conversion Tracking" toggle (Non PAX manner) Recording.1083.mp4Analytics Settings "Enhanced Conversion Tracking" toggle Recording.1084.mp4 |
|
Bug Description
As reported by @kelvinballoo on the Asana bug bash board.
Issue 1: When the user toggles the 'Enable enhanced conversion tracking', the 'Save' button doesn't change to 'Confirm changes'. This is the overall usual behaviour whenever we change data on a module.
Issue 2: Linked to the above, if the user enables the toggle without clicking 'Save', the module will show as 'Enabled' after clicking Cancel. By right it should be disabled. It's only when we reload the page that the correct disable status is shown.
The image shows 'Enabled' even though I clicked 'Cancel' and not save.
Uploading Enable_disable.mov…
Do not alter or remove anything below. The following sections will be managed by moderators only.
Acceptance criteria
Implementation Brief
Please see a POC PR here: #8854
assets/js/googlesitekit/datastore/site/conversion-tracking.js
const ROLLBACK_CONVERSION_TRACKING_SETTINGS = 'ROLLBACK_CONVERSION_TRACKING_SETTINGS';
rollbackConversionTrackingSettings()
{}
payload using the newly definedROLLBACK_CONVERSION_TRACKING_SETTINGS
typebaseReducer
, handle the case forROLLBACK_CONVERSION_TRACKING_SETTINGS
and set the current state to thesavedSettings
state, i.estate.conversionTracking.settings = state.conversionTracking.savedSettings;
SettingsView
components of both the Ads & GA4 modules:rollbackConversionTrackingSettings
action via the storesuseDispatch
hookuseCallback
, i.ehandleConversionTrackingSettingsRollback()
rollbackConversionTrackingSettings()
actionuseEffect
hook, call thehandleConversionTrackingSettingsRollback()
function ifconversionInfra
feature flag is enabled, i,.eif ( iceEnabled ) { ... }
iceEnabled
andhandleConversionTrackingSettingsRollback
as deps of theuseEffect
hookTest Coverage
QA Brief
Changelog entry
The text was updated successfully, but these errors were encountered: