Compose freeform Truthtrance facts
Verify and publish checkpoint container / container (push) Successful in 11m2s

This commit is contained in:
Quintine committed 2026-10-29 18:50:03 +11:00
1 parent cc9cc0945d
commit 593ff33ca8
10 files changed
+306 -4

No files matched your search

+3 -1
View File
@@ -71,6 +71,7 @@ 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 { parseTruthFreeformFactsV7 } from '@/game/truthtrance-freeform-facts-v7';
import {
truthQuestionText,
type TruthFact,
@@ -111,7 +112,8 @@ 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) || parseFreeformFactV6(text) : null;
parseFreeformFactV4(text) || parseTruthFreeformFactsV5(text) || parseFreeformFactV6(text) ||
parseTruthFreeformFactsV7(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">