Skip to content

feat: allow images in the accordion module#62

Merged
ben-basten merged 1 commit into
mainfrom
feat/faq-photo
May 20, 2026
Merged

feat: allow images in the accordion module#62
ben-basten merged 1 commit into
mainfrom
feat/faq-photo

Conversation

@ben-basten

Copy link
Copy Markdown
Owner

No description provided.

@netlify

netlify Bot commented May 20, 2026

Copy link
Copy Markdown

Deploy Preview for bs-said-yes ready!

Name Link
🔨 Latest commit c562721
🔍 Latest deploy log https://app.netlify.com/projects/bs-said-yes/deploys/6a0db58775016a0008314107
😎 Deploy Preview https://deploy-preview-62--bs-said-yes.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@ben-basten ben-basten marked this pull request as ready for review May 20, 2026 01:32
@ben-basten ben-basten requested a review from Copilot May 20, 2026 01:32

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

Enables embedded Contentful asset rendering (e.g., images) in rich-text fields used by the Accordion module by fetching linked assets in GraphQL and passing them into the rich-text renderer.

Changes:

  • Extend the TitleCopy GraphQL fragment to fetch copy.links.assets.block with the Image fragment.
  • Add a shared getEmbeddedAssets utility to extract and filter embedded asset links.
  • Update CenterText and Accordion modules to use getEmbeddedAssets and pass assets into RichTextRenderer.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.

File Description
server/graphql/fragments/title-copy.fragment.ts Fetches linked block assets for rich-text embedded entries via ...Image.
app/utils/helpers.ts Introduces getEmbeddedAssets helper for extracting embedded asset links.
app/components/modules/CenterText.vue Refactors embedded-asset extraction to use the shared helper.
app/components/modules/Accordion.vue Passes extracted embedded assets into RichTextRenderer for accordion item copy.

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

Comment thread app/utils/helpers.ts
@ben-basten ben-basten merged commit 1779895 into main May 20, 2026
8 checks passed
@ben-basten ben-basten deleted the feat/faq-photo branch May 20, 2026 15:56
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