Small UX fixes closes #281 #293

Merged
moritz merged 10 commits from feature/281_uxfixes into main 2025-12-16 15:06:01 +01:00
2 changed files with 5 additions and 1 deletions
Showing only changes of commit be6ea56860 - Show all commits

View file

@ -1126,6 +1126,9 @@ defmodule MvWeb.MemberLive.Index do
# Updates selection-related assigns (selected_count, any_selected?, mailto_bcc)
# to avoid recalculating Enum.any? and Enum.count multiple times in templates.
#
# Note: Mailto URLs have length limits that vary by email client.
# For large selections, consider using export functionality instead.
defp update_selection_assigns(socket) do
members = socket.assigns.members
selected_members = socket.assigns.selected_members
@ -1140,6 +1143,7 @@ defmodule MvWeb.MemberLive.Index do
if any_selected? do
format_selected_member_emails(members, selected_members)
|> Enum.join(", ")
|> URI.encode_www_form()
else
""
end

View file

@ -16,7 +16,7 @@
<.button
class="secondary"
id="open-email-btn"
href={"mailto:?bcc=" <> URI.encode(@mailto_bcc)}
href={"mailto:?bcc=" <> @mailto_bcc}
disabled={not @any_selected?}
aria-label={gettext("Open email program with BCC recipients")}
>