-
Notifications
You must be signed in to change notification settings - Fork 377
chore(ApplicationLauncher): deprecate #8836
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
Conversation
|
Preview: https://patternfly-react-pr-8836.surge.sh A11y report: https://patternfly-react-pr-8836-a11y.surge.sh |
thatblindgeye
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The comments below will apply to the other demos that were updated to use the composable menu implementation of an app launcher (the MastheadWithUtilities.... demo and all 4 Page demos I believe)
b772690 to
1dd6acb
Compare
|
I wonder if I should import DashboardHeader into these to reduce all the duplicate code? The possible reason not to would be... "In the example, we want to show the full code that goes into the Page component." Thoughts @nicolethoen @thatblindgeye @tlabaj ? |
thatblindgeye
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Keeping the examples as-is rather than importing DashboardHeader makes sense from a "show how someone else can implement the same thing" sort of way. #7927 was an update to the Page demos that specifically did not import the Dashboard wrapper at least
nicolethoen
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This all looks like it works. Is there a reason that our examples/demos shouldn't or can't use a Dropdown-next to replace the old application launchers?
|
I choose the replacement based on the issue description "Update any demos/examples that use the application launcher to use a recommended solution - the composable menu demo." |
|
It may be worth doing once the dropdown-next is moved out of the dropdown directory. But i think this is fine for now. I'm going to open a follow up issue. |
tlabaj
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
I will defer to @mcarrano on wether the demos should be using the Dropdown next, or be built with composable components as they are in this PR.
|
I'd argue that if we are able to build any of our deprecated components as they function in demos/examples today using next components, we should (since they will all be promoted with this release) so that products see how to build things out of the box and not unnecessarily try to compose things completely on their own. There are a lot of interaction details to make sure are wired up correctly when they are built completely composably. I'm working on opening an issue that is keeping track of all the places this might apply. |
I agree, if it was wired up, that would be preferable. But the simple dropdown does not have all the functionality an application launcher may need as seen in the demo. That is why I am interested in what @mcarrano thinks here. https://patternfly-react-v5.surge.sh/demos/composable-menu#composable-application-launcher |
tlabaj
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@gitdallas We discussed this PR at the leads meeting today and we came to the consensus that we only need to demo the application launcher in the Masthead demo. That demo should mirror the features we demonstrate in composable application launcher demo since that is most likely how it is being used in product.
You can remove the application launcher from the other demos.
packages/react-core/src/demos/examples/Masthead/MastheadWithUtilitiesAndUserDropdownMenu.tsx
Outdated
Show resolved
Hide resolved
5bf9a46 to
0035708
Compare
|
Looks to me that the search in the Masthead demo's App Launcher replacement is filtering out every option every time |
@nicolethoen looks like that is happening in v5 generally in the composable menu example as well. i saw it was happening locally before my changes, also seen in a surge for a different pr https://patternfly-react-pr-8864.surge.sh/demos/composable-menu i had assumed it just wasn't set up to work, only now did i check pf4 and see it is working there i'm about to head out of town for the weekend but i can see if i can check what's going on when i get where i'm going.. if we want that fix as part of this pr |
We will need to open an issue for the composable menu demo so we can probably fix it with that if @nicolethoen agrees. |
tlabaj
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
|
@nicolethoen @tlabaj - i pushed a quick fix for the filter issue |
converting demos add import in md remove applauncher from pagestickysectionbreadcrumb example update examples after deprecating app launcher import missing semi colon address pr feedback remove applauncher from page/dashboard demos use composablemenu applauncher demo in masthead demo rebase markers rebase fix rebase fix fix test snap after rebase fixing dropdown imports after rebase fix applauncher search
090f693 to
70cad1c
Compare
mcarrano
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great. Thanks @gitdallas !
|
Your changes have been released in:
Thanks for your contribution! 🎉 |
Closes #8074
Deprecated app launcher:
https://patternfly-react-pr-8836.surge.sh/components/menus/application-launcher
Masthead demo that uses replacement for applauncher (topright):
https://patternfly-react-pr-8836.surge.sh/components/masthead/react-demos/masthead-with-utilities-and-user-dropdown-menu/