Skip to content

Enrich JSDoc for Platform APIs property descriptions (2026-04-rc)#4270

Open
SteveSill wants to merge 1 commit into2026-04-rcfrom
2026-04-rc-platform-api-descriptions
Open

Enrich JSDoc for Platform APIs property descriptions (2026-04-rc)#4270
SteveSill wants to merge 1 commit into2026-04-rcfrom
2026-04-rc-platform-api-descriptions

Conversation

@SteveSill
Copy link
Copy Markdown
Contributor

@SteveSill SteveSill commented Apr 6, 2026

Summary

  • Ports enriched JSDoc descriptions from checkout-web to ui-extensions 2026-04-rc for 9 Platform APIs: Analytics, Extension, I18n, I18nTranslate, Localization, Session Token, Shop, Storage
  • Replaces circular/terse descriptions with actionable JSDoc that explains what each API does, when to use it, and what values to expect
  • Adds type-level descriptions for Analytics, Shop, I18n, I18nTranslate, Localization, Editor, Storage, and SessionToken interfaces

Test plan

  • Run yarn docs:checkout 2026-04-rc to verify doc generation succeeds
  • Verify generated_docs_data_v2.json includes enriched descriptions
  • Review generated descriptions in shopify.dev preview

Partially closes https://github.com/shop/issues-learn/issues/1046

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Apr 6, 2026

🚨🚨🚨 Docs migration in progress 🚨🚨🚨

We are actively migrating UI extension reference docs to MDX in the areas/platforms/shopify-dev zone of the monorepo. This impacts docs for the following surfaces:

During this migration, please be aware of the following:

.doc.ts files are being deprecated. Changes to .doc.ts files in this repo will not be reflected in the new MDX-based docs. If you need to update docs for a reference that has already been migrated, make your changes directly in the areas/platforms/shopify-dev zone of the monorepo instead.

Doc comments in .ts source files (the comment blocks above types and functions) are also affected. Generating docs from these comments currently requires a newer version of the @shopify/generate-docs library that isn't yet available. Updates to doc comments may not produce the expected output until the migration is complete.

Examples that previously lived in this repo are being moved to the areas/platforms/shopify-dev zone of the monorepo and should be authored there going forward.

What should I do?

  • If your PR includes changes to .doc.ts files, doc comments, or examples, please reach out to us in #devtools-proj-templated-refs so we can help ensure your updates are captured correctly.
  • If your PR is limited to source code changes (non-docs), you can ignore this notice.

Thanks for your patience while we complete the migration! 🙏

@SteveSill SteveSill force-pushed the 2026-04-rc-platform-api-descriptions branch from ab9df94 to af03665 Compare April 7, 2026 03:57
@SteveSill SteveSill self-assigned this Apr 7, 2026
@SteveSill SteveSill force-pushed the 2026-04-rc-platform-api-descriptions branch from af03665 to 819986b Compare April 7, 2026 04:03
@SteveSill SteveSill added Checkout UI Extensions #gsd:49303 Shopify Dev Docs: UI Extension Reference Docs: Quality & Completeness labels Apr 7, 2026
@SteveSill SteveSill force-pushed the 2026-04-rc-platform-api-descriptions branch 2 times, most recently from 5c8cc78 to 42f7181 Compare April 7, 2026 15:57
Port enriched JSDoc descriptions from checkout-web to ui-extensions
2026-04-rc. Covers Analytics, Extension, Localization, Metafields,
Session Token, Settings, Shop, Storage, and Storefront APIs.

Every description verified against the 2026-04-rc TypeScript types.

Partially closes shop/issues-learn#1046

Made-with: Cursor
@SteveSill SteveSill force-pushed the 2026-04-rc-platform-api-descriptions branch from 42f7181 to 2aa7564 Compare April 7, 2026 16:05
@SteveSill SteveSill marked this pull request as ready for review April 7, 2026 16:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Checkout UI Extensions #gsd:49303 Shopify Dev Docs: UI Extension Reference Docs: Quality & Completeness

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant