From a756d6533774b0f8c63f7220a1b2938e8654050c Mon Sep 17 00:00:00 2001 From: Agboolafeyikemi Date: Wed, 22 Jul 2026 22:28:11 +0100 Subject: [PATCH] Add "Event" to all chapter pages Adds an "Add to all" option at the top of the chapters dropdown on the admin event form so organisers can invite every chapter with one click instead of selecting each chapter by hand. Includes a Playwright feature spec covering the new behaviour. Closes #2490. --- app/assets/javascripts/add-all-chapters.js | 23 +++++++++++++++ app/assets/javascripts/application.js | 1 + app/assets/stylesheets/main.scss | 10 +++++++ spec/features/admin/manage_event_spec.rb | 34 +++++++++++++++------- 4 files changed, 58 insertions(+), 10 deletions(-) create mode 100644 app/assets/javascripts/add-all-chapters.js diff --git a/app/assets/javascripts/add-all-chapters.js b/app/assets/javascripts/add-all-chapters.js new file mode 100644 index 000000000..daaa2759a --- /dev/null +++ b/app/assets/javascripts/add-all-chapters.js @@ -0,0 +1,23 @@ +// "Add to all" option at the top of the chapters dropdown on the admin event +// form. Selects every chapter so organisers don't have to pick each one. +// Chosen only renders