Closed Bug 1876197 Opened 10 months ago Closed 10 months ago

Implement auto-open shopping sidebar behavior

Categories

(Firefox :: Shopping, enhancement, P1)

enhancement

Tracking

()

VERIFIED FIXED
124 Branch
Tracking Status
firefox123 --- verified
firefox124 --- verified

People

(Reporter: jhirsch, Assigned: jhirsch)

References

(Blocks 1 open bug)

Details

(Whiteboard: [fidefe-shopping])

Attachments

(1 file)

Here's the Figma link (screenshots to be added)

Roughly: when an opted-in user closes the sidebar, flipping the active pref to false, if the browser.shopping.experience2023.autoOpen pref is true, start counting page views or minutes (TBD which we'll track), then when the count/timer runs out, if there's no callout displayed, flip the active pref back to true.

Note that we can check if a callout is displayed by importing FeatureCalloutBroker and checking isCalloutShowing.

Since this change is adding an app-global counter, ShoppingUtils is probably a natural spot for it.

We've now heard that the frequency is supposed to mimic auto-open behavior. So, you close the sidebar, navigate to another product page, and the sidebar comes back. There is no delay except waiting for the user to navigate to a new product page.

Severity: -- → S2
Priority: -- → P2
Priority: P2 → P1
Assignee: nobody → jhirsch
Status: NEW → ASSIGNED
Whiteboard: [fidefe-shopping]

If auto open is enabled, whenever the user closes the sidebar, set it to
reopen automatically, flipping the 'active' pref back to true, either
the next time they visit a supported product page in the same session,
or at startup time of the next session.

Pushed by jhirsch@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/c80d4502302c Implement auto-open shopping sidebar behavior r=shopping-reviewers,niklas
Pushed by jhirsch@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/65888f9bd2aa Implement auto-open shopping sidebar behavior r=shopping-reviewers,niklas

Think I've got the test fixed, thanks!

Flags: needinfo?(jhirsch)

Sorry about that! Trying this one more time...

Flags: needinfo?(jhirsch)
Pushed by jhirsch@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/e1d532998276 Implement auto-open shopping sidebar behavior r=shopping-reviewers,niklas
Status: ASSIGNED → RESOLVED
Closed: 10 months ago
Resolution: --- → FIXED
Target Milestone: --- → 124 Branch

Comment on attachment 9376534 [details]
Bug 1876197 - Implement auto-open shopping sidebar behavior r?#shopping-reviewers

Beta/Release Uplift Approval Request

  • User impact if declined: Product would like to experiment with a variation on the shopping behavior in 123, in which auto-open behavior makes the shopping sidebar more rediscoverable.
  • Is this code covered by automated tests?: Yes
  • Has the fix been verified in Nightly?: No
  • Needs manual test from QE?: No
  • If yes, steps to reproduce: Verify the new auto-open experience with browser.shopping.experience2023.autoOpen.enabled toggled to true, and verify the old behavior with the pref left as false. See the bug description and linked Figma for details.
  • List of other uplifts needed: None
  • Risk to taking this patch: Low
  • Why is the change risky/not risky? (and alternatives if risky): This change only touches code that is preffed off by default, and will only be enabled experimentally for a small percentage of en-US users. If anything goes wrong with the experiment, it can be ended early.
  • String changes made/needed: NA
  • Is Android affected?: No
Attachment #9376534 - Flags: approval-mozilla-beta?
Flags: qe-verify+
Flags: qe-verify+

[Tracking Requested - why for this release]: This is part of the overall project we're aiming to uplift into 123 (all grouped under metabug 1875324)

Comment on attachment 9376534 [details]
Bug 1876197 - Implement auto-open shopping sidebar behavior r?#shopping-reviewers

Approved for 123 beta 8, thanks.

Attachment #9376534 - Flags: approval-mozilla-beta? → approval-mozilla-beta+
See Also: → 1878908

Marking this issue Verified as fixed, and we logged Bug 1878908 for the remaining Walmart issue.

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

Attachment

General

Created:
Updated:
Size: