Skip to content

Conversation

@EugeniyKiyashko
Copy link
Contributor

No description provided.

@EugeniyKiyashko EugeniyKiyashko self-assigned this Apr 22, 2025
@EugeniyKiyashko EugeniyKiyashko requested a review from a team as a code owner April 22, 2025 11:29
@EugeniyKiyashko EugeniyKiyashko force-pushed the 25_1_chat_editing_context_menu branch from 531d607 to e29ccfc Compare April 23, 2025 07:02
@EugeniyKiyashko EugeniyKiyashko merged commit 196ac2c into DevExpress:25_1 Apr 23, 2025
300 checks passed
Copy link
Contributor

Choose a reason for hiding this comment

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

Looks like there is an issue with verical centering in generic

onMessageDeleting,
} = this.option();

const editText = messageLocalization.format('dxChat-editingEditMessage');
Copy link
Contributor

Choose a reason for hiding this comment

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

it's bette to place it near the place of usage inside of if. Now we get this data even when it's no needed

hideOnParentScroll: false,
overlayContainer: this._scrollView.content(),
visualContainer: this._scrollView.container(),
boundaryOffset: { h: 16 },
Copy link
Contributor

Choose a reason for hiding this comment

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

Let's create a constant SCROLLBAR_WIDTH to explain this magic number

onCloseRootSubmenu: null,
onExpandLastSubmenu: null,
hideOnParentScroll: true,
visualContainer: window,
Copy link
Contributor

Choose a reason for hiding this comment

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

Please add a _ prefix to point out that it's private properties
And also declare overlayContainer and boundaryOffset here as well just for consistency

});

QUnit.module('onMessageDeleting', moduleConfig, () => {
QUnit.test('should be called when the Edit button is clicked', function(assert) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Delete button

cssClass: CHAT_MESSAGELIST_CONTEXT_MENU_CONTENT_CLASS,
visible: false,
overlayContainer: this.getScrollView().content(),
visualContainer: this.getScrollView().container(),
Copy link
Contributor

Choose a reason for hiding this comment

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

You forgot boundaryOffset

});

QUnit.module('OnMessageEditingStart', moduleConfig, () => {
QUnit.test('should be called when the Edit button is clicked', function(assert) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Isn't it a copypaste from messageList tests?

marker-dao pushed a commit to marker-dao/DevExtreme that referenced this pull request Apr 29, 2025
Co-authored-by: ksercs <ksercs0@gmail.com>
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.

4 participants