Skip to content

feat: AIChatMessage add ability for clients to add advanced components in messages [PIC-847]#3282

Merged
Sean Fitzpatrick (seanf-ctfl) merged 2 commits intoPIC-694-forma36-create-aichatlayout-componentfrom
PIC-847
Jan 20, 2026
Merged

feat: AIChatMessage add ability for clients to add advanced components in messages [PIC-847]#3282
Sean Fitzpatrick (seanf-ctfl) merged 2 commits intoPIC-694-forma36-create-aichatlayout-componentfrom
PIC-847

Conversation

@seanf-ctfl
Copy link
Copy Markdown

Purpose of PR

In this PR, I update the AIChatMessage component with:

1. Advanced links

This component will render both Markdown & HTML. Clients can use HTML links to allow their agent to create links that:

  • Opens pages in a new tab with target="_blank"
  • This change also enables client-side links. Clients can use ComponentsPropOverrides to override the onClick behaviour and inject client-side navigation functionality.

2. Customised components

This PR also allows clients to customise how message components are rendered. (e.g. this story shows how a client can add icons to external links)

3. Fully custom components

This PR also shows how clients can include their own fully custom components in the AIChatMessage.
(e.g. This story shows how clients can do this. Clients can provide a custom render for divs with a specific data tag )

image

PR Checklist

  • I have read the relevant readme.md file(s)
  • All commits follow our Git commit message convention
  • Tests are added/updated/not required
  • Tests are passing
  • Storybook stories are added/updated/not required
  • Usage notes are added/updated/not required
  • Has been tested based on Contentful's browser support
  • Doesn't contain any sensitive information

@changeset-bot
Copy link
Copy Markdown

changeset-bot Bot commented Jan 16, 2026

⚠️ No Changeset found

Latest commit: 18f6248

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

Copy link
Copy Markdown
Collaborator

@mshaaban0 Moe Shaaban (mshaaban0) left a comment

Choose a reason for hiding this comment

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

Looking Good 👍🏼

@seanf-ctfl Sean Fitzpatrick (seanf-ctfl) merged commit 49af14a into PIC-694-forma36-create-aichatlayout-component Jan 20, 2026
11 of 15 checks passed
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