-
Notifications
You must be signed in to change notification settings - Fork 2k
Try: make the "primary colum" clickable #103277
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
base: trunk
Are you sure you want to change the base?
Conversation
Jetpack Cloud live (direct link)
Automattic for Agencies live (direct link)
|
@StevenDufresne @jasmussen @ntsekouras @matt-west this PR is an attempt to address what was discussed in QOBjujZah0UlGDDdLKZhzi-fi-1059_63137#1247411599 |
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 (~8 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. |
Let me know if I'm testing right, I'm seeing the following: Note here the curious focus style, it should just be the standard one. We have mixins for it in base-styles. The main change here is making the whole left area clickable to open the site. This feels valid to me. I do wonder if we should remove the hover style from the entire row, if that doesn't do anything. 🤔 |
I think the approach makes sense, though we should do it for every layout, if we end up moving on with this. We should consider what this means for this specific usage in Someone could argue that a description field should be more 'descriptive' and it would be fine not to have extra links(click behavior) and I personally agree with this. But then we need to consider why we had the link of the site there in the first place? Is it the best place to have it there or it could work just fine by replacing it with another field or probably a primary action (view site)? Another thing we should consider is how this experience feels when multi selection is enabled, because in the |
I think this is the key knot to untie. It's something @jameskoster also brought up in p1746786699361669-slack-C05QAFZSFTL. I don't think the two experiences mix well as it stands. There's been so many instances of this being an issue or brought up by people that it's leading me to think the current behavior is not working as intended. Happy to hear ideas of how to address it. |
Yeah, that's right. In terms of styles, there's probably things to do if we wanted to explore this path in depth (just prepared the micro-interaction for us to get a sense of how would it work with other things). |
We had explored having the domain in a dedicated column, but moved it under the site title to save space. It’s useful to have the domain visible to distinguish between sites with similar names, but it doesn’t need to be clickable. |
+1. Dotcom has this behaviour in the sites table today, but I assume it was implemented in a non-standardised way.
The hover style can still be useful for visually identifying the hovered row when you have a lot of items in the table. |
Related conversation: QOBjujZah0UlGDDdLKZhzi-fi#1247411599
Proposed Changes
This PR makes the primary column of the DataViews table clickable and removes the other clickable target in the same cell (external link to site).
Before:
Screen.Recording.2025-05-09.at.12.18.05.mov
After:
Screen.Recording.2025-05-09.at.12.17.38.mov
Why are these changes being made?
Having two clickable targets is the same cell is prone to errors — they are small targets. Additionally, it was brought up in a few places that the "clicking the title field" to trigger an action was not very discoverable. This PR addresses it by making the whole cell clickable, without changing anything else.
TODO
Test/Verify other flows (layouts, with/without title field, etc.).
Testing Instructions
In the v2 dashboard, go to sites and click on the "primary column".