Closed Bug 2033002 Opened 7 months ago Closed 5 months ago

Build feedback modal shell and wire to thumbs actions

Categories

(Core :: Machine Learning: Frontend, task)

task

Tracking

()

VERIFIED FIXED
154 Branch
Tracking Status
relnote-firefox --- 152+
firefox152 --- verified
firefox153 --- verified
firefox154 --- verified

People

(Reporter: jlevinsohn, Assigned: echa)

References

Details

(Whiteboard: [aiasst])

Attachments

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

Build the full feedback modal experience for Smart Window, including structured feedback, preview of the report payload, and submission of complete feedback data.

  • Feedback UI (thumbs up/down and modal) is only available when pref smartwindow.user_feedback_collection is enabled

  • Clicking thumbs up or thumbs down opens the feedback modal

  • Modal uses the existing modal component

  • Modal includes:

    • title
    • checkbox-based feedback reasons
    • freeform feedback textarea (optional)
    • "Preview report" control
    • Cancel button
    • Submit button
    • close (x) button
  • User can select one or more checkbox reasons

  • User can enter optional freeform feedback

  • Cancel and close actions dismiss modal with no submission

  • "Preview report" opens a panel showing the full feedback payload

  • Preview report panel:

    • displays full payload (including chat context and metadata)
    • is scrollable
    • is not copyable
    • reflects the exact payload that will be submitted
  • Submitting feedback sends the full payload (as defined in the feedback spec)

  • Payload includes:

    • feedback type (thumbs up / thumbs down)
    • selected reasons
    • freeform feedback
    • associated conversation data and metadata
  • Payload generation is shared between preview and submission (no divergence)

  • Modal content and behavior match design

Figma Specs

See this example of the JSON payload.

Summary: Open feedback modal on thumbs up and preview JSON report → Build feedback modal shell and wire to thumbs actions
Duplicate of this bug: 2032994
No longer duplicate of this bug: 2032994
Duplicate of this bug: 2033011
Assignee: nobody → echa
  • Added a Spotlight-based user feedback modal
  • Wired thumbs up/down interactions in AI Window to open the feedback modal via a new FeedbackModal module
  • Introduced a new generic TextBox tile to support preview content in AboutWelcome/Spotlight
Attachment #9573647 - Attachment is obsolete: true

This patch introduces new textbox and checkbox tiles in About:Welcome, displays a read-only preview of the submitted chat log, and allows users to exclude page content from the report. The submitted chat payload is updated dynamically based on the checkbox state.

Blocks: 2046201
Depends on: 2034541
Pushed by echa@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/e3894339e638 https://hg.mozilla.org/integration/autoland/rev/35cc1ccb6773 Add Preview Report support to Smart Window feedback modal r=pdahiya,fluent-reviewers,omc-reviewers,bolsson,aminomancer
Status: NEW → RESOLVED
Closed: 5 months ago
Resolution: --- → FIXED
Target Milestone: --- → 154 Branch
  • Add Preview Report support to the Smart Window feedback modal
  • Introduce ContentToggle and TextboxTile components to the ASRouter multistage template
  • Dynamically update preview and chat log payload based on toggle state

Original Revision: https://phabricator.services.mozilla.com/D305368

Attachment #9600646 - Flags: approval-mozilla-beta?
  • Add Preview Report support to the Smart Window feedback modal
  • Introduce ContentToggle and TextboxTile components to the ASRouter multistage template
  • Dynamically update preview and chat log payload based on toggle state

Original Revision: https://phabricator.services.mozilla.com/D305368

Attachment #9600659 - Flags: approval-mozilla-release?

This issue is verified as fixed in our latest Nightly build 154.0a1 (2026-06-24), however I did come across 2 new issues logged here: Bug 2049971 and Bug 2049973.

QA Whiteboard: [qa-ver-needed-c154/b153]
QA Contact: rdoghi
Attachment #9600646 - Attachment is obsolete: true
Attachment #9600646 - Flags: approval-mozilla-beta?
Attachment #9600659 - Attachment is obsolete: true
Attachment #9600659 - Flags: approval-mozilla-release?
  • Add Preview Report support to the Smart Window feedback modal
  • Introduce ContentToggle and TextboxTile components to the ASRouter multistage template
  • Dynamically update preview and chat log payload based on toggle state

Original Revision: https://phabricator.services.mozilla.com/D305368

Attachment #9601475 - Flags: approval-mozilla-beta?
  • Add Preview Report support to the Smart Window feedback modal
  • Introduce ContentToggle and TextboxTile components to the ASRouter multistage template
  • Dynamically update preview and chat log payload based on toggle state

Original Revision: https://phabricator.services.mozilla.com/D305368

Attachment #9601479 - Flags: approval-mozilla-release?
Attachment #9601475 - Flags: approval-mozilla-beta? → approval-mozilla-beta+
Blocks: 2050630

Verified as fixed in our latest Beta Verified as fixed in our latest Beta 153.0b5

QA Whiteboard: [qa-ver-needed-c154/b153] → [qa-ver-needed-c154/b153][uplift]
Flags: in-testsuite+
Attachment #9601479 - Flags: approval-mozilla-release? → approval-mozilla-release+

Verified as fixed in our latest Release 152.0.4

Status: RESOLVED → VERIFIED
QA Whiteboard: [qa-ver-needed-c154/b153][uplift] → [qa-ver-done-c154/b153][uplift]

Release Note Request (optional, but appreciated)
[Why is this notable]: new smart window feedback mechanism
[Affects Firefox for Android]: no
[Suggested wording]: When you provide optional Smart Window response feedback, you can now choose from common reasons and review details.
[Links (documentation, blog post, etc)]: https://www.firefox.com/smart-window is needed to activate the feature and it's region restricted, so we should probably show the "progressive roll out" indicator

relnote-firefox: --- → ?

Added to the 152.0.4 relnotes.

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

Attachment

General

Created:
Updated:
Size: