Closed Bug 1932188 Opened 9 months ago Closed 8 months ago

[Sections Personalization] Context menu

Categories

(Firefox :: New Tab Page, enhancement)

enhancement

Tracking

()

RESOLVED FIXED
135 Branch
Tracking Status
firefox135 --- fixed

People

(Reporter: thecount, Assigned: npypchenko)

References

(Blocks 1 open bug)

Details

Attachments

(2 files)

The sections need a context menu with a block section menu item. There is a component for context menus, but we need to add a new item in https://searchfox.org/mozilla-central/source/browser/components/newtab/content-src/lib/link-menu-options.mjs

The follow work is also going to add a conditional unfollow button to the context menu, not needed to happen in bug 1932187.

Blocks: 1932189
Blocks: 1932187
Depends on: 1932186
Summary: [Sections Personalization] Context menu → [Sections Personalization] Context menu and block menu item
Summary: [Sections Personalization] Context menu and block menu item → [Sections Personalization] Context menu
Assignee: nobody → npypchenko
Status: NEW → ASSIGNED
Attachment #9441865 - Attachment description: WIP: Bug 1932188 - [Sections Personalization] Context menu → Bug 1932188 - [Sections Personalization] Context menu r=#home-newtab-reviewers
Pushed by npypchenko@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/643f1437f3a5 [Sections Personalization] Context menu r=home-newtab-reviewers,fluent-reviewers,bolsson,thecount
Status: ASSIGNED → RESOLVED
Closed: 8 months ago
Resolution: --- → FIXED
Target Milestone: --- → 135 Branch

I've verified this task on the latest Nightly 135.0a1 build (build id: 20241212095112), on macOS Sequoia 15.0.1, on Windows 11 x64 and on Ubuntu 22.04 x64. Putting on enabled the following two prefs: "browser.newtabpage.activity-stream.discoverystream.sections.enabled" and "browser.newtabpage.activity-stream.discoverystream.sections.personalization.enabled”, the Context menu is coming on the page, but I've noticed two things:

  1. The context menu opens sideways, while in the Figma it appears to open downwards. What's the intended behaviour?
  2. In the Figma, if the status is "Following" for one section, the context menu contains two options: "Unfollow Topic" and "Block". Currently, in the latest Nightly 135.0a1 build, the Context menu has only one option: "Block". (please see the attached screenshot). Is this the desired behaviour?

Yeah this work was just for the context menu itself.

It still have some work.

See bug 1936618 and bug 1932187.

Thanks for the answer, Scott.
In this case, I'll verify the whole behaviour when bug 1936618 and bug 1932187 will be closed.

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

Attachment

General

Creator:
Created:
Updated:
Size: