[Target APIs content]: Examples and descriptions for 2024-10#3826
[Target APIs content]: Examples and descriptions for 2024-10#3826
Conversation
|
We detected some changes in |
e71b0d1 to
d202b75
Compare
mcvinci
left a comment
There was a problem hiding this comment.
There are a handful of example files that we can actually clean up from this PR, given that some of the APIs don't exist in this version. I've added some comments about that below.
🚀 🚀 Also, approving, pending these suggestions are considered for this version as well: #3823 (review)
| @@ -0,0 +1,42 @@ | |||
| import {extension, Button} from '@shopify/ui-extensions/admin'; | |||
There was a problem hiding this comment.
I don't think we need all these examples in this version, given the Picker API isn't available?
| Banner, | ||
| } from '@shopify/ui-extensions-react/admin'; | ||
|
|
||
| const ConfigureDiscountThreshold = () => { |
There was a problem hiding this comment.
Same here. I don't think we need these examples in this version, given the Discount Function Settings API isn't available in this version.
| @@ -0,0 +1,53 @@ | |||
| import {extension, Text, Button, Banner} from '@shopify/ui-extensions/admin'; | |||
There was a problem hiding this comment.
Same here. This API isn't available in this version, so we can remove the examples.
| @@ -0,0 +1,13 @@ | |||
| import {extension} from '@shopify/ui-extensions/admin'; | |||
There was a problem hiding this comment.
Should Render API isn't available in this version, so we should remove the example files.
a084fff to
433b88f
Compare
Co-authored-by: Cursor <cursoragent@cursor.com>
433b88f to
e90a1e2
Compare
Admin UI Extensions - Examples 2024-10
Summary
This PR adds comprehensive code examples for all Admin UI Extension Target APIs in the 2025-10 version. All examples follow the modern Preact pattern established in POS UI Extensions, using
.jsxfiles with the globalshopifyobject.