Closed Bug 2091197 Opened 17 days ago Closed 13 days ago

Add a composer box for the users prompt

Categories

(Firefox :: Widgets, task)

task

Tracking

()

RESOLVED FIXED
162 Branch
Tracking Status
firefox162 --- fixed

People

(Reporter: fchasen, Assigned: fchasen)

References

(Blocks 1 open bug)

Details

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

Attachments

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

Add a basic composer box based off of smart-windows.

  • Only shows when a user is signed in
  • Displays the submit button as active after text is typed
  • Enter submits
  • Submitting should only emit an event in this patch

Adds a widget-composer element to the bottom of the sidebar panel for writing the widget prompt.

  • Enter sends a WidgetComposer:Submit event with the trimmed prompt.
  • Shift+Enter adds a new line.
  • Escape sends a WidgetComposer:Dismiss event.
  • Submit is disabled until the prompt has text.
  • Adds a "New widget" button that opens the composer.
  • Focusing the sidebar panel moves focus into the composer.

Adds a widget-composer element to the bottom of the sidebar panel for writing the widget prompt.

  • Enter sends a WidgetComposer:Submit event with the trimmed prompt.
  • Shift+Enter adds a new line.
  • Escape sends a WidgetComposer:Dismiss event.
  • Submit is disabled until the prompt has text.
  • Adds a "New widget" button that opens the composer.
  • Focusing the sidebar panel moves focus into the composer.

Adds a Lit reactive controller to track FxA sign-in status.

The widget studio subscribes to it with new AuthenticationController(this) and reads authenticated while rendering. Account changes update that boolean and request an update.

  • Observes UIState.ON_UPDATE to get changes to the account status.
  • Shows the composer and the "New widget" button only when signed in.
Attachment #9679012 - Attachment is obsolete: true
Attached image image.png —
Pushed by rperta@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/35b31af22130 https://hg.mozilla.org/integration/autoland/rev/6116fb012094 Revert "Bug 2091197 - Part 2: Only show the widget composer when authenticated. r=nina-py" for causing bc failures at browser/browser_generated_widgets.js

Backed out for causing bc failures at browser/browser_generated_widgets.js
Backout link
Push with failures
Failure log(s)

Flags: needinfo?(fchasen)
Status: NEW → RESOLVED
Closed: 13 days ago
Resolution: --- → FIXED
Target Milestone: --- → 162 Branch
Flags: needinfo?(fchasen)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: