wp-calypso icon indicating copy to clipboard operation
wp-calypso copied to clipboard

A4A > Referrals: Implement UI for the referrals' 3-column consolidated view

Open yashwin opened this issue 1 year ago • 3 comments

This PR is built on top of https://github.com/Automattic/wp-calypso/pull/91086

Closes https://github.com/Automattic/jetpack-genesis/issues/346

Proposed Changes

This PR implements UI for the referrals' 3-column consolidated view

NOTE:

Testing Instructions

  1. Open the A4A live link.
  2. Append the /referrals URL as /referrals?flags=-a4a-automated-referrals, and verify that the above changes are not reflected and that the Referrals page matches the production.
  3. Remove the feature flag > Go to Referrals - Dashboard.
  4. Use the below API endpoint manually to create a referral if you don't have some. Create a couple of them

POST https://public-api.wordpress.com/wpcom/v2/agency/230591090/referrals?agency_id={your_agency_id}&client_email={client_email}&client_message={your_message}&product_ids={product_id,products_2}

  1. Patch D149816
  2. Now visit the Referrals - Dashboard & refresh the page and verify that the page looks like below & everything shown is calculated correctly.
Screenshot 2024-05-24 at 2 09 24 PM

Pre-merge Checklist

  • [x] Has the general commit checklist been followed? (PCYsg-hS-p2)
  • [ ] Have you written new tests 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)?
  • [x] 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-aUh-p2)?

yashwin avatar May 24 '24 08:05 yashwin

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

Sections (~281 bytes added 📈 [gzipped])

name                        parsed_size           gzip_size
a8c-for-agencies-referrals      +1267 B  (+0.3%)     +281 B  (+0.2%)

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.

matticbot avatar May 24 '24 08:05 matticbot

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 add/a4a/referral-consolidated-data on your sandbox.

matticbot avatar May 24 '24 13:05 matticbot