Skip to content
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

[pickers] Do not hardcode date-fns elements in field components #5975

Merged
merged 11 commits into from
Sep 1, 2022

Conversation

flaviendelangle
Copy link
Member

@flaviendelangle flaviendelangle commented Aug 31, 2022

Doc preview

  • Extend AdapterDateFns and AdapterDayjs with field-related elements to avoid having to touch @date-io during the unstable phase of the fields
  • Use adapters instead of hardcoded date-fns elements in the field codebase
  • Migrate the fields examples to dayjs

@flaviendelangle flaviendelangle self-assigned this Aug 31, 2022
@flaviendelangle flaviendelangle added the component: pickers This is the name of the generic UI component, not the React module! label Aug 31, 2022
@mui-bot
Copy link

mui-bot commented Aug 31, 2022

These are the results for the performance tests:

Test case Unit Min Max Median Mean σ
Filter 100k rows ms 337.2 767.7 486 513.06 154.202
Sort 100k rows ms 504.9 991.7 700.9 772.42 183.868
Select 100k rows ms 182.3 261.2 224.9 224.78 26.817
Deselect 100k rows ms 129 210.8 191.3 178.16 28.641

Generated by 🚫 dangerJS against 987ce52

ru: ruLocale,
ar: arSaLocale,
};
const locales = ['en', 'fr', 'de', 'ru', 'ar-sa'];
Copy link
Member Author

Choose a reason for hiding this comment

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

I misused the localization api of dayjs
We are supposed to pass the locale string to the adapter, not the locale object

@github-actions github-actions bot added the PR: out-of-date The pull request has merge conflicts and can't be merged label Sep 1, 2022
@github-actions
Copy link

github-actions bot commented Sep 1, 2022

This pull request has conflicts, please resolve those before we can evaluate the pull request.

@github-actions github-actions bot removed the PR: out-of-date The pull request has merge conflicts and can't be merged label Sep 1, 2022
@flaviendelangle flaviendelangle merged commit a15c23f into mui:master Sep 1, 2022
@flaviendelangle flaviendelangle deleted the adapter-field branch September 1, 2022 12:36
@LukasTy LukasTy mentioned this pull request Sep 1, 2022
14 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: pickers This is the name of the generic UI component, not the React module!
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants