Skip to content

Conversation

@Wallgau
Copy link
Collaborator

@Wallgau Wallgau commented Dec 17, 2025

  • Messages list: Messages uses useChatHistory + StickToBottom to render chat history per session; shows a “New chat” empty state and a running skeleton while building.
  • Message router: ChatMessage routes to UserMessage for user-sent content and BotMessage otherwise; handles error-category messages via ErrorView.
  • UserMessage: Renders avatar/icon or custom profile, text/decoded message, attached files, edited flag, and hover actions. - Supports inline edit via EditMessageField, copy, and feedback. Uses guarded properties for icon/background/feedback and normalized payloads when updating messages.
  • BotMessage: Renders bot avatar/icon, optional content blocks (ContentBlockDisplay) with loading state, markdown rendering, edited flag, files, and hover actions. Supports edit/copy/feedback with the same update path.
  • Edit controls: EditMessageButton supplies hover-visible actions—edit (when provided), copy with toast state, and helpful/not-helpful feedback for bot messages; hides edit for audio messages.
  • Support utils: convert-files normalizes file paths; useChatHistory fetches and filters messages per session/flow, sorts them, and normalizes fields (files, message text).

@coderabbitai
Copy link
Contributor

coderabbitai bot commented Dec 17, 2025

Important

Review skipped

Draft detected.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

✨ Finishing touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch feat/playground-messages-section

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Olfa Maslah and others added 9 commits December 18, 2025 12:15
…ound button to use global playground store and removed stale props; fixed simple-sidebar uncontrolled setOpen to handle function updaters; hardened session rename edit timing; added chat header utilities (session title, session management hooks/components, logs modal, sessions dropdown/sidebar); introduced sliding playground container and supporting hooks/stores/constants/styles; refreshed publish dropdown styling. FlowToolbar now drives playground visibility via usePlaygroundStore (isPlaygroundOpen / setPlaygroundOpen) and tracks analytics off the store state.
@Wallgau Wallgau force-pushed the feat/playground-header branch from 07b77b8 to 4be141e Compare December 18, 2025 17:17
@Wallgau Wallgau force-pushed the feat/playground-messages-section branch from 5234dc2 to 58093c2 Compare December 18, 2025 17:22
@Wallgau Wallgau force-pushed the feat/playground-messages-section branch from 58093c2 to c2a4e57 Compare December 18, 2025 18:01
@Wallgau Wallgau changed the base branch from feat/playground-header to main December 18, 2025 18:23
@Wallgau Wallgau changed the base branch from main to feat/playground-header December 18, 2025 18:23
@Wallgau Wallgau changed the base branch from feat/playground-header to main December 18, 2025 18:24
@Wallgau Wallgau changed the base branch from main to feat/playground-header December 18, 2025 18:25
@Wallgau Wallgau changed the base branch from feat/playground-header to main December 18, 2025 18:27
@Wallgau Wallgau changed the base branch from main to feat/playground-header December 18, 2025 18:28
@Wallgau Wallgau changed the base branch from feat/playground-header to main December 18, 2025 19:45
@Wallgau Wallgau changed the base branch from main to feat/playground-header December 18, 2025 19:46
@Wallgau Wallgau force-pushed the feat/playground-messages-section branch from ef5d39a to 28d6e04 Compare December 18, 2025 19:47
@Wallgau Wallgau force-pushed the feat/playground-messages-section branch from 4bad25a to df47577 Compare December 20, 2025 20:04
Base automatically changed from feat/playground-header to playground-main-fork December 26, 2025 16:13
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.

2 participants