-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: sort table by visible text #1205
Conversation
|
||
export const ROW_DATA = [ | ||
{ | ||
name: 'aaaaaa', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
const allCustomTextsDesc = document.querySelectorAll('[data-column="custom_text"]'); | ||
const mappedTextDesc = Array.from(allCustomTextsDesc).map((el: Node) => el.textContent); | ||
|
||
expect(mappedTextDesc).toMatchSnapshot(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
From my point of view, inline snapshots are more useful here. You don't have to jump to another file to see what is there, and the size is not big
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM and on more file is moved to TS :)
Issue number: ADDON-59778
Summary
[UCC UI] Add support for sorting functionality when custom mapping is used in global config file
Changes
Sorting functionality works on mapped text not on keys.
User experience
Right now if user will sort by mapped property it will be displayed correctly.
Checklist
If your change doesn't seem to apply, please leave them unchecked.