Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update: Refactor the ChatbotHeader component to be more flexible and declarative #87

Closed
rohitkrai03 opened this issue Aug 28, 2024 · 1 comment · Fixed by #94
Closed

Comments

@rohitkrai03
Copy link
Collaborator

Description

The current ChatbotHeader component takes in props to render the layout. But if we want the component to be flexible for the users, we need to split the component into a more composable API where users can decide which part of the header to and how to control it.

Possible APIs

The header can be divided into three parts, the left side can have the menu, middle part can have branding or title and the right part could have a dropdown for model selector and kebab menu with actions. The components could be created in a way that users should be able to customise the dropdown items and kebab menu actions but they should not be able to change what to render completely.

  • ChatbotHeader
    • ChatbotHeaderMenu
    • ChatbotHeaderTitle
    • ChatbotHeaderDropdown
    • ChatbotHeaderActions
@github-project-automation github-project-automation bot moved this to Needs triage in PatternFly Issues Aug 28, 2024
@nicolethoen nicolethoen linked a pull request Sep 4, 2024 that will close this issue
@nicolethoen nicolethoen moved this from Needs triage to PR Review in PatternFly Issues Sep 4, 2024
Copy link

github-actions bot commented Sep 4, 2024

🎉 This issue has been resolved in version 2.0.0-alpha.13 🎉

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
Archived in project
Development

Successfully merging a pull request may close this issue.

1 participant