Why?
Currently, there is an inconsistent behavior how feature mutation.
While mutations, enhanceCells and enhanceRows are sorted largest to smallest (
|
const mutations = features |
), modifyColumns are sorted smallest to largest:
|
.sort((a, b) => (a?.order ?? 0) - (b?.order ?? 0)); |
To prevent a breaking change for the user, we will delay this fix until onyx version 2.
Acceptance criteria
DEV handover checklist
Storybook
DEV handover done with: @ADD_DEV_NAME_HERE
Testing
Documentation
Other
Why?
Currently, there is an inconsistent behavior how feature mutation.
While mutations, enhanceCells and enhanceRows are sorted largest to smallest (
onyx/packages/sit-onyx/src/components/OnyxDataGrid/features/index.ts
Line 661 in f240bd5
onyx/packages/sit-onyx/src/utils/feature.ts
Line 38 in f240bd5
To prevent a breaking change for the user, we will delay this fix until onyx version 2.
Acceptance criteria
modifyColumnsis fixed to also sort largest to smallestDEV handover checklist
Storybook
DEV handover done with: @ADD_DEV_NAME_HERE
Testing
Documentation
Other