Discuss "page actions" on resource details layout pattern #8351
Replies: 27 comments
-
Another example - page actions on Custom Reports: Things I noticed:
|
Beta Was this translation helpful? Give feedback.
-
This likely sits outside scope but as a place to consolidate issues with More actions: currently app actions can't be translated. E.g. Translate & Adapt says 'Localize', regardless of what language your admin is in. |
Beta Was this translation helpful? Give feedback.
-
@tatianau would be able to articulate this more completely, but there are a11y issues with page actions. When a page action opens a modal, I think it's currently impossible to return focus to the correct element on modal close. If we're standardizing on page actions, let's add a requirement to pass an |
Beta Was this translation helpful? Give feedback.
-
Leaving separate comments for different topics: this work would be an excellent candidate for Fable testing, when we have a prototype or PR. #accessibility can help get that organized! |
Beta Was this translation helpful? Give feedback.
-
Is there a limit to the number of 'common actions', or is it driven by breakpoints? It would make sense to me to support more than two 'common actions' being exposed as buttons (rather than actionlist items that require a drill-down). |
Beta Was this translation helpful? Give feedback.
-
(cc @oksanashopify @maxariss for context) I second @jakemoves's point - the issues with focus not returning to the activator are prevalent across the Admin, the Products section alone has at least three occurrences (1, 2, 3), and all the issues across Admin sections have the same root cause:
@jakemoves AFAIK, there is no fixed limit - the number of secondary actions that are shown to the left of the @johanstromqvist would the problem benefit from creating a GH discussion where folks can share opinions and thread the feedback to each proposal / question individually? |
Beta Was this translation helpful? Give feedback.
-
Great input, friends! Much appreciated. Regarding the layout pattern itself
Issues
Feel free to create any discussions that you think are helpful. I will use this issue for what concerns the pattern documentation, but I'm happy to contribute and pick up insights in other issues and discussions too. |
Beta Was this translation helpful? Give feedback.
-
I’ve always wanted to do something like this (I think Jesse BC did too), so I’m generally 👍 Howver, there’s a risk that many merchants won’t know where to look for the actions once they’ve moved. What’s currently in that “More actions” menu is often just app actions. If a merchant doesn’t use apps, or isn’t used to using this menu, the support impact of this change could be significant. This is the kind of thing where I’d be tempted to do some kind of usability testing and/or try some kind of change management intervention. We don’t have good patterns for this kind of thing, but maybe putting something discrete where page actions used to be (not a banner!) to help guide users through the change. |
Beta Was this translation helpful? Give feedback.
-
(Also, I’d suggest putting the core actions like duplicate and delete above any app actions in the menu) |
Beta Was this translation helpful? Give feedback.
-
I want to second @ry5n 's comment. As an example, anecdotally I have heard some merchants frustrated with the new index table filtering UI, because it significantly changed their mental modal of the index table and how they could perform searching/filtering. I think we'd want to avoid the same here. Is there any mechanism in place to signify these new updates to the user? Maybe leveraging a local storage key or similar, and the first time they view this new experience, pop up some notification/modal banner with "Hey! Just FYI, we moved all the page actions under "More actions" now.", instead of merchants having to search once they realize the buttons aren't there anymore. Anyways, thats a bit unrelated to this specific topic but just something I wanted to agree with. In general I am in favor of this change, but one thing I wanted to bring up for the products page: on small viewport sizes, we collapse the "share" action (along with our other secondary actions) all into the "More actions" dropdown. Adding additional menu items here could make this menu quite long. Maybe its not too much of an issue, but figured I would bring it up. |
Beta Was this translation helpful? Give feedback.
-
Great points! Agree on recurring page actions in the top of the list. ✅
|
Beta Was this translation helpful? Give feedback.
-
Also great points!
Since this an initiative to document what layout pattern to use in this context, I'd like to keep the scope to that and let each 1P product team consider the specific implications on their respective pages if and when they make updates. I agree that it would be great to communicate what changes on a page, but I don't know what would be the appropriate solution to the different pages.
I think long lists are acceptable to some degree, but something that should be monitored by each page owner. If we would encounter very long lists often, then that would imply that there's an unmet systemic need that we would want to look into. |
Beta Was this translation helpful? Give feedback.
-
For draft orders - I like the look of the suggested pattern. We dont have many app links so for now the list length isnt an issue. We have surfaced 2 common actions - duplicate and share; however our delete action is in the footer atm as draft orders arent really manually deleted much. |
Beta Was this translation helpful? Give feedback.
-
I see, I missed that. In that case, it does feel safe. So that merchants have a consistent place to find things, I’d suggest a plan for follow-up steps, after first publishing guidelines:
|
Beta Was this translation helpful? Give feedback.
-
I'm loving this conversation!
Small thing, but I wanted to suggest in this case that we consolidate "share" into one action within the list that then pops up a modal (or something of the sort) with all the different share options, to assist in the "long action lists" problem. |
Beta Was this translation helpful? Give feedback.
-
@johanstromqvist we've got this guy. Want it moved to another board? |
Beta Was this translation helpful? Give feedback.
-
Great! No, not necessarily. I wanted to exclude it from the scope of the layout pattern documentation without losing it. Keep it in |
Beta Was this translation helpful? Give feedback.
-
I wanted to add another example: Variants Detail page. Mobile View: Screen.Recording.2023-01-19.at.13.39.04.mov
|
Beta Was this translation helpful? Give feedback.
-
Thanks for all the great input friends! Below is what I would like to proceed to include in our @nickpresta @designrichly @jakemoves @tatianau @ry5n @LA1CH3 @rox163 @raquelbreternitz @gothammm Please give this a thumbs up or comment if you have any concerns or suggestions. Rough guidelines
Further initiatives
|
Beta Was this translation helpful? Give feedback.
-
I think this is looking great. Here's a thought to consider: I'm representing an app (Translate & Adapt) which relies on More actions throughout admin, there's a realistic chance of getting relegated far down. Here's a screenshot of a store with a long title, that pushes all page actions into More actions, including Share: Localize, our action, could end up pretty far down. Here is that same menu on mobile: Merchants may use app actions over and over again - more than they use some of Shopify's out of the box ones. E.g. I'm personally not convinced how helpful Share is. A thought to toy with (which I recognise pushes scope) is pinning app actions. We do this for apps in the navigation when they get used a lot: And Amazon has a helpful pattern along these lines to bookmark commonly used navigation items: Something like that feels like it might be helpful for heavy app users: Thoughts? |
Beta Was this translation helpful? Give feedback.
-
@johanstromqvist I am in agreement with your proposed pattern but I would again bring up the "Share" list. I think for this pattern to work we might need to include something in the documentation to not have page-specific actions bury recurring actions. In the case of "Share", which is currently a flat list of "Copy link", "Facebook", "Twitter", etc., that would be six items listed before the user sees "Archive" and "Delete". I think @raquelbreternitz suggestion of "Share" with a modal or something similar would be necessary for this pattern to work effectively. I see your screenshot only includes a single "Share" item so maybe that becomes part of the Product Details Page initial implementation of this pattern. |
Beta Was this translation helpful? Give feedback.
-
@johanstromqvist not against this in principle - I think your logic is sound. However as a heads up there is an ongoing project focused directly on improving and building out app actions. One the key things that's looking to be done there is to allow that list of app actions to be searchable (it can grow unmanageably long in a lot of instances). Curious how you would see us integrating search into this pattern? |
Beta Was this translation helpful? Give feedback.
-
Thanks friends! Great value. Please keep it coming. Just to be clear, the purpose of the pattern documentation is to inform 1P and 3P builders to make great decisions quickly. In this case, to use the details layout pattern when merchants would expect it, and to implement it in a way that would maintain high quality and consistency. That means that the critical decisions that builders make when using it is our primary concern. When it comes to page actions, that means (1) to not create a footer with actions, and (2) to arrange secondary actions in whatever order we suggest (not final). Builders will not be able to influence the behaviour or functionality of the list. The list itself and its behaviour is managed by various 1P teams. Any future improvements to the layout pattern, to the "More action" list itself, or to any other element on the page are super welcome, and we'll be happy to update the pattern docs when that happens. We'll also try to help teams to conform to the recommended pattern after we've published it. I'm sure there are unknown unknows that we'll discover along the way, but we'll figure it out. Regarding order of actions
I think this is key. I assume the apps merchants install are typically more intentional and more frequently used. Is there insight or data that could support this? Not absolutely necessary, but would take some complexity out of the decision. Regarding share actions@LA1CH3 @designrichly Regarding pinning actions@designrichly Regarding search inside the list@jameswfindlater |
Beta Was this translation helpful? Give feedback.
-
Will do 👍 |
Beta Was this translation helpful? Give feedback.
-
No I wouldn't say that. The amount of app actions that show there is governed by the amount of applicable apps that a merchant has installed, and sometimes that's a lot. It's not something we can directly control or curate beyond app guidelines on appropriate use. So offering the ability to search them once they're above a certain amount seems like table stakes in terms of scaling capabilities. Also for certain apps these links will be a merchant's access point to pretty important 1P/3P functionality, so I don't think we should think of them in the same breadth as things like archive, duplicate etc. I know we already do this in some instances but I don't think it's good idea to double down on it. |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
Here's a summary of our short term plans
The general switch is from footer to header. We're not making an effort to guide specific order in secondary actions right now. Polaris patterns – Resource details layout
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Goal: We want a standardized layout pattern for details pages, including clarity where to place common page actions such as
duplicate
,archive
anddelete
.Problem: Common details pages, such as Products, Orders, and Customers, currently lack consistent placement of such actions.
Examples
More examples
Products
## Products Products has no page actions in "More actions", but `duplicate` in common actions, and `archive`, `delete` and `save` in footer actions.Orders
## Orders Orders has `cancel order` and `archive` in "More actions", and no footer actionsCustomers
## Customers Customers has TWO `delete` actions, one in "More actions" and one in the footer. Plus the destructive button has wrong styling.Discounts
## Discounts Discounts has no "More actions", but `duplicate` among common actions and `delete` in footer actionsExploration
Log of previous suggestions
v0.4 v0.3

v0.2

v0.1

Goals
It must be very easy and intuitive to find recurring page actions on pages that looks similar. Pages may vary to some degree depending on its purpose, but frequently recurring page actions must default to a standardized placement. Any exceptions should be made with great caution.
TODOs
Beta Was this translation helpful? Give feedback.
All reactions