Open Bug 2014499 Opened 7 months ago Updated 13 days ago

Add a Groups section to the Smart Window mentions panel

Categories

(Core :: Machine Learning: Frontend, enhancement, P1)

enhancement
Points:
3

Tracking

()

ASSIGNED

People

(Reporter: mlucks, Assigned: chloezhou)

References

(Depends on 2 open bugs, Blocks 5 open bugs)

Details

(Whiteboard: [aiasst][input])

Attachments

(1 file)

Scope of this bug may change post MVP. I have a draft of this on my local (happy to share with whomever picks this up if it is not me) but I would anticipate we would need to refactor anyway, we can reassess when it is time to implement these enhancements.

Design: https://www.figma.com/design/5KuePTGmOEUFyCHBHCsGim/AI-Mode-%E2%80%94%C2%A0MVP-Scope-Design?m=dev

Blocks: 2059759
Blocks: 2059761

Summary

Rescoping this bug to cover the Groups section of the mentions panel, as part of tab group aware prompting (bug 2059706). “All Tabs” (bug 2059761) and view more (bug 2059759) are filed separately so this can land independently.

Add a groups section listing open tab groups.

Acceptance Criteria

  • A “Groups” section is rendered above the “Tabs” section in the mentions panel.
  • Each item displays the tab group label with the group color.
  • The number of groups displayed is capped at 5 and can be set with a preference.
  • Typing filters tab groups by label alongside the existing tab filtering.
  • “View more” is not part of this ticket.
  • Adding a “search input” for the mentions panel of the “+” menu is not part of this ticket.

Notes

Blocks: 2059706, 1994490
Depends on: 2059729, 2059730
Summary: Add Tab Groups, All Tabs and overflow/view more functionality to Tabs for Smart Window Mentions Panel → Add a Groups section to the Smart Window mentions panel
Whiteboard: [genai][input] → [aiasst]
Whiteboard: [aiasst] → [aiasst][input]
Blocks: 2059787
Priority: P2 → P1

Render open tab groups as a "Groups" section above the "Tabs" section in the mentions panel, sourced from TabManagementService.getTabGroups(). Each group shows a colored chicklet (the tab group color with the label's initial) and the group label, capped by a new browser.urlbar.mentions.maxGroupResults pref that is separate from the tab cap.

The tab group color tokens (--tab-group-*) live in the tabbrowser chrome sheet, which the AI window content document does not load, so they are imported into ai-window-shared.css and reused rather than duplicating the palette.

Group rows are non-interactive for now; selecting a group to mention is wired up separately (bug 2059787), and filtering groups while typing is deferred. Adds component and integration browser tests.

Assignee: nobody → chzhou
Status: NEW → ASSIGNED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: