Closed Bug 555332 Opened 14 years ago Closed 14 years ago

Website changes for Lorentz

Categories

(www.mozilla.org :: General, defect)

x86
Linux
defect
Not set
normal

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: benjamin, Assigned: abuchanan)

References

()

Details

Attachments

(4 files, 6 obsolete files)

This bug is a place I can attach the patches to www.mozilla.com that I want feedback on before I actually commit them, because I'm not sure what the commit or review policies are for that site.
Attached patch Product details, rev. 1 (obsolete) — Splinter Review
This adds 3.6.3plugin1 as the beta version in product-details and changes the locales so it is actually available.
Attachment #435297 - Flags: review?(buchanae)
Attached patch website changes (obsolete) — Splinter Review
This is the website changes apart from product-details. I think it will need further revision, but I'm not sure whether I should check this in to trunk and then get revision, or wait (or use a svn branch, but I've never used one of those and it intimidates me).

I have this all staged locally at http://mozilla-com-stage.smedbergs.us/
Comment on attachment 435298 [details] [diff] [review]
website changes

Pages look fine to me. 

I'm hesistant on these htaccess changes:

+RewriteCond %{REQUEST_FILENAME} !-f
+RewriteCond %{REQUEST_FILENAME} !-d

Is this normal for mozilla.com? Seems like it would hit our servers hard if every 404 first had to match a regex. 

Also not so sure on:
+php_value short_open_tag TRUE

I'm wary of making a change like that that will affect the entire site. Could cause some weird side effects.
Attachment #435298 - Flags: review-
Comment on attachment 435298 [details] [diff] [review]
website changes

I'm running out the door, so I don't have time for a full review, but here are my initial comments.

>Index: en-US/firefox/lorentz/plugin-crash-pleasesend.png
>===================================================================
>Cannot display: file marked as a binary type.
>svn:mime-type = application/octet-stream

Images should go under img/.

>+	<ul>
>+	  <li>Adobe Flash
>+	  <li>Microsoft Silverlight
>+          <li>Apple Quicktime
>+        </ul>

Fix spacing.

>+      <p>If one of these plugins crashes or hangs, Firefox will continue running and you can reload the page to try again.

Comma after running.

Also, I see a number of validation errors.

>+php_value short_open_tag TRUE

Indeed, no.

Same comments on redirects....
Attachment #435298 - Flags: review-
FWIW, short_open_tag is already required for mozilla.com, the basic includes require it. I suspect that your PHP config has it set, and I only added it as a local hack for my staging site.

I copied the redirect config from blocks directly above it, the firstrun/eu blocks.
Comment on attachment 435297 [details] [diff] [review]
Product details, rev. 1

Changes apply and look fine to me, assuming going from 3.7.x -> 3.6.x for latest devel version is OK with everyone.
Attachment #435297 - Flags: review?(buchanae) → review+
Attached image New page mockup
From what I understand, this page now has a different design planned.  I've attached that mockup and marked the website changes patch obsolete.  Hope that's right.

Ben, do you want to work on this new page?  Or shall I take a stab at it?  What's the timeline for this page?
Attachment #435298 - Attachment is obsolete: true
New design applied to the Beta page. Nearly complete, but with a few shortcomings:

* The version listed within the Download button (beneath 'Firefox Beta') is appearing as "null" rather than "3.6.3plugin1". I couldn't trace down where this number is being populated. Any help?

* I've placed all the CSS in a separate file, whatsnew-page-lorentz.css, since including the separate CSS that included the visual elements I needed produced too many side effects. Not sure if this is bad practice, or if there's a better alternative.

* The Download Button code was taken from bsmedberg's all-beta page. Non-beta download buttons seems to use different code, so I don't know if there's a better approach.
Attachment #437669 - Flags: review?(buchanae)
the version number comes from product-details, I'll handle that separately
Comment on attachment 437669 [details] [diff] [review]
Beta page redesign

thanks chowse!

