-
Notifications
You must be signed in to change notification settings - Fork 5
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
Remove SweetAlert #342
Remove SweetAlert #342
Conversation
07a2ed7
to
872a7eb
Compare
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 have much to say for this PR! Looks fine. I wouldn't use chore
for this commit. It's probably a refactor
. I also have a few questions.
Why are naming ppomPopup
using camel case when everything else uses snake case. Shouldn't we do ppom_popup
?
My other question relates to the use of window?.ppomPopup?
and window?.ppom_vars?
. Is there are reason why we're using the optional chaining? Wouldn't we want to know if ppomPopup
or ppom_vars
are missing instead of ignoring it?
Finally, any way we can write some e2e test to test the change?
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 agree with @carlalexander here. Is there any chance that ppom_vars
or the popup class instance will be undefined
? IMO, the i18n.popup
key should be there as long as it's used in the script. Without these being defined, the intended behavior will not be working, so instead of using optional chaining, I would rather make sure that those variables are defined.
More than that, the popup should probably be requested as a dependency of both scripts (here it is not).
Regarding the reasoning behind using camelCase combined with snake_case, I think that's how the script was previously localized, so it would mean changing that reference everywhere. I personally prefer using camelCase in JS usually, but I understand the difference in this specific case.
I think we should strive for one or the other in the future.
872a7eb
to
3f0737b
Compare
Yeah, that was my main question. I just want to standardize on one type. 👍 |
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.
Don't have much else to add besides my existing questions. If @abaicus feels everything is good, we're good 😃
🎉 This PR is included in version 33.0.0 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
Summary
Will affect visual aspect of the product
YES
Screenshots
Test instructions
Test the popup when:
Check before Pull Request is ready:
Closes #340