Update email settings UI and handle account reunification
Created by: artemruts
Description
To support account reunification when we have multiple "Continue with {codehost}" options,
we need to provide better support for verifying and setting primary email addresses.
This in turn will help us make sure users can't have two separate accounts for different code hosts.
Acceptance Criteria
-
Update current "Emails" view -
Design updates to list of emails -
Remove "Mark as unverified" action -
Add "Primary email address" (Disabled unless the user has more than one verified email) - depends on #15393 (closed) -
Enable account unification - depends on #TODO
When user signs in with code host not already associated with an account,
check the returned email address against verified emails in existing accounts.
If the account matches, reunify the account.
Account reunification inherently creates a new code host connection.