Skip to content

feat(Messages): allowed more composable structures#785

Merged
nicolethoen merged 6 commits into
patternfly:mainfrom
thatblindgeye:iss679_sequencing
Dec 17, 2025
Merged

feat(Messages): allowed more composable structures#785
nicolethoen merged 6 commits into
patternfly:mainfrom
thatblindgeye:iss679_sequencing

Conversation

@thatblindgeye
Copy link
Copy Markdown
Collaborator

@thatblindgeye thatblindgeye commented Dec 9, 2025

@patternfly-build
Copy link
Copy Markdown

patternfly-build commented Dec 9, 2025

Copy link
Copy Markdown
Contributor

@edonehoo edonehoo left a comment

Choose a reason for hiding this comment

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

couple of small tweaks, but looks pretty good as it is!

Comment on lines +294 to +298
When creating custom message structures, you must follow an intended composable structure:

1. **Message content and actions** must be wrapped in `<MessageAndActions>`. This includes, but is not limited to:

- `<MarkdownContent>` - For rendering markdown or plain text content
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Suggested change
When creating custom message structures, you must follow an intended composable structure:
1. **Message content and actions** must be wrapped in `<MessageAndActions>`. This includes, but is not limited to:
- `<MarkdownContent>` - For rendering markdown or plain text content
When creating custom message structures, you must follow an intended composable structure.
1. **Message content and actions:** Wrap in `<MessageAndActions>`. This includes, but is not limited to:
- `<MarkdownContent>`: For rendering markdown or plain text content

formatting changes - might look a little funky, but is technically consistent with other docs

Comment on lines +311 to +313
2. **File attachments** must be placed outside `<MessageAndActions>`, wrapped in attachment containers:
- `<MessageAttachmentsContainer>` - Container for all attachments
- `<MessageAttachmentItem>` - Individual attachment wrapper (contains `<FileDetailsLabel>` or other attachment components)
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Suggested change
2. **File attachments** must be placed outside `<MessageAndActions>`, wrapped in attachment containers:
- `<MessageAttachmentsContainer>` - Container for all attachments
- `<MessageAttachmentItem>` - Individual attachment wrapper (contains `<FileDetailsLabel>` or other attachment components)
2. **File attachments:** Placed outside `<MessageAndActions>` and wrapped in attachment containers:
- `<MessageAttachmentsContainer>`: Container for all attachments
- `<MessageAttachmentItem>`: Individual attachment wrapper (contains `<FileDetailsLabel>` or other attachment components)

/>
<ToolCall titleText="Calling 'more_awesome_tool'" loadingText="Loading 'more_awesome_tool'" isLoading={true} />
<ToolCall titleText="Calling 'even_more_awesome_tool'" loadingText="Loading 'even_more_awesome_tool'" />
<MessageLoading loadingWord="Loading something in the middle of a custom structured message" />
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Suggested change
<MessageLoading loadingWord="Loading something in the middle of a custom structured message" />

Comment on lines +61 to +62
content={`You can even place a message loading state in the middle of a message, as seen above.`}
/>
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Suggested change
content={`You can even place a message loading state in the middle of a message, as seen above.`}
/>
content={`You can even place a message loading state in the middle of a message:`}
/>
<MessageLoading loadingWord="Loading something in the middle of a custom structured message" />

could we reorder this to place the loading thing after this line, so that we can avoid saying "above"?

Copy link
Copy Markdown
Contributor

@edonehoo edonehoo left a comment

Choose a reason for hiding this comment

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

looks great!

@nicolethoen nicolethoen merged commit b5769b4 into patternfly:main Dec 17, 2025
7 checks passed
@github-actions
Copy link
Copy Markdown

🎉 This PR is included in version 6.5.0-prerelease.28 🎉

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Sequencing of UI content in Messages Optionally make loading message available for use even if content is rendered

4 participants