Expand freeform Truthtrance current facts
Verify and publish checkpoint container / container (push) Canceled after 0s

This commit is contained in:
Quintine committed 2026-10-29 18:46:17 +11:00
1 parent a10e019b01
commit cc9cc0945d
10 files changed
+290 -4

No files matched your search

+2 -1
View File
@@ -70,6 +70,7 @@ import { parseFreeformFactV2 } from '@/game/truthtrance-freeform-facts-v2';
import { parseFreeformFactV3 } from '@/game/truthtrance-freeform-facts-v3';
import { parseFreeformFactV4 } from '@/game/truthtrance-freeform-facts-v4';
import { parseTruthFreeformFactsV5 } from '@/game/truthtrance-freeform-facts-v5';
import { parseFreeformFactV6 } from '@/game/truthtrance-freeform-facts-v6';
import {
truthQuestionText,
type TruthFact,
@@ -110,7 +111,7 @@ export function FreeformFactPreview({ scope, text, target, leaderName, locationN
leaderName: (id: string) => string; locationName: (id: string) => string; playerName: (id: string) => string;
}) {
const fact = scope === 'fact' ? parseFreeformFactV2(text) || parseFreeformFactV3(text) ||
parseFreeformFactV4(text) || parseTruthFreeformFactsV5(text) : null;
parseFreeformFactV4(text) || parseTruthFreeformFactsV5(text) || parseFreeformFactV6(text) : null;
return fact ? <p className="notice" aria-label="Recognized freeform question">
This will be checked as: {truthQuestionText({ kind: 'fact', target, fact }, leaderName, locationName, playerName)}
</p> : <p className="notice">