Closed Bug 2091574 Opened 15 days ago Closed 20 hours ago

Add prompt suggestions above the widget composer

Categories

(Firefox :: Widgets, task)

task
Points:
3

Tracking

()

RESOLVED FIXED
163 Branch
Tracking Status
firefox163 --- fixed

People

(Reporter: fchasen, Assigned: nina-py)

References

(Blocks 1 open bug)

Details

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

Attachments

(1 external file)

The widget studio needs a list of prompt suggestions in pills like the Smartwindow does.

  • Suggest 3 from a list of prompts in widgets.ftl
  • Need to be left aligned
  • Pill shows the header, but full prompt may need to be longer in the ftl file.
  • Suggestions go away as soon as the user starts typing a prompt.
Blocks: 2078928
No longer blocks: 2085192
Points: --- → 3

These pills are from smart window, but I didn't find a simple way to left align them so may need to re-implement.

Current list of suggestions from Figma is:

  • A plant watering schedule
  • A daily fitness tracker
  • A movie trivia quiz

Those should be the header for each message, but we'll want to have a longer prompt part of the message. (Not yet written)

Three prompt examples now show above the text field in Widget Studio.
Each is a short title, such as "A movie trivia quiz", and clicking one
puts a fuller prompt in the field to edit. The three examples are
picked at random from seven prompts that aren't finalised yet,
with a new pick each time the composer opens.

The examples hide as soon as someone types or clicks one, and come back
if the field is emptied, unless the tip from bug 2094493 is showing. A
click counts as typing for that tip, so the tip shows the first time
someone clicks an example.

Assignee: nobody → npypchenko
Status: NEW → ASSIGNED
Pushed by npypchenko@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/456d457a50b9 https://hg.mozilla.org/integration/autoland/rev/4754f9355e4b Add prompt suggestions above the widget composer r=fchasen,fluent-reviewers,bolsson
Status: ASSIGNED → RESOLVED
Closed: 20 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: