Skip to content

feat(CodeBlockMessage/Message): Add expandable code block #556

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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

rebeccaalpert
Copy link
Member

@rebeccaalpert rebeccaalpert commented May 15, 2025

This was a request from RHDH product manager - wanted to be able to make code blocks optionally expandable. They were fine with having it applied to all code blocks in message - they envision having it applied to all user messages by default.

Kayla wanted the truncated toggle applied by default - it sounds like design will have general PF migrate in that direction soon.

Screenshot 2025-05-21 at 9 53 04 AM Screenshot 2025-05-21 at 9 52 47 AM

Docs: https://chatbot-pr-chatbot-556.surge.sh/patternfly-ai/chatbot/messages (go to user or bot message and select "expandable code" option from dropdown.)

@patternfly-build
Copy link

patternfly-build commented May 15, 2025

@rebeccaalpert rebeccaalpert force-pushed the code-editor-expandable branch 6 times, most recently from 54818d3 to 93da6cf Compare May 21, 2025 13:52
@rebeccaalpert rebeccaalpert force-pushed the code-editor-expandable branch from 93da6cf to 30e6135 Compare May 21, 2025 14:00
@rebeccaalpert rebeccaalpert changed the title Draft: feat(CodeBlockMessage/Message): Add expandable code block feat(CodeBlockMessage/Message): Add expandable code block May 21, 2025
Copy link
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.

Small thing! Can we update the link text to be sentence case?

@rebeccaalpert
Copy link
Member Author

All set @edonehoo; thank you!

@rebeccaalpert rebeccaalpert requested a review from edonehoo May 21, 2025 15:31
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.

looks good! just 2 comments on quick variable swaps

Co-authored-by: Erin Donehoo <[email protected]>
@rebeccaalpert rebeccaalpert force-pushed the code-editor-expandable branch from 8e5df16 to c977224 Compare May 21, 2025 17:41
@rebeccaalpert
Copy link
Member Author

Thanks @kaylachumley! All set.

@karthikjeeyar
Copy link
Contributor

Looks great; Thank you for adding this feature.

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 icon for expandable code editor and explore what Monaco allows for with scrolling
5 participants