Skip to content

Chat: Move init of errors into component level (T1325479)#33071

Merged
marker-dao merged 2 commits intoDevExpress:26_1from
marker-dao:26_1_chat_fu_errors
Mar 27, 2026
Merged

Chat: Move init of errors into component level (T1325479)#33071
marker-dao merged 2 commits intoDevExpress:26_1from
marker-dao:26_1_chat_fu_errors

Conversation

@marker-dao
Copy link
Contributor

No description provided.

@marker-dao marker-dao self-assigned this Mar 27, 2026
@marker-dao marker-dao marked this pull request as ready for review March 27, 2026 10:46
@marker-dao marker-dao requested a review from a team as a code owner March 27, 2026 10:46
Copilot AI review requested due to automatic review settings March 27, 2026 10:46
Copy link
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

This PR updates the internal ChatTextArea implementation so the “file limit reached” warning text is formatted at the time it’s needed (component-level), allowing runtime localization updates to be reflected correctly.

Changes:

  • Replace a pre-formatted, module-level “file limit reached” error string with a runtime messageLocalization.format(...) call.
  • Introduce tests verifying that a custom localization message is respected when loaded both before and after component initialization.

Reviewed changes

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

File Description
packages/devextreme/testing/tests/DevExpress.ui.widgets/chatParts/chatTextArea.tests.js Adds localization-focused coverage for the informer message when file limit is reached.
packages/devextreme/js/__internal/ui/chat/message_box/chat_text_area.ts Moves localization formatting for the file-limit warning into the event handler to avoid stale, precomputed messages.

@marker-dao marker-dao changed the title Chat: Move init of errors into component level Chat: Move init of errors into component level (T1325479) Mar 27, 2026
@marker-dao marker-dao merged commit 5b6f96f into DevExpress:26_1 Mar 27, 2026
102 checks passed
@marker-dao marker-dao deleted the 26_1_chat_fu_errors branch March 27, 2026 12:36
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