-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Plans (State): Remove plansLoaded logic from JP app plans #92485
Conversation
Jetpack Cloud live (direct link)
Automattic for Agencies live (direct link)
|
Here is how your PR affects size of JS and CSS bundles shipped to the user's browser: Sections (~282 bytes removed 📉 [gzipped])
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. Generated by performance advisor bot at iscalypsofastyet.com. |
@staskus can you please give me instructions on testing the JP app plans - or review the changes here? Thank you! 🙇 |
@chriskmnds, different flows are described wordpress-mobile/WordPress-iOS#21688. In short, if you log into the Jetpack app using a WP.com account, and create a site, you get taken to this domain and plan selection flow. Simulator.Screen.Recording.-.iPhone.15.-.2023-10-04.at.16.24.38.mp4However, it's more complicated to test this particular change on the app, since you would either need to input a different URL within the code using Xcode or use tools such as Charles to re-route URLs. I think the middle ground would be to test scenarios described in this PR #83281: Testing InstructionsBefore testing, set wp-iphone or wp-android user agents. paid_domain_name + free plan selection
paid_domain_name + paid plan selection
no parameters + free plan selection
no parameters + paid plan selection
If needed, I could test tomorrow. |
7d1fc4d
to
7d8fd42
Compare
533e375
to
7b2a6d6
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I tested the described scenarios and also ran the page locally on the app. I haven't noticed anything suspicious around loading. 👍
Feel free to ping me when you deploy all these changes, I can quickly test in production as well.
Thank you for the detailed instructions and for the testing @staskus! Very much appreciate this 🙌
will do! Tomorrow I plan to get this and the base PR deployed :-) |
7d8fd42
to
5c7bc3b
Compare
7b2a6d6
to
819349e
Compare
This PR modifies the release build for the following Calypso Apps: For info about this notification, see here: PCYsg-OT6-p2
To test WordPress.com changes, run |
Thanks again @staskus for the instructions. Just deployed the changes. Also tested the cases that you mentioned. p.s. for some reason the CTA/buttons were all disabled on the |
Thanks for the ping, @chriskmnds. I retested some of the scenarios again on the app and they continue to work as before 👍 |
Part of addressing #86638
Proposed Changes
Removes the logic for generating the
plansLoaded
variable in the jetpack-app plans.Caveats:
This is primarily used for generating a loading ellipsis before rendering the
PlansFeaturesMain
component, which generates its own loading status and placeholder. However, we'd need to confirm if<Header paidDomainName={ paidDomainName } />
is ok to render before the plans are populated in the data-store. Otherwise, one of the Query hooks (or pricing selector hook) can be used to re-establish the loading state where it was.Why are these changes being made?
We only need one form of handling plan pricing in the code base, more so one framework. Anything else risks having alternative and differing views of the same data propagating across the code base.
Testing Instructions
See detailed instructions below on testing various cases with the JP app: #92485 (comment)
Pre-merge Checklist