Build new hero layout variant
Categories
(Firefox :: New Tab Page, task, P1)
Tracking
()
Tracking | Status | |
---|---|---|
firefox77 | --- | verified |
People
(Reporter: gsuntop, Assigned: gsuntop)
References
()
Details
Attachments
(1 file, 1 obsolete file)
Assignee | ||
Updated•4 years ago
|
Updated•4 years ago
|
Assignee | ||
Comment 1•4 years ago
|
||
Updated•4 years ago
|
Updated•4 years ago
|
Assignee | ||
Updated•4 years ago
|
Assignee | ||
Comment 2•4 years ago
•
|
||
Test Steps
- Set
browser.newtabpage.activity-stream.discoverystream.endpoints
tohttp,https
- Set
browser.newtabpage.activity-stream.discoverystream.config
to{"api_key_pref":"extensions.pocket.oAuthConsumerKey","collapsible":true,"enabled":true,"show_spocs":true,"hardcoded_layout":false,"personalized":true,"layout_endpoint":"https://e5e8374d-fffa-4a77-a604-31603852b6fd.mock.pstmn.io/layout/1628045"}
- Open new tab
- Verify layout matches spec
Note: If no spocs show up, you may need to set browser.newtabpage.activity-stream.discoverystream.spocs-endpoint
to https://e5e8374d-fffa-4a77-a604-31603852b6fd.mock.pstmn.io/spocs/v2
.
Assignee | ||
Comment 3•4 years ago
|
||
Updated•4 years ago
|
Assignee | ||
Comment 4•4 years ago
|
||
Updated•4 years ago
|
Assignee | ||
Comment 5•4 years ago
|
||
@Tyler, here's a build for you to design review:
Assignee | ||
Comment 6•4 years ago
|
||
Feedback from Tyler:
- The small cards should have the Windows Title 10 (13px/19 line height) font style
- Sponsored text on small cards isn’t wrapping to two lines
- Padding inside the small cards isn’t set to 8px
Updated•4 years ago
|
Assignee | ||
Comment 7•4 years ago
|
||
@Tyler – Here's a revised build for you to check out:
Comment 8•4 years ago
|
||
Revised build looks great! A few tweaks:
- I'm seeing two SPOCs stacked on top of each other on the right. Should be that only the top-right card is SPOC.
- Line height for the sponsored label on the small cards should be 19px, but looking like it's coming through as 24px
-at the largest width breakpoint (936px width) the small cards should have a min-height of 222px
all else looks good to go!
Pushed by gsuntop@getpocket.com: https://hg.mozilla.org/integration/autoland/rev/d8b2993bf75d New hero layout variant r=thecount
Comment 10•4 years ago
|
||
bugherder |
Comment 11•4 years ago
|
||
I have verified this on Firefox Nightly 77.0a1 (Build ID 20200426215109) on Win 10, Linux Ubuntu 18.04 and Mac 10.15.
Having the prefs from Comment 2 set, as suggested (including the spocs endpoint), we observed the following:
-
1 Hero card:
a. padding 16px (no matter of the browser height)
b. picture height: 228px/168px (depending on browser height) -
4 small cards:
a. padding 8px (no matter of the browser height)
b. only the one from the top right corner is sponsored
c. sponsored label heights: 19px
d. sponsored label wraps on 2 rows <696px browser height
e. picture height: 108px/78px (depending on browser height)
f. without description/abstracts -
The hero layout is only visible on the lager containers (939px and 696px)
-
Dismissing the sponsored small card, should trigger another sponsored card?
@Gavin are these correct? I am interested in particular of: 1 b), 2 e) and 4.
Thanks!
Assignee | ||
Comment 12•4 years ago
|
||
@Tyler, can you review this feedback and ensure it's all acceptable? Thanks!
Comment 13•4 years ago
•
|
||
Hi Valentina,
1b) Picture height should change based on browser width, not browser height
2e) Picture height should change based on browser width, not browser height
4) The intention with replacing a card that is a SPOC in the hero layout is to match the existing behavior in the three-by-one design. Existing behavior: when a SPOC is removed, the card is replaced with a non-SPOC story. When the user opens a new tab, a new SPOC is shown there.
Others
1a) Yes
2a) No, on larger breakpoints the padding is 16px
2b) Yes
2c) Yes
2d) The sponsored label MAY wrap if too long, but does not always wrap
2f) Sorry, not clear about this question. Small cards should not ever show description/abstracts.
3) Yes
Comment 14•4 years ago
|
||
(In reply to Tyler Miller from comment #13)
1b) Picture height should change based on browser width, not browser height
Yeah, my bad. My question was: if hero card picture size is correct - 228px/168px (for 939px wide and 696px wide)?
2e) Picture height should change based on browser width, not browser height
My question was: if small cards picture size is correct - 108px/78px (for 939px wide and 696px wide)?
Others
2a) No, on larger breakpoints the padding is 16px
Small cards padding is always 8px (for 939px wide and 696px wide), is this ok?
2f) Sorry, not clear about this question. Small cards should not ever show description/abstracts.
This was an confirmation, not a question.
Thanks in advance!
Comment 15•4 years ago
|
||
Got it! For 1b the heights listed are good 👍
For 2e, the heights listed are good 👍
for 2a, we should adjust the padding on larger breakpoints to 16px on 939 width.
for 2f, confirmed.
Comment 16•4 years ago
|
||
@Tyler - Thanks for the quick reply!
Just to be sure I was clear about the padding: I was talking about small cards, on different breakpoints.
Hero card has also one padding - 16px - for both smaller and larger breakpoints.
If it is still the case, would you like for us to add a new issue for the small cards padding on larger breakpoints, or reopening this should work as well?
Comment 18•4 years ago
|
||
Based on the above comments, I'll mark this issue as verified.
Updated•4 years ago
|
Description
•