Closed Bug 1691499 Opened 5 years ago Closed 4 years ago

Convert Learn More buttons to text links

Categories

(Toolkit Graveyard :: Notifications and Alerts, enhancement, P1)

enhancement

Tracking

(firefox88 verified)

VERIFIED FIXED
88 Branch
Tracking Status
firefox88 --- verified

People

(Reporter: mstriemer, Assigned: enndeakin)

References

(Blocks 1 open bug)

Details

(Whiteboard: [proton-infobars])

Attachments

(1 file)

There are a number of notification bars that include a "Learn More" button that links to a SUMO page. Since this is really a link rather than an action, they should be shown as text links.

Slide 24 of the infobars deck lists the infobars that need to be updated.

It would be good to update the NotificationBox.appendNotification() method to accept a supportLink argument that can be used to consistently create this link [1].

Current some of these are added as buttons [2] and others have a text link manually appended to the message [3].

[1] https://searchfox.org/mozilla-central/rev/7067bbd8194f4346ec59d77c33cd88f06763e090/devtools/client/shared/components/NotificationBox.js#115
[2] https://searchfox.org/mozilla-central/rev/7067bbd8194f4346ec59d77c33cd88f06763e090/browser/modules/ContentCrashHandlers.jsm#326
[3] https://searchfox.org/mozilla-central/rev/7067bbd8194f4346ec59d77c33cd88f06763e090/browser/actors/PluginParent.jsm#760

Assignee: nobody → enndeakin
Status: NEW → ASSIGNED
Attachment #9204187 - Attachment description: Bug 1691499, add a link field to notification bar buttons to use a link instead, convert learn more buttons in notification bars to links → Bug 1691499, add a link field to notification bar buttons to use a link instead, convert learn more buttons in notification bars to links, r=mstriemer

The design specifies that the links and buttons are on the left after the message text, whereas here they are still on the right. I wasn't clear what was going to happen when the message text wraps, but I just found an design image that shows that the link(s) should be part of the description, but the buttons should be on the next line. I'll see if I can change that in a second patch.

Component: Messaging System → Notifications and Alerts
Product: Firefox → Toolkit
Priority: P2 → P1

As per guidance from Vicky, for tracking, we're marking all the bugs that people are working on as P1.

Pushed by neil@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/36b76c196497 add a link field to notification bar buttons to use a link instead, convert learn more buttons in notification bars to links, r=mstriemer,fluent-reviewers,flod
Pushed by neil@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/adce7f3c1bbe add a link field to notification bar buttons to use a link instead, convert learn more buttons in notification bars to links, r=mstriemer,fluent-reviewers,flod
Flags: needinfo?(enndeakin)
Status: ASSIGNED → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → 88 Branch

Hey Neil - quick question: was it a deliberate decision to include the learn more button for content script hangs as well as add-on hangs? The link used to just be in add-on hangs and not in content script hangs.

Flags: needinfo?(enndeakin)

I wasn't intending to change which notifications had learn more links.

Flags: needinfo?(enndeakin)

Verified that "Learn how/Learn more" buttons were converted to text links for the following Info Bars:

  • Media decode error: Microsoft Media Feature
  • Media decode error: PulseAudio software
  • Part of a page crash report
  • Heartbeat
  • Disk space low < 5GB
  • Disk space low >5GB
    -Places locked
  • Extension script slowing down the browser.

Verified on Mac OS X 11, on Ubuntu 20.04, and on Windows 10x64 using the latest Nightly 88.0a1.

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

Attachment

General

Creator:
Created:
Updated:
Size: