Closed Bug 2061052 Opened 4 months ago Closed 2 months ago

AITab - Highlights component

Categories

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

task
Points:
3

Tracking

()

RESOLVED FIXED
159 Branch
Tracking Status
firefox159 --- fixed

People

(Reporter: omarg, Assigned: jlewis)

References

(Blocks 1 open bug)

Details

(Whiteboard: [aiaug])

Attachments

(2 files, 1 external file)

Points: --- → 3
Summary: AITab - Recommendation component → AITab - Highlights component
No longer blocks: 2055912
Blocks: 2055912

Clarified spec now that UX is complete:

Summary

Render the Highlights component for a set of evidence-backed statements that share a theme or parallel construction. Each statement pairs a bold claim with a supporting sentence of evidence.

Acceptance Criteria (frontend)

  • Render a Highlights container with an optional title naming the shared theme.
  • Render 3 to 5 statement rows, each with a bold statement and a supporting sentence of evidence.
  • Support an optional eyebrow label above each statement (e.g. Morning / Afternoon / Evening).
  • Support optional source attribution chip(s) per statement, including more than one chip.
  • Separate statement rows with dividers.
  • Render statement and evidence in a two-column layout on wide widths; stack responsively at narrow widths.
  • Support statements with/without eyebrows and with/without source chips.
  • Handle long statement and evidence text via wrapping.

Notes

  • Content guidance below is for the LLM/models team, not FE:
    • Use Highlights for evidence-backed statements that are topically related or parallel in construction. Don't use for a single unrelated point (use Text block) or for comparable points (use Table).
    • 3 to 5 distinct statements, each carrying its own sentence of evidence.
    • Title optional (names the shared theme). Eyebrow optional (use only if it helps distinguish each point).
  • See attached screenshots.

Adds <aitab-highlights>, the Highlights block of an AITab page: an optional heading naming the shared theme and a list of evidence-backed statements. Each statement pairs a bold claim with the sentence of evidence beside it, with an optional eyebrow above the claim and source chips (reusing ai-website-chip) below the evidence. Statements are separated by dividers, sit in two columns at page width and stack when the block is narrow. aitab-page imports the component so the element is registered in about:aitab; mounting it from a page config is bug 2070256.

Ships with a Storybook story and browser-chrome tests alongside the other block components.

Assignee: nobody → jlewis
Attachment #9642724 - Attachment description: WIP: Bug 2061052 - Add the AITab highlights component → Bug 2061052 - Add the AITab highlights component
Status: NEW → ASSIGNED
Pushed by smolnar@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/6015de6bfe38 https://hg.mozilla.org/integration/autoland/rev/0262c1e3ea76 Revert "Bug 2061052 - Add the AITab highlights component r=mlucks" for causing bc failures @ browser/content/aiwindow/components/aitab-table.css

Small import issue only caught in the packaged build, so missed by local testing + try pushes. Fixed!

Flags: needinfo?(jlewis)
Pushed by smolnar@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/5e53549d766d https://hg.mozilla.org/integration/autoland/rev/ce1cb83f9d00 Revert "Bug 2061052 - Add the AITab highlights component r=mlucks" browser_protectionsUI_socialtracking.js

Backed out by mistake
relanded

Flags: needinfo?(jlewis)
Status: ASSIGNED → RESOLVED
Closed: 2 months ago
Resolution: --- → FIXED
Target Milestone: --- → 159 Branch
QA Whiteboard: [qa-triage-done-c160/b159]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: