Skip to content

Chat: Support sendButtonOptions option#33137

Merged
r-farkhutdinov merged 5 commits intoDevExpress:26_1from
r-farkhutdinov:26_1_chat_send_button_options
Apr 3, 2026
Merged

Chat: Support sendButtonOptions option#33137
r-farkhutdinov merged 5 commits intoDevExpress:26_1from
r-farkhutdinov:26_1_chat_send_button_options

Conversation

@r-farkhutdinov
Copy link
Copy Markdown
Contributor

No description provided.

@r-farkhutdinov r-farkhutdinov self-assigned this Apr 2, 2026
@r-farkhutdinov r-farkhutdinov marked this pull request as ready for review April 2, 2026 14:47
@r-farkhutdinov r-farkhutdinov requested a review from a team as a code owner April 2, 2026 14:47
Copilot AI review requested due to automatic review settings April 2, 2026 14:47
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Adds runtime support and test coverage for the sendButtonOptions option in Chat, wiring the option through Chat → MessageBox → ChatTextArea and enabling a “custom” send-button behavior with a configurable icon and click handler.

Changes:

  • Pass sendButtonOptions through internal Chat components (Chat → MessageBox → ChatTextArea) and handle runtime option updates.
  • Implement sendButtonOptions behavior in ChatTextArea (icon override, “custom” action mode, and onClick support).
  • Add QUnit integration/unit tests covering initialization and runtime updates for sendButtonOptions.

Reviewed changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
packages/devextreme/testing/tests/DevExpress.ui.widgets/chatParts/messageBox.tests.js Adds integration tests ensuring MessageBox forwards sendButtonOptions to ChatTextArea on init and on runtime updates.
packages/devextreme/testing/tests/DevExpress.ui.widgets/chatParts/chatTextArea.tests.js Adds coverage for icon override, custom action mode behavior, and onClick handling on ChatTextArea.
packages/devextreme/testing/tests/DevExpress.ui.widgets/chatParts/chat.tests.js Adds Chat-level tests for sendButtonOptions.onClick, including runtime updates and disabled-state behavior.
packages/devextreme/js/__internal/ui/chat/message_box/message_box.ts Adds sendButtonOptions to MessageBox props, forwards it into ChatTextArea, and handles option changes.
packages/devextreme/js/__internal/ui/chat/message_box/chat_text_area.ts Implements sendButtonOptions logic (default icon, runtime icon updates, custom behavior mode, click action wiring).
packages/devextreme/js/__internal/ui/chat/chat.ts Adds sendButtonOptions defaults, wraps/carries click handling through to MessageBox, and supports runtime option changes.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 7 out of 7 changed files in this pull request and generated 2 comments.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 7 out of 7 changed files in this pull request and generated 1 comment.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 7 out of 7 changed files in this pull request and generated 1 comment.

@r-farkhutdinov r-farkhutdinov merged commit 6f617ea into DevExpress:26_1 Apr 3, 2026
152 of 154 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants