From bbeb29dea55c9eff5f6d029f6589501682133727 Mon Sep 17 00:00:00 2001 From: Josh Creek <8179928+jcreek@users.noreply.github.com> Date: Wed, 16 Apr 2025 23:39:43 +0100 Subject: [PATCH] feat(*): Enable displaying history using localstorage --- src/lib/components/AssessmentHistory.svelte | 52 +++++++++++++++++++++ src/routes/results/+page.svelte | 28 +++++++++-- src/routes/upload/+page.svelte | 15 +++++- 3 files changed, 89 insertions(+), 6 deletions(-) create mode 100644 src/lib/components/AssessmentHistory.svelte diff --git a/src/lib/components/AssessmentHistory.svelte b/src/lib/components/AssessmentHistory.svelte new file mode 100644 index 0000000..3cf930a --- /dev/null +++ b/src/lib/components/AssessmentHistory.svelte @@ -0,0 +1,52 @@ + + +{#if history.length === 0} + {#if !hideIfEmpty} +
| Date | +Task/Assignment | +Grade | +Actions | +
|---|---|---|---|
| {new Date(entry.timestamp).toLocaleString()} | +{entry.task} | +{entry.grade} | +
+
+
+ View+
+
+ Submission: {entry.submission}
+ Strengths: {entry.strengths}
+ Areas for Improvement: {entry.areas_for_improvement}
+ Individualized Activity: {entry.individualized_activity}
+ Reflection Question: {entry.reflection_question}
+ Teacher Suggestion: {entry.teacher_suggestion}
+
+
+ Show AI Reasoning+{entry.reasoning}
+ |
+
View detailed feedback and recommendations for each student submission.
{#if feedback}