-
Notifications
You must be signed in to change notification settings - Fork 561
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
Gallery redesign WIP: Initial PR #12576
Conversation
|
||
@* | ||
|
||
TODO: |
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 left a lot of todos in the code for future iteration. Apologies in advance if it is confusing!
852eb23
to
ad0e073
Compare
OMG!!111ONE! 😍 "Try to eliminate junk" & "Fix 100vh jumping on mobile" - maybe FulscreenAPI? Anyway: 🍻 for whomever succeeds! Maybe also worth looking at the very small related #6144? At the end, when all is done and everybody's drinking 🍾, we may think of joining galleries from the same series? Maybe? Like in this screenshot (or even without the disruptive endslate altogether): #5934 (comment)? swipe...swipe...swipe...swipe...ad_impression...swipe...swipe...swipe...swipe...ad_impression...swipe...swipe...swipe...swipe... |
@akash1810 Look at this beauty (not talking about @paperboyo )... |
ac19d59
to
e87a923
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.
whitespace
e87a923
to
c9e82b5
Compare
position: relative; | ||
background-position: center center; | ||
-webkit-background-size: cover; | ||
background-size: cover; |
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.
Doesn't autoprefixer mean we don't have to add the -webkit
rule?
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.
Not sure, haven't written much scss in the project so far. Will remove now!
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.
Removed. Thank you for reviewing! More comments, the better 👍
d5672a5
to
3ff0f3f
Compare
There are a bunch of sass whitespace and consistency things but I'm not going to be a pedant. Only other thing I could think of is that the header is called Otherwise it's great that we're sorting these galleries out and it looks good. Probably will be better to get someone who knows what they're doing with scala for that side of things though. |
@sammorrisdesign, do let me know about the sass whitespace and consistency things! Its useful to me, and easy to fix. Regarding naming, once galleries are replaced, the |
But aren't the |
} | ||
} | ||
|
||
|
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.
Double return inconsistent with single return below. I think we tend to have single lines after blocks. But should at least be consistent in same file.
32dfbd2
to
dbc35b1
Compare
Thats fair. I will look first to seeing I can get rid of |
case _ => NotFound | ||
} | ||
} | ||
|
||
val HTTPS = OptInFeature("https_opt_in") | ||
val Header = OptInFeature("new_header_opt_in") | ||
val gallery = OptInFeature("gallery_redesign_opt_in") |
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.
just be careful about splitting the cache too much, otherwise the backend has to serve the same content twice
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.
Its true, but we need to be able to test the value of this before we roll it out to everyone.
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.
will you incorporate opting in into the a/b test somehow? otherwise it seems like opting in won't give you the new gallery :)
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.
Do you mean in fastly? I have branch I pushed up waiting to go! Just want to get this out before I make another PR. If that isn't what you mean, come talk to me? Not sure I follow.
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.
Note: This was discussed in person and the fastly change that makes this possible has already been made in a separate PR ready to go :)
fde0481
to
56fff0f
Compare
e78d002
to
03e47d0
Compare
03e47d0
to
d714efd
Compare
Map("content--advertisement-feature" -> gallery.commercial.isAdvertisementFeature, | ||
"paid-content--advertisement-feature" -> gallery.commercial.isAdvertisementFeature | ||
), | ||
"content", "content--media", "content--gallery", "tonal", "new-gallery", "content--immersive", s"tonal--${toneClass(gallery)}" |
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.
Do we need content--immersive
? Seems to me like it just creates more work for us as we need to override its styles later on.
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.
As a note, Olly has separated this out into content--immersive
for shared styles and content--immersive-article
only used for immersive articles
Oh, apart from already cited #6144 it might be prudent to add #12215 & (at least half of) #12216 to the grand plan. There is also #9957, but my personal opinion is that currently zooming in is very broken on mobile, because it zooms in both the image and the UI (including captions, up to a point of no return). If we can’t make it so that only the image zooms in and the Lightbox’s UI stays put, there is not much point in having it at all, so no point extending it (“fixing”) for iOS... |
… into gallery-redesign
@@ -9,7 +9,7 @@ | |||
@fragments.newHeader() | |||
} else { | |||
<header id="header" | |||
class="l-header u-cf @if(page.metadata.hasSlimHeader) {l-header--is-slim l-header--no-navigation} js-header" | |||
class="l-header u-cf @if(page.metadata.hasSlimHeader) {l-header--is-slim l-header--no-navigation} @if(mvt.ABGalleryRedesignVariant.isParticipating && page.metadata.contentType.toLowerCase == "gallery"){l-header--is-slim l-header--no-navigation l-header--new-gallery} js-header" |
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.
to avoid repetition of mvt.ABGalleryRedesignVariant.isParticipating && page.metadata.contentType.toLowerCase == "gallery"
, you might want to move it to a method inside the test
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.
Changed this to shouldShow
method which includes the check of whether you are on a gallery or not.
6f7cec7
to
271b576
Compare
|
||
// Overwriting media tone header so that you can see the image instead | ||
.tonal__header { | ||
background-color: rgb(0, 0, 0); |
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.
we don't have any other rgb
colours in the codebase. for the sake of consistency, should they be #000000
? they'll work fine so it's not a blocker.
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.
Yep, actually changing them to $multimedia-support-5
haha @sndrs very appropriate! |
🚀 🎸 📷 |
What does this change?
@zeftilldeath designed what galleries should look like, this is the initial PR implementing the design.
What is the value of this and can you measure success?
This will start as a 0% A/B test while we iterate. Next week the aim is to start rolling it out an audience
What is next?
These will all be done in future prs
Does this affect other platforms - Amp, Apps, etc?
No
Screenshots
Mobile:
![image](https://cloud.githubusercontent.com/assets/8774970/14561964/d74be7e4-0311-11e6-8ce5-7fab5c0740fe.png)
![image](https://cloud.githubusercontent.com/assets/8774970/14566246/9881eecc-0326-11e6-85b6-ca0b05639fa0.png)
Desktop:
![image](https://cloud.githubusercontent.com/assets/8774970/14561935/b80c1048-0311-11e6-962a-ee359d41d6dd.png)
![image](https://cloud.githubusercontent.com/assets/8774970/14566237/82f6198e-0326-11e6-8f59-9de7d1995e0e.png)
Request for comment
@OliverJAsh