From ef48c16bd53787196f031eb74da5adb40f43a269 Mon Sep 17 00:00:00 2001 From: FlashL3opard <69573060+Flashl3opard@users.noreply.github.com> Date: Wed, 8 Apr 2026 22:36:52 +0530 Subject: [PATCH 1/3] fix: prevent duplicate submissions and harden join idempotency --- public/course.html | 428 +++++++++++++++++---------------- public/login.html | 288 +++++++++++++---------- public/teach.html | 574 ++++++++++++++++++++++++--------------------- src/worker.py | 10 +- 4 files changed, 714 insertions(+), 586 deletions(-) diff --git a/public/course.html b/public/course.html index fd3cbb6..47ab49e 100644 --- a/public/course.html +++ b/public/course.html @@ -1,233 +1,267 @@ + Activity - Alpha One Labs - + + - + -
-
-
- ActivitiesLoading... +
+
+
+ ActivitiesLoading... +
+

Loading...

+

+
+
-

Loading...

-

-
-
-
- -
-
- - - - - -
- - - - - + +
+
+

Sessions

+ +
+
    +
  • Loading...
  • +
+
+ + + +
+ + + + + + - -
-

Welcome!

-

Select an activity and join to see full details including session locations and descriptions.

+ +
+

Welcome!

+

Select an activity and join to see full + details including session locations and descriptions.

+
+
+
-
- - - - - + + if (!actId) { + document.getElementById('act-title').textContent = 'No activity selected'; + } else { + loadActivity().catch(e => { document.getElementById('act-title').textContent = 'Error: ' + e.message; }); + } + + \ No newline at end of file diff --git a/public/login.html b/public/login.html index b7d8c23..5031096 100644 --- a/public/login.html +++ b/public/login.html @@ -1,5 +1,6 @@ + @@ -8,140 +9,177 @@ - -
-
- - Alpha One Labs - Alpha One Labs - -

All user data encrypted at rest - zero plaintext PII stored

-
+ -
-
- - +
+
+ + Alpha One Labs + Alpha One Labs + +

All user data encrypted at rest - zero plaintext PII stored

-
-

Welcome back!

-
-
- - -
-
- - -
- - -
-

- Demo: alice / password123 - or charlie / password123 -

-
+
+
+ + +
- + +

+ Back to activities +

-

- Back to activities -

-
- - + + \ No newline at end of file diff --git a/public/teach.html b/public/teach.html index 8c00bff..646edfb 100644 --- a/public/teach.html +++ b/public/teach.html @@ -1,319 +1,367 @@ + Host Hub - Alpha One Labs - + + - + - -