Automattic / wp-calypso

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

Passwordless Auth Core Profiler - Display an error when the requested user is unknown #96666

Closed moon0326 closed 5 hours ago

moon0326 commented 6 hours ago

Related to p1732259352777309-slack-C01SFMVEYAK

Proposed Changes

Why are these changes being made?

Testing Instructions

  1. Checkout this branch and run yarn start
  2. Open this link in an incognito session.
  3. Enter an unknown username.
  4. You should see an error message.

Pre-merge Checklist

github-actions[bot] commented 6 hours ago
Calypso Live (direct link)
https://calypso.live?image=registry.a8c.com/calypso/app:build-125403
Jetpack Cloud live (direct link)
https://calypso.live?image=registry.a8c.com/calypso/app:build-125403&env=jetpack
Automattic for Agencies live (direct link)
https://calypso.live?image=registry.a8c.com/calypso/app:build-125403&env=a8c-for-agencies
matticbot commented 5 hours ago

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

App Entrypoints (~5 bytes added πŸ“ˆ [gzipped])

``` name parsed_size gzip_size entry-login +68 B (+0.0%) +5 B (+0.0%) ``` Common code that is always downloaded and parsed every time the app is loaded, no matter which route is used.

Sections (~6 bytes added πŸ“ˆ [gzipped])

``` name parsed_size gzip_size jetpack-connect +68 B (+0.0%) +6 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.

Async-loaded Components (~6 bytes added πŸ“ˆ [gzipped])

``` name parsed_size gzip_size async-load-design-blocks +68 B (+0.0%) +6 B (+0.0%) ``` React components that are loaded lazily, when a certain part of UI is displayed for the first time.

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.