Closed Bug 2081886 Opened 1 month ago Closed 1 month ago

Create smartwindow-chips from ai-website-chips component

Categories

(Core :: Machine Learning: Frontend, enhancement)

enhancement

Tracking

()

RESOLVED FIXED
161 Branch
Tracking Status
firefox161 --- fixed

People

(Reporter: giulia, Assigned: giulia)

References

(Blocks 1 open bug)

Details

(Whiteboard: [aiaug])

Attachments

(3 external files)

Create a new UI component called smartwindow-chips
It should reuse most of the ai-website-chips  and have three main variants:

  1. context - context chips in the chat (no changes to existing functionality/UI)
  2. inline - inline chips in the chat (no changes to existing functionality/UI)
  3. source (default) - used by chat-assistant-citations  and aitab components (new, but should keep the UI/functionality from the citations)

Important points:

  • Make sure the UI doesn't break on: light/dark modes, Nova/Non-Nova
  • Make sure all tests work
  • Replace all references of ai-website-chips

Figma: https://www.figma.com/design/9Lqoh8evbovlSdOq47tA54/~Nova~-Smart-Window-Library---Specs?node-id=3236-75446&m=dev

Assignee: nobody → gcardieri
Attachment #9663743 - Attachment description: WIP: Bug 2081886: Rename ai-website-chips to smartwindow-chips → Bug 2081886: Rename ai-website-chips to smartwindow-chips

Preserve the existing chip properties, templates and events.

Attachment #9663747 - Attachment description: WIP: Bug 2081886: Refactor and update smartwindow chips to have 3 types → Bug 2081886 - Use context and source types for smartwindow chips. r?#ai-frontend-reviewers-rotation!
Pushed by asilaghi@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/3df317e34b8b https://hg.mozilla.org/integration/autoland/rev/ca22ff0003df Revert "Bug 2081886: Rename ai-website-chips to smartwindow-chips r=flozia,urlbar-reviewers,adw" for causing bc and TV tests failures at aiwindow_grouped_chips.js

Backed out for causing bc and TV tests failures at aiwindow_grouped_chips.js
Backout Link
Push with failures
Failure Log
Failure line TEST-UNEXPECTED-FAIL | browser/components/aiwindow/ui/test/browser/browser_aiwindow_grouped_chips.js | test_tab_group_chip_click_opens_group - Uncaught exception in test - TypeError: can't access property "updateComplete", chip is null

Flags: needinfo?(gcardieri)
Flags: needinfo?(gcardieri)
QA Whiteboard: [qa-triage-done-c162/b161]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: