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] Add referenceDate prop on TimeClock, DigitalClock and MultiSectionDigitalClock #9356

Merged
merged 11 commits into from
Jun 30, 2023

Conversation

flaviendelangle
Copy link
Member

@flaviendelangle flaviendelangle commented Jun 16, 2023

Follow up on #9260

I also created a small new abstraction for view interaction in the tests because they are super hard to read and I think some consistent API would make testing a lot easier.

Next steps

  • Add to the pickers

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

mui-bot commented Jun 16, 2023

Netlify deploy preview

Netlify deploy preview: https://deploy-preview-9356--material-ui-x.netlify.app/

Updated pages

No updates.

These are the results for the performance tests:

Test case Unit Min Max Median Mean σ
Filter 100k rows ms 314.8 529 447.2 414.28 84.189
Sort 100k rows ms 542 958.9 884.7 831.84 148.143
Select 100k rows ms 203.5 318.6 270.6 258.14 41.04
Deselect 100k rows ms 155.6 299.7 240.7 231.84 57.488

Generated by 🚫 dangerJS against d4570bc

type TDate = any;

interface ViewHandler<TView> {
setViewValue: (utils: MuiPickersAdapter<any>, viewValue: TDate, view?: TView) => void;
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'm creating an object because I'd like to add other methods like getViewValue (or assertViewValue depending on the abstraction we want).

@flaviendelangle flaviendelangle marked this pull request as ready for review June 20, 2023 11:51
Copy link
Member

@LukasTy LukasTy left a comment

Choose a reason for hiding this comment

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

LGTM!. 👌
Really nice and isolated approach to delivering the solution. 💯

@flaviendelangle flaviendelangle changed the title [pickers] Add referenceDate prop on TimeClock, DigitalClock and MultiSectionDigitalClock WIP [pickers] Add referenceDate prop on TimeClock, DigitalClock and MultiSectionDigitalClock Jun 27, 2023
@flaviendelangle flaviendelangle merged commit b53ee13 into mui:master Jun 30, 2023
17 checks passed
@flaviendelangle flaviendelangle deleted the time-reference-date branch June 30, 2023 09:12
@flaviendelangle flaviendelangle mentioned this pull request Jun 30, 2023
1 task
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