Closed Bug 1540842 Opened 6 years ago Closed 5 years ago

[Cards] Pocket New Tab should display 'Saved to Pocket' in the UI after a story is saved

Categories

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

defect
Points:
1

Tracking

()

VERIFIED FIXED
Firefox 70
Iteration:
70.2 - Jul 22 - Aug 4
Tracking Status
firefox70 --- verified

People

(Reporter: pdahiya, Assigned: jcarlos)

References

Details

(Keywords: github-merged)

Attachments

(5 files)

Add UI feedback on save to maintain parity between Activity Stream and Pocket new Tab

https://github.com/mozilla/activity-stream/pull/4863#issuecomment-478690948

NI Wolasi as this need design feedback for various components in Discovery Stream

Flags: needinfo?(wkonu)

Likely something for 69

Priority: -- → P2
Flags: needinfo?(wkonu)
Keywords: uiwanted

uiwanted keyword is getting removed from keyword list. https://github.com/k88hudson/bugzy/issues/115#issue-437270006 . Using this bug as an example to keep design view in bugzy.

Flags: needinfo?(wkonu)
Keywords: uiwanted
No longer blocks: pocket-newtab-69
No longer blocks: pocket-newtab-68
Priority: P2 → P1

Scope
Note this spec only covers the card (and hero) format. Implementation for the list format will be covered in another ticket.
Note We should be able to support other messaging in the future
Note messaging should not appear on SPOC units. This is in accordance with original New Tab

Messaging covers the following actions

  • Saving to Pocket
  • Archiving in Pocket
  • Deleting from Pocket
  • Bookmarking
  • Removing from Bookmarks

Implementation Details

  • A footer element should be added to the bottom of the card to contain states messaging and future features like time to read.
  • Footer height should be 24px
  • Text and icon should be vertically centered in footer
  • Text and icon color should be gray-50
  • Icon dimensions height: 16px, width: 16px
  • Text properties font-size: 13px, line-height: 24px
  • If a message is already visible, it should disappear and the new message shown with the animation described above

Suggested Markup

<footer class="story-footer">
      <div class="view-count">
        9.9m views
      </div>
      <div class="status-message">
        <span class="saved-to-pocket-icon"></span> Saved to Pocket
      </div>
</footer>

The view count referenced above is being implemented in this ticket https://bugzilla.mozilla.org/show_bug.cgi?id=1565709

Transition
Transition is described in this code pen. It shows what the transition looks when when there is a view count and when there isn't. Click on the footer element to see the transition.

Updated Codepen
https://codepen.io/otbog/pen/aepXLo

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

Flags: needinfo?(wkonu)
Summary: Pocket New Tab should display 'Saved to Pocket' in the UI after a story is saved → [Cards] Pocket New Tab should display 'Saved to Pocket' in the UI after a story is saved
See Also: → 1559552
Assignee: nobody → sdowne

Parity with current Activity Stream:

Saving to Pocket
Archiving in Pocket
Deleting from Pocket
Bookmarking
Removing from Bookmarks
Priority: P1 → P2
Component: Activity Streams: Newtab → New Tab Page
Priority: P2 → P1
Assignee: sdowne → pdahiya
Iteration: --- → 70.1 - Jul 8 - 21
Assignee: pdahiya → jcarlos
Attached image Archive - Pocket.svg
Attached image Delete - Pocket.svg
Attached image Pocket.svg
Iteration: 70.1 - Jul 8 - 21 → 70.2 - Jul 22 - Aug 4
Points: --- → 1

@wolasi Should we change the behavior after a user removes a bookmark? The current behavior is to say "Visited".
https://drive.google.com/file/d/1kNAaX7lB-1sbD8-xvkKAuldOKoYzvltV/view?usp=sharing

New possible behavior. Indicated "Removed Bookmark" and some icon.
https://drive.google.com/file/d/1XnkHEN5lINyHtdzsF8FpuLbnVOfB301_/view?usp=sharing

Flags: needinfo?(wkonu)

Yes, let's make it say "Bookmark removed"

And would you be able to take this bug?
https://bugzilla.mozilla.org/show_bug.cgi?id=1568033

It covers increasing the line-height of the Sponsored by label on sponsored cards so that it matches the status messaging text .

Flags: needinfo?(wkonu)

Can you attach the Bookmark Removed icon here? The other icons are already being used internally, just need to import this one.

Flags: needinfo?(wkonu)
Attached image Bookmark Remove.svg
Flags: needinfo?(wkonu)
Blocks: 1569573
Depends on: 1570697
Depends on: 1570766
Blocks: 1571115
Status: NEW → RESOLVED
Closed: 5 years ago
Keywords: github-merged
Resolution: --- → FIXED
Target Milestone: --- → Firefox 70
Blocks: 1568033

I have verified that this issue is no longer reproducible with the latest Firefox Nightly (70.0a1 Build ID - 20190808214929) installed, on Windows 10 x64, Arch Linux and Mac 10.14.5. Now, the "Saved to Pocket", "Bookmarked" and the "Bookmark removed" messages are displayed for the recommended by Pocket cards excepting the sponsored ones.

Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: