Discuss the app settings layout pattern #8217
Replies: 6 comments 6 replies
-
The link underneath the code brings you to a broken sandbox. |
Beta Was this translation helpful? Give feedback.
-
@johanstromqvist What would be the best way to provide some feedback on all this? Separate issues, or one larger one explaining what I'm trying to achieve and the problems I'm facing along the way? I've created an app using shopify-cli and polaris (10.49.1), and the default pages work, but as soon as I try to import elements from the settings page pattern, like I really don't want to come across as a thankless, disgruntled user, but I am getting a bit frustrated by different 'how to' pages pointing to each other so if there is any way I can help fix that I'm all ears ;) edit after creating a new app using the QR Code tutorial I'm able to import Also, the example pages generated by |
Beta Was this translation helpful? Give feedback.
-
There is a difference between the screenshot and the code in this example: The example screenshot at the top seems to show two lists: |
Beta Was this translation helpful? Give feedback.
-
Hey @johanstromqvist - curious about what the rationale is for using a 2-column layout for in-app settings rather than 1 column? I'm working on Marketplace Connect (1P app) and found that maintaining the recommended 2-column layout feels extra redundant since there's not a lot of context needed for each section. In this case, would the team be open to designers making their own judgement on whether or not to maintain the recommended 2-column layout or explore other options? By no means is this final, but here's an example of what it might look like if I were to use the suggested polaris pattern. |
Beta Was this translation helpful? Give feedback.
-
Hi @cherrychau! Thanks for checking in, great question! The rationale behind the two-column layout is scannability, helping merchants easily glance multiple topics and find their configurations quickly. Secondly, when providing section descriptions it separates the "understanding" from the "configuring". Granted, this is optimized for larger numbers of configurations that often require descriptions. Improvements can always be made, the Admin Settings is a good example of that. The intent behind the pattern documentation is to raise the quality floor and make it easier for builders to align behind a single pattern so that merchants always know what to expect and how to use it. It's not always the best solution, but it being a shared solution has a lot of merchant value in itself.
Patterns are defaults and strong recommendations based on what's most effective for merchants most of the time. You and your team are always ultimately responsible for the experience you build and your perspective and knowledge about your specific users is the most important one. Think of patterns as an opinion about what merchants will expect, and deeply consider that when you're designing your experience. If the value of deviating outweighs the value of consistency, then it sounds like a good idea to deviate. Perhaps more importantly, if you think a pattern is suboptimal in general, then the best thing to do is to document your observations and alternative designs. Then share that and get feedback from teams around you. If multiple teams tend to agree, then you can open an issue to contribute it back to Polaris. For merchants' sake, it's important that we don't branch off the product experience into multiple different directions based on local opinions. |
Beta Was this translation helpful? Give feedback.
-
Hi there! I'm new to developing shopify apps, and I find the publication of these patterns a great help in understanding how the different components of Polaris fit together: thanks! I have a technical question: in the example code, you use a combination of BlockStack, InlineGrid and Box to achieve the desired layout. Why do you not just use Layout with Layout.AnnotatedSection children (as here )? In other words, why not have a hierarchy Page > Layout > ...Layout.AnnotatedSection? To a newcomer like me, this looks tailormade for a settings page. Are those components set to be deprecated? Do they have tradeoffs that make them unsuitable? Or is it just a matter of preference? |
Beta Was this translation helpful? Give feedback.
-
Welcome to the app settings layout pattern discussion!
Here are some things you can do here:
💡 Share ideas on how to make this pattern, or its documentation, better.
❓ Ask a specific question about this pattern.
Tips before posting:
💜👩🚀✌️ the Polaris team
Beta Was this translation helpful? Give feedback.
All reactions