[Components content]: Examples for 2025-07#3873
Open
Conversation
32f0240 to
68095a0
Compare
bdfadb2 to
a65fc8e
Compare
a65fc8e to
62670ee
Compare
aca7f7d to
a488c2b
Compare
Co-authored-by: Cursor <cursoragent@cursor.com>
a488c2b to
30a561f
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Rewrites all code examples and descriptions for the 36 admin UI extension components in the 2025-07 API version. The existing examples were minimal placeholders (single-prop demos, missing descriptions, no real use cases). This PR replaces them with examples that show devs how to use each component in realistic extension scearios.
What changed
Example code (216 files): Each component now has 3 examples, each with a
.ts(imperative) and.tsx(React) version. Examples use real extension targets likeadmin.product-details.action.renderandblock.render, and demonstrate actual patterns developers need — querying the GraphQL Admin API, posting to backend endpoints, handling form submission, validating input, and working withdata.selected,close(), andnavigation.Documentation (36
.doc.tsfiles + 65 React.doc.tsfiles): EverydefaultExampleandexamplessection has been updated with:Prop validation: All props used in examples have been validated against the actual 2025-07 TypeScript type definitions to ensure no example references a prop, value, or component that doesn't exist in this version.
CSAT feedback
This PR closes the following feedback issues: