From 9b6a6dab06a5a9ddef66f675e2628d6f97862a1d Mon Sep 17 00:00:00 2001 From: James Pattinson Date: Sun, 12 Oct 2025 21:20:53 +0000 Subject: [PATCH] Sub mamangement --- web/README.md | 33 +++++-- web/index.html | 66 ++++++++++---- web/nginx.conf | 6 +- web/static/css/style.css | 184 +++++++++++++++++++++++++++++++++++++ web/static/js/app.js | 88 +++--------------- web/static/js/ui.js | 190 ++++++++++++++++++++++++++++++++++++++- 6 files changed, 463 insertions(+), 104 deletions(-) diff --git a/web/README.md b/web/README.md index 336a5c0..596b232 100644 --- a/web/README.md +++ b/web/README.md @@ -62,6 +62,28 @@ open http://localhost:3000 - Token persistence in browser storage - Automatic logout on authentication errors +### Subscription Management (New & Improved!) + +#### Member-Centric Subscription Management +The subscription management has been completely overhauled for a much better user experience: + +1. **Access Member Subscriptions**: In the Members tab, click the "Subscriptions" button next to any member +2. **Visual Toggle Interface**: See all available mailing lists with modern toggle switches +3. **Intuitive Controls**: + - Green toggle = Member is subscribed + - Gray toggle = Member is not subscribed + - Click anywhere on a list item to toggle subscription +4. **Batch Operations**: Make multiple changes and save them all at once +5. **Real-time Feedback**: The save button shows how many changes you've made + +#### Benefits Over Previous System +- ✅ **Much faster** - No need to add subscriptions one by one +- ✅ **Visual** - See all subscriptions at a glance with color coding +- ✅ **Intuitive** - Toggle switches work like modern mobile apps +- ✅ **Batch operations** - Change multiple subscriptions simultaneously +- ✅ **Less error-prone** - Clear visual feedback prevents mistakes +- ✅ **Change tracking** - Only saves actual changes, not unchanged items + ### Mailing Lists - View all mailing lists in a clean table - Create new lists with name, email, and description @@ -79,11 +101,12 @@ open http://localhost:3000 - Status management ### Subscriptions -- Visual subscription management interface -- Add members to mailing lists -- Remove members from lists -- See all subscriptions organized by list -- Quick unsubscribe functionality +- **Member-centric subscription management** - Click on any member to manage their subscriptions +- **Interactive toggle interface** - Check/uncheck lists with visual toggles +- **Batch changes** - Make multiple subscription changes and save them all at once +- **Real-time feedback** - See subscription status instantly with visual indicators +- **Subscription overview** - View all subscriptions organized by list +- **Quick add functionality** - Legacy bulk subscription interface for power users ### User Experience - **Responsive Design** - Works seamlessly on all device sizes diff --git a/web/index.html b/web/index.html index 320f4ec..30672aa 100644 --- a/web/index.html +++ b/web/index.html @@ -47,10 +47,6 @@ Members - @@ -93,7 +89,13 @@
-

Members

+
+

Members

+
+ + Click the "Lists" button next to any member to manage their subscriptions +
+
- -
-
-

Manage Subscriptions

- -
-
- -
-
@@ -215,7 +204,46 @@ - + + + +