committed in r65422
Attachment #437669 - Flags: review?(buchanae) → review+
(In reply to comment #8)
 
> * I've placed all the CSS in a separate file, whatsnew-page-lorentz.css, since
> including the separate CSS that included the visual elements I needed produced
> too many side effects. Not sure if this is bad practice, or if there's a better
> alternative.

no biggie.  no sense it fighting it.

> * The Download Button code was taken from bsmedberg's all-beta page. Non-beta
> download buttons seems to use different code, so I don't know if there's a
> better approach.

Seems fine to me.  We can double check that everything works in staging.
Last paragraph, is the "Lorentz beta build" link correct?  It links to all-beta
Comment on attachment 435297 [details] [diff] [review]
Product details, rev. 1

>     define('LATEST_FIREFOX_VERSION', '3.6.2');
>-    define('LATEST_FIREFOX_DEVEL_VERSION', '3.7a1pre');
>+    define('LATEST_FIREFOX_DEVEL_VERSION', '3.6.3plugin1');
>     define('LATEST_FIREFOX_OLDER_VERSION', '3.5.8');

This is bitrotten now.

>@@ -42,202 +42,262 @@
>          */
>         var $primary_builds = array(
>                 'af'    => array( LATEST_FIREFOX_OLDER_VERSION => array('Windows' => array('filesize' => 7.6), 'OS X' => array('filesize' => 17.4), 'Linux' => array('filesize' => 9.2) ),
>-                                  LATEST_FIREFOX_VERSION       => array('Windows' => array('filesize' => 7.8), 'OS X' => array('filesize' => 19), 'Linux' => array('filesize' => 9.6) )),
>+                                  LATEST_FIREFOX_VERSION       => array('Windows' => array('filesize' => 7.8), 'OS X' => array('filesize' => 19), 'Linux' => array('filesize' => 9.6) ),
>+                                  LATEST_FIREFOX_DEVEL_VERSION       => array('Windows' => array('filesize' => 7.8), 'OS X' => array('filesize' => 19), 'Linux' => array('filesize' => 9.6) )),

Due to some weirdness in how product-details works, the order needs to be LATEST_FIREFOX_OLDER_VERSION, LATEST_FIREFOX_DEVEL_VERSION, LATEST_FIREFOX_VERSION.

You didn't update the $beta_builds table or history/firefoxHistory.class.php.

Also need to run php -f export_json.php, too.
Attachment #435297 - Flags: review-
Attached patch Product details, unbitrotted (obsolete) — Splinter Review
I don't quite understand how product-details work, so I'm just going to attach the unbitrotted patch and ask Reed or Alex to fix the details which I don't understand, if that's all right.
Attachment #435297 - Attachment is obsolete: true
Comment on attachment 437669 [details] [diff] [review]
Beta page redesign

>+		var gDownloadItemOtherPlatform = "<a href=\"/en-US/firefox/3.6.3plugin1/releasenotes/#contributedbuilds\">Free Download<\/a>"

Don't hardcore a link like this. Use the product-details define and use $lang.

>+		document.writeln("<a href=\"\/en-US\/firefox\/3.6.3plugin1\/releasenotes\/\">Release Notes<\/a>");

Same.

>+		document.writeln("- <a href=\"\/en-US\/firefox\/all-beta.html\">Other Systems and Languages<\/a>");

$lang

>+			<h3>Download Now - Free <span>(English (US) | <a href="http://www.mozilla.com/en-US/firefox/all.html">Other Systems and Languages</a>)</span></h3>

Relative link here with $lang.

>+				<li><a href="http://download.mozilla.org/?product=firefox-3.6.3plugin1&amp;os=win&amp;lang=en-US">Windows (8<abbr title="MegaBytes">MB</abbr>)</a></li>
>+				<li><a href="http://download.mozilla.org/?product=firefox-3.6.3plugin1&amp;os=linux&amp;lang=en-US">Linux (9.8<abbr title="MegaBytes">MB</abbr>)</a></li>
>+				<li><a href="http://download.mozilla.org/?product=firefox-3.6.3plugin1&amp;os=osx&amp;lang=en-US">Mac OS X (19<abbr title="MegaBytes">MB</abbr>)</a></li>

Don't hardcode. Use product-details. Use $lang.

>+	<p>You can help Mozilla by downloading and using a <a href="/en-US/firefox/all-beta.html">Lorentz beta build</a>. Visit 

$lang


>   <li><a href="http://ftp.mozilla.org/pub/mozilla.org/firefox/nightly/latest-firefox-lorentz/firefox-3.6.3plugin1pre.en-US.win32.installer.exe">Windows Installer</a>
>   <li><a href="http://ftp.mozilla.org/pub/mozilla.org/firefox/nightly/latest-firefox-lorentz/firefox-3.6.3plugin1pre.en-US.linux-i686.tar.bz2">Linux Tarball</a>

Don't hardcode.
Attachment #437669 - Flags: review-
Comment on attachment 437842 [details] [diff] [review]
Product details, unbitrotted

Giving this r- just so somebody won't accidentally commit it.
Attachment #437842 - Flags: review-
Reed - you r-'d a patch that Alex approved and that I believe got committed. Are you available to help with the product-details changes and associated html changes?

If not, Alex, can we get some of your time today?
I can help clean up.  Thanks reed for the reviews.
Attached patch Beta page update (obsolete) — Splinter Review
- Added $lang refs in all the links.
- Added a missing link on 'release notes' at the bottom of the page.

I'm not sure how to use product-details for the download links. Alex, I'm hope you can fix this last detail.
Attached patch P-d patch (obsolete) — Splinter Review
Moved $primary_builds entries around per comment #13

A couple questions:

1) Are there beta locales for this build?  Not sure what needs updating in $beta_builds

2) How do I know what date to put in history/firefoxHistory ?
Assignee: benjamin → buchanae
Attachment #437842 - Attachment is obsolete: true
Attachment #437889 - Flags: review?
Attachment #437889 - Flags: review? → review?(reed)
Attached patch page HTML patch (obsolete) — Splinter Review
Fixes hardcoding of version numbers and locale codes.

Notes:

1) We'll need to remove the .htaccess rule for all-beta.html.  Currently it shows 3.6.3 builds (pass through to all.html)

2)  How can we generate the nightly build links, so they're not hardcoded (comment #15)?
Attachment #437863 - Attachment is obsolete: true
Attachment #437892 - Flags: review?(reed)
(In reply to comment #17)
> Reed - you r-'d a patch that Alex approved and that I believe got committed.
> Are you available to help with the product-details changes and associated html
> changes?

BTW, this was never committed.
(In reply to comment #21)
> Created an attachment (id=437892) [details]
> page HTML patch
> 
> Fixes hardcoding of version numbers and locale codes.
> 
> Notes:
> 
> 1) We'll need to remove the .htaccess rule for all-beta.html.  Currently it
> shows 3.6.3 builds (pass through to all.html)

It currently redirects to all.html, yeah; we should remove that and have it point to these lorentz builds, and then eventually to the 3.6.4 beta builds.

> 2)  How can we generate the nightly build links, so they're not hardcoded
> (comment #15)?

I think the nightly build links section has been removed, hasn't it? It should also point to all-beta, really.
The current nightly-build link goes to 1.9.2 nightly builds. Do we have a landing page to get people on 1.9.2 nightlies?
(In reply to comment #23)
> It currently redirects to all.html, yeah; we should remove that and have it
> point to these lorentz builds, and then eventually to the 3.6.4 beta builds.

My working copy was out of date, this has already been fixed by someone.

> I think the nightly build links section has been removed, hasn't it? It should
> also point to all-beta, really.

Looking here: http://www-trunk.stage.mozilla.com/en-US/firefox/lorentz/

Bottom right corner, there is a nightly builds section.  You're saying I should remove that block?  Replace it with anything?  

Thanks
(In reply to comment #26)
> The page doesn't validate to its HTML5 doctype:
> http://validator.w3.org/check?uri=http%3A%2F%2Fwww-trunk.stage.mozilla.com%2Fen-US%2Ffirefox%2Florentz%2F&charset=%28detect+automatically%29&doctype=Inline&group=0

The page on trunk doesn't have the most recent patches applied yet.  It will validate once they are
(In reply to comment #25)
> Bottom right corner, there is a nightly builds section.  You're saying I should
> remove that block?  Replace it with anything?  

Yeah, I think we can remove that block. We *could* point people to nightly.mozilla.org, but I don't think it's a huge advantage. Let's make this page be about Lorentz
ok, thanks.  New patch removes nightly block.

What's ETA on this build?  Today?  This week?
Attachment #437892 - Attachment is obsolete: true
Attachment #437925 - Flags: review?(reed)
Attachment #437892 - Flags: review?(reed)
They are being staged now, so today.
Added 3.6.3plugin1 to firefox history file, with today's date
Attachment #437889 - Attachment is obsolete: true
Attachment #437926 - Flags: review?(clouserw)
Attachment #437889 - Flags: review?(reed)
Attachment #437926 - Flags: review?(clouserw) → review+
html patch committed in r65485
p-d committed in r65486
Page looks good on trunk.  Over to QA.
Assignee: buchanae → stephen.donner
OS: Linux → All
Hardware: x86 → All
QA Contact: www-mozilla-com → mozwebqa
Assignee: stephen.donner → mozwebqa
QA Contact: mozwebqa → www-mozilla-com
r65491 tweaks the beta download button CSS slightly, so that the text doesn't overflow the background image (caused by longer version numbers)
http://www-trunk.stage.mozilla.com/en-US/firefox/lorentz/ looks good to me. The text button overflow is fixed
Comment on attachment 437925 [details] [diff] [review]
html patch, removes nightly block

Note the earliest I can get to this is tomorrow afternoon, and I'll only have a few hours. However, I'll put it on my schedule.
Comment on attachment 437926 [details] [diff] [review]
p-d patch, adds entry to firefox-history

still think we probably need to update the beta builds array... need to see what builds are actually being built.
> Firefox "Lorentz" provides uninterrupted browsing for Windows and Linux users

Lorentz is only for Win/Linux? Why these is a Mac build? It's confusing.
The new feature only works on Windows and Linux. There are OSX builds because we want to make sure that the code changes do not cause problems for OSX users.

Reed: should we mark this fixed or wait until the beta array stuff is finished?
OS: All → Linux
Hardware: All → x86
Assignee: mozwebqa → nobody
This went live, so we can close this right?
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
(In reply to comment #41)
> This went live, so we can close this right?

Yep.
Status: RESOLVED → VERIFIED
Attachment #437925 - Flags: review?(reed)
Assignee: nobody → buchanae+bugs
Component: www.mozilla.org/firefox → www.mozilla.org
Component: www.mozilla.org → General
Product: Websites → www.mozilla.org
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: