Skip to content

Conversation

@marker-dao
Copy link
Contributor

No description provided.

@marker-dao marker-dao self-assigned this Oct 23, 2025
@marker-dao marker-dao requested a review from a team as a code owner October 23, 2025 15:47
Copilot AI review requested due to automatic review settings October 23, 2025 15:47
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 changes the File component in DevExtreme's Chat widget to inherit from DOMComponent instead of Widget, and adds support for state options (activeStateEnabled, focusStateEnabled, hoverStateEnabled) that are proxied to the internal download button.

Key changes:

  • Changed base class from Widget to DOMComponent for the File component
  • Added three state options that control interaction states and are forwarded to the download button
  • Added comprehensive test coverage for the new state options

Reviewed Changes

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

File Description
packages/devextreme/js/__internal/ui/chat/file_view/file.ts Updated File component to extend DOMComponent, added state option properties, and configured download button to use these options
packages/devextreme/testing/tests/DevExpress.ui.widgets/chatParts/file.tests.js Added test suite for state options including initialization tests, runtime update tests, and default value verification

r-farkhutdinov
r-farkhutdinov previously approved these changes Oct 23, 2025
@marker-dao marker-dao merged commit 5eb8561 into DevExpress:25_2 Oct 24, 2025
140 of 142 checks passed
@marker-dao marker-dao deleted the 25_2_file_update_inheritance branch October 24, 2025 10:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants