From f7b1296263ece76888d6c220af71f4f62960b96d Mon Sep 17 00:00:00 2001 From: pacnpal <183241239+pacnpal@users.noreply.github.com> Date: Fri, 26 Sep 2025 14:48:13 -0400 Subject: [PATCH] Refactor moderation dashboard and advanced search components to utilize Alpine.js for improved state management. Enhanced event handling and user experience by replacing legacy JavaScript functions with Alpine.js reactive methods. Updated auth modal comparison and button comparison tests to leverage Alpine.js for better interactivity and functionality. --- templates/moderation/dashboard.html | 271 ++++++++++++---------- templates/search/advanced_search.html | 169 ++++++++++++-- templates/test_auth_modal_comparison.html | 162 +++++++------ templates/test_button_comparison.html | 146 +++++++----- 4 files changed, 469 insertions(+), 279 deletions(-) diff --git a/templates/moderation/dashboard.html b/templates/moderation/dashboard.html index 26547c95..ccf30b2d 100644 --- a/templates/moderation/dashboard.html +++ b/templates/moderation/dashboard.html @@ -169,7 +169,7 @@ There was a problem loading the content. Please try again.
Comparing original include method vs new cotton component for Auth Modal with full Alpine.js functionality