Closed Bug 2091575 Opened 15 days ago Closed 8 hours ago

Add a placeholder while widgets are generating

Categories

(Firefox :: Widgets, task)

task

Tracking

()

RESOLVED FIXED
163 Branch
Tracking Status
firefox163 --- fixed

People

(Reporter: fchasen, Assigned: fchasen)

References

(Blocks 1 open bug)

Details

(Whiteboard: [hnt][hnt-wattle])

Attachments

(1 file, 2 external files, 3 obsolete files)

widget-placeholder.png

Show an animated sparkle while generating, with ~3 lines of the prompt below.

Attached image widget-placeholder.png —

Stop is now a pause icon, which returns the prompt to the composer.

Whiteboard: [hnt][hnt-wattle]

Adds widget generation error codes for the MLPA responses a user can act on.

  • Maps failed requests to auth, budget, rate_limit, capacity, network, or generation using the HTTP status and, when needed, the MLPA error code.
  • Uses service for all other model request failures.
  • Adds Fluent messages for widget generation and installation errors.
Assignee: nobody → fchasen
Status: NEW → ASSIGNED

The widget-placeholder component shows the submitted prompt while the widget is being created and an error message if creation fails.

  • Shows up to two lines of the submitted prompt.
  • If creation fails, shows the corresponding error message and a “Try again” button.
  • Dismissing the placeholder reopens the composer with the original prompt.
  • Announces the error with ariaNotify and restores focus to the placeholder if it had focus before the update.
  • Shows animated sparkles and a rotating gradient border during creation, with a static version for reduced motion and a solid border in contrast modes.
  • All open sidebars show the placeholder.
  • Keeps the error in each open sidebar until the user selects “Try again” there or starts a new widget.
Attachment #9687690 - Attachment is obsolete: true
Attachment #9687692 - Attachment is obsolete: true
Attachment #9687693 - Attachment is obsolete: true
Pushed by mconley@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/a9ecdb17da46 https://hg.mozilla.org/integration/autoland/rev/b41675fece53 Part 1: Report widget generation request errors by cause. r=nina-py,fluent-reviewers,flod https://github.com/mozilla-firefox/firefox/commit/2c9aa389f799 https://hg.mozilla.org/integration/autoland/rev/91c8c4065887 Part 2: Add a placeholder for pending and failed widgets. r=nina-py,fluent-reviewers,bolsson
Status: ASSIGNED → RESOLVED
Closed: 8 hours ago
Resolution: --- → FIXED
Target Milestone: --- → 163 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: