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

[DateTimePicker] Always show arrow switcher in clock #1949

Merged
merged 6 commits into from
Jul 10, 2020

Conversation

dmtrKovalenko
Copy link
Member

This PR closes #1925

@vercel
Copy link

vercel bot commented Jul 2, 2020

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://vercel.com/mui-org/material-ui-pickers/h4t548a5u
✅ Preview: https://material-ui-pick-git-bugfix-hidden-view-switcher-datetim-92b529.mui-org.vercel.app

@cypress
Copy link

cypress bot commented Jul 2, 2020



Test summary

77 0 3 0


Run details

Project material-ui-pickers
Status Passed
Commit 4ee0b10
Started Jul 10, 2020 12:31 PM
Ended Jul 10, 2020 12:50 PM
Duration 19:03 💡
OS Linux Debian - 10.0
Browser Chrome 80

View run in Cypress Dashboard ➡️


This comment has been generated by cypress-bot as a result of this project's GitHub integration settings. You can manage this integration in this project's settings in the Cypress Dashboard

Copy link
Member

@oliviertassinari oliviertassinari left a comment

Choose a reason for hiding this comment

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

It sounds like we miss a test case for this

import TextField from '@material-ui/core/TextField';
import isWithinInterval from 'date-fns/isWithinInterval';
Copy link
Member

Choose a reason for hiding this comment

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

A couple of thoughts:

  • The diff isn't related to the problem we are trying to solve. It makes the review a bit harder.
  • I think that we should welcome the initiative to leave the space in better shape when we first come in. Thanks for that.
  • Why do we have rules as a warning? Outside of the transitioning period, I think that it should either be an error or off.
  • What do you want to do with the pretty-imports/sorted rule? Do you want to keep it? If so, please make the case for it on https://github.com/mui-org/material-ui.

Copy link
Member Author

Choose a reason for hiding this comment

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

This rule is more like my own preference. I will not open an RFC for the usage of this rule :)
looks like more developers tend to not sort imports at all.

The main idea of this rule is to be used with autoFix, honestly it should be a plugin for prettier and not an eslint rule.

Copy link
Member

@oliviertassinari oliviertassinari Jul 6, 2020

Choose a reason for hiding this comment

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

There is a less strict import sorting rule right now, it's about using relative imports (./) after global ones. Having to run eslint autofix could be an issue. I think that we gave up on it on the main repository because it was too slow to run. I don't know if there are alternatives.

@vercel vercel bot temporarily deployed to Preview July 10, 2020 12:23 Inactive
@dmtrKovalenko dmtrKovalenko merged commit 26dcea5 into next Jul 10, 2020
@dmtrKovalenko dmtrKovalenko deleted the bugfix/hidden-view-switcher-datetimepicker branch July 10, 2020 15:23
todor-a pushed a commit to todor-a/material-ui-pickers that referenced this pull request Jul 18, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Consistent display of ArrowSwitcher in clock views
2 participants