Skip to content

Conversation

bsastregx
Copy link
Collaborator

@bsastregx bsastregx commented Jun 25, 2025

Changes in this PR

Chat

  • Add a custom item render for the renderItem property. Some features that the mercury custom item render includes are:

    • Styles for differentiating error, warning, and success status messsages.
    • A "header" for the assistant message, that displays an avatar, the assistant name, and the message time.
    • A "copy" button for copying the message.
    • A classical "three dots" animation for the "waiting" message type.
  • A MercuryMessageMetadata type for the ChatMessage metadata is now exported in @genexus/mercury:

    type MercuryChatMessageMetadata = {
      assistantName: string;
      time?: string;
    }
  • Improved code block styles

    Before After
    code-block-before code-block-after
  • Support for uploading files (audio, video, image, and application/file)
    chat -files

Markdown viewer

  • Styles for the markdown viewer has been improved to match the Figma designs.

Breaking Changes

  • Update @genexus/chameleon-controls-library to >= 6.20.0. At least this Chameleon version is required for the updated Chat styles to match.

  • The size of the markdown-viewer headings has been reduced.

@bsastregx bsastregx added feature Feature implementation pull request mercury Changes related to Mercury design system target: minor This PR is targeted for the next minor release labels Jun 25, 2025
@bsastregx bsastregx changed the title [mercury][showcase][chat] Add custom item render for Mercury chat for Lit, Update Mercury .chat styles accordingly, add Showcase chat page, and add UI tests for the showcase chat code snippets. [mercury][showcase][chat] Add custom item render for Mercury chat, update Mercury chat styles accordingly, add Showcase chat page, and add UI tests for the showcase chat code snippets. Jun 25, 2025
@bsastregx bsastregx requested a review from ncamera June 25, 2025 17:51
@ncamera ncamera changed the title [mercury][showcase][chat] Add custom item render for Mercury chat, and update Mercury chat styles accordingly. [mercury][showcase][chat] Add official styles for the Chat component, improve markdown-viewer styles and add assistant-fill icon Sep 5, 2025
@ncamera ncamera changed the title [mercury][showcase][chat] Add official styles for the Chat component, improve markdown-viewer styles and add assistant-fill icon [mercury][chat] Add official styles for the Chat component, improve markdown-viewer styles and add assistant-fill icon Sep 5, 2025
@bsastregx bsastregx merged commit ab5497e into main Sep 5, 2025
6 checks passed
@bsastregx bsastregx deleted the mercury/chat-message-render-lit branch September 5, 2025 21:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
breaking changes dependencies Pull requests that update a dependency file feature Feature implementation pull request mercury Changes related to Mercury design system target: minor This PR is targeted for the next minor release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants