-
Notifications
You must be signed in to change notification settings - Fork 293
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
Module disconnect modal wording assumes module has features #3691
Comments
@aaemnnosttv Presumably a lot has changed in the last two weeks because Site Kit has a list of features now 😄 When will there be third-party modules that don't provide lists of features? 🤔 |
The fix looks pretty simple though @aaemnnosttv . The aim is to have the modal look like this right? (obviously not for Idea Hub though because it has features 😉 ) This component
So it's just a case of not passing in Then the modal will appear like the screenshot here Happy to write an IB for this but if we can't reproduce this then it's gonna be odd for CR and QA! 😄 |
I created a branch here to show this https://github.com/google/site-kit-wp/compare/bug/3691-Module-disconnect-modal-no-features |
@danielgent yes – if a module does not have features, the message above the list of features should not appear.
Yes, Idea Hub features were added in #3692
It's possible even now, we just don't advertise/encourage it since our APIs are still maturing. Registering a module does not require |
@aaemnnosttv So what should be QA'd for this task? I could add If it's QA:Eng I could write tests (although new stories would be easier) |
@danielgent I agree stories would be the easiest. A more robust test would be adding tests for
SGTM 👍 |
Putting 3 hours as I've already done the implementation. Only the stories need adding! |
IB ✅ |
Thanks @cole10up – just a heads up that your screenshots above don't cover the problem this issue addresses which is an edge case that isn't present in any of the current modules in SK: an empty list of features for a module. See the QAB which references a few stories – one in particular which is needed to test this as the state doesn't exist in the plugin any more (see #3692). I've verified things are looking correct here but just wanted to bring it to your attention. |
Thanks for having a look @aaemnnosttv. While I understood the ticket and the problem as well as the fact that we no longer have a scenario to cover this specific update. My testing efforts above were to ensure that with this update, we retained the functionality and content in each of our modals. Thanks again! |
Bug Description
All modules have the option to declare a list of features as user-facing short descriptions, e.g. "Intelligent, automatic ad placement" is one for AdSense. Features are not a required element of module registration though so components that use this should not assume that this list will always be present, even if all Site Kit modules provide it.
Steps to reproduce
Screenshots
Do not alter or remove anything below. The following sections will be managed by moderators only.
Acceptance criteria
Implementation Brief
See working branch here https://github.com/google/site-kit-wp/tree/bug/3691-Module-disconnect-modal-no-features
Using
assets/js/components/settings/SettingsActiveModule/ConfirmDisconnect.js
feature
prop isnull
/undefined
/empty array, do not pass insubtitle
string to innerDialog
component (e.g. pass in empty string ornull
)Create a
.stories.js
file for theConfirmDisconnect
componentTest Coverage
Visual Regression Changes
QA Brief
Check two new stories in Storybook
with features https://google.github.io/site-kit-wp/storybook/develop/?path=/story/components-confirmdisconnect--confirm-disconnect-with-features
This is a new story, but the functionality should be the same as before this task
without features https://google.github.io/site-kit-wp/storybook/develop/?path=/story/components-confirmdisconnect--confirm-disconnect-without-features
This should be this task implemented
Changelog entry
The text was updated successfully, but these errors were encountered: