From 71f0f01abc722e7bffab16c38b26218dece21dc2 Mon Sep 17 00:00:00 2001
From: Anthony Correa
Date: Tue, 12 Aug 2025 21:34:02 -0500
Subject: [PATCH] Improve draft UI state handling, layout, and order logic
- Added current/next pick info, updated server draft logic for order/snake
- Refactored WebSocketContext, removed dead code, improved CSS/layout
- Cleaned up template blocks, admin, and participant panel structure
---
boxofficefantasy/templates/base.dj.html | 80 +++---
draft/consumers.py | 18 +-
draft/state.py | 73 +++++-
draft/templates/draft/room.dj.html | 10 +-
frontend/src/apps/draft/DraftDebug.jsx | 2 +-
frontend/src/apps/draft/admin/DraftAdmin.jsx | 2 +-
.../apps/draft/common/DraftCountdownClock.jsx | 8 +-
.../draft/{ => common}/WebSocketContext.jsx | 2 +-
frontend/src/apps/draft/common/utils.js | 7 +-
frontend/src/apps/draft/index.jsx | 230 ------------------
.../draft/participant/DraftParticipant.jsx | 106 ++++++--
frontend/src/index.js | 2 +-
frontend/src/scss/styles.scss | 28 +++
13 files changed, 246 insertions(+), 322 deletions(-)
rename frontend/src/apps/draft/{ => common}/WebSocketContext.jsx (80%)
delete mode 100644 frontend/src/apps/draft/index.jsx
diff --git a/boxofficefantasy/templates/base.dj.html b/boxofficefantasy/templates/base.dj.html
index 5e1ed86..a8967f5 100644
--- a/boxofficefantasy/templates/base.dj.html
+++ b/boxofficefantasy/templates/base.dj.html
@@ -2,16 +2,17 @@
- {% block title %}My Site{% endblock %}
-
-
+
+ {% block title %}My Site{% endblock %}
+
+
+
{% if DEBUG %}
-
+
{% else %}
-
+
{% endif %}
@@ -27,39 +28,40 @@
- {%block navbar%}
- {%endblock%}
+ {% block navbar %}{% endblock %}
{% if user.is_authenticated %}
-
+
{% else %}
-
+
{% endif %}
-
-
-
- {% block breadcrumbs%}
-
- {% endblock%} {% block content %}
-
- {% endblock %}
-
-
-
-
-
+ {% block body %}
+
+ {% block breadcrumbs %}
+
+ {% endblock breadcrumbs %}
+ {% block content %}{% endblock content %}
+ {% endblock body %}
+
+
+