Skip to content

Conversation

@lhilgert9
Copy link
Contributor

@lhilgert9 lhilgert9 commented Apr 12, 2024

Part of #41281.
@DiegoAndai

The question is whether we should also deprecate the components and componentProps in this PR at the same time, as that wouldn't be much more work.

@mui-bot
Copy link

mui-bot commented Apr 12, 2024

Netlify deploy preview

Autocomplete: parsed: +0.73% , gzip: +0.77%

Bundle size report

Details of bundle changes (Toolpad)
Details of bundle changes

Generated by 🚫 dangerJS against d859029

@lhilgert9 lhilgert9 marked this pull request as ready for review April 12, 2024 20:32
@zannager zannager added the scope: autocomplete Changes related to the autocomplete. This includes ComboBox. label Apr 15, 2024
@zannager zannager requested a review from DiegoAndai April 15, 2024 14:39
Copy link
Member

@DiegoAndai DiegoAndai left a comment

Choose a reason for hiding this comment

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

Hey @lhilgert9, thank you so much for working on this, great work. Sorry for the delay in the review.

I just have some minor questions, I leave them below.

@DiegoAndai
Copy link
Member

The question is whether we should also deprecate the components and componentProps in this PR at the same time, as that wouldn't be much more work.

Let's do it in a separate follow-up PR to keep things orderly 😊

@DiegoAndai DiegoAndai requested a review from michaldudak April 25, 2024 15:27
@DiegoAndai
Copy link
Member

Requested review from @michaldudak as the owner of the Autocomplete component.

Copy link
Member

@michaldudak michaldudak left a comment

Choose a reason for hiding this comment

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

Let's make sure the demos don't reference deprecated props. I found the GitHub label and Virtualize demos still use them.

@lhilgert9
Copy link
Contributor Author

Let's make sure the demos don't reference deprecated props. I found the GitHub label and Virtualize demos still use them.

@michaldudak Should I also change the demos in this PR?

@github-actions github-actions bot added the PR: out-of-date The pull request has merge conflicts and can't be merged. label Apr 26, 2024
@github-actions github-actions bot removed the PR: out-of-date The pull request has merge conflicts and can't be merged. label Apr 26, 2024
@lhilgert9 lhilgert9 closed this Apr 26, 2024
@lhilgert9 lhilgert9 deleted the deprecate-autocomple-props branch April 26, 2024 18:51
@lhilgert9 lhilgert9 restored the deprecate-autocomple-props branch April 26, 2024 18:52
@lhilgert9
Copy link
Contributor Author

Sorry, I just wanted to rename the branch and the PR has closed.

@lhilgert9 lhilgert9 reopened this Apr 26, 2024
@lhilgert9
Copy link
Contributor Author

@DiegoAndai I have an idea to improve the CreateSlotsAndSlotProps type by rewriting the slots as Partial:

- slots?: Slots
+ slots?: Partial<Slots>

For example, it happened to me now that I forgot to make the slots optional and that wouldn't happen that way.

@DiegoAndai
Copy link
Member

Hey @lhilgert9!

Should I also change the demos in this PR?

Yes, please 😊

I have an idea to improve the CreateSlotsAndSlotProps type by rewriting the slots as Partial

That's an interesting proposal 🤔 I think I'm on board with it. If you're up to it, let's open a separate PR for it, as we should update the other occurrences 🙌🏼

@lhilgert9
Copy link
Contributor Author

Demos are changed by the codemod so it looks like it works on a real example🚀🚀

Copy link
Member

@michaldudak michaldudak left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Member

@DiegoAndai DiegoAndai left a comment

Choose a reason for hiding this comment

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

Looks good @lhilgert9, one last thing about the migration guide:

Copy link
Member

@DiegoAndai DiegoAndai left a comment

Choose a reason for hiding this comment

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

Hey @lhilgert9! Thanks for updating the demos 😊

I pushed some updates:

  • Minor copy updates
  • Revert the deprecated tests changes, as we want to keep those until the deprecated props are removed
  • Added some slots tests

Let me know if these changes make sense to you and I'll merge 🙌🏼

@lhilgert9
Copy link
Contributor Author

Let me know if these changes make sense to you and I'll merge 🙌🏼

LGTM
Just pushed pnpm docs:api. I have no idea why e2e fails now but I think we can merge the PR.🚀

@DiegoAndai DiegoAndai merged commit d8a5f53 into mui:next May 8, 2024
@lhilgert9 lhilgert9 deleted the deprecate-autocomple-props branch May 9, 2024 06:54
@oliviertassinari oliviertassinari changed the title [material-ui][Autocomplete] deprecate *Component and *Props for v6 [Autocomplete] deprecate *Component and *Props for v6 Nov 15, 2024
@oliviertassinari oliviertassinari added the deprecation New deprecation message. label Nov 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

deprecation New deprecation message. scope: autocomplete Changes related to the autocomplete. This includes ComboBox.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants