Closed
Bug 1945688
Opened 1 year ago
Closed 1 year ago
Add a setting to auto-close RC panel when leaving supported domains and PDPs
Categories
(Firefox Graveyard :: Shopping, task, P2)
Firefox Graveyard
Shopping
Tracking
(firefox137 fixed)
RESOLVED
FIXED
137 Branch
| Tracking | Status | |
|---|---|---|
| firefox137 | --- | fixed |
People
(Reporter: kpatenio, Assigned: rking)
References
Details
(Whiteboard: [fidefe-RCSidebar])
Attachments
(1 external file)
Setting: Keep RC open on all pages of supported domains. Close RC when a user leaves the supported domain
Rationale: Conserve users’ screen real estate and avoid the negative impact on RC retention that a persistent panel might cause.
User story
As a user, I want to access RC quickly while shopping and experience minimum disruption when I switch to other tasks.
Acceptance criteria
- The RC panel remains open as long as I navigate around the eligible domains, both on PDP and non-PDP pages, displaying review analysis and empty RC panel state, respectively.
- RC panel closes automatically once I leave the eligible domain (default behavior of the panel).
- I can choose to turn off auto-close behavior in RC panel settings. Turning it off results in the following behavior:
- RC panel never closes automatically, staying open on all webpages on all domains, until I proactively close it.
Implementation notes
- We need a new pref similar to existing toggle settings like
autoOpen.userEnabled.- Note:
autoOpen.enabledis treated like a "feature flag" - it will show / hide the auto-open toggle since it was previously an experiment. At the moment, I'm unsure if we want an equivalent pref for auto-close; I'm leaning towards yes, but it's best to confirm with the team.
- Note:
- We need a new toggle in settings.mjs and a new string for its label
- We should add tests to ensure it auto-closes when the toggle is enabled and doesn't if the toggle is disabled
- We want to add logic that allows for auto-closing on non PDPs. More details below.
onLocationChange
- While we're guaranteed to hit ReviewCheckerParent's onLocation on page navigation, I'm thinking that it may be better to look at ReviewCheckerManager's onLocation
- ReviewCheckerManager is responsible for auto-opening the RC panel if we're able to do so.
- Therefore, the manager class seems to be suitable for auto-closing too. We will have to check if
ShoppingProduct.isProductURLand ShoppingProduct.isSupportedSiteURL are false.- If both are false, then we are viewing a non PDP on an unsupported site (ex. wikipedia.org). We can call ReviewChecker.hideSidebar to hide the RC panel if it is visible.
Open questions
- Do we want new Glean metrics specific to auto-close?
- Do we want any new callouts related to auto-close?
Severity: -- → N/A
Priority: -- → P2
Whiteboard: [fidefe-RCSidebar]
Updated•1 year ago
|
Answers to open questions:
Glean metrics
We need to track two metrics:
- State of the auto-close preference
- Auto-close toggle is clicked
Callouts
- No callouts are needed for the auto-close feature
Pushed by rking@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/b4ba8aba59a2
Add a setting to auto-close RC panel when leaving supported domains r=shopping-reviewers,fluent-reviewers,bolsson,jhirsch
Comment 4•1 year ago
|
||
| bugherder | ||
Status: NEW → RESOLVED
Closed: 1 year ago
status-firefox137:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → 137 Branch
Updated•1 year ago
|
Product: Firefox → Firefox Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•