Commit graph

5 commits

Author SHA1 Message Date
Kailash Nadh
583f92a6fc Add bulk deletion (by id or query) to lists and campaigns.
- Like subscribers, select one-or more or 'all' items and delete them
  on the lists and campaigns UIs.
- New `DELETE /api/lists` and `DELETE /api/campaigns` endpoints that
  take one or more `id` params or a single `query` param.
2025-11-28 16:37:20 +05:30
Kailash Nadh
b46e0d6947 Fix list update query returning incorrect state on lists with no campaigns. 2025-11-28 16:37:20 +05:30
Kailash Nadh
e526a5f981 Fix list name not being updated in campaign_lists on list update. Closes #2734. 2025-11-23 15:47:57 +05:30
Kailash Nadh
2074604512 Add archival support to lists.
This patch adds a new `status` field (active, archived) to the lists table and
an 'Archived?' toggle on the UI that allows a list to be marked as archived.
This hides the lists from the lists page, campaigns list selection, list roles,
and public forms. A new "View archived lists" link on the lists UI allows
viewing the list of archived lists.

This is useful to hide/declutter lists by archiving historical, temporary lists
etc. This is largely a UX value addition.

Closes #2613.
2025-11-23 15:39:17 +05:30
Kailash Nadh
3bf8bdb410
Split queries.sql into multiple files for better readability and maintainability. Closes #2738. (#2776)
Co-authored-by: 13unk0wn <n0b0dy0.000729@gmail.com>
2025-11-22 13:23:10 +05:30