feat: added Transkription-Display in Calibration and Annotation

This commit is contained in:
averel10
2026-04-10 07:44:43 +02:00
parent 4cbac5f4d2
commit 12c3ffc556
5 changed files with 26 additions and 0 deletions

View File

@@ -156,6 +156,7 @@ export async function getAnnotationEntries(experimentId: number): Promise<Datase
experimentId: experimentId,
datasetId: e.datasetId,
annotation: annotationEntries.find((a) => a.datasetEntryId === e.id)?.rating || null,
utteranceText: e.utteranceText,
}));
return sortEntriesByWeightedDialectScore(mapped, dialectScores, session.user.id);

View File

@@ -70,6 +70,14 @@ export default function SingleChoiceBinaryEntryView({
</p>
)}
{/* Utterance text */}
{entry.utteranceText && (
<div className="mt-4 mb-4 p-3 bg-gray-100 rounded-lg">
<p className="text-xs text-gray-500 uppercase tracking-wide font-semibold mb-1">Transkription</p>
<p className="text-sm text-gray-800 italic">"{entry.utteranceText}"</p>
</div>
)}
{/* Dialect + question */}
<div className="mt-4 mb-3">
<div className="text-s font-semibold text-gray-700">

View File

@@ -71,6 +71,14 @@ export default function SingleChoiceEntryView({
</p>
)}
{/* Utterance text */}
{entry.utteranceText && (
<div className="mt-4 mb-4 p-3 bg-gray-100 rounded-lg">
<p className="text-xs text-gray-500 uppercase tracking-wide font-semibold mb-1">Transkription</p>
<p className="text-sm text-gray-800 italic">"{entry.utteranceText}"</p>
</div>
)}
{/* Dialect + question */}
<div className="mt-4 mb-3">
<div className="text-s font-semibold text-gray-700">

View File

@@ -92,6 +92,14 @@ export default function CalibrationEntryView({
</p>
)}
{/* Utterance text */}
{entry.utteranceText && (
<div className="mt-4 mb-4 p-3 bg-gray-100 rounded-lg">
<p className="text-xs text-gray-500 uppercase tracking-wide font-semibold mb-1">Transkription</p>
<p className="text-sm text-gray-800 italic">"{entry.utteranceText}"</p>
</div>
)}
{/* Questions container */}
<div className="mt-6 flex flex-col lg:flex-row gap-6">
{/* Dialect question */}

View File

@@ -28,4 +28,5 @@ export type DatasetEntryForAnnotation = {
datasetId: number;
experimentId: number;
annotation: number | null;
utteranceText: string | null;
};