-
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
Fix Need more storage?
link on Hosting Overview page
#94702
Fix Need more storage?
link on Hosting Overview page
#94702
Conversation
Jetpack Cloud live (direct link)
Automattic for Agencies live (direct link)
|
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 |
Here is how your PR affects size of JS and CSS bundles shipped to the user's browser: Sections (~183 bytes added 📈 [gzipped])
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 (~120 bytes added 📈 [gzipped])
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. Generated by performance advisor bot at iscalypsofastyet.com. |
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.
@@ -195,6 +195,30 @@ const PricingSection: FC = () => { | |||
); | |||
}; | |||
|
|||
function PlanStorageFooter( { children }: PropsWithChildren< unknown > ) { |
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.
Hm, looks like we don't need it
function PlanStorageFooter( { children }: PropsWithChildren< unknown > ) { | |
function PlanStorageFooter( { children }: PropsWithChildren ) { |
Fixes #94670
Related to #94144
Proposed Changes
On the Hosting Overview page, the plan storage widget is sometimes a div and sometimes an anchor. The
Need more storage?
text in the footer of that widget was previously always a link, which is wrong since we don't want nested links. #94144 sought to fix this but made it soNeed more storage?
is never a link instead. This PR fixes that.I also took the opportunity to convert
client/blocks/plan-storage/index.js
to Typescript.Why are these changes being made?
Because we don't want nested anchors (since that's not valid HTML).
Testing Instructions
/overview/:site_slug
Need more storage?
is a clickable link/overview/:site_slug
Need more storage?
is not a link