From 3cad7c5641bc630e757415ce0f4b7f4c1d48d214 Mon Sep 17 00:00:00 2001
From: pac7 <47831526-pac7@users.noreply.replit.com>
Date: Sun, 21 Sep 2025 14:10:27 +0000
Subject: [PATCH] Restored to 'ba32d51b3eb6866667ec8382daca17202cf7da86'
Replit-Restored-To: ba32d51b3eb6866667ec8382daca17202cf7da86
---
.replit | 6 +-
COTTON_CONVERSION_PLAN.md | 279 -------------
backend/config/django/base.py | 1 -
backend/pyproject.toml | 1 -
backend/templates/base/base.html | 9 +-
.../components/layout/enhanced_header.html | 88 +---
backend/templates/cotton/auth/login_form.html | 131 ------
backend/templates/cotton/auth/modal.html | 377 ------------------
.../cotton/auth/turnstile_empty.html | 17 -
.../cotton/auth/turnstile_widget.html | 36 --
backend/templates/cotton/ui/button.html | 82 ----
backend/templates/cotton/ui/card.html | 58 ---
backend/templates/cotton/ui/input.html | 51 ---
backend/templates/cotton/ui/pagination.html | 111 ------
backend/templates/cotton/ui/search_form.html | 158 --------
backend/templates/cotton/ui/status_badge.html | 39 --
backend/templates/cotton/ui/toast.html | 76 ----
.../maps/partials/location_card.html | 4 +-
backend/thrillwiki/urls.py | 15 -
backend/uv.lock | 16 +-
replit.md | 15 -
21 files changed, 30 insertions(+), 1540 deletions(-)
delete mode 100644 COTTON_CONVERSION_PLAN.md
delete mode 100644 backend/templates/cotton/auth/login_form.html
delete mode 100644 backend/templates/cotton/auth/modal.html
delete mode 100644 backend/templates/cotton/auth/turnstile_empty.html
delete mode 100644 backend/templates/cotton/auth/turnstile_widget.html
delete mode 100644 backend/templates/cotton/ui/button.html
delete mode 100644 backend/templates/cotton/ui/card.html
delete mode 100644 backend/templates/cotton/ui/input.html
delete mode 100644 backend/templates/cotton/ui/pagination.html
delete mode 100644 backend/templates/cotton/ui/search_form.html
delete mode 100644 backend/templates/cotton/ui/status_badge.html
delete mode 100644 backend/templates/cotton/ui/toast.html
diff --git a/.replit b/.replit
index ce6d112b..d3cd2656 100644
--- a/.replit
+++ b/.replit
@@ -1,4 +1,4 @@
-modules = ["bash", "web", "nodejs-20", "python-3.13", "python3"]
+modules = ["bash", "web", "nodejs-20", "python-3.13"]
[nix]
channel = "stable-25_05"
@@ -39,10 +39,6 @@ externalPort = 80
localPort = 34277
externalPort = 3000
-[[ports]]
-localPort = 38955
-externalPort = 3001
-
[deployment]
deploymentTarget = "autoscale"
run = ["gunicorn", "--bind=0.0.0.0:5000", "--reuse-port", "thrillwiki.wsgi:application"]
diff --git a/COTTON_CONVERSION_PLAN.md b/COTTON_CONVERSION_PLAN.md
deleted file mode 100644
index bcd05c9d..00000000
--- a/COTTON_CONVERSION_PLAN.md
+++ /dev/null
@@ -1,279 +0,0 @@
-# ThrillWiki Django Cotton Conversion Plan
-
-## Overview
-This document outlines the comprehensive plan to convert ThrillWiki's entire template system from Django's `{% include %}` pattern to Django Cotton's modern component architecture. This conversion will improve maintainability, reusability, and developer experience while preserving all existing functionality.
-
-## Current State Analysis
-
-### Template Inventory
-- **Total Templates**: 147 HTML files
-- **Components with {% include %}**: 52+ templates
-- **Base UI Components**: 6 components
-- **Feature Components**: 40+ domain-specific partials
-- **Auth Components**: 4 authentication components
-- **Missing Referenced Templates**: 3 card content templates
-
-### Component Categories
-
-#### 1. Foundation UI Components (6)
-- `components/ui/button.html` - Reusable button with variants
-- `components/ui/card.html` - Standard card layout
-- `components/ui/input.html` - Form input component
-- `components/pagination.html` - List pagination
-- `components/search_form.html` - Search functionality
-- `components/status_badge.html` - Status indicators
-
-#### 2. Authentication Components (4)
-- `account/partials/login_form.html` - Login form
-- `account/partials/signup_modal.html` - Registration modal
-- `accounts/turnstile_widget.html` - CAPTCHA widget
-- `accounts/turnstile_widget_empty.html` - Empty CAPTCHA state
-
-#### 3. Layout Components (1)
-- `components/layout/enhanced_header.html` - Main navigation header
-
-#### 4. Feature Components (18 Rides + 5 Parks + 3 Media + 7 Maps)
-- **Rides**: Forms, modals, lists, search results, history panels
-- **Parks**: Location widgets, actions, lists, search results
-- **Media**: Photo display, upload, management
-- **Maps**: Location cards, filter panels, containers, popups
-
-#### 5. Advanced Systems (13 Moderation + 4 Search)
-- **Moderation**: Submission workflows, photo management, filtering
-- **Search**: Results, filters, location-based search
-
-## Conversion Strategy: 4-Phase Approach
-
-### Phase 1: Foundation UI & Auth Components
-**Priority**: CRITICAL | **Duration**: 2-3 days
-
-**Goal**: Convert the most frequently used base components that are referenced throughout the application.
-
-**Components**:
-1. UI Components (6): button, card, input, pagination, search_form, status_badge
-2. Auth Components (4): login_form, signup_modal, turnstile widgets
-
-**Benefits**:
-- Immediate impact across entire application
-- Establishes Cotton patterns for team
-- Reduces template complexity in header and forms
-
-### Phase 2: Layout & Navigation
-**Priority**: HIGH | **Duration**: 3-4 days
-
-**Goal**: Convert major structural components that define application layout.
-
-**Components**:
-1. Enhanced header with navigation, search, user menu
-2. Filter sidebar with advanced filtering capabilities
-
-**Benefits**:
-- Cleaner main layout structure
-- Easier header customization
-- Modular navigation system
-
-### Phase 3: Feature-Specific Components
-**Priority**: MEDIUM | **Duration**: 5-7 days
-
-**Goal**: Convert domain-specific components for core functionality.
-
-**Components**:
-1. **Rides Domain** (18 components): Forms, modals, search, management
-2. **Parks Domain** (5 components): Location widgets, actions, lists
-3. **Media Components** (3 components): Photo handling
-4. **Maps Components** (7 components): Location cards, filtering, display
-
-**Benefits**:
-- Improved component reusability
-- Better separation of concerns
-- Easier feature development
-
-### Phase 4: Advanced & Specialized Systems
-**Priority**: LOW-MEDIUM | **Duration**: 4-5 days
-
-**Goal**: Convert complex systems with heavy HTMX/Alpine.js integration.
-
-**Components**:
-1. **Moderation System** (13 components): Complex workflows
-2. **Search System** (4 components): Advanced search features
-
-**Benefits**:
-- Complete Cotton migration
-- Improved moderation workflows
-- Enhanced search capabilities
-
-## Cotton Directory Structure
-
-```
-backend/templates/cotton/
-├── ui/ # Base UI components
-│ ├── button.html
-│ ├── card.html
-│ ├── input.html
-│ ├── pagination.html
-│ ├── search_form.html
-│ └── status_badge.html
-├── auth/ # Authentication components
-│ ├── modal.html # ✅ Already converted
-│ ├── login_form.html
-│ ├── signup_modal.html
-│ ├── turnstile_widget.html
-│ └── turnstile_empty.html
-├── layout/ # Layout components
-│ └── header.html
-├── features/ # Cross-cutting features
-│ └── filter_sidebar.html
-├── rides/ # Ride domain components
-│ ├── form.html
-│ ├── add_modal.html
-│ ├── list_results.html
-│ └── [15 more components]
-├── parks/ # Park domain components
-│ ├── location_widget.html
-│ ├── actions.html
-│ └── [3 more components]
-├── maps/ # Map system components
-│ ├── location_card.html
-│ ├── filter_panel.html
-│ └── [5 more components]
-├── media/ # Media handling components
-│ ├── photo_display.html
-│ ├── photo_upload.html
-│ └── photo_manager.html
-├── moderation/ # Moderation system components
-│ └── [13 components]
-└── search/ # Search system components
- └── [4 components]
-```
-
-## Cotton Component Standards
-
-### 1. c-vars Configuration
-```django
-