Automattic / wp-calypso

The JavaScript and API powered WordPress.com
https://developer.wordpress.com
GNU General Public License v2.0
12.41k stars 1.99k forks source link

Invite user: An invited user shows up twice in the Users page #94429

Open wongasy opened 1 month ago

wongasy commented 1 month ago

Quick summary

When a user is invited to join an Atomic site through /wp-admin/users.php and the user hasn't joined WordPress.com, then the user will show up in wordpress.com/people/team/:site with an invite CTA and an invite to WordPress.com banner.

Screen Shot 2024-09-11 at 8 46 51 AM

After clicking on "invite" to invite the user to WordPress.com, we end up with two cards: one under "pending invite" one under "team members", where the invited user can be invited again.

Screen Shot 2024-09-11 at 8 47 07 AM

Steps to reproduce

  1. Have an Atomic site.
  2. Set admin interface to "Classic style".
  3. Go to "Users" and invite a new user.
  4. Set admin interface to "Default style".
  5. Go to "Users". You'll see the invited user under "Team members".
  6. Click "Invite" for the newly invited user.
  7. We will then see the user card rendered twice.

What you expected to happen

There needs to be a way to differentiate between inviting users to a site vs. inviting users to join WordPress.com to enable SSO. Design input required.

What actually happened

Confusing interface where an invited user shows up in both "pending invite" and "team members".

Impact

Some (< 50%)

Available workarounds?

No but the platform is still usable

If the above answer is "Yes...", outline the workaround.

No response

Platform (Simple and/or Atomic)

No response

Logs or notes

This issue was raised in Call for Testing of the A4A multi-user support feature: pfunGA-2Tf-p2#comment-5178

github-actions[bot] commented 1 month ago

Support References

This comment is automatically generated. Please do not edit it.

Addison-Stavlo commented 1 month ago

There needs to be a way to differentiate between inviting users to a site vs. inviting users to join WordPress.com to enable SSO.

I think the current differentiation / workaround is inviting through wp-admin as mentioned as the initial step.

Confusing interface where an invited user shows up in both "pending invite" and "team members".

Agreed, confusing. They are a team memeber of the site since they were added in wp-admin, but also pending an invite to wpcom.

arthur791004 commented 1 month ago

I think we also need a different email when you invite them to join WordPress.com. Currently, the email is the same as inviting them to join your site.