Skip to content

Chat Suggestions: Clean suggestions when there are no items#33467

Merged
marker-dao merged 1 commit into
DevExpress:26_1from
marker-dao:26_1_chat_suggestions_empty_area
Apr 30, 2026
Merged

Chat Suggestions: Clean suggestions when there are no items#33467
marker-dao merged 1 commit into
DevExpress:26_1from
marker-dao:26_1_chat_suggestions_empty_area

Conversation

@marker-dao
Copy link
Copy Markdown
Contributor

No description provided.

@marker-dao marker-dao self-assigned this Apr 30, 2026
@marker-dao marker-dao marked this pull request as ready for review April 30, 2026 08:35
@marker-dao marker-dao requested a review from a team as a code owner April 30, 2026 08:35
Copilot AI review requested due to automatic review settings April 30, 2026 08:35
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

Adjusts the internal Chat “Suggestions” rendering behavior so that when items becomes empty the underlying ButtonGroup is disposed/cleaned instead of staying initialized with zero items, preventing leftover markup/classes.

Changes:

  • Update Suggestions logic to treat “has options” as “has non-empty items” for initialization/updates.
  • Extend QUnit coverage to assert the ButtonGroup is cleaned when items: [] is applied via updateOptions.
  • Minor package.json script reordering (keeps dev:playground defined once).

Reviewed changes

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

File Description
packages/devextreme/testing/tests/DevExpress.ui.widgets/chatParts/suggestions.tests.js Strengthens the items: [] update test to verify ButtonGroup cleanup (no leftover widget class).
packages/devextreme/package.json Repositions dev:playground script entry (no functional change beyond script availability/organization).
packages/devextreme/js/__internal/ui/chat/suggestions.ts Switches init/update gating from “any options” to “non-empty items”, so empty items trigger clean().

@marker-dao marker-dao merged commit e00a6c9 into DevExpress:26_1 Apr 30, 2026
178 of 182 checks passed
@marker-dao marker-dao deleted the 26_1_chat_suggestions_empty_area branch April 30, 2026 11:35
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