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

[core] Remove dead and redundant code #33125

Merged
merged 3 commits into from
Jun 15, 2022

Conversation

oliviertassinari
Copy link
Member

@oliviertassinari oliviertassinari commented Jun 12, 2022

There are two commits in this PR. The first one is cleanup that we should go in.

The second commit is experimentation. I'm trying point 2. of #32707 (comment) out. At least so we have a reference point that can be checked:

Screen.Recording.2022-06-12.at.19.07.57.mov

It feels strange, do we want to move forward with it? Maybe not

https://deploy-preview-33125--material-ui.netlify.app/

@oliviertassinari oliviertassinari added docs Improvements or additions to the documentation website Pages that are not documentation-related, marketing-focused. labels Jun 12, 2022
@mui-bot
Copy link

mui-bot commented Jun 12, 2022

No bundle size changes

Generated by 🚫 dangerJS against f48187b

@danilo-leal
Copy link
Contributor

I'm okay with not moving forward with it 😬 I get that we could use this moment to have a brief explanation of the product but I just feel like it gets too clumsy. Would keep it simple!

@oliviertassinari
Copy link
Member Author

oliviertassinari commented Jun 14, 2022

@danilo-leal The main issue I have with the PR's version is that it optimizes for new users. As an existing user, I find it frustrating to have a layout shift/distraction each time I want to quickly go to the docs I care about. It's not clear to me if this is a step forward or backward, I don't know. Did you try this exact pattern in the past or another variation of it? To decide, I would propose that we have more people on the team try the UX and see how they feel about it compared to HEAD.


Off topic
I can never go to the MUI Base and MUI System docs, sometimes can't go to the Joy UI docs. See the video for why:

20220614-115713-413.mp4

@mnajdova
Copy link
Member

Off topic
I can never go to the MUI Base and MUI System docs, sometimes can't go to the Joy UI docs. See the video for why

I was going to add the same comment, maybe we should increase the delay for closing the popup?

@oliviertassinari oliviertassinari changed the title [docs] Try product description on hover [core] Polish the nav logic Jun 14, 2022
@oliviertassinari
Copy link
Member Author

oliviertassinari commented Jun 14, 2022

Alright, It doesn't seem that this got traction. I personally hate that it moves, I guess forcing new developers to click isn't that problematic, we kind of force them to be curious 😁. I have reverted the second commit, so this PR is now a "core" polish change.

Maybe the "best" solution would be more about this pattern 🤷‍♂️:

Screenshot 2022-06-15 at 01 42 16

I was going to add the same comment, maybe we should increase the delay for closing the popup?

Or implement the magic triangle 🪄 https://bjk5.com/post/44698559168/breaking-down-amazons-mega-dropdown 😁

@oliviertassinari oliviertassinari added core Infrastructure work going on behind the scenes and removed docs Improvements or additions to the documentation website Pages that are not documentation-related, marketing-focused. labels Jun 14, 2022
Copy link
Contributor

@danilo-leal danilo-leal left a comment

Choose a reason for hiding this comment

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

This is looking great to me, as far as the menu appearance speed goes!

@oliviertassinari oliviertassinari changed the title [core] Polish the nav logic [core] Remove dead and redundant code Jun 15, 2022
@oliviertassinari oliviertassinari merged commit a84af6c into mui:master Jun 15, 2022
@oliviertassinari oliviertassinari deleted the product-picker-clarity branch June 15, 2022 09:49
import joyPkgJson from '../../../../packages/mui-joy/package.json';
import basePkgJson from '../../../../packages/mui-base/package.json';
import systemPkgJson from '../../../../packages/mui-system/package.json';
import materialPkgJson from 'packages/mui-material/package.json';
Copy link
Member

Choose a reason for hiding this comment

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

This doesn't work in MUI X inside @mui/monorepo package.
I'll submit a PR to revert this as a quick fix

Copy link
Member Author

@oliviertassinari oliviertassinari Jul 11, 2022

Choose a reason for hiding this comment

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

Ohh, now we have solved the mystery! cc @Janpot

For some reason MUIX setup understands the packages/... alias and I can't figure out why.

mui/toolpad#542 (comment)

It's simply because we were not looking at the right source. MUI X didn't update to the latest version of mui/material-ui HEAD yet.

Copy link
Member

Choose a reason for hiding this comment

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

Now that explains a lot 😄.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
core Infrastructure work going on behind the scenes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants