Closed Bug 1812461 Opened 3 years ago Closed 2 years ago

Update CFR popups to be sticky unless explicitly dismissed

Categories

(Firefox for Android :: Onboarding, task, P2)

All
Android
task

Tracking

()

RESOLVED FIXED
119 Branch
Tracking Status
firefox110 --- wontfix
firefox111 --- wontfix
firefox112 --- wontfix
firefox119 --- verified

People

(Reporter: boek, Assigned: vdreghici)

References

(Blocks 1 open bug)

Details

(Whiteboard: [fxdroid] fakespot-android-mvp)

Attachments

(6 files)

From github: https://github.com/mozilla-mobile/fenix/issues/27033.

Title

During our investigations in Focus and planning, UX observed that our CFRs were not sticky and can therefore be dismissed unintentionally when trying to (for example) interact with web content and then miss important information.

Description

The CFRPopup has the flag dismissOnClickOutside (defaulted to true) which we can flip to ensure the popup is not mistakenly dismissed.

Deliverables

List all the CFR pops we have and investigate with UX which ones need to sticky or not.

cc: @jeffreygee

┆Issue is synchronized with this Jira Task

Change performed by the Move to Bugzilla add-on.

The severity field is not set for this bug.
:cpeterson, could you have a look please?

For more information, please visit auto_nag documentation.

Flags: needinfo?(cpeterson)
See Also: → 1819949

The language in this bug might be outdated. It looks like :jeffreygee summarized UX intentions at the end of the original Github ticket, per this.

If I'm reading that correctly, the result of the spike is "yes, CFR popups should be sticky until explicitly dismissed". I'm going to update this bug to represent that decision, but if I'm misinterpreting it, anyone is certainly welcome to help correct me - thanks!

Guideline from Jeff G:

After discussing with the team, here's our intended CFR behavior:

  • is dismissed when user hits close button (X) or action on CFR (i.e. href)
  • is not dismissed with an outside click
  • is not dismissed when the screen is rotated. @Mugurell's proposal (One approach we could try is still dismissing the CFR when the screen rotates but maybe after a small delay show it again.) seems like a good option to mediate this.
  • if user leaves and comes back, return user to last state (i.e. if user closes app during onboarding and re-opens, user should return to last state and see CFR again)
  • has no scrim behind it so the user isn't taken out of the experience
  • close button (X) has a touch target that follows accessibility guidelines (48x48dp on android, 44x44px on iOS)

Let me know if any questions. Happy to discuss! @Mugurell

Severity: -- → S4
Type: defect → task
Priority: -- → P2
Summary: [Spike] Investigate whether and which CFR popups should be sticky unless explicitly dismissed → Update CFR popups to be sticky unless explicitly dismissed
Whiteboard: [fxdroid]
Assignee: nobody → Vlad.DreghiciPopa

The recording in bug 1819949 comment 0 appears to show the CFR in the same Y position when the screen rotates between landscape to portrait orientation. Should the CFR move to the address bar at the bottom of the page in portrait orientation? What happens when the CFR is first shown in portrait orientation and then rotated to landscape orientation?

Flags: needinfo?(cpeterson)

The behavior of CFRs that use the CFRPopup from AC has been changed and now behave according to what Jeff G said here: https://github.com/mozilla-mobile/fenix/issues/27033#issuecomment-1302363014 . Also you can check it in the first video I attached.
The remaining problem here is the private browsing recommendation popup window, which is not using our CFRPopup composable, instead it is using the Android Popup Window widget (https://github.com/mozilla-mobile/fenix/blob/9822a2d65bdc29ec69a6918f77d229d097f39d9c/app/src/main/java/org/mozilla/fenix/home/HomeFragment.kt#L820=L860).
Currently this popup:

  • is automatically dismissed with an outside click
  • is not dismissed when the screen is rotated.

See second video for reference.
Currently I am working on finding a solution for this PopupWindow to behave as the CFRs do, if that won't work, a future proof solution would be to migrate it to a CFR as well.

Attached video First video.mp4
Attached video PrivateBrowsing.mp4
Whiteboard: [fxdroid] → [fxdroid] [needs-ux]
Whiteboard: [fxdroid] [needs-ux] → [fxdroid]

Removed [needs-ux] since the behavior is clear after having a discussion with the team.

Migrating the Popup for recommending Private Browsing Shortcut led to a slight change in its UI. Because of this, I am requesting approval from UX/UI for the following changes. Check before and after pictures below:

Attached image Before.png

A screenshot of the private browsing recommendation popup before migration to CFRPopup

Attached image After.png

A screenshot of the private browsing recommendation popup after migration to CFRPopup.

Whiteboard: [fxdroid] → [fxdroid][needs-ux]
Blocks: 1826740
Blocks: 1815428

:vlad, is the only difference the slight change in visual appearance? (No behavior changes?)

If so, to accelerate the completion of this bug, I'm comfortable making an executive decision on behalf of the design team, this is fine to move forward with.

Whiteboard: [fxdroid][needs-ux] → [fxdroid]

(In reply to Joe M [:jmahon] from comment #12)

:vlad, is the only difference the slight change in visual appearance? (No behavior changes?)

If so, to accelerate the completion of this bug, I'm comfortable making an executive decision on behalf of the design team, this is fine to move forward with.

^

Flags: needinfo?(Vlad.DreghiciPopa)

This bug might be nice to fix before we ship Fakespot in 119 so users don't accidentally dismiss the Fakespot CFR. This CFR might be the only in-product notification of the Fakespot feature.

(In reply to Joe M [:jmahon] from comment #12)

:vlad, is the only difference the slight change in visual appearance? (No behavior changes?)

If so, to accelerate the completion of this bug, I'm comfortable making an executive decision on behalf of the design team, this is fine to move forward with.

Perfect, I'll return to this and finish it!

Flags: needinfo?(Vlad.DreghiciPopa)
Whiteboard: [fxdroid] → [fxdroid] fakespot-android-mvp

Verified as fixed on Nightly 119.0a1 from 15.09.2023 with Google Pixel 7 Pro ( Android 14) and Motorola Moto G9 plus (Android 11).
The pop-up is dismissed in accordance with the guidelines from Jeff G (comment 3).

You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: