AITab - Highlights component
Categories
(Core :: Machine Learning: Frontend, task, P1)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox159 | --- | fixed |
People
(Reporter: omarg, Assigned: jlewis)
References
(Blocks 1 open bug)
Details
(Whiteboard: [aiaug])
Attachments
(2 files, 1 external file)
Create AITabRecommendation component - https://docs.google.com/document/d/1N8wKnboirKEGQuqewoyZKPzoN-_JA1Ebd-fsznmxKDI/edit?tab=t.0#bookmark=id.x44w6fc5uz6y
Additional details in: Bug 2061044
Updated•4 months ago
|
Updated•3 months ago
|
Updated•3 months ago
|
Comment 1•3 months ago
|
||
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.
Comment 2•3 months ago
|
||
Comment 3•3 months ago
|
||
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.
Updated•2 months ago
|
Comment 7•2 months ago
|
||
Backed out for causing bc failures @ browser/content/aiwindow/components/aitab-table.css
Backout link: https://hg.mozilla.org/integration/autoland/rev/0262c1e3ea76d43e77f4811ea132c3246857f6fd
Small import issue only caught in the packaged build, so missed by local testing + try pushes. Fixed!
Comment 10•2 months ago
|
||
Comment 11•2 months ago
|
||
Backed out for causing bc failures @ browser_protectionsUI_socialtracking.js
Backout link: https://hg.mozilla.org/integration/autoland/rev/ce1cb83f9d0092dfa888be45a4e77a51c0d3597f
Comment 13•2 months ago
|
||
Comment 14•2 months ago
|
||
| bugherder | ||
Comment 15•2 months ago
|
||
| bugherder | ||
Updated•1 month ago
|
Description
•