feat(*): Display feedback after upload

This commit is contained in:
Josh Creek
2025-04-16 23:16:05 +01:00
parent 6eef08c86b
commit e8f1b9447b
3 changed files with 43 additions and 4 deletions
+16 -3
View File
@@ -1,10 +1,23 @@
<script lang="ts">
// Results logic will go here
import AssessmentFeedback from '$lib/components/AssessmentFeedback.svelte';
import { onMount } from 'svelte';
let feedback: any = null;
onMount(() => {
// For hackathon simplicity, get feedback from history state
if (window.history.state && window.history.state.feedback) {
feedback = window.history.state.feedback;
}
});
</script>
<section class="max-w-xl mx-auto py-12">
<h1 class="text-2xl font-bold mb-4">Assessment Results</h1>
<p class="mb-6">View detailed feedback and recommendations for each student submission.</p>
<!-- Results table or cards will go here -->
<div class="border rounded p-6 text-gray-500">No results yet. Upload submissions to see feedback here.</div>
{#if feedback}
<AssessmentFeedback {...feedback} />
{:else}
<div class="border rounded p-6 text-gray-500">No results yet. Upload submissions to see feedback here.</div>
{/if}
</section>