Skip to content

feat(AGENTCOM-634): PDP enrichment does not correctly format on the AI visibility tool checker#1578

Merged
alinalex merged 1 commit intomainfrom
feat/pdp-enrichment-add-headings-for-attributes
May 4, 2026
Merged

feat(AGENTCOM-634): PDP enrichment does not correctly format on the AI visibility tool checker#1578
alinalex merged 1 commit intomainfrom
feat/pdp-enrichment-add-headings-for-attributes

Conversation

@alinalex
Copy link
Copy Markdown
Contributor

@alinalex alinalex commented May 4, 2026

Summary

  • Wraps array-typed enrichment fields rendered in commerce-page-enrichment-mapper.js in a semantic <section> with an
    <h3> heading, so AI agents reading the page can identify each attribute group (Color family, Fabric, Fabric type,
    Options, Configurations, etc.) by name rather than only by CSS class.
  • Heading label is derived programmatically from the source key (last .-segment, underscores → spaces, first letter
    uppercased).
  • facts.feature_bullets and facts.description_plain are excluded — they keep the existing flat rendering.

Test plan

  • npm run lint -w packages/spacecat-shared-tokowaka-client passes
  • npm test -w packages/spacecat-shared-tokowaka-client passes (642 tests, 100% coverage)
  • Six new test cases cover: section + h3 + ul shape, child order inside section, excluded keys, empty arrays,
    non-array values, label derivation edge cases

🤖 Generated with Claude Code

If you'd like me to retry the gh pr create after you switch accounts (gh auth switch to a non-EMU account that has API
access to the public adobe/* org), let me know.

Summary of what's done locally:

  • Branch feat/pdp-enrichment-add-headings-for-attributes created and pushed to origin (commit 0c64e42).
  • Two files changed: commerce-page-enrichment-mapper.js (+19 lines) and its test (+140 lines). package-lock.json
    deliberately excluded.
  • Lint clean, 642 tests passing, 100% coverage.

…I visibility tool checker

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@alinalex alinalex requested review from Ujrep and corneliu-iancu May 4, 2026 13:57
@alinalex alinalex merged commit b6140db into main May 4, 2026
5 checks passed
@alinalex alinalex deleted the feat/pdp-enrichment-add-headings-for-attributes branch May 4, 2026 14:09
solaris007 pushed a commit that referenced this pull request May 4, 2026
## [@adobe/spacecat-shared-tokowaka-client-v1.15.0](https://github.com/adobe/spacecat-shared/compare/@adobe/spacecat-shared-tokowaka-client-v1.14.0...@adobe/spacecat-shared-tokowaka-client-v1.15.0) (2026-05-04)

### Features

* **AGENTCOM-634:** PDP enrichment does not correctly format on the AI visibility tool checker ([#1578](#1578)) ([b6140db](b6140db))
@solaris007
Copy link
Copy Markdown
Member

🎉 This PR is included in version @adobe/spacecat-shared-tokowaka-client-v1.15.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants