-
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 Indonesian What's New Page (#6472) #6630
Conversation
63e713d
to
f1050e6
Compare
The balloon lady image is overlapping the content and it makes the left side of the form field unclickable. I think you can just do some |
4d562cf
to
8f80b7d
Compare
Awaiting final stakeholder approval on send_yourself email being correct. Design has been approved. |
Demo has been approved by stakeholder. 👍 |
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.
A few nitpicks and some things to make it look better in small viewports, but overall looking good. Nice work!
23cbc21
to
8cda14c
Compare
8cda14c
to
4321c0d
Compare
Note that this page has a test associated with it that will likely need updating. Happy to help assist here if you have any questions. |
Thanks Alex! For this test, would you recommend rewriting to assert for
|
@amychurchwell Ideally it would be great to test the functionality of this new widget, like this test does here. I believe that would involve writing some new code however, since this new page uses the new |
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.
So close!
Just a couple more things, but I would push this branch to run-integration-tests
just to make sure things pass before we merge.
@amychurchwell I took a look at the test failure here to try and work out what's wrong, and it looks like the failure is genuine, the form is broken 😅 If I load the page locally, enter The test is failing becuse it's expecting the thank-you message to be displayed. I'll comment in the PR as to what I think is missing here. I guess this is why it's important to have tests! 🙂 |
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.
The mystery test failure seems genuine. I commented as to what i think needs doing to fix the form 👍
media/static-bundles.json
Outdated
@@ -1595,10 +1595,17 @@ | |||
{ | |||
"files": [ | |||
"js/base/send-to-device.js", | |||
"js/base/send-yourself.js", |
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.
There's no need to add this file to the regular firefox_whatsnew
bundle, it can be removed.
media/static-bundles.json
Outdated
"js/firefox/whatsnew/whatsnew.js" | ||
], | ||
"name": "firefox_whatsnew" | ||
}, | ||
{ | ||
"files": [ | ||
"js/base/send-yourself.js" |
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're loading the send-yourself.js
script here, but you're missing JS that initialises the form:
var form = new Mozilla.SendYourself('download-firefox-rocket');
form.init();
You'll likely need to create a new JS file like whatsnew-id.js
where this gets initialized.
I noticed that the page header also seems broken, with the mozilla logo bleeding into the page:
You'll likely need to include this snippet of JS like on other whatsnew pages that shows the up-to-date message (although the logo probably shouldn't look misaligned even if this message is not displayed):
media/static-bundles.json
Outdated
"js/firefox/whatsnew/whatsnew.js" | ||
], | ||
"name": "firefox_whatsnew" | ||
}, | ||
{ | ||
"files": [ | ||
"js/base/send-yourself.js" |
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.
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 also had to include "js/libs/spin.min.js"
in the bundle, which seems to be a dependency for send-yourself
to work.
48bbcfe
to
4c85298
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.
Spotted 2 last issues, then I think we're fine to merge 👍
tests/pages/regions/send_yourself.py
Outdated
class SendYourself(FirefoxBaseRegion): | ||
|
||
_root_locator = (By.CSS_SELECTOR, '.mzp-c-sendyourself') | ||
_email_locator = (By.ID, '.mzp-c-sendyourself-input') |
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.
By.CSS_SELECTOR
if (client.isFirefoxDesktop) { | ||
client.getFirefoxDetails(function(data) { | ||
if (data.isUpToDate) { | ||
document.querySelector('.c-page-header').classList.add('is-up-to-date'); |
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.
When testing locally, the page header still looks a bit wonky:
Looking in your CSS, it looks like the JS class to apply should be:
classList.add('show-up-to-date-message');
Even if someone views this page when their browser is not up to date, it would be nice if the Mozilla logo was still centered by default (but not a blocker).
Description
Update content and design on Indonesian What's New Page.
Issue / Bugzilla link
#6472
1504954
Testing
https://bedrock-demo-id-whatsnew.oregon-b.moz.works/id/firefox/62.0/whatsnew/