Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Comments

Close side panel

chore(demo): add pin demo#602

Closed
melissaing wants to merge 0 commit intopatternfly:mainpatternfly/chatbot:mainfrom
melissaing:pin-unpinmelissaing/chatbot:pin-unpinCopy head branch name to clipboard
Closed

chore(demo): add pin demo#602
melissaing wants to merge 0 commit intopatternfly:mainpatternfly/chatbot:mainfrom
melissaing:pin-unpinmelissaing/chatbot:pin-unpinCopy head branch name to clipboard

Conversation

@melissaing
Copy link
Contributor

Closes #511. Referenced other demos and pin implementation was assisted by Cursor. Updated UI.md with a new section and short description.

@patternfly-build
Copy link

patternfly-build commented Jul 11, 2025

Copy link
Member

@rebeccaalpert rebeccaalpert left a comment

Choose a reason for hiding this comment

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

Thank you for the contribution! I left a few comments below about the code. Overall it looks good to me.

If you could squash your commits and update your commit to be a format like feat(demo): Add demo for pinned chat history, that would be a big help. We trigger releases based on the magic word in front of the parentheses (fix and feat trigger a release). You'll also want to mention that you used Cursor in this - add something like the following to the commit: Assisted-by: Cursor. If you need help figuring out how to squash, just ping me and I can walk you through it.

@rebeccaalpert
Copy link
Member

For @kaylachumley and @edonehoo - demo is here: https://chatbot-pr-chatbot-602.surge.sh/patternfly-ai/chatbot/ui/#drawer-with-pin-action

@rebeccaalpert
Copy link
Member

rebeccaalpert commented Jul 11, 2025

@thatblindgeye - When you have time - do you think we need to do anything around focus here? Focus goes leaves when an item gets pinned or unpinned; it doesn't remain on the menu trigger. Do we want it to stay on the appropriate menu trigger?

Copy link

@kaylachumley kaylachumley left a comment

Choose a reason for hiding this comment

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

Design wise, this functions as expected! looks good! thank you

@rebeccaalpert rebeccaalpert requested a review from edonehoo July 15, 2025 15:05
Copy link
Member

@rebeccaalpert rebeccaalpert left a comment

Choose a reason for hiding this comment

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

Thanks for making those changes - I think we just want to get Eric's feelings on focus (I would make that a follow-on issue, ideally). We just want to add Cursor into the final commit message, and I'll show you how to squash commits later if you have time.

Copy link
Collaborator

@thatblindgeye thatblindgeye left a comment

Choose a reason for hiding this comment

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

@rebeccaalpert @melissaing per the ping above, yeah we should try to keep focus on the menu toggle that was accessed to pin the conversation in this demo. I might expect the flow to be:

  1. Click Conversation A meatball toggle
  2. Click the "Pin" option
  3. Conversation A is moved to the "pinned" section
  4. Focus is placed on Conversation A's meatball toggle again

Copy link
Collaborator

@thatblindgeye thatblindgeye left a comment

Choose a reason for hiding this comment

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

Looks good! Opened #617 as a followup per discussion above

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.

Add additional actions to history

6 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.