Skip to content

Open-source agentic AI Search Execution Platform. Track AI visibility, find opportunities, and let agents turn signals into prioritized actions and drafted fixes across ChatGPT, Claude, Gemini, Google AI Overviews, Google AI Mode, Perplexity, Grok, and Microsoft Copilot.

feat(content-editor): confirm a category intro's counts and prices, Trust's intro facts (CE-054, part b) (#1500)

Cihan78bbc0b831ab
diff --git a/web/messages/en.json b/web/messages/en.json
index 193ef733a..f555ec5b7 100644
--- a/web/messages/en.json
+++ b/web/messages/en.json
@@ -4796,6 +4796,12 @@
"detailWrite": "Comparison readers trust a date they can see: write when you last checked the products",
"done": "The page shows when it was last checked"
},
+ "introFacts": {
+ "title": "Confirm the intro's facts",
+ "next": "confirm the intro's facts, once you've checked them",
+ "detail": "Its counts and prices: only you know they're right. Check them against your catalog, then confirm. {facts}{more, plural, =0 {} one { and # more} other { and # more}}",
+ "done": "You confirmed the intro's facts"
+ },
"shippingReturns": {
"title": "Say how shipping and returns work",
"next": "say how shipping and returns work",
@@ -4915,7 +4921,8 @@
"pickReviewer": "Pick now",
"addImage": "Add now",
"addCheckDate": "Add now",
- "confirmCase": "Confirm now"
+ "confirmCase": "Confirm now",
+ "confirmIntro": "Confirm now"
},
"later": "Later"
},
diff --git a/web/src/app/[locale]/(dashboard)/dashboard/content/editor/[draftId]/_draft-editor.tsx b/web/src/app/[locale]/(dashboard)/dashboard/content/editor/[draftId]/_draft-editor.tsx
index 1deeaefce..13f77ece0 100644
--- a/web/src/app/[locale]/(dashboard)/dashboard/content/editor/[draftId]/_draft-editor.tsx
+++ b/web/src/app/[locale]/(dashboard)/dashboard/content/editor/[draftId]/_draft-editor.tsx
@@ -136,6 +136,7 @@ import {
weighedTrust,
} from '@/lib/content/quality-profiles';
import { caseConfirmed, caseKey, proofKey, qualityTodos } from '@/lib/content/quality-todos';
+import { confirmedFacts, introConfirmKeys, introFacts } from '@/lib/content/intro-facts';
import { isByline, readability, sentencesOf, withTypeRules } from '@/lib/content/readability';
import { normalizeDomain } from '@/lib/citations/classify';
import { brandFactsPath, factMismatches } from '@/lib/content/brand-facts';
@@ -859,6 +860,8 @@ export function DraftEditor({
// Phase 3 (CE-052): a customer case is confirmed publishable, not linked.
const casesOn = sourcesOn && qualityPhase() >= 3;
const [caseConfirms, setCaseConfirms] = useState<ReadonlySet<string> | null>(null);
+ // A category intro's facts the person confirmed (CE-054), read with the cases'.
+ const [introConfirms, setIntroConfirms] = useState<ReadonlySet<string> | null>(null);
// Whether they're read (or failed): until then a case's to-do waits, so
// one confirmed before doesn't show open.
const [casesRead, setCasesRead] = useState(false);
@@ -877,6 +880,13 @@ export function DraftEditor({
...(prev ?? []),
]),
);
+ setIntroConfirms(
+ (prev) =>
+ new Set([
+ ...rows.filter((r) => r.kind === 'intro_fact').map((r) => r.key),
+ ...(prev ?? []),
+ ]),
+ );
})
.catch((err) => {
// A failed call (the network, a deploy): the confirms made so far, so E-E-A-T scores.
@@ -884,11 +894,27 @@ export function DraftEditor({
if (!live) return;
setCasesRead(true);
setCaseConfirms((prev) => prev ?? new Set());
+ setIntroConfirms((prev) => prev ?? new Set());
});
return () => {
live = false;
};
}, [draft.id, casesOn]);
+ // Phase 3 (CE-054): a category intro's counts and prices, in the page's
+ // language, and the facts the person confirmed. Trust counts them at once
+ // (none confirmed until the confirms are read, as a customer case); the
+ // to-do waits for the read.
+ const introOn = casesOn && profile === 'category';
+ const intro = useMemo(
+ () => (introOn ? introFacts(pageHtml, language) : []),
+ [introOn, pageHtml, language],
+ );
+ const introConfirmed = useMemo(() => confirmedFacts(introConfirms ?? []), [introConfirms]);
+ const introAll = useMemo(() => [...new Set(intro.flatMap((fact) => fact.facts))], [intro]);
+ const introRead = useMemo(
+ () => (introOn && casesRead ? { facts: intro, confirmed: introConfirmed } : null),
+ [introOn, casesRead, intro, introConfirmed],
+ );
// The page's customer cases, and how many are confirmed: E-E-A-T's (CE-052).
const caseCount = useMemo(() => {
if (!casesOn) return null;
@@ -1036,6 +1062,30 @@ export function DraftEditor({
);
// Confirm: only the person can tell their own image from stock.
const [confirmingImages, setConfirmingImages] = useState(false);
+ // Quality's Confirm on a category intro's facts (CE-054): the person's
+ // word that its counts and prices are right, the ones not confirmed yet in
+ // one row; put back if it can't be saved.
+ const confirmIntro = async () => {
+ const keys = introConfirmKeys(introAll.filter((fact) => !introConfirmed.has(fact)));
+ if (!keys.length) return;
+ setIntroConfirms((prev) => new Set([...(prev ?? []), ...keys]));
+ const takeBack = (back: string[]) =>
+ setIntroConfirms((prev) => new Set([...(prev ?? [])].filter((had) => !back.includes(had))));
+ for (const [i, key] of keys.entries()) {
+ try {
+ if ((await confirmDraftItem(draft.id, 'intro_fact', key)) === 'full') {
+ takeBack(keys.slice(i));
+ toast.error(t('quality.confirmCaseFull'));
+ return;
+ }
+ } catch (err) {
+ console.error('Failed to confirm the intro facts:', err);
+ takeBack(keys.slice(i));
+ toast.error(t('quality.confirmCaseFailed'));
+ return;
+ }
+ }
+ };
// Quality's Confirm on a customer case (CE-052): the person's statement
// that the customer may be named; put back if it can't be saved.
const confirmCase = async (key: string) => {
@@ -1113,6 +1163,12 @@ export function DraftEditor({
// A product page's shipping and returns (CE-052), price and stock (CE-053).
shipping: shippingRead,
feed: feedRead,
+ intro: introOn
+ ? {
+ total: introAll.length,
+ confirmed: introAll.filter((fact) => introConfirmed.has(fact)).length,
+ }
+ : null,
now: Date.now(),
}),
weights.trust,
@@ -1122,6 +1178,9 @@ export function DraftEditor({
weights,
shippingRead,
feedRead,
+ introOn,
+ introAll,
+ introConfirmed,
qualityOn,
pageBlocks,
linkChecks,
@@ -1265,6 +1324,7 @@ export function DraftEditor({
confirmed: authorConfirmed,
shipping: shippingRead,
cases: casesOn ? (caseConfirms ?? new Set<string>()) : null,
+ intro: introRead,
checkDate:
checkDateRead === null ? null : { ...checkDateRead, line: checkDateText(language) },
off: checksOff(profile),
@@ -3468,6 +3528,7 @@ export function DraftEditor({
onPickReviewer={() => setReviewerMenuOpen(true)}
onAddCheckDate={htmlSource === null ? addCheckDate : undefined}
onConfirmCase={(key) => void confirmCase(key)}
+ onConfirmIntro={() => void confirmIntro()}
onAddInput={addInput}
onAddSource={sourcesOn ? addSource : undefined}
onConfirmImages={() => setConfirmingImages(true)}
@@ -3512,6 +3573,7 @@ export function DraftEditor({
onPickReviewer={() => setReviewerMenuOpen(true)}
onAddCheckDate={htmlSource === null ? addCheckDate : undefined}
onConfirmCase={(key) => void confirmCase(key)}
+ onConfirmIntro={() => void confirmIntro()}
onChangeType={() => setTypeMenuOpen(true)}
handOff={handOffCard}
yourInput={inputsRead.status === 'off' ? null : inputsRead}
diff --git a/web/src/app/[locale]/(dashboard)/dashboard/content/editor/[draftId]/_next-nudge.tsx b/web/src/app/[locale]/(dashboard)/dashboard/content/editor/[draftId]/_next-nudge.tsx
index 879e64e48..d6bb36f25 100644
--- a/web/src/app/[locale]/(dashboard)/dashboard/content/editor/[draftId]/_next-nudge.tsx
+++ b/web/src/app/[locale]/(dashboard)/dashboard/content/editor/[draftId]/_next-nudge.tsx
@@ -97,6 +97,7 @@ export function NextNudge({
onPickReviewer,
onAddCheckDate,
onConfirmCase,
+ onConfirmIntro,
onLater,
onAct,
}: {
@@ -117,6 +118,7 @@ export function NextNudge({
onPickReviewer?: () => void;
onAddCheckDate?: () => void;
onConfirmCase?: (key: string) => void;
+ onConfirmIntro?: () => void;
onLater: () => void;
/** It was acted on: it goes. */
onAct: () => void;
@@ -238,6 +240,19 @@ export function NextNudge({
{t('act.confirmCase')}
</button>
)
+ ) : action === 'confirmIntro' ? (
+ onConfirmIntro && (
+ <button
+ type="button"
+ className={actClass}
+ onClick={() => {
+ onAct();
+ onConfirmIntro();
+ }}
+ >
+ {t('act.confirmIntro')}
+ </button>
+ )
) : action === 'addCheckDate' ? (
onAddCheckDate && (
<button
diff --git a/web/src/app/[locale]/(dashboard)/dashboard/content/editor/[draftId]/_quality-tab.test.tsx b/web/src/app/[locale]/(dashboard)/dashboard/content/editor/[draftId]/_quality-tab.test.tsx
index 59968860f..d4c85e2ac 100644
--- a/web/src/app/[locale]/(dashboard)/dashboard/content/editor/[draftId]/_quality-tab.test.tsx
+++ b/web/src/app/[locale]/(dashboard)/dashboard/content/editor/[draftId]/_quality-tab.test.tsx
@@ -98,6 +98,7 @@ const onAddImage = vi.fn();
const onPickReviewer = vi.fn();
const onChangeType = vi.fn();
const onConfirmAuthor = vi.fn();
+const onConfirmIntro = vi.fn();
async function render(quality: QualityRead | Readability | null, handOff: HandOff | null = null) {
const q = quality && 'eeat' in quality ? quality : read(quality as Readability | null);
@@ -118,6 +119,7 @@ async function render(quality: QualityRead | Readability | null, handOff: HandOf
onChangeType={onChangeType}
handOff={handOff}
onConfirmAuthor={onConfirmAuthor}
+ onConfirmIntro={onConfirmIntro}
/>
</NextIntlClientProvider>,
);
@@ -130,6 +132,7 @@ beforeEach(() => {
onKeep.mockReset();
onAddSource.mockReset();
onConfirmAuthor.mockReset();
+ onConfirmIntro.mockReset();
container = document.createElement('div');
root = createRoot(container);
});
@@ -196,6 +199,31 @@ describe('QualityTab', () => {
expect(container.textContent).not.toContain("Price and stock aren't checked");
});
+ it('asks a category page to confirm its intro’s counts and prices, quoting them (CE-054)', async () => {
+ await render({
+ ...read(result),
+ todos: [
+ {
+ id: 'introFacts',
+ done: false,
+ gain: 12,
+ score: 'trust',
+ action: 'confirmIntro',
+ count: 2,
+ facts: ['Choose from 120+ daypacks.', 'Prices run $49–$199.'],
+ },
+ ],
+ });
+ const row = [...container.querySelectorAll('[aria-label="Your to-dos"] li')].find((li) =>
+ li.textContent?.startsWith("Confirm the intro's facts"),
+ )!;
+ expect(row.textContent).toContain('“Choose from 120+ daypacks.” “Prices run $49–$199.”');
+ await act(async () =>
+ [...row.querySelectorAll('button')].find((b) => b.textContent === 'Confirm')!.click(),
+ );
+ expect(onConfirmIntro).toHaveBeenCalled();
+ });
+
it('names the page type’s rules not met yet, and a product page’s shipping to-do (CE-052)', async () => {
const typed: Readability = {
...result,
diff --git a/web/src/app/[locale]/(dashboard)/dashboard/content/editor/[draftId]/_quality-tab.tsx b/web/src/app/[locale]/(dashboard)/dashboard/content/editor/[draftId]/_quality-tab.tsx
index 3743d3ea1..88e659c1a 100644
--- a/web/src/app/[locale]/(dashboard)/dashboard/content/editor/[draftId]/_quality-tab.tsx
+++ b/web/src/app/[locale]/(dashboard)/dashboard/content/editor/[draftId]/_quality-tab.tsx
@@ -34,6 +34,9 @@ import { CATALOG_SETTINGS_PATH } from '@/lib/content/feed-match';
import { cn } from '@/lib/utils';
import { MANAGE_AUTHORS_PATH } from './_author-menu';
+/** The intro's sentences its to-do quotes, at most (CE-054). */
+const INTRO_QUOTED = 3;
+
/** What Quality reads from the draft and its author, for the segment and the header. */
export interface QualityRead {
/**
@@ -158,6 +161,7 @@ export function QualityTab({
onPickReviewer,
onAddCheckDate,
onConfirmCase,
+ onConfirmIntro,
handOff = null,
onConfirmAuthor,
onChangeType,
@@ -191,6 +195,8 @@ export function QualityTab({
onAddCheckDate?: () => void;
/** A customer case's Confirm: the person says the customer may be named (CE-052). */
onConfirmCase?: (key: string) => void;
+ /** Phase 3 (CE-054): confirms a category intro's facts, all at once. */
+ onConfirmIntro?: () => void;
/** Hand it off to Content Agent (CE-051): with Quality's phase 2. */
handOff?: HandOff | null;
}) {
@@ -306,6 +312,7 @@ export function QualityTab({
onPickReviewer={onPickReviewer}
onAddCheckDate={onAddCheckDate}
onConfirmCase={onConfirmCase}
+ onConfirmIntro={onConfirmIntro}
onConfirm={onConfirmAuthor}
/>
))}
@@ -466,6 +473,23 @@ export function useTodoCopy() {
: t('byline.detail.pickAuthor', { byline: team }),
};
}
+ // A category intro's counts and prices (CE-054): only the person knows them.
+ if (todo.id === 'introFacts') {
+ const facts = todo.facts ?? [];
+ return {
+ title: t('introFacts.title'),
+ next: t('introFacts.next'),
+ detail: todo.done
+ ? t('introFacts.done')
+ : t('introFacts.detail', {
+ facts: facts
+ .slice(0, INTRO_QUOTED)
+ .map((fact) => `“${fact}”`)
+ .join(' '),
+ more: Math.max(0, facts.length - INTRO_QUOTED),
+ }),
+ };
+ }
// The page's own claims, their proof asked for by kind and business (CE-049).
// A customer case in Phase 3 (CE-052): confirmed publishable, not linked.
if (todo.id === 'proof' && todo.proof && todo.action === 'confirmCase') {
@@ -619,6 +643,7 @@ function TodoRow({
onPickReviewer,
onAddCheckDate,
onConfirmCase,
+ onConfirmIntro,
onConfirm,
}: {
todo: QualityTodo;
@@ -635,6 +660,8 @@ function TodoRow({
onAddCheckDate?: () => void;
/** A customer case's Confirm: the person says the customer may be named (CE-052). */
onConfirmCase?: (key: string) => void;
+ /** Phase 3 (CE-054): confirms a category intro's facts, all at once. */
+ onConfirmIntro?: () => void;
onConfirm?: (what: 'real' | 'profile', on: boolean) => void;
}) {
const t = useTranslations('contentEditor.editor.quality');
@@ -769,6 +796,12 @@ function TodoRow({
{t('confirmCase')}
</Button>
)
+ ) : todo.action === 'confirmIntro' ? (
+ onConfirmIntro && (
+ <Button variant="outline" size="sm" className="h-7 shrink-0" onClick={onConfirmIntro}>
+ {t('confirmCase')}
+ </Button>
+ )
) : todo.action === 'addCheckDate' ? (
onAddCheckDate && (
<Button variant="outline" size="sm" className="h-7 shrink-0" onClick={onAddCheckDate}>
diff --git a/web/src/app/[locale]/(dashboard)/dashboard/content/editor/[draftId]/_side-panel.tsx b/web/src/app/[locale]/(dashboard)/dashboard/content/editor/[draftId]/_side-panel.tsx
index fcfb8d12c..956a8a08f 100644
--- a/web/src/app/[locale]/(dashboard)/dashboard/content/editor/[draftId]/_side-panel.tsx
+++ b/web/src/app/[locale]/(dashboard)/dashboard/content/editor/[draftId]/_side-panel.tsx
@@ -141,6 +141,7 @@ export function EditorSidePanel({
onPickReviewer,
onAddCheckDate,
onConfirmCase,
+ onConfirmIntro,
onChangeType,
handOff = null,
}: {
@@ -215,6 +216,8 @@ export function EditorSidePanel({
onAddCheckDate?: () => void;
/** Quality's Confirm on a customer case (CE-052). */
onConfirmCase?: (key: string) => void;
+ /** Quality's Confirm on a category intro's facts (CE-054). */
+ onConfirmIntro?: () => void;
/** Quality's Change: the header's page type menu (CE-052). */
onChangeType?: () => void;
/** Hand it off to Content Agent, Quality's (CE-051). */
@@ -473,6 +476,7 @@ export function EditorSidePanel({
onPickReviewer={onPickReviewer}
onAddCheckDate={onAddCheckDate}
onConfirmCase={onConfirmCase}
+ onConfirmIntro={onConfirmIntro}
onChangeType={onChangeType}
handOff={handOff}
/>
diff --git a/web/src/app/[locale]/(dashboard)/dashboard/content/editor/[draftId]/page.test.tsx b/web/src/app/[locale]/(dashboard)/dashboard/content/editor/[draftId]/page.test.tsx
index 24d98d366..a1a603e73 100644
--- a/web/src/app/[locale]/(dashboard)/dashboard/content/editor/[draftId]/page.test.tsx
+++ b/web/src/app/[locale]/(dashboard)/dashboard/content/editor/[draftId]/page.test.tsx
@@ -3247,6 +3247,72 @@ describe('the side panel', () => {
expect(link?.textContent).toBe('the fastest forecasting app');
});
+ it('asks a category page to confirm its intro’s facts, kept by the facts, in phase 3 (CE-054)', async () => {
+ process.env.NEXT_PUBLIC_CONTENT_QUALITY_PHASE = '3';
+ vi.useFakeTimers({ toFake: ['setTimeout', 'clearTimeout'] });
+ const facts = ['Choose from 120+ daypacks for every trail.', 'Prices run $49–$199.'];
+ // One fact confirmed before, in other words.
+ getDraftConfirmations.mockResolvedValue([{ kind: 'intro_fact', key: 'intro:120+' }]);
+ getContentDraft.mockResolvedValue({
+ ...claimed,
+ pageType: 'category_page',
+ bodyHtml: `<h1>Daypacks</h1><p>${facts.join(' ')}</p><h2>All daypacks</h2><p>Packs for wet hikes.</p>`,
+ });
+ window.innerWidth = 1440;
+ await renderPage();
+ await act(async () => void (await vi.advanceTimersByTimeAsync(3_000)));
+ const chip = [...container.querySelectorAll<HTMLButtonElement>('header button')].find((b) =>
+ b.textContent?.startsWith('Quality'),
+ )!;
+ await act(async () => chip.click());
+ const row = () =>
+ [...panel()!.querySelectorAll('[aria-label="Your to-dos"] li')].find((li) =>
+ li.textContent?.startsWith("Confirm the intro's facts"),
+ )!;
+ // Only the open one is quoted.
+ expect(row().textContent).toContain(`“${facts[1]}”`);
+ expect(row().textContent).not.toContain(`“${facts[0]}”`);
+ await act(async () =>
+ [...row().querySelectorAll('button')].find((b) => b.textContent === 'Confirm')!.click(),
+ );
+ // One row for the facts not confirmed yet.
+ expect(confirmDraftItem).toHaveBeenCalledTimes(1);
+ expect(confirmDraftItem).toHaveBeenCalledWith('d1', 'intro_fact', 'intro:USD49-199');
+ expect(row().textContent).toContain("You confirmed the intro's facts");
+ });
+
+ it('takes an intro confirm back when it can’t be saved (CE-054)', async () => {
+ process.env.NEXT_PUBLIC_CONTENT_QUALITY_PHASE = '3';
+ vi.useFakeTimers({ toFake: ['setTimeout', 'clearTimeout'] });
+ vi.spyOn(console, 'error').mockImplementation(() => {});
+ confirmDraftItem.mockResolvedValue('full');
+ getContentDraft.mockResolvedValue({
+ ...claimed,
+ pageType: 'category_page',
+ bodyHtml: '<h1>Daypacks</h1><p>Choose from 120+ daypacks.</p><h2>All</h2><p>Packs.</p>',
+ });
+ window.innerWidth = 1440;
+ await renderPage();
+ await act(async () => void (await vi.advanceTimersByTimeAsync(3_000)));
+ const chip = [...container.querySelectorAll<HTMLButtonElement>('header button')].find((b) =>
+ b.textContent?.startsWith('Quality'),
+ )!;
+ await act(async () => chip.click());
+ const row = () =>
+ [...panel()!.querySelectorAll('[aria-label="Your to-dos"] li')].find((li) =>
+ li.textContent?.startsWith("Confirm the intro's facts"),
+ )!;
+ await act(async () =>
+ [...row().querySelectorAll('button')].find((b) => b.textContent === 'Confirm')!.click(),
+ );
+ // Full: still open, Confirm there to try again.
+ expect(row().textContent).not.toContain("You confirmed the intro's facts");
+ expect([...row().querySelectorAll('button')].some((b) => b.textContent === 'Confirm')).toBe(
+ true,
+ );
+ vi.mocked(console.error).mockRestore();
+ });
+
it('asks a feature page to confirm a customer case may be published, in phase 3 (CE-052)', async () => {
process.env.NEXT_PUBLIC_CONTENT_QUALITY_PHASE = '3';
vi.useFakeTimers({ toFake: ['setTimeout', 'clearTimeout'] });
diff --git a/web/src/lib/content/intro-facts.test.ts b/web/src/lib/content/intro-facts.test.ts
new file mode 100644
index 000000000..c04c37814
--- /dev/null
+++ b/web/src/lib/content/intro-facts.test.ts
@@ -0,0 +1,98 @@
+import { describe, expect, it } from 'vitest';
+import { confirmedFacts, introConfirmKeys, introFacts } from './intro-facts';
+
+/** A category page's intro facts (Quality spec §11, CE-054). */
+
+const page = (intro: string, rest = '<h2>All daypacks</h2><p>Over 200 daypacks in stock.</p>') =>
+ `<h1>Daypacks</h1>${intro}${rest}`;
+const facts = (intro: string, language = 'en') =>
+ introFacts(page(`<p>${intro}</p>`), language).flatMap((fact) => fact.facts);
+
+describe('introFacts', () => {
+ it('reads the intro’s counts and prices, each sentence once, each fact as itself', () => {
+ expect(
+ introFacts(
+ page(
+ '<p>Choose from 120+ daypacks for every trail. They are made to last.</p>' +
+ '<p>Prices run $49–$199, and most are under $100.</p>',
+ ),
+ ),
+ ).toEqual([
+ { sentence: 'Choose from 120+ daypacks for every trail.', facts: ['120+'] },
+ { sentence: 'Prices run $49–$199, and most are under $100.', facts: ['USD49-199', 'USD100'] },
+ ]);
+ for (const [intro, fact] of [
+ ['Over 50 styles in stock.', '50+'],
+ ['More than 40 models to pick from.', '40+'],
+ ['Shop 24 colours.', '24+'],
+ ['Choose from 1,200 designs.', '1200+'],
+ ['12 models for city and trail.', '12'],
+ ["50'den fazla model.", '50+'],
+ ['Über 30 Modelle im Shop.', '30+'],
+ ['Plus de 20 modèles.', '20+'],
+ ['Más de 30 modelos.', '30+'],
+ ['From €49.', 'EUR49'],
+ ]) {
+ expect(facts(intro), intro).toEqual([fact]);
+ }
+ });
+
+ it('reads no fact in what isn’t one (#CE-054 review)', () => {
+ for (const intro of [
+ // Time, distance, an age, a sun factor, ways and trails.
+ 'Over 10 years of experience.',
+ 'Über 20 Jahre Erfahrung.',
+ 'Get 4+ hours of battery.',
+ 'Over 50 km of trails.',
+ 'Toys for ages 3+.',
+ 'SPF 50+ sunscreens.',
+ 'Shop 3 ways.',
+ 'Explore 5 trails.',
+ // A year, a size, steps.
+ 'Shop 2026 styles.',
+ 'Since 2009, packs from 20 to 40 litres, in 3 easy steps.',
+ // A shipping threshold is no price of the category's.
+ 'Free shipping over $50.',
+ '500 TL üzeri kargo bedava.',
+ // No number at all.
+ 'Packs for wet hikes and long days.',
+ ]) {
+ expect(facts(intro), intro).toEqual([]);
+ }
+ });
+
+ it('reads only the intro, a line break and a nested list apart, in the page’s language', () => {
+ // After the first H2 isn't the intro.
+ expect(introFacts(page('<p>Packs for wet hikes.</p>'))).toEqual([]);
+ expect(introFacts('<p>120+ daypacks.</p>')).toHaveLength(1);
+ expect(
+ introFacts(page('<p>Over 50 styles.<br>Under $100 each.</p>')).map((f) => f.sentence),
+ ).toEqual(['Over 50 styles.', 'Under $100 each.']);
+ expect(
+ introFacts(page('<ul><li>Over 50 styles<ul><li>Under $100</li></ul></li></ul>')).map(
+ (f) => f.sentence,
+ ),
+ ).toEqual(['Over 50 styles', 'Under $100']);
+ });
+});
+
+describe('introConfirmKeys and confirmedFacts', () => {
+ it('keeps a confirm by its facts: rewording keeps it, a changed number asks again', () => {
+ const keys = introConfirmKeys(['USD49-199', '120+', '120+']);
+ expect(keys).toEqual(['intro:120+,USD49-199']);
+ const confirmed = confirmedFacts([...keys, 'case:acmecutcosts']);
+ expect([...confirmed].sort()).toEqual(['120+', 'USD49-199']);
+ // The same facts in other words are confirmed; a new count isn't.
+ const reworded = facts('Pick from 120+ daypacks, each made to last.');
+ expect(reworded.every((fact) => confirmed.has(fact))).toBe(true);
+ expect(facts('Choose from 140+ daypacks.').some((fact) => confirmed.has(fact))).toBe(false);
+ });
+
+ it('splits facts over keys of 400 characters at most', () => {
+ const many = Array.from({ length: 80 }, (_, i) => `USD${1000 + i}`);
+ const keys = introConfirmKeys(many);
+ expect(keys.length).toBeGreaterThan(1);
+ expect(keys.every((key) => key.length <= 400 && key.startsWith('intro:'))).toBe(true);
+ expect(confirmedFacts(keys).size).toBe(80);
+ });
+});
diff --git a/web/src/lib/content/intro-facts.ts b/web/src/lib/content/intro-facts.ts
new file mode 100644
index 000000000..8fdd67f1a
--- /dev/null
+++ b/web/src/lib/content/intro-facts.ts
@@ -0,0 +1,142 @@
+import { pagePrices, priceRanges } from './brand-facts';
+import { languageCode, ownText, sentencesOf } from './readability';
+
+/**
+ * A category page's intro facts (Content Editor Quality spec §11, Phase 3,
+ * CE-054): Trust counts "correct counts and price range", and the typical
+ * to-do is "Confirm intro facts". How many products the category has and
+ * what they cost are the brand's own: no source says them, so only the
+ * person can confirm them (00280's confirmations, kind intro_fact), as a
+ * customer case is confirmed (CE-052).
+ *
+ * A confirm is kept by the facts themselves ("120+", "USD49-199"), not the
+ * sentence's words: rewording the intro keeps it, and a changed number asks
+ * again for that fact alone.
+ */
+
+/** A sentence of the intro that states counts or prices, each as its fact. */
+export interface IntroFact {
+ sentence: string;
+ /** Its facts: a count ("120+", "50") or a price ("USD49", "USD49-199"). */
+ facts: string[];
+}
+
+/** Before a number, a word that says it counts what the category has: "over 50", "choose from 24". */
+const COUNT_WORDS = String.raw`over|more\s+than|nearly|almost|choose\s+from|shop|browse|explore|discover|über|mehr\s+als|plus\s+de|más\s+de|oltre|mais\s+de|meer\s+dan`;
+/**
+ * A count: its leading word, the number, a "+" or "'den fazla", and the
+ * word or two it counts ("120+ daypacks", "over 50 styles", "50'den fazla
+ * model", "24 colours").
+ */
+const COUNT = new RegExp(
+ String.raw`(?<lead>(?<!\p{L})(?:${COUNT_WORDS})\s+)?(?<![\d.,])(?<n>\d[\d.,]*)(?<more>\+|['’]?(?:den|dan|ten|tan)\s+fazla)?\s+(?<w1>\p{L}+)(?:\s+(?<w2>\p{L}+))?`,
+ 'giu',
+);
+/** Products a number names outright, in the languages read: a count with no other word. */
+const PRODUCT_WORDS =
+ /^(?:products|items|styles|models|designs|colou?rs|options|brands|pieces|ürün|ürünü|model|çeşit|renk|produkte|modelle|artikel|produits|modèles|productos|modelos|prodotti|modelli)$/iu;
+/**
+ * What a number counts that isn't the category's products: time, distance,
+ * weight, volume, an age, steps or ways ("Over 10 years of experience",
+ * "4+ hours of battery", "Explore 5 trails").
+ */
+const NOT_PRODUCTS =
+ /^(?:years?|yrs?|hours?|hrs?|minutes?|mins?|days?|weeks?|months?|km|kms|kilomet(?:er|re)s?|mi|miles?|met(?:er|re)s?|m|cm|mm|kg|g|lbs?|oz|l|lit(?:er|re)s?|ml|ways?|steps?|tips?|reasons?|trails?|routes?|stars?|reviews?|customers?|people|countries|cities|stores?|jahre?n?|stunden?|tage?n?|minuten|ans|heures?|jours?|años?|horas?|días?|anni|ore|giorni|yıl|yıldır|saat|gün|adım|kişi|müşteri)$/iu;
+/** Just before a number, what makes it no count: "SPF 50+", "ages 3+", "size 10", "No. 5". */
+const NOT_A_COUNT_BEFORE = /(?<!\p{L})(?:spf|ages?|size|sizes|no\.|nr\.|#|model|version|v)\s*$/iu;
+/** A sentence of another bill: a price in it isn't the category's ("Free shipping over $50"). */
+const SHIPPING =
+ /(?<!\p{L})(?:shipping|delivery|postage|versand\p{L}*|livraison|env[ií]os?|kargo\p{L}*|frete|üzeri)(?!\p{L})/iu;
+
+/** The counts a sentence states, each as its fact ("120+", "50"). */
+function countsIn(sentence: string): string[] {
+ const out: string[] = [];
+ for (const m of sentence.matchAll(COUNT)) {
+ const g = m.groups!;
+ const n = g.n.replace(/[.,]/g, '');
+ const word = g.w1.toLowerCase();
+ const before = sentence.slice(0, m.index + (g.lead?.length ?? 0));
+ if (NOT_PRODUCTS.test(word) || NOT_A_COUNT_BEFORE.test(before)) continue;
+ // A year isn't a count: "Shop 2026 styles", "Since 2009".
+ if (!g.more && /^(?:19|20)\d{2}$/.test(n)) continue;
+ const named = PRODUCT_WORDS.test(word) || (!!g.w2 && PRODUCT_WORDS.test(g.w2));
+ if (!g.lead && !g.more && !named) continue;
+ out.push(`${n}${g.lead || g.more ? '+' : ''}`);
+ }
+ return out;
+}
+
+/** The prices a sentence states with their currency, each as its fact ("USD49", "USD49-199"). */
+function pricesIn(sentence: string): string[] {
+ if (SHIPPING.test(sentence)) return [];
+ const ranges = priceRanges(sentence);
+ const inRange = (at: number) => ranges.some((r) => at >= r.at && at < r.at + r.text.length);
+ return [
+ ...ranges.map((r) => `${r.currency}${r.low}-${r.high}`),
+ ...pagePrices(sentence, { rangeEnds: true })
+ .filter((p) => !inRange(p.at))
+ .map((p) => `${p.currency}${p.amount}`),
+ ];
+}
+
+/**
+ * The facts a category page's intro states: its sentences between the H1
+ * and the first H2 (the Rules tab's intro), in the page's language, with a
+ * count or a price (with its currency: "from 20 to 40 litres" isn't one),
+ * each sentence once.
+ */
+export function introFacts(html: string, language: string | null = 'en'): IntroFact[] {
+ const doc = new DOMParser().parseFromString(html, 'text/html');
+ const blocks = [...doc.body.querySelectorAll('h1, h2, p, li')];
+ const h1 = blocks.findIndex((el) => el.tagName === 'H1');
+ const intro: string[] = [];
+ for (const el of blocks.slice(h1 + 1)) {
+ if (el.tagName === 'H2') break;
+ // A paragraph in a list item is read with it.
+ if (el.tagName === 'H1' || (el.tagName === 'P' && el.closest('li'))) continue;
+ const text = ownText(el).replace(/\s+/g, ' ').trim();
+ if (text) intro.push(text);
+ }
+ const seen = new Set<string>();
+ return intro
+ .flatMap((text) => sentencesOf(text, languageCode(language)))
+ .flatMap((sentence) => {
+ const facts = [...new Set([...countsIn(sentence), ...pricesIn(sentence)])];
+ if (!facts.length || seen.has(sentence)) return [];
+ seen.add(sentence);
+ return [{ sentence, facts }];
+ });
+}
+
+/** The longest key a confirmation keeps (00280). */
+const KEY_CHARS = 400;
+
+/**
+ * The confirmations for facts confirmed together: their facts, sorted, as
+ * few keys as fit ("intro:120+,USD49-199"): one row a confirm, however many
+ * sentences state them.
+ */
+export function introConfirmKeys(facts: readonly string[]): string[] {
+ const keys: string[] = [];
+ let key = '';
+ for (const fact of [...new Set(facts)].sort()) {
+ const next = key ? `${key},${fact}` : `intro:${fact}`;
+ if (next.length > KEY_CHARS && key) {
+ keys.push(key);
+ key = `intro:${fact}`;
+ } else {
+ key = next;
+ }
+ }
+ return key ? [...keys, key] : keys;
+}
+
+/** The facts the person confirmed, from their intro_fact confirmations' keys. */
+export function confirmedFacts(keys: Iterable<string>): ReadonlySet<string> {
+ const out = new Set<string>();
+ for (const key of keys) {
+ if (!key.startsWith('intro:')) continue;
+ for (const fact of key.slice('intro:'.length).split(',')) out.add(fact);
+ }
+ return out;
+}
diff --git a/web/src/lib/content/quality-checks.test.ts b/web/src/lib/content/quality-checks.test.ts
index 2cef1e846..82af02f25 100644
--- a/web/src/lib/content/quality-checks.test.ts
+++ b/web/src/lib/content/quality-checks.test.ts
@@ -836,6 +836,28 @@ describe('trust: a product page’s price and stock against its feed (Phase 3, C
});
});
+describe('trust: a category page’s intro facts (Phase 3, CE-054)', () => {
+ it('counts the share the person confirmed, and is left out where the intro states none', () => {
+ const run = (intro: { total: number; confirmed: number } | null) =>
+ trust({
+ blocks: trustBlocks('<p>Choose from 120+ daypacks.</p>'),
+ links: new Map(),
+ brandDomains: ['acme.com'],
+ intro,
+ now: Date.parse('2026-10-25'),
+ });
+ expect(run({ total: 2, confirmed: 1 }).checks.find((c) => c.id === 'introFacts')).toEqual({
+ id: 'introFacts',
+ points: 5,
+ max: 10,
+ });
+ // Trust's own: scored from it alone.
+ expect(run({ total: 1, confirmed: 1 }).score).toBe(100);
+ expect(run({ total: 0, confirmed: 0 }).checks.some((c) => c.id === 'introFacts')).toBe(false);
+ expect(run(null).score).toBeNull();
+ });
+});
+
describe('eeat: customer cases (Phase 3, CE-052)', () => {
it('counts the share confirmed publishable, and none where the page has no case', () => {
const check = (cases: { total: number; confirmed: number } | null) =>
diff --git a/web/src/lib/content/quality-checks.ts b/web/src/lib/content/quality-checks.ts
index 9297f278a..d618271bd 100644
--- a/web/src/lib/content/quality-checks.ts
+++ b/web/src/lib/content/quality-checks.ts
@@ -79,6 +79,9 @@ export const TRUST_WEIGHTS = {
// Phase 3 (CE-053): a product page's price and stock against its product
// feed; weighed there, and only where the feed has the page's product.
feedMatch: 0,
+ // Phase 3 (CE-054): a category page's intro facts the person confirmed;
+ // weighed there, and only where its intro states a count or a price.
+ introFacts: 0,
} as const;
export type TrustCheckId = keyof typeof TRUST_WEIGHTS;
@@ -86,6 +89,8 @@ export type TrustCheckId = keyof typeof TRUST_WEIGHTS;
const SHIPPING_POINTS = 10;
/** The product feed check's points before a page type weighs it. */
const FEED_POINTS = 10;
+/** The intro facts check's points before a page type weighs it. */
+const INTRO_POINTS = 10;
/**
* Words that say how a product ships, in a policy's terms: "free shipping",
* "shipping takes 2 days", "Free UK delivery on orders over £50", "Standard
@@ -618,8 +623,14 @@ export function trust({
page = null,
shipping = null,
feed = null,
+ intro = null,
now,
}: {
+ /**
+ * Phase 3 (CE-054): a category page's intro facts (introFacts) and how
+ * many the person confirmed; left out where its intro states none.
+ */
+ intro?: { total: number; confirmed: number } | null;
/**
* Phase 3 (CE-053): a product page's price and stock against its product
* in the brand's feed (feedCheck); left out where the feed doesn't have it.
@@ -825,6 +836,14 @@ export function trust({
});
}
+ if (intro && intro.total > 0) {
+ checks.push({
+ id: 'introFacts',
+ points: (INTRO_POINTS * Math.min(intro.confirmed, intro.total)) / intro.total,
+ max: INTRO_POINTS,
+ });
+ }
+
if (feed && feed.compared > 0) {
checks.push({
id: 'feedMatch',
@@ -843,10 +862,14 @@ export function trust({
});
}
- // A product page's feed check is Trust's own too (CE-053).
+ // A product page's feed check (CE-053) and a category's intro facts (CE-054) are Trust's own too.
const scored =
checks.some(
- (c) => c.id === 'claimsSourced' || c.id === 'freshSources' || c.id === 'feedMatch',
+ (c) =>
+ c.id === 'claimsSourced' ||
+ c.id === 'freshSources' ||
+ c.id === 'feedMatch' ||
+ c.id === 'introFacts',
) || classified.length >= 2;
return {
...(scored ? scoreOf(checks) : { score: null, checks }),
diff --git a/web/src/lib/content/quality-profiles.test.ts b/web/src/lib/content/quality-profiles.test.ts
index 6da876e11..f2c3eb033 100644
--- a/web/src/lib/content/quality-profiles.test.ts
+++ b/web/src/lib/content/quality-profiles.test.ts
@@ -61,9 +61,27 @@ describe('PROFILE_WEIGHTS', () => {
'checkDate',
'customerCase',
'feedMatch',
+ 'introFacts',
'shippingReturns',
'typeRules',
]);
+ // A category page without intro facts scores as before CE-054: the other
+ // checks are 0.8 of their points (claims 25 → 20, weak 5 → 4, brand facts
+ // 30 → 24, links 15 → 12, site 25 → 20).
+ const { introFacts: intro, ...rest } = PROFILE_WEIGHTS.category.trust;
+ expect(intro).toBe(20);
+ expect(rest).toMatchObject({
+ claimsSourced: 20,
+ noWeakSources: 4,
+ brandFacts: 24,
+ noBrokenLinks: 12,
+ siteTrust: 20,
+ });
+ // A category page's intro facts weigh in its Trust, and brand facts still weigh as much as claims (CE-054).
+ expect(PROFILE_WEIGHTS.category.trust.introFacts).toBeGreaterThan(0);
+ expect(PROFILE_WEIGHTS.category.trust.brandFacts).toBeGreaterThanOrEqual(
+ PROFILE_WEIGHTS.category.trust.claimsSourced,
+ );
// A product page's price and stock against its feed weigh most in its Trust (CE-053).
const productTrust = Object.values(PROFILE_WEIGHTS.product.trust);
expect(PROFILE_WEIGHTS.product.trust.feedMatch).toBe(Math.max(...productTrust));
diff --git a/web/src/lib/content/quality-profiles.ts b/web/src/lib/content/quality-profiles.ts
index ca37d2952..01063cbc2 100644
--- a/web/src/lib/content/quality-profiles.ts
+++ b/web/src/lib/content/quality-profiles.ts
@@ -100,6 +100,7 @@ export const PROFILE_WEIGHTS: Readonly<Record<QualityProfile, ProfileWeights>> =
siteTrust: 10,
shippingReturns: 10,
feedMatch: 25,
+ introFacts: 0,
},
readability: {
avgSentence: 15,
@@ -130,18 +131,21 @@ export const PROFILE_WEIGHTS: Readonly<Record<QualityProfile, ProfileWeights>> =
customerCase: 0,
},
trust: {
- claimsSourced: 25,
+ // The checks before intro facts at 0.8 of their points: a page whose
+ // intro states none scores as it did.
+ claimsSourced: 20,
primarySources: 0,
- noWeakSources: 5,
- brandFacts: 30,
+ noWeakSources: 4,
+ brandFacts: 24,
expertQuote: 0,
freshSources: 0,
balanced: 0,
disclosure: 0,
- noBrokenLinks: 15,
- siteTrust: 25,
+ noBrokenLinks: 12,
+ siteTrust: 20,
shippingReturns: 0,
feedMatch: 0,
+ introFacts: 20,
},
readability: {
avgSentence: 15,
@@ -184,6 +188,7 @@ export const PROFILE_WEIGHTS: Readonly<Record<QualityProfile, ProfileWeights>> =
siteTrust: 10,
shippingReturns: 0,
feedMatch: 0,
+ introFacts: 0,
},
readability: {
avgSentence: 15,
@@ -227,6 +232,7 @@ export const PROFILE_WEIGHTS: Readonly<Record<QualityProfile, ProfileWeights>> =
siteTrust: 5,
shippingReturns: 0,
feedMatch: 0,
+ introFacts: 0,
},
readability: {
avgSentence: 15,
@@ -283,7 +289,7 @@ export function weighed<Id extends string, S extends Score<Id>>(
/**
* Trust weighed for a profile, scored as trust() scores it: once a figure,
- * fresh-sources or product feed check is left among the weighed ones, or
+ * fresh-sources, product feed or intro facts check is left among the weighed ones, or
* two sources are placed; on a type that weighs brand facts as much as
* sourced claims, once a price is compared with them too. A type isn't
* scored by its links and site alone. Its unscored gains count out of the
@@ -297,7 +303,11 @@ export function weighedTrust(
const result = weighed({ ...read, score: read.score ?? 0 }, weights);
const scored =
result.checks.some(
- (c) => c.id === 'claimsSourced' || c.id === 'freshSources' || c.id === 'feedMatch',
+ (c) =>
+ c.id === 'claimsSourced' ||
+ c.id === 'freshSources' ||
+ c.id === 'feedMatch' ||
+ c.id === 'introFacts',
) ||
read.classified >= 2 ||
// Where prices that match weigh as much as sourced claims (a product or a
diff --git a/web/src/lib/content/quality-todos.test.ts b/web/src/lib/content/quality-todos.test.ts
index 2c8327937..b1cb434cd 100644
--- a/web/src/lib/content/quality-todos.test.ts
+++ b/web/src/lib/content/quality-todos.test.ts
@@ -232,6 +232,53 @@ describe('qualityTodos', () => {
expect(row.trustGain).toBeGreaterThan(0);
});
+ it('asks to confirm a category intro’s counts and prices, all at once (CE-054)', () => {
+ const facts = [
+ { sentence: 'Choose from 120+ daypacks.', facts: ['120+'] },
+ { sentence: 'Prices run $49–$199.', facts: ['USD49-199'] },
+ ];
+ const read = trust({
+ blocks: trustBlocks('<p>Choose from 120+ daypacks.</p><p>Prices run $49–$199.</p>'),
+ links: new Map(),
+ brandDomains: ['acme.com'],
+ intro: { total: 2, confirmed: 1 },
+ now: Date.parse('2026-10-25'),
+ });
+ const run = (confirmed: string[]) =>
+ qualityTodos({
+ eeat: null,
+ trust: weighedTrust(read, PROFILE_WEIGHTS.category.trust),
+ author: null,
+ hasAuthors: true,
+ intro: { facts, confirmed: new Set(confirmed) },
+ off: checksOff('category'),
+ }).find((t) => t.id === 'introFacts');
+ expect(run(['120+'])).toMatchObject({
+ done: false,
+ action: 'confirmIntro',
+ score: 'trust',
+ count: 1,
+ facts: ['Prices run $49–$199.'],
+ });
+ expect(run(['120+'])!.gain).toBeGreaterThan(0);
+ expect(run(['120+', 'USD49-199'])).toMatchObject({
+ done: true,
+ action: null,
+ gain: 0,
+ count: 0,
+ });
+ // No facts in the intro: no to-do.
+ expect(
+ qualityTodos({
+ eeat: null,
+ trust: null,
+ author: null,
+ hasAuthors: true,
+ intro: { facts: [], confirmed: new Set() },
+ }).some((t) => t.id === 'introFacts'),
+ ).toBe(false);
+ });
+
it('asks to add an author when the workspace has none', () => {
expect(todos(null, false)[0]).toEqual({
id: 'byline',
diff --git a/web/src/lib/content/quality-todos.ts b/web/src/lib/content/quality-todos.ts
index 23df5f902..1fd1af8f5 100644
--- a/web/src/lib/content/quality-todos.ts
+++ b/web/src/lib/content/quality-todos.ts
@@ -35,7 +35,8 @@ export type QualityTodoId =
| 'reviewer'
| 'brandFacts'
| 'shippingReturns'
- | 'checkDate';
+ | 'checkDate'
+ | 'introFacts';
/**
* A to-do's one button: Show (the first placeholder, selected to type over),
@@ -54,7 +55,8 @@ export type QualityTodoAction =
| 'pickReviewer'
| 'reviewBrandFacts'
| 'addCheckDate'
- | 'confirmCase';
+ | 'confirmCase'
+ | 'confirmIntro';
export interface QualityTodo {
id: QualityTodoId;
@@ -85,6 +87,8 @@ export interface QualityTodo {
* sentence is an unsourced claim until it is, confirmed or not.
*/
trustGain?: number;
+ /** A category intro's sentences with a fact not confirmed yet (CE-054). */
+ facts?: string[];
/** A check date the page has, over a year old: Add line's own line (it replaces it), or the person's words. */
old?: 'line' | 'text';
}
@@ -116,6 +120,7 @@ export function qualityTodos({
shipping = null,
checkDate = null,
cases = null,
+ intro = null,
off = NONE_OFF,
}: {
eeat: Score<EeatCheckId> | null;
@@ -175,6 +180,15 @@ export function qualityTodos({
* before Phase 3, or before they're read.
*/
cases?: ReadonlySet<string> | null;
+ /**
+ * Phase 3 (CE-054): a category page's intro facts (introFacts) and the
+ * facts the person confirmed (confirmedFacts); null elsewhere, or before
+ * the confirms are read.
+ */
+ intro?: {
+ facts: readonly { sentence: string; facts: readonly string[] }[];
+ confirmed: ReadonlySet<string>;
+ } | null;
/**
* Phase 3 (CE-052): the checks the page's type leaves out (checksOff): no
* to-do asks for them (a product page has the brand's byline, no author).
@@ -253,6 +267,28 @@ export function qualityTodos({
},
]
: [];
+ // Only the person knows the category's counts and prices are right: one
+ // confirm for them all. A sentence is open while a fact in it is.
+ const unconfirmedFacts = intro
+ ? intro.facts.filter((fact) => fact.facts.some((f) => !intro.confirmed.has(f)))
+ : [];
+ const introTodo: QualityTodo[] =
+ intro && intro.facts.length
+ ? [
+ {
+ id: 'introFacts',
+ done: unconfirmedFacts.length === 0,
+ gain:
+ unconfirmedFacts.length && trust && trust.score !== null
+ ? scoreGain(trust, ['introFacts'])
+ : 0,
+ score: 'trust',
+ action: unconfirmedFacts.length ? 'confirmIntro' : null,
+ count: unconfirmedFacts.length,
+ facts: unconfirmedFacts.map((fact) => fact.sentence),
+ },
+ ]
+ : [];
const review: QualityTodo[] = reviewer
? [
{
@@ -266,7 +302,7 @@ export function qualityTodos({
]
: [];
if (!eeat || eeat.score === null) {
- return [...fill, ...proofTodos, ...ships, ...review, ...facts].filter(
+ return [...fill, ...proofTodos, ...ships, ...introTodo, ...review, ...facts].filter(
(todo) => !off.has(todo.id),
);
}
@@ -348,6 +384,7 @@ export function qualityTodos({
: []),
...proofTodos,
...ships,
+ ...introTodo,
...review,
...facts,
];