diff --git a/packages/ui-extensions/docs/surfaces/admin/screenshots/patterns/footerHelp.png b/packages/ui-extensions/docs/surfaces/admin/screenshots/patterns/footerHelp.png new file mode 100644 index 0000000000..365d472385 Binary files /dev/null and b/packages/ui-extensions/docs/surfaces/admin/screenshots/patterns/footerHelp.png differ diff --git a/packages/ui-extensions/docs/surfaces/admin/screenshots/patterns/resourceList.png b/packages/ui-extensions/docs/surfaces/admin/screenshots/patterns/resourceList.png new file mode 100644 index 0000000000..411dcf223b Binary files /dev/null and b/packages/ui-extensions/docs/surfaces/admin/screenshots/patterns/resourceList.png differ diff --git a/packages/ui-extensions/src/surfaces/admin/components/patterns/emptyState.ab.doc.ts b/packages/ui-extensions/src/surfaces/admin/components/patterns/emptyState.ab.doc.ts index 4ddd871857..1800ebbb6a 100644 --- a/packages/ui-extensions/src/surfaces/admin/components/patterns/emptyState.ab.doc.ts +++ b/packages/ui-extensions/src/surfaces/admin/components/patterns/emptyState.ab.doc.ts @@ -26,6 +26,11 @@ const data: ReferenceEntityTemplateSchema = { code: 'examples/emptyState.html', language: 'preview', }, + { + title: 'jsx', + code: 'examples/emptyState.jsx', + language: 'preview-jsx', + }, ], }, }, diff --git a/packages/ui-extensions/src/surfaces/admin/components/patterns/examples/appCard.html b/packages/ui-extensions/src/surfaces/admin/components/patterns/examples/appCard.html index 79c25998b9..efec7a29dd 100644 --- a/packages/ui-extensions/src/surfaces/admin/components/patterns/examples/appCard.html +++ b/packages/ui-extensions/src/surfaces/admin/components/patterns/examples/appCard.html @@ -4,7 +4,6 @@ borderRadius="base" padding="base" inlineSize="100%" - accessibilityLabel="Download Shopify Planet" > + + {/* aspectRatio should match the actual image dimensions (width/height) */} + Learn more about creating puzzles. + \ No newline at end of file diff --git a/packages/ui-extensions/src/surfaces/admin/components/patterns/examples/footerHelp.jsx b/packages/ui-extensions/src/surfaces/admin/components/patterns/examples/footerHelp.jsx new file mode 100644 index 0000000000..879a4a5311 --- /dev/null +++ b/packages/ui-extensions/src/surfaces/admin/components/patterns/examples/footerHelp.jsx @@ -0,0 +1,3 @@ + + Learn more about creating puzzles. + \ No newline at end of file diff --git a/packages/ui-extensions/src/surfaces/admin/components/patterns/examples/index.html b/packages/ui-extensions/src/surfaces/admin/components/patterns/examples/index.html index 43f81b1850..d21e6f6539 100644 --- a/packages/ui-extensions/src/surfaces/admin/components/patterns/examples/index.html +++ b/packages/ui-extensions/src/surfaces/admin/components/patterns/examples/index.html @@ -21,6 +21,7 @@ + + {/* aspectRatio should match the actual image dimensions (width/height) */} {" "} Learn more{" "} - + {" "} Create puzzle{" "} diff --git a/packages/ui-extensions/src/surfaces/admin/components/patterns/examples/mediaCard.html b/packages/ui-extensions/src/surfaces/admin/components/patterns/examples/mediaCard.html index 3380674cf6..5af8d8d24f 100644 --- a/packages/ui-extensions/src/surfaces/admin/components/patterns/examples/mediaCard.html +++ b/packages/ui-extensions/src/surfaces/admin/components/patterns/examples/mediaCard.html @@ -1,5 +1,5 @@ - + - + + + + + + Tagged with + + + + Clear + + + + Save + + + + Tagged with VIP + + + + + + Newest update + Oldest update + + + + + + + + + + + Mae Jemison + Decatur, USA + + + + + + + + + + + + Ellen Ochoa + Los Angeles, USA + + + + + + + + \ No newline at end of file diff --git a/packages/ui-extensions/src/surfaces/admin/components/patterns/examples/resourceList.jsx b/packages/ui-extensions/src/surfaces/admin/components/patterns/examples/resourceList.jsx new file mode 100644 index 0000000000..c0303dc540 --- /dev/null +++ b/packages/ui-extensions/src/surfaces/admin/components/patterns/examples/resourceList.jsx @@ -0,0 +1,58 @@ + + + + + + Tagged with + + + + Clear + + + + Save + + + + Tagged with VIP + + + + + + Newest update + Oldest update + + + + + + + + + + + Mae Jemison + Decatur, USA + + + + + + + + + + + + Ellen Ochoa + Los Angeles, USA + + + + + + + + \ No newline at end of file diff --git a/packages/ui-extensions/src/surfaces/admin/components/patterns/footerHelp.ab.doc.ts b/packages/ui-extensions/src/surfaces/admin/components/patterns/footerHelp.ab.doc.ts new file mode 100644 index 0000000000..e1eeea61da --- /dev/null +++ b/packages/ui-extensions/src/surfaces/admin/components/patterns/footerHelp.ab.doc.ts @@ -0,0 +1,53 @@ +import {ReferenceEntityTemplateSchema} from '@shopify/generate-docs'; + +const data: ReferenceEntityTemplateSchema = { + name: 'Footer help', + isOneColumnLayout: false, + overviewPreviewDescription: + 'Footer help is used to refer merchants to more information related to the product or feature they’re using.', + + description: `Footer help is used to refer merchants to more information related to the product or feature they’re using. + + | Used to | Examples | + | --- | --- | + | Refer merchants to related help docs | Learn more about [shipping zones]| + | Offer support as a secondary option | [Contact us] about email marketing | + + --- + + + +`, + isVisualComponent: true, + category: 'Patterns', + subCategory: 'Compositions', + thumbnail: '/assets/templated-apis-screenshots/admin/patterns/footerHelp.png', + defaultExample: { + codeblock: { + title: 'Footer help', + tabs: [ + { + title: 'Preview', + code: 'examples/footerHelp.html', + language: 'preview', + }, + { + title: 'jsx', + code: 'examples/footerHelp.jsx', + language: 'preview-jsx', + }, + ], + }, + }, + + related: [ + { + name: 'Built for Shopify', + subtitle: 'Requirements', + url: '/docs/apps/launch/built-for-shopify/requirements', + type: 'component', + }, + ], +}; + +export default data; diff --git a/packages/ui-extensions/src/surfaces/admin/components/patterns/resourceList.ab.doc.ts b/packages/ui-extensions/src/surfaces/admin/components/patterns/resourceList.ab.doc.ts new file mode 100644 index 0000000000..2b6fb46ba7 --- /dev/null +++ b/packages/ui-extensions/src/surfaces/admin/components/patterns/resourceList.ab.doc.ts @@ -0,0 +1,56 @@ +import {ReferenceEntityTemplateSchema} from '@shopify/generate-docs'; + +const data: ReferenceEntityTemplateSchema = { + name: 'Resource list', + isOneColumnLayout: false, + overviewPreviewDescription: + 'A resource list displays a collection of objects of the same type, like products or customers. The main job of a resource list is to help merchants find an object and navigate to a full-page representation of it.', + + description: `A resource list displays a collection of objects of the same type, like products or customers. The main job of a resource list is to help merchants find an object and navigate to a full-page representation of it. +. + + | Used to | Examples | + | --- | --- | + | Display collections of similar resources | Campaigns, subscribers, social posts, templates| + | Help merchants find and select items | Search subscribers by email; Filter campaigns by status | + | Perform bulk actions on selected items | Tag subscribers; Archive campaigns; Publish selected posts | + + --- + + + +`, + isVisualComponent: true, + category: 'Patterns', + subCategory: 'Compositions', + thumbnail: + '/assets/templated-apis-screenshots/admin/patterns/resourceList.png', + defaultExample: { + codeblock: { + title: 'Resource list', + tabs: [ + { + title: 'Preview', + code: 'examples/resourceList.html', + language: 'preview', + }, + { + title: 'jsx', + code: 'examples/resourceList.jsx', + language: 'preview-jsx', + }, + ], + }, + }, + + related: [ + { + name: 'Built for Shopify', + subtitle: 'Requirements', + url: '/docs/apps/launch/built-for-shopify/requirements', + type: 'component', + }, + ], +}; + +export default data; diff --git a/packages/ui-extensions/src/surfaces/admin/components/patterns/setupGuide.ab.doc.ts b/packages/ui-extensions/src/surfaces/admin/components/patterns/setupGuide.ab.doc.ts index 3be142e707..0ed9c90ef0 100644 --- a/packages/ui-extensions/src/surfaces/admin/components/patterns/setupGuide.ab.doc.ts +++ b/packages/ui-extensions/src/surfaces/admin/components/patterns/setupGuide.ab.doc.ts @@ -5,7 +5,7 @@ const data: ReferenceEntityTemplateSchema = { isOneColumnLayout: false, overviewPreviewDescription: 'Guide merchants through onboarding and setup with interactive checklists and progress tracking.', - description: `SetupGuide provides an interactive checklist to guide merchants through essential onboarding or configuration tasks. Progress is tracked visually, helping merchants complete all required steps and understand what remains. + description: `Setup guide provides an interactive checklist to guide merchants through essential onboarding or configuration tasks. Progress is tracked visually, helping merchants complete all required steps and understand what remains. | Used to | Examples | | --- | --- | | Onboard merchants | Initial app setup |