Skip to content

Conversation

@exacs
Copy link
Contributor

@exacs exacs commented Nov 10, 2025

This PR adds the fields title, target and text to the link properties. Replaces #159

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR enhances the LinkProperty type to include additional metadata fields (text, title, and target) beyond just the URL, bringing it closer to standard HTML link attributes.

  • Updated TypeScript type inference for LinkProperty to include text, title, and target fields
  • Modified GraphQL query generation to fetch the additional link metadata
  • Updated test snapshots to reflect the expanded query structure

Reviewed Changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.

File Description
packages/optimizely-cms-sdk/src/infer.ts Expanded the LinkProperty type definition to include text, title, and target fields alongside the existing url field
packages/optimizely-cms-sdk/src/graph/createQuery.ts Modified the GraphQL query builder to request text, title, and target fields for link properties
packages/optimizely-cms-sdk/src/graph/test/createQuery.test.ts Updated test snapshot expectations to match the new query structure with additional link fields

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@exacs exacs merged commit 1d4c944 into main Nov 10, 2025
10 checks passed
@exacs exacs deleted the feature/CMS-46656-link-fields branch November 10, 2025 15:08
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.

3 participants