Skip to content
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

WD-9610 Rebrand Raspi download thank you #13712

Conversation

carkod
Copy link
Contributor

@carkod carkod commented Apr 3, 2024

QA

  • Go to https://ubuntu-com-13712.demos.haus/download/raspberry-pi select an ISO image, you'll be redirected to the "thank you" page.
  • Check that page against copy docs and design below in the screenshot section
    • Be sure to test on mobile, tablet and desktop screen sizes
  • [List additional steps to QA the new features or prove the bug has been resolved]

Issue / Card

Fixes https://warthogs.atlassian.net/browse/WD-9610

Screenshots (design review)

thank-you

Help

QA steps - Commit guidelines

@webteam-app
Copy link

@carkod carkod force-pushed the rebrand-raspi-thankyou-wd-9610 branch from 5feaaf5 to ad430ab Compare April 3, 2024 08:43
@carkod carkod changed the base branch from main to download-bubble-wd-8482 April 3, 2024 08:43
Copy link

codecov bot commented Apr 3, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 74.49%. Comparing base (ae74303) to head (93ec17f).

Additional details and impacted files
@@                   Coverage Diff                    @@
##           download-bubble-wd-8482   #13712   +/-   ##
========================================================
  Coverage                    74.49%   74.49%           
========================================================
  Files                          107      107           
  Lines                         2854     2854           
  Branches                       954      954           
========================================================
  Hits                          2126     2126           
  Misses                         704      704           
  Partials                        24       24           

@carkod carkod changed the title Rebrand raspi thankyou wd 9610 WD-9610 Rebrand Raspi download thank you Apr 3, 2024
@carkod carkod force-pushed the rebrand-raspi-thankyou-wd-9610 branch 2 times, most recently from ba4a323 to e41ff38 Compare April 3, 2024 09:43
@juanruitina juanruitina self-assigned this Apr 3, 2024
@juanruitina
Copy link
Contributor

Nice job, LGTM!

@lyubomir-popov
Copy link
Contributor

looks good, please just insert a break in front of "Go":
image

@akbarkz
Copy link
Contributor

akbarkz commented Apr 4, 2024

I found a weird behavior while testing. Whevener you click on "Subscribe to our newsletter" it redirects you to /download/server page no matter if you are downloading desktop, server or core image. Even if I go to /download/desktop and download desktop image I am still redirected to /download /server. I think this is incorrect. Depending on the image you are downloading you should be redirected to the corresponding page OR to the page that is common to all of them, like landing download page. @juanruitina wdyt?

@juanruitina
Copy link
Contributor

Indeed, @akbarkz, all that should make sense. I've also noticed that we are also using the server form partial in /desktop/thank-you. Let me inquire about which specific forms they should be pointing to.

@carkod
Copy link
Contributor Author

carkod commented Apr 4, 2024

@akbarkz @juanruitina Yeah, that should redirect to their respective pages. I've updated the partial to have their respective "returnUrls"

@akbarkz
Copy link
Contributor

akbarkz commented Apr 4, 2024

Found two bugs:

  1. When you go to /download/desktop and click on any download button it fails with 500
  2. When you go to /download/raspberry-pi and click on any download button the Thank You page opens. Then enter your email address to sign up for a newsletter. It will redirect to /download/raspberry-pi which is correct. Now close the pop-up message that says "Thank you...". It then redirects you again to the Thank You page and downloads an image again.

Comment on lines 1 to 10
<div>
<h2>Sign up for our newsletter</h2>
<p>Get the latest Ubuntu news and updates in your inbox.</p>
</div>

<form action="/marketo/submit" method="post" id="mktoForm_4960" onsubmit="ga('send', 'Newsletter', 'Signup', 'Ubuntu Server download newsletter signup');">
<label for="email">Email*:</label>
<input required id="email" name="email" maxlength="255" type="email" pattern="^[^ ]+@[^ ]+\.[a-z]{2,26}$" />

<div class="p-section--shallow">
Copy link
Contributor Author

@carkod carkod Apr 4, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is just file rename, and added the returnUrl parameter, nothing's changed.

@carkod carkod force-pushed the rebrand-raspi-thankyou-wd-9610 branch from c73406e to 61327df Compare April 4, 2024 10:07
@carkod
Copy link
Contributor Author

carkod commented Apr 4, 2024

  1. I just fixed it right after.
  2. I fixed it, but that is something that Liza has added, not sure why. It could be breaking something, but this is not the best way to handle a redirect in the onclick, plus it doesn't tell us where this code is used. I believe the right way to do this is to do the redirect in the window.href but I couldn't find the script that is breaking.

@carkod
Copy link
Contributor Author

carkod commented Apr 4, 2024

Indeed, @akbarkz, all that should make sense. I've also noticed that we are also using the server form partial in /desktop/thank-you. Let me inquire about which specific forms they should be pointing to.

The partial doesn't matter, it's something we devs use to refactor code, I could give it any name, what you may need to inquire is the formId, but I believe we use the same formId everywhere, if we want to change it, it may need changing for the whole site, blogs and other places. I suppose Marketing would need to create campaigns for each of them too.

@akbarkz
Copy link
Contributor

akbarkz commented Apr 4, 2024

Looks good now @carkod! Thanks for fixing existing bugs too, this are the most important pages on our website, so we need to make sure it works smoothly.
There is one more thing I would like to double check with @juanruitina. Is it correct that we are making the "I agree to receive information about Canonical’s products and services." checkbox required? What if a customer does not want to receive any information, but only receive a newsletter?

@juanruitina
Copy link
Contributor

@akbarkz The newsletter is such information, I would understand we use this to collect explicit consent to comply with GDPR even if it's rather redundant. (We might be taking newsletter subscribers as leads?)

@carkod I left one inline comment.

@carkod
Copy link
Contributor Author

carkod commented Apr 4, 2024

Ubuntu Server

Yes my understanding is that this check is to actually allow us to send newsletters.

@carkod carkod force-pushed the rebrand-raspi-thankyou-wd-9610 branch from 61327df to f416def Compare April 4, 2024 13:05
@@ -113,7 +113,7 @@
<div class="u-fixed-width">
<div class="p-notification--positive u-no-margin--bottom">
<div class="p-notification__content">
<p class="p-notification__message">Thank you for signing up for our newsletter!<br/>In these regular emails you will find the latest updates about Ubuntu and upcoming events where you can meet our team.<a href="#" onclick="location.href = document.referrer; return false;"><i class="p-notification__close">Close</i></a></p>
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@lizzochek when you are back, can you check what removing this could break? Thanks, let me know if you need help with a better solution. I don' t think applying this globally is good, maybe we should encpasulate it within some function so that it triggers only in that specific situation and also it'd be easier to track where this code is used.

@carkod carkod force-pushed the rebrand-raspi-thankyou-wd-9610 branch from f416def to 93ec17f Compare April 4, 2024 13:14
@carkod carkod merged commit e5d358c into canonical:download-bubble-wd-8482 Apr 4, 2024
14 checks passed
@carkod carkod deleted the rebrand-raspi-thankyou-wd-9610 branch April 4, 2024 16:57
mtruj013 pushed a commit to mtruj013/ubuntu.com that referenced this pull request Apr 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants