Repository navigation
LTRAC-1062: feat(core) - Show catalog product attributes on the PDP - #3354
Merged
jordanarldt merged 3 commits intoNov 30, 2026
Merged
jordanarldt merged 3 commits into
jordanarldt merged 3 commits into
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
🦋 Changeset detectedLatest commit: 4c8129e The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
jordanarldt
force-pushed
the
jordanarldt/ltrac-1062-c2-catalyst-query-productattributes
branch
from
November 19, 2026 16:45
9ea81a7 to
bb1f77f
Compare
Query Product.attributes in the PDP streamable product query and list each attribute's display name and value in the Specifications accordion, after the custom fields. Products without attributes render as before. Refs LTRAC-1062 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Add catalog API helpers for the v0 attributes, product templates and template assignments endpoints, and a catalog fixture method that gives a product attributes by assigning it a template with the values selected. The new e2e test checks each attribute's name and value in the Specifications accordion and cleans up the attributes and template. Refs LTRAC-1062 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
jordanarldt
force-pushed
the
jordanarldt/ltrac-1062-c2-catalyst-query-productattributes
branch
from
November 23, 2026 15:21
bb1f77f to
57a0dde
Compare
rtalvarez
approved these changes
Nov 24, 2026
jorgemoya
approved these changes
Nov 30, 2026
Contributor
|
Can we just confirm why E2E tests did not pass @jordanarldt |
…s in tests The v0 catalog attributes endpoint now rejects attributes without a `settings` object, which made the PDP attributes e2e test fail with a 422. Send an empty object so the attribute takes the defaults for its type. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
jordanarldt
deleted the
jordanarldt/ltrac-1062-c2-catalyst-query-productattributes
branch
November 30, 2026 20:35
This branch was successfully deployed
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.
What/Why?
Show catalog product attributes on the product page. The streamable product query in
core/app/[locale]/(default)/product/[slug]/page-data.tsnow selectsProduct.attributes, andpage.tsxlists each attribute's display name and value in the Specifications accordion, after the custom fields. Products without attributes render the same as before.first: 50so products with more than the default page size of attributes don't get cut off.Product.attributesis still marked@deprecated("Alpha version. Do not use in production.")in the Storefront GraphQL schema.Testing
pnpm exec tsc --noEmitand ESLint pass.attributes(first: 50)against a dev store: products with attributes return their name/value pairs (13 on several sample products) and products without them return an empty list with no errors.core/tests/ui/e2e/product.spec.ts(@writes-data): it creates a product, gives it two attributes, opens Specifications and checks each name sits next to its value. To set up the data, the catalog fixture gainsassignAttributesToProduct, backed by new API client helpers for the v0 catalog attributes, product templates and template assignments endpoints. Cleanup deletes the assignment, template, attributes and product. The helpers fail on a207partial success, not just on error statuses.The test needs an access token that can write catalog data and a store where catalog attributes are enabled.
Known limitations and follow-up
This PR ships support for attributes as they come back today: every value is rendered as the plain string the API returns. We're merging it now and will handle the rest in a follow-up once the upstream API changes land:
Product.attributesyet, and their values can't be set through the attribute assignment API. Both are known upstream bugs.valueis a plainString!, so the storefront can't tell a checkbox"true"from a text attribute that says "true". We've proposed that the API return typed values (string, number or boolean). The follow-up will then show booleans as a checkmark with screen-reader text, format numbers for the shopper's locale, and add a boolean attribute to the e2e test.Until then, this PR adds no true/false special-casing, so values are shown exactly as the API returns them.
Migration
StreamableProductQuerynow selectsattributes(first: 50) { edges { node { displayName value } } }, and the specifications list inpage.tsxappends those attributes after the custom fields. If you customized the Specifications accordion, add the attributes the same way.Refs LTRAC-1054, LTRAC-1061, LTRAC-1062
🤖 Generated with Claude Code