Skip to content

Support optional owner_type in UI extension metafields - #8534

Open
kumar303 wants to merge 3 commits into
mainfrom
ui-ext-metafield-owners-in-toml
Open

kumar303 wants to merge 3 commits into
mainfrom
ui-ext-metafield-owners-in-toml

Conversation

@kumar303

@kumar303 kumar303 commented Sep 14, 2026

Copy link
Copy Markdown
Contributor

WHY are these changes introduced?

For checkout and customer account UI extensions, we're introducing owner_type as an optional field for metafield declarations. See UI-TAG spec (private link).

WHAT is this pull request doing?

This enables TOML configuration like:

[[extensions.metafields]]
namespace = "$app"
key = "energy-rating"
owner_type = "PRODUCTVARIANT"

[[extensions.metafields]]
namespace = "custom"
key = "age-verification-required"
owner_type = "CUSTOMER"

The owner_type allows surfaces to optimize metafield fetching in ways that was previously not possible.

API change to support this https://meteorite.shopify.io/repos/shop/world/pulls/2062315/files (private)

How to manually test your changes?

TODO

Post-release steps

Checklist

  • I've considered possible cross-platform impacts (Mac, Linux, Windows)
  • I've considered possible documentation changes
  • I've considered analytics changes to measure impact
  • The change is user-facing — I've identified the correct bump type (patch for bug fixes · minor for new features · major for breaking changes) and added a changeset with pnpm changeset add

@github-actions github-actions Bot added the Area: @shopify/app @shopify/app package issues label Sep 14, 2026
@kumar303
kumar303 marked this pull request as ready for review September 14, 2026 16:33
@kumar303
kumar303 requested a review from a team as a code owner September 14, 2026 16:33
Comment thread packages/app/src/cli/models/extensions/schemas.ts Outdated
@kumar303
kumar303 force-pushed the ui-ext-metafield-owners-in-toml branch from 2de14c3 to 050709b Compare September 15, 2026 08:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Area: @shopify/app @shopify/app package issues

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants