Open Bug 2059730 Opened 1 month ago Updated 28 days ago

Add a tabGroup mention type to the Smart Window mention data model

Categories

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

task
Points:
3

Tracking

()

People

(Reporter: flozia, Unassigned)

References

(Blocks 6 open bugs)

Details

(Whiteboard: [aiasst])

Summary

The Smart Window mention data model is keyed by URL, but a tab group has no URL. ContextWebsite requires a url, MentionData.id is the URL, and deduplication is done on URL in multiple places. Referencing a tab group as context requires a mention type that is identified by group id instead.

Acceptance Criteria

  • ContextWebsite supports type: "tabGroup" variant with groupId and color and can be identified with no url.
  • MentionData.id accepts a group:<groupId> value for tab group mentions.
  • Deduplication in SmartbarInputUtils.getMentionSuggestions(), SmartbarInput.getResolvedContextWebsites() and ai-window.#calculateCurrentMentions() has tab group entries keyed by groupId.
  • removeContextMention() accepts a URL or groupId.
  • Unit test coverage
Blocks: 2059755
Blocks: 2014499
Blocks: 2059782
Blocks: 2059787
Points: --- → 3
Priority: -- → P1
You need to log in before you can comment on or make changes to this bug.