Skip to content

docs: meteor sdk docs edits#1109

Merged
David Traum (davidtraum) merged 7 commits into
docs-changes-mar12from
docs-changes-apr10
Apr 21, 2026
Merged

docs: meteor sdk docs edits#1109
David Traum (davidtraum) merged 7 commits into
docs-changes-mar12from
docs-changes-apr10

Conversation

@davidtraum

Copy link
Copy Markdown
Contributor

What?

Adresses suggested docs improvements in #1075.

@vercel

vercel Bot commented Apr 10, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Actions Updated (UTC)
meteor-component-library Ignored Ignored Preview Apr 16, 2026 1:22pm

Request Review

@davidtraum David Traum (davidtraum) changed the title docs: meteor sdk docs corrections docs: meteor sdk docs edits Apr 14, 2026
@davidtraum David Traum (davidtraum) marked this pull request as ready for review April 14, 2026 13:46
@davidtraum David Traum (davidtraum) added component/administration domain/framework Responsible for the framework-level code includes core, administration, storefront, and frontends documentation DevHub healthcheck labels Apr 14, 2026

@gweiermann Gerrit Weiermann (gweiermann) left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've just discovered that return values all end with a semicolon, which I find quite odd. In my opinion, we should remove the semicolons.

Also, depending on the scope of this PR, not all of Jannis's comments were resolved

| `entityId` | true | | The entity id which should be cloned |
| `context` | false | {} | Change the [request context](#request-context) |
| `context` | true | | Change the [request context](#request-context) |
| `behavior` | false | | Optional clone behavior passed as the third argument |

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Description should include answers to the questions:

  • What is a clone behavior
  • What type is the parameter

@davidtraum David Traum (davidtraum) Apr 15, 2026

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have now added a separate description with an example, in the same style as context.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good :)

fileAccept: "image/png",
selectors: ["fileName", "id", "url"],
callback: ({ fileName, id, url }) => {},
callback: (mediaSelections) => {},

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

tbf, I think it's a nice way to show the type of mediaSelections with just destructuring it like it was before with { fileName, id, url }

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I changed it to [{ fileName, id, url }] to indicate that it is an array while still maintaining the destructuring.

Comment thread docs/admin-sdk/getting-started/index.md Outdated
Comment on lines 21 to 22
- They work with **Shopware Cloud** and self-hosted instances
- They can be distributed through the Shopware Store
- The frontend and backend are fully decoupled from the Shopware codebase

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's missing your suggestion

[...] to say that they are the only option that works with Shopware SaaS.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I changed the bullet point to also mention shopware Saas

@pkg-pr-new

pkg-pr-new Bot commented Apr 15, 2026

Copy link
Copy Markdown

Open in StackBlitz

@shopware-ag/meteor-admin-sdk

npm i https://pkg.pr.new/shopware/meteor/@shopware-ag/meteor-admin-sdk@1109

@shopware-ag/meteor-component-library

npm i https://pkg.pr.new/shopware/meteor/@shopware-ag/meteor-component-library@1109

@shopware-ag/create-meteor-extension

npm i https://pkg.pr.new/shopware/meteor/@shopware-ag/create-meteor-extension@1109

@shopware-ag/meteor-icon-kit

npm i https://pkg.pr.new/shopware/meteor/@shopware-ag/meteor-icon-kit@1109

@shopware-ag/meteor-prettier-config

npm i https://pkg.pr.new/shopware/meteor/@shopware-ag/meteor-prettier-config@1109

@shopware-ag/stylelint-plugin-meteor

npm i https://pkg.pr.new/shopware/meteor/@shopware-ag/stylelint-plugin-meteor@1109

@shopware-ag/meteor-tokens

npm i https://pkg.pr.new/shopware/meteor/@shopware-ag/meteor-tokens@1109

commit: e641b1b

Comment on lines +265 to +266
```ts
const exampleCloneBehavior = {

@gweiermann Gerrit Weiermann (gweiermann) Apr 15, 2026

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just an idea to emphasize the type of the parameter. The actual type is probably different:

Suggested change
```ts
const exampleCloneBehavior = {
```ts
interface CloneBehavior {
overwrites: object; // object that follows the same structure as the entity to overwrite its properties
cloneChildren: boolean;
}
const example: CloneBehavior = {

Edit: but we can also postpone that idea for a second iteration where we'd add a type column in the parameters table for all APIs

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I like this idea but would also suggest to postpone it for the next iteration and do it in the same way for all APIs as you suggested.

It would also be nice to add those types to the SDK itself in the same step, not just to the docs. Currently the clone behavior is a parameter without a type (just any).

@davidtraum David Traum (davidtraum) merged commit 42f9d59 into docs-changes-mar12 Apr 21, 2026
12 checks passed
@davidtraum David Traum (davidtraum) deleted the docs-changes-apr10 branch April 21, 2026 07:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

component/administration documentation DevHub healthcheck domain/framework Responsible for the framework-level code includes core, administration, storefront, and frontends

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants