feat: add bulk email copy for selected members (#230)
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
Copy selected members' emails to clipboard in 'First Last <email>' format
This commit is contained in:
parent
e803dbdf8b
commit
e2ace3d2a8
11 changed files with 661 additions and 61 deletions
|
|
@ -1327,6 +1327,33 @@ end
|
|||
|
||||
---
|
||||
|
||||
## Session: Bulk Email Copy Feature (2025-12-02)
|
||||
|
||||
### Feature Summary
|
||||
Implemented bulk email copy functionality for selected members (#230). Users can select members and copy their email addresses to clipboard.
|
||||
|
||||
**Key Features:**
|
||||
- Copy button appears only when visible members are selected
|
||||
- Email format: `First Last <email>` with semicolon separator (email client compatible)
|
||||
- Button shows count of visible selected members (respects search/filter)
|
||||
- CopyToClipboard JavaScript hook with clipboard API + fallback for older browsers
|
||||
- Bilingual UI (English/German)
|
||||
|
||||
### Key Decisions
|
||||
|
||||
1. **Email Format:** "First Last <email>" with semicolon - standard for all major email clients
|
||||
2. **Visible Member Count:** Button shows only visible selected members, not total selected (better UX when filtering)
|
||||
3. **Server→Client:** Used `push_event/3` - server formats data, client handles clipboard
|
||||
|
||||
### Files Changed
|
||||
- `lib/mv_web/live/member_live/index.ex` - Event handler, helper function
|
||||
- `lib/mv_web/live/member_live/index.html.heex` - Copy button
|
||||
- `assets/js/app.js` - CopyToClipboard hook
|
||||
- `test/mv_web/member_live/index_test.exs` - 9 new tests
|
||||
- `priv/gettext/de/LC_MESSAGES/default.po` - German translations
|
||||
|
||||
---
|
||||
|
||||
## Session: User-Member Linking UI Enhancement (2025-01-13)
|
||||
|
||||
### Feature Summary
|
||||
|
|
@ -1559,8 +1586,8 @@ This project demonstrates a modern Phoenix application built with:
|
|||
|
||||
---
|
||||
|
||||
**Document Version:** 1.2
|
||||
**Last Updated:** 2025-11-27
|
||||
**Document Version:** 1.3
|
||||
**Last Updated:** 2025-12-02
|
||||
**Maintainer:** Development Team
|
||||
**Status:** Living Document (update as project evolves)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue