Closed Bug 1617280 Opened 5 years ago Closed 5 years ago

Collection component dismiss

Categories

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

defect

Tracking

()

VERIFIED FIXED
Firefox 75
Iteration:
75.2 - Feb 24 - Mar 8
Tracking Status
firefox75 --- verified

People

(Reporter: thecount, Assigned: thecount)

References

Details

Attachments

(1 file)

Right now the work in progress collection component does not have a working dismiss button.

Doing this work likely also means wiring up telemetry for dismiss.

Assignee: nobody → sdowne
Priority: -- → P1
Blocks: collection-component
No longer blocks: pocket-newtab
Iteration: --- → 75.1 - Feb 10 - Feb 23
Iteration: 75.1 - Feb 10 - Feb 23 → 75.2 - Feb 24 - Mar 8

New requirement from Product: We should control the visibility of the collection dismiss button with a pref in case we need to launch without this functionality or we want to test the usefullness of the dismiss button later on.

(Scott, NI for visibility)

Flags: needinfo?(sdowne)

To test:

  1. Ensure you can see spocs
  2. Set "browser.newtabpage.activity-stream.discoverystream.spocs-endpoint" to https://spocs.getpocket.com/spocs?site=1116390
  3. Set "browser.newtabpage.activity-stream.discoverystream.isCollectionDismissible" to true
  4. Open a newtab.

expected: You should see a collection on newtabs, above the pocket section.

If you want to dismiss this, you can, if you do that and you want to enable the dismissed items again, do these steps:

  1. clear the pref browser.newtabpage.blocked
  2. enable browser.newtabpage.activity-stream.asrouter.devtoolsEnabled
  3. go to about:home#devtools-ds
  4. click refresh cache
  5. restart

expected, the collection should be back if you dismissed it.

You can also test test promo just to make sure it did regress during all this. To test that, do these steps:

  1. Set browser.newtabpage.activity-stream.discoverystream.endpoints to http,https
  2. 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://fdfde809-c40b-4dda-96e1-4df41fab3389.mock.pstmn.io/text-promo-layout"}

Expected: You should see a text promo, and you should be able to dismiss it, and clear the dismiss to test again using the same steps used above for collections.

Flags: needinfo?(sdowne)
Blocks: 1618944
Pushed by sdowne@getpocket.com: https://hg.mozilla.org/integration/autoland/rev/fc2d5d677724 Newtab story collections dismiss button r=nanj,gvn
Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 75

I have verified the following, using Firefox Nightly 75.0a1 (Build ID: 20200302094818) on Windows 10 x64, macOS 10.15, Ubuntu Linux 18.04 x64.

  • The “Collection” section is dismissed after the “Dismiss” button was pressed.
  • The “Collection” section can be enabled again by following the steps from comment 3.
  • The “Text Promo” section is dismissed after the “Dismiss” button was pressed.
Status: RESOLVED → VERIFIED
Regressions: 1619654
Depends on: 1642407
Depends on: 1642682
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: