Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SSO Invite: Move invite status under invite details #86927

Merged
merged 8 commits into from
Jan 29, 2024

Conversation

agrullon95
Copy link
Contributor

@agrullon95 agrullon95 commented Jan 27, 2024

Related to #35278

Proposed Changes

  • These changes move the invite status underneath the invite details, allows the email/username to overflow and fixes the button overlapping issues on mobile viewport.

Before:

Desktop:
CleanShot 2024-01-27 at 11 52 16@2x

Mobile:
CleanShot 2024-01-29 at 09 47 30@2x

After:

Desktop:
CleanShot 2024-01-27 at 11 57 13@2x

Mobile:

CleanShot 2024-01-29 at 09 49 42@2x

Testing Instructions

  • Checkout branch or use calypso live link
  • Navigate to http://calypso.localhost:3000/people/team/{SITE_SLUG}
  • Add/Invite a new user to your site, if you haven't already.
  • Click on the new pending invite to see more details about the user and the invitation.
  • Test the "Resend Invite" and "Revoke" buttons.
  • The "Resend Invite" button text should change to "Invite Sent!" after a successful invite request has been made.
  • The "Revoke" button should display an "Invite deleted" notice after the invite has been revoked and you should be navigated to the previous page.

Pre-merge Checklist

  • Has the general commit checklist been followed? (PCYsg-hS-p2)
  • https://wpcalypso.wordpress.com/devdocs/docs/testing/index.md for your changes?
  • Have you tested the feature in Simple (P9HQHe-k8-p2), Atomic (P9HQHe-jW-p2), and self-hosted Jetpack sites (PCYsg-g6b-p2)?
  • Have you checked for TypeScript, React or other console errors?
  • Have you used memoizing on expensive computations? More info in Memoizing with create-selector and Using memoizing selectors and Our Approach to Data
  • Have we added the "[Status] String Freeze" label as soon as any new strings were ready for translation (p4TIVU-5Jq-p2)?
  • For changes affecting Jetpack: Have we added the "[Status] Needs Privacy Updates" label if this pull request changes what data or activity we track or use (p4TIVU-ajp-p2)?

@agrullon95 agrullon95 self-assigned this Jan 27, 2024
Copy link

github-actions bot commented Jan 27, 2024

@agrullon95 agrullon95 requested a review from a team January 27, 2024 16:57
@matticbot matticbot added the [Status] Needs Review The PR is ready for review. This also triggers e2e canary tests and wp-desktop tests automatically. label Jan 27, 2024
Copy link
Member

@alshakero alshakero left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested on desktop and mobile. Works great. Found one UX issue.

) }
<Button
className="people-list-item__invite-revoke"
busy={ deletingInvite }
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's disable this one when requestingResend is true. Now you can resend and revoke an invite.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think requestingResend should be added to deletingInvite? 🤔

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think so. Making the button busy implies that the button is doing the action written on it. Disabled makes more sense IMO.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, I mistaken busy and disabled, thanks!

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I agree , disabled makes sense here and will be a nice UX update. I'll quickly add this in this PR.

'is-success': resendSuccess,
} ) }
onClick={ onResend }
busy={ requestingResend }
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's disable this one when deletingInvite is true. Now you can resend and revoke an invite.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same thing as before

Copy link
Contributor

@crisbusquets crisbusquets left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💯

@escapemanuele escapemanuele self-requested a review January 29, 2024 11:28
Copy link
Contributor

@escapemanuele escapemanuele left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's review the busy field and then merge this ✌️

@escapemanuele escapemanuele added Jetpack SSO and removed [Status] Needs Review The PR is ready for review. This also triggers e2e canary tests and wp-desktop tests automatically. labels Jan 29, 2024
@matticbot
Copy link
Contributor

This PR modifies the release build for the following Calypso Apps:

For info about this notification, see here: PCYsg-OT6-p2

  • wpcom-block-editor

To test WordPress.com changes, run install-plugin.sh $pluginSlug update/invite-status-location on your sandbox.

@agrullon95 agrullon95 merged commit 9c7c30a into trunk Jan 29, 2024
11 checks passed
@agrullon95 agrullon95 deleted the update/invite-status-location branch January 29, 2024 16:47
@matticbot
Copy link
Contributor

matticbot commented Jan 31, 2024

Here is how your PR affects size of JS and CSS bundles shipped to the user's browser:

Sections (~50 bytes added 📈 [gzipped])

name    parsed_size           gzip_size
people       +294 B  (+0.0%)      +50 B  (+0.0%)

Sections contain code specific for a given set of routes. Is downloaded and parsed only when a particular route is navigated to.

Legend

What is parsed and gzip size?

Parsed Size: Uncompressed size of the JS and CSS files. This much code needs to be parsed and stored in memory.
Gzip Size: Compressed size of the JS and CSS files. This much data needs to be downloaded over network.

Generated by performance advisor bot at iscalypsofastyet.com.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

5 participants