commit 6f5772fdf482568a5f8890f5246e404ff7a2eb76
parent 597ac62e48bc48745186c03427fff5d588c89155
Author: I Mean I'm Just Saying <imeanimjustsaying@kiwifarms.st>
Date: Mon, 5 Oct 2026 03:16:03 -0400
export: a moment's back-link to a report's summary says Summary
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Diffstat:
2 files changed, 2 insertions(+), 1 deletion(-)
diff --git a/export/app/components/reports/MomentArticle.tsx b/export/app/components/reports/MomentArticle.tsx
@@ -151,7 +151,7 @@ export default function MomentArticle({ view }: { view: MomentPageView }) {
</a>
<div className="flex flex-wrap items-center gap-2 text-muted-foreground">
{e.verdict && e.verdictStyle && <VerdictChip verdict={e.verdict} style={e.verdictStyle} />}
- {e.sectionTitle && <span>{e.sectionTitle}</span>}
+ {e.sectionTitle ? <span>{e.sectionTitle}</span> : !e.sectionId && <span>Summary</span>}
{(e.claimTitle ?? e.claimText) && (
<span className="text-foreground">— {e.claimTitle ?? e.claimText}</span>
)}
diff --git a/export/app/lib/reports.test.ts b/export/app/lib/reports.test.ts
@@ -122,6 +122,7 @@ test("a video moment: the clip, quote, verification, cue lines, original link, c
assert.match(html, /href="\/reports\/demo-factcheck\/"[^>]*>Checking an example article/);
assert.match(html, /href="\/reports\/demo-factcheck\/#claim-1"/);
assert.ok(html.includes("— “He opened it himself”"), "a cited-in entry names the claim by its title");
+ assert.match(html, /<span>Summary<\/span>/, "a summary citation is named as the summary");
assert.match(html, /href="\/reports\/demo-factcheck\/#claim-5"/);
});