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
[DataGrid] Display sort column menu items as per sortingOrder
prop
#7125
[DataGrid] Display sort column menu items as per sortingOrder
prop
#7125
Conversation
I couldn't add labels myself. Maybe some permissions are needed? I would be very grateful if somebody could add a label instead of me. |
These are the results for the performance tests:
|
3f61b50
to
5d37e52
Compare
5d37e52
to
ab110b1
Compare
argos keeps failing, because my pr is targeting master branch, not next |
sortingOrder
prop
@hanbin9775 Thanks for your contribution. Functionality seems to work fine. |
ab110b1
to
c8938f6
Compare
@MBilalShafi, I didn't fully understood your request but I just add test code for this addition. |
Thanks, this is exactly what I requested. 👍 |
@@ -266,5 +266,30 @@ describe('<DataGridPro /> - Column Headers', () => { | |||
expect(menu).not.toHaveFocus(); | |||
expect(columnCell).toHaveFocus(); | |||
}); | |||
|
|||
it('should display sort column menu items as per sortingOrder prop', () => { |
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.
@hanbin9775 Can you move this test to columnHeaders.DataGrid.test.tsx
as the change is done in x-data-grid
package?
https://github.com/mui/mui-x/blob/master/packages/grid/x-data-grid/src/tests/columnHeaders.DataGrid.test.tsx
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.
Oh sorry. It was my mistake. I thought there were no test codes for x-data-grid package.
c8938f6
to
2bc9b23
Compare
@@ -15,7 +15,7 @@ const rows: GridRowsProp = [{ id: 1, idBis: 1 }]; | |||
const columns: GridColumns = [{ field: 'id' }, { field: 'idBis' }]; | |||
|
|||
describe('<DataGridPro /> - Columns', () => { |
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.
As mentioned previously, instead of columns.DataGrid.test.tsx
, columnHeaders.DataGrid.test.tsx
is a more suitable place for such tests as the menu part belongs to column headers.
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.
🤦♂️ Sorry again. Fixed right away.
2bc9b23
to
baa3310
Compare
… sortingOrder prop
baa3310
to
c6b858b
Compare
…7125) Co-authored-by: HanBinKim <37659866+hanbin9775@users.noreply.github.com>
Fixes #7103