-
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
Replace site component with dataview combined fields #96657
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 (~31 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. 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. |
const siteTitle = isMigrationPending ? translate( 'Incoming Migration' ) : site.title; | ||
|
||
return ( | ||
<Button |
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.
Would it make sense to make this a non-button element? Because:
- The Site Title is already a focusable element, so having two focusable elements for the same action seems unnecessary.
- Ensuring the focus state is visible on mobile view seems somewhat tricky (it's not visible currently).
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.
Works for me.
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 |
I left a comment, but it looks to be working pretty well! |
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.
LGTM 👍
I noticed elements are vertically aligned in the list view, which differs from production & Core, but I can follow up on it in #96719.
I'm merging this PR since it streamlines subsequent changes. If you have any feedback later, @oandregal, we can address it in a follow-up! |
Fixes https://github.com/Automattic/dotcom-forge/issues/9735
Proposed changes:
Reworks the SiteField component to split site icon away from site title. Site icon is then combined with site-title on the table view and made the primary on list view with icon becoming the media field.
This change allows removal of the css overrides to hide the media and primary fields with display none.
Also fixes styling and disables onclick for deleted sites which was previously opening site stats (the fallback site home url) and taking you out of the sites dashboard with a broken browser back button.
Before
After
Testing