Skip to content

🔥 feat(preview): Accept pre-fetched preview entries in Web#351

Merged
Charles Hudson (phobetron) merged 1 commit into
mainfrom
NT-3576_web-preview-panel-without-ctfljs
Jul 2, 2026
Merged

🔥 feat(preview): Accept pre-fetched preview entries in Web#351
Charles Hudson (phobetron) merged 1 commit into
mainfrom
NT-3576_web-preview-panel-without-ctfljs

Conversation

@phobetron

@phobetron Charles Hudson (phobetron) commented Jul 2, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Add entries: { audiences, experiences } as an alternative Web Preview Panel data source.
  • Prefer entries over contentful when both are provided, while preserving the existing Contentful client fetch path.
  • Normalize pre-fetched entry arrays into Contentful-style collections, filter by nt_audience and nt_experience, and preserve included entries for variant names.
  • Update preview panel, Web, React Web, Next.js, SDK chooser, and locale docs to describe the pre-fetched entries setup path.

[NT-3576]

Allow the Web Preview Panel to load audience and experience definitions
from pre-fetched entries as an alternative to fetching with a Contentful
client. Normalize array inputs into entry collections, filter entries by
the expected Optimization content types, and keep `entries` as the
preferred source when both `entries` and `contentful` are provided.

Export the new preview entry source types and update the preview panel,
Web, React Web, Next.js, SDK chooser, and locale docs to describe the
client-backed and pre-fetched entry setup paths.

[[NT-3576](https://contentful.atlassian.net/browse/NT-3576)]
@phobetron Charles Hudson (phobetron) merged commit 2674ceb into main Jul 2, 2026
34 checks passed
@phobetron Charles Hudson (phobetron) deleted the NT-3576_web-preview-panel-without-ctfljs branch July 2, 2026 09:33
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.

1 participant