-
Notifications
You must be signed in to change notification settings - Fork 913
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
Update to Protocol v.19.0.0 #14084
Update to Protocol v.19.0.0 #14084
Conversation
5a02942
to
6045d04
Compare
@reemhamz heads up - it looks like this was missed off the migration notes, but mozilla/protocol#905 is another large-ish change that will require some updates and careful testing in bedrock. We should hopefully now be able to remove the newsletter JS and tests from bedrock, and pages that feature the newsletter component can now post directly to basket (see code examples in the docs here). We'll need to do a bit of testing to make sure things are still working as expected before merging. |
Thanks for the heads-up @alexgibson! I'll be sure to note those changes down in this PR :) |
6045d04
to
92cb449
Compare
eab4fa7
to
d4250bb
Compare
2baf76d
to
83e103e
Compare
I used a relay email alias to signed up for a bunch of newsletters on https://www-demo5.allizom.org/en-US/ from various pages, and I can successfully see those subscriptions when I query the email in basket. Things seem good there from a testing perspective! 👍 |
e702da3
to
849f5ee
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 only tested the newsletter logic but it looks good to me, r+wc!
8a91b98
to
4f275fe
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #14084 +/- ##
==========================================
- Coverage 77.12% 76.92% -0.20%
==========================================
Files 145 145
Lines 7899 7835 -64
==========================================
- Hits 6092 6027 -65
- Misses 1807 1808 +1 ☔ View full report in Codecov by Sentry. |
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.
Newsletter JS changes look good to me r+ 🥇
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.
Whew, that's a lot! I only spotted a few small issues. Nice work. We should also push this to the run-integration-tests branch before it merges, just to be safe.
One-line summary
We've updated Protocol to the latest version of 19.0.0.
There are some significant changes, mentioned here: https://github.com/mozilla/protocol/releases/tag/v19.0.0
Things to highlight:
call_out
macro changed tocallout
call_out_compact
macro changed tocallout_compact
macros-protocol.html
file/careers/internships
template), refer to highlightedNote
section below for more info[email protected]
. Avoid using[email protected]
as that won't POST properly onlocalhost
Important
Since the newly rebuilt Callout component does not feature integrated brand logos, I ran into some trouble trying to smoothly add logos on templates that originally had a logo appear with the Callout component (elements were getting wonky), so I created some macro parameters we could use to make adding a brand element easier.
i.e.
See code changes here: https://github.com/mozilla/bedrock/pull/14084/files#diff-af818836bf22e910767dd7aa9aa7e8b11ee8ae65a1de8561b46d542351e23008R125-R134
Note
I removed the old
internships.html
template (and its relativeinternships.scss
file) since it's been deprecated for over a year now, and it contained a lot of references to the old Picto Card component we've officially deprecated with this release. I tried to update the component references to Picto, but there were too many references + extra CSS bugs to fix on the page and didn't think it would be useful since we'll probably be looking into updating the content of the page completely.Testing
You can view a demo of this branch in Demo 5: https://www-demo5.allizom.org/en-US/
Updated
call-out
references tocallout
Updated the separate
compact call-out
component to a variant ofcallout
Updated the Newsletter component to highlight integrated Basket posting:
✍🏼 Note: Newsletter updates weren't done individually for pages, but just a few changes on JS files and the static bundle, which in effect changed everything uniformly on all newsletter components around bedrock. I didn't list all of them, but here are some pages that contain the Newsletter component.
💡Make sure to test using something like
[email protected]
. Avoid using[email protected]
as that won't POST properly onlocalhost