Skip to content

chore(demo): add pin demo#602

Closed
melissaing wants to merge 0 commit intopatternfly:mainfrom
melissaing:pin-unpin
Closed

chore(demo): add pin demo#602
melissaing wants to merge 0 commit intopatternfly:mainfrom
melissaing:pin-unpin

Conversation

@melissaing
Copy link
Copy Markdown
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
Copy Markdown

patternfly-build commented Jul 11, 2025

Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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?

Comment thread packages/module/patternfly-docs/content/extensions/chatbot/examples/UI/UI.md Outdated
Comment thread packages/module/patternfly-docs/content/extensions/chatbot/examples/UI/UI.md Outdated
Copy link
Copy Markdown

@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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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