Closed Bug 1566545 Opened 6 years ago Closed 6 years ago

Card UI to support Spoc variants

Categories

(Firefox :: New Tab Page, enhancement, P1)

enhancement
Points:
8

Tracking

()

RESOLVED FIXED
Firefox 70
Iteration:
70.3 - Aug 5 - 18
Tracking Status
firefox70 --- fixed

People

(Reporter: pdahiya, Assigned: pdahiya)

References

Details

(Keywords: github-merged)

Attachments

(2 files)

No description provided.

NI Wolasi to attach specs and clarify spoc variants to be supported

Flags: needinfo?(wkonu)
Depends on: 1566547

We want to test two variants of our Story Promo Units for testing. The two variants are described in the spec below.
There will be a separate ticket for the experiment. This ticket covers just the UI implementation.

Design Spec
https://www.figma.com/file/eGdZVYlZ5evvePHUCtKnYg7u/New-Tab-Spec-for-Fx-70?node-id=77%3A0

Flags: needinfo?(wkonu)
Priority: -- → P1
Assignee: nobody → pdahiya
Iteration: --- → 70.2 - Jul 22 - Aug 4
Points: --- → 8
Attached image CTA Caret.svg

Caret svg for CTA link

NI Wolasi to update figma with CTA button and CTA link states in dark theme.

In future release when we support non-paid promo, we should be updating design specs to handle context messaging for variant A with CTA button.

Flags: needinfo?(wkonu)
Iteration: 70.2 - Jul 22 - Aug 4 → 70.3 - Aug 5 - 18

As clarified https://bugzilla.mozilla.org/show_bug.cgi?id=1566547#c11, Scope of the bug for CTA excludes Hero component

Design feedback based on builds…

CTA Link

  • Reduce spacing between text and caret in CTA link, give .cta-link padding-right: 9px
  • Let's use the following markup instead…
    <p><a href="#" class="cta-link icon icon-arrow" tabindex="0">Learn more</a></p>

CTA Button

  • make .ds-card .meta .cta-button margin: 12px 0 4px;
  • use this · for the bullet in the source · sponsored lock up
  • use spaces not padding in the source · sponsored lock up
Blocks: 1573174
Status: NEW → RESOLVED
Closed: 6 years ago
Keywords: github-merged
Resolution: --- → FIXED
Target Milestone: --- → Firefox 70
Blocks: 1573905

Hey Punam, I've run into a bit of a problem when trying to verify this issue.

In order to verify it, I've changed the "browser.newtabpage.activity-stream.discoverystream.endpoints" pref value to "https://spocs.getpocket.com/spocs" and opened a new tab, but the CTA link was not displayed on the "Sponsored" card. Also, I've tried the steps for the "Button CTA" variant, but again the button was not displayed on the available "SPOCS".

I've also seen that this bug is blocked by bug 1566547, are there any server-side changes that still need to land, or was I supposed to be able to verify it without that?

Flags: needinfo?(pdahiya)

Hi Marius, That's correct, as commented in PR https://github.com/mozilla/activity-stream/pull/5216#issue-303075244 a pre-requirement of seeing CTA is to have server return spocs with CTA property , this is dependent on fix of bug 1566547.

Flags: needinfo?(pdahiya)

We're hoping that bug 1566547 is landed by EOD today. Thanks for looking into it Marius! I apologize that this was on your radar to QA without the backend landed! We'll keep you posted.

With landing of fix of followup https://bugzilla.mozilla.org/show_bug.cgi?id=1575108 in nightly, CardUI will be in synch with "cta_variant" returned from server. Please follow test steps in bug 1575108 to test CTA support in card grid. Thanks!

Depends on: 1575108
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: