Review and Edit AI-Generated Answers

{answers.length}
Total Answers
{finalizedCount}
Finalized
{answers.length - finalizedCount}
Pending Review
{Math.round((finalizedCount / answers.length) * 100) || 0}%
Complete
{#each answers as answer, index} {@const quality = getAnswerQuality(answer)}

Question {index + 1}

{answer.question}

{quality.label}
{#if answer.citations && answer.citations.length > 0}
{answer.citations.length} citation{answer.citations.length !== 1 ? 's' : ''}
{/if}
{#if editingAnswer === answer.id}
{:else}
{answer.finalAnswer || answer.aiGeneratedAnswer}
{#if showSuggestions[answer.id] && suggestions}
Quality Score: {getQualityIcon(suggestions.qualityScore)} {suggestions.qualityScore}/100
{#if suggestions.suggestions.length > 0}
💡 Improvement Suggestions
{#each suggestions.suggestions as suggestion}
{suggestion}
{/each}
{/if} {#if suggestions.sednaEnhancements.length > 0}
🏢 SEDNA-Specific Enhancements
{#each suggestions.sednaEnhancements as enhancement}
{enhancement}
{/each}
{/if} {#if suggestions.strengths.length > 0}
✅ Strengths Identified
{#each suggestions.strengths as strength} {strength} {/each}
{/if} {#if suggestions.missingElements.length > 0}
⚠️ Missing Elements
{#each suggestions.missingElements as element} {element} {/each}
{/if}
{/if}
{#if answer.citations && answer.citations.length > 0}

References:

{#each answer.citations as citation, citIndex}
[{citIndex + 1}] {citation}
{/each}
{/if}
{/if}
{/each}
{#if !canProceed()}

Review Required

Please review and finalize all answers before proceeding to the final step.

{/if}