Skip to content

Conversation

@kdaviduik
Copy link
Contributor

@kdaviduik kdaviduik commented Jan 26, 2026

WHY are these changes introduced?

Storefront API 2025-10 introduces article_reference and list.article_reference metafield types, allowing merchants to reference blog articles in metafields. This PR adds the corresponding parsing support in @shopify/hydrogen-react.

WHAT is this pull request doing?

Adds article_reference and list.article_reference metafield type support to the parseMetafield() utility, following the established pattern used by page_reference.

HOW to test your changes?

N/A - tested by CI

Checklist

  • I've read the Contributing Guidelines
  • I've considered possible cross-platform impacts (Mac, Linux, Windows)
  • I've added a changeset if this PR contains user-facing or noteworthy changes
  • I've added tests to cover my changes
  • I've added or updated the documentation

Copy link
Contributor Author

kdaviduik commented Jan 26, 2026

@shopify
Copy link
Contributor

shopify bot commented Jan 26, 2026

Oxygen deployed a preview of your 2025-10-article-reference branch. Details:

Storefront Status Preview link Deployment details Last update (UTC)
Skeleton (skeleton.hydrogen.shop) ✅ Successful (Logs) Preview deployment Inspect deployment January 27, 2026 5:17 PM

Learn more about Hydrogen's GitHub integration.

@kdaviduik kdaviduik marked this pull request as ready for review January 26, 2026 04:58
@kdaviduik kdaviduik requested a review from a team as a code owner January 26, 2026 04:58
@fredericoo fredericoo changed the base branch from 2025-10-sfapi-caapi-update to graphite-base/3407 January 26, 2026 10:34
@kdaviduik kdaviduik changed the title feat(hydrogen-react): add article_reference metafield type support [Done] feat(hydrogen-react): add article_reference metafield type support Jan 27, 2026
@kdaviduik kdaviduik force-pushed the 2025-10-article-reference branch from 04f9469 to 6b7fd54 Compare January 27, 2026 02:51
@kdaviduik kdaviduik changed the base branch from graphite-base/3407 to 01-20-chore_document_updated_cartdeliveryaddressesupdate_empty_array_behavior January 27, 2026 02:51
@kdaviduik kdaviduik changed the title [Done] feat(hydrogen-react): add article_reference metafield type support feat(hydrogen-react): add article_reference metafield type support Jan 27, 2026
@kdaviduik kdaviduik force-pushed the 01-20-chore_document_updated_cartdeliveryaddressesupdate_empty_array_behavior branch from 7327d10 to 24d26ad Compare January 27, 2026 17:11
Storefront API 2025-10 introduces article_reference and list.article_reference
metafield types, allowing merchants to reference blog articles in metafields.

This adds parsing support following the exact pattern established by
page_reference:
- Switch cases for single and list reference parsing
- Type definitions (ArticleParsedRefMetafield, ArticleListParsedRefMetafield)
- Entries in allMetafieldTypesArray and ParsedMetafields
- Article added to MetafieldReference union type
- Tests for both single and list variants
@kdaviduik kdaviduik force-pushed the 2025-10-article-reference branch from 6b7fd54 to b79b6fc Compare January 27, 2026 17:15
Base automatically changed from 01-20-chore_document_updated_cartdeliveryaddressesupdate_empty_array_behavior to main January 27, 2026 17:22
@kdaviduik kdaviduik merged commit a9173e4 into main Jan 27, 2026
12 of 13 checks passed
@kdaviduik kdaviduik deleted the 2025-10-article-reference branch January 27, 2026 17:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants