[WV-2048] Invite voters: "Invite selected" modal (Manage My Candidates) [TEAM REVIEW] #4629
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Some notes:
IMPORTANT The "Paste list" modal doesn't let you import voters without an email, so in order to test for voters with missing emails, I hardcoded a list of invitees that overrides whatever list you currently had selected. To enable this, simply set const TEST_MODE to true.
We might want to add a 'Back to invite' button to "Preview invitation" modal when accessing it from the "Invite selected" modal
Currently, the first column on the invitees list (their names) has a fixed length of 95px, so any long names get cut off with ellipses. This column can be adjusted to be longer, and the subsequent columns will shift accordingly with no issue, but an idea is to maybe have every voter's last name just be their initial so we can leave the first column short for mobile. Currently any name longer than "John Smith" gets cut off.
When there's only 1 invitee left, its respective "Remove from list" button becomes un-selectable to prevent an empty list
Minor change, but I fixed the font for all the other modals' dialogTitleJSX since they had broken during the migration to Template A