Skip to content

fix(ChatbotConversationHistoryNav): Make title icon and heading customizable - #616

Merged
rebeccaalpert merged 2 commits into
patternfly:mainfrom
rebeccaalpert:optional-icon
Aug 5, 2025
Merged

rebeccaalpert merged 2 commits into
patternfly:mainfrom
rebeccaalpert:optional-icon

Conversation

@rebeccaalpert

@rebeccaalpert rebeccaalpert commented Jul 17, 2025

Copy link
Copy Markdown
Member

Also change spacing between icon and title to 0.5rem per design spec. To merge after Mash's PR merges.

https://chatbot-pr-chatbot-616.surge.sh/patternfly-ai/chatbot/ui#drawer-with-search-and-new-chat-button

@rebeccaalpert rebeccaalpert linked an issue Jul 17, 2025 that may be closed by this pull request
@patternfly-build

patternfly-build commented Jul 17, 2025

Copy link
Copy Markdown

@rebeccaalpert
rebeccaalpert force-pushed the optional-icon branch 2 times, most recently from 6d79f3f to 0c9f9df Compare July 28, 2025 17:55
@rebeccaalpert rebeccaalpert changed the title Optional icon fix(ChatbotConversationHistoryNav): Make title icon and heading customizable Jul 28, 2025
@rebeccaalpert
rebeccaalpert marked this pull request as ready for review July 28, 2025 17:56
@rebeccaalpert

Copy link
Copy Markdown
Member Author

Putting PR preview here since this was pre-token shift: http://trite-wax.surge.sh/

/** Icon displayed in title */
icon?: React.ReactNode;
/** Heading header level */
headingHeaderLevel?: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6';

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Just to relate this and the title:

Suggested change
headingHeaderLevel?: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6';
titleHeadingLevel?: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6';

Unless we'd want to just allow spreading TitleProps here as well, since we're importing that for the Title's used in the list headers. In that case may want to rename things a bit, maybe titleProps becomes listTitleProps or something, and this becomes navTitleProps?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Good call-out; thank you!

@rebeccaalpert
rebeccaalpert force-pushed the optional-icon branch 2 times, most recently from f232a01 to 42614e1 Compare August 4, 2025 20:36
@rebeccaalpert
rebeccaalpert merged commit 383b96a into patternfly:main Aug 5, 2025
6 of 7 checks passed
@github-actions

github-actions Bot commented Aug 5, 2025

Copy link
Copy Markdown

🎉 This PR is included in version 6.4.0-prerelease.9 🎉

The release is available on:

Your semantic-release bot 📦🚀

rebeccaalpert added a commit to rebeccaalpert/virtual-assistant that referenced this pull request Oct 24, 2025
…mizable (patternfly#616)

Also change spacing between icon and title to 0.5rem.
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.

Make history icon customizable

4 participants