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

PatternFly 6 upgrade preparation work #20973

Open
6 of 23 tasks
jelly opened this issue Sep 4, 2024 · 3 comments
Open
6 of 23 tasks

PatternFly 6 upgrade preparation work #20973

jelly opened this issue Sep 4, 2024 · 3 comments

Comments

@jelly
Copy link
Member

jelly commented Sep 4, 2024

Upgrading to PF6 will be a major task in all our Cockpit projects. This issue is here to collect everything which we can do upfront to make the bump to PF6 less painful:

More PF issues can be found with:

git grep "github.com/patternfly/patternfly"
@jelly jelly changed the title [PF6] Upgrading to PatternFly 6 PatternFly 6 upgrade preparation work Sep 4, 2024
@jelly
Copy link
Member Author

jelly commented Sep 4, 2024

Most of the codemods change code to renamed properties or changed implementations which we can't do upfront.

Instead of changing all our tests to handle pf-v5-c -> pf-v6-c we could write our tests like:

test/verify/check-users:        b.wait_visible("#accounts div.pf-v5-c-empty-state")
test/verify/check-users:        b.wait_visible(f"#accounts div.{self.pf_version}-c-empty-state")

@jelly
Copy link
Member Author

jelly commented Sep 5, 2024

nav tertiary looks 💯 different from the horizontal subnav. The screenshot is stretched because of the Flex we have there.

image

jelly added a commit to jelly/cockpit that referenced this issue Sep 5, 2024
This property has been removed from PatternFly 6 with as reasoning that
a label should always convey the value when the checked state is true
and should not change based on the selection state.

patternfly/patternfly#6347

Relates: cockpit-project#20973
@garrett
Copy link
Member

garrett commented Sep 5, 2024

nav tertiary looks 💯 different from the horizontal subnav. The screenshot is stretched because of the Flex we have there.

Yep, it's not a replacement, regardless of what they've said. The visual replacement would be tabs, but they should activate a location instead of switch a tab notebook.

In other words, I think this is what we'd want instead (tabs as navigation): https://www.patternfly.org/components/tabs/#tabs-linked-to-nav-elements

If that doesn't work, a fallback could be to use the HTML version instead: https://www.patternfly.org/components/tabs/html#tabs-as-navigation — But I think the React tabs as navigation approach should work.

jelly added a commit to jelly/cockpit that referenced this issue Sep 5, 2024
jelly added a commit to jelly/cockpit that referenced this issue Sep 5, 2024
This was fixed and it seems that the SearchInput no longer uses a
Popper either.

Related: cockpit-project#20973
jelly added a commit to jelly/cockpit that referenced this issue Sep 5, 2024
mvollmer pushed a commit that referenced this issue Sep 6, 2024
This property has been removed from PatternFly 6 with as reasoning that
a label should always convey the value when the checked state is true
and should not change based on the selection state.

patternfly/patternfly#6347

Relates: #20973
jelly added a commit to jelly/cockpit-machines that referenced this issue Sep 9, 2024
Was temporary required due to a PF bug which was fixed long ago.

patternfly/patternfly-react#7163

Related: cockpit-project/cockpit#20973
jelly added a commit to jelly/cockpit-machines that referenced this issue Sep 9, 2024
No longer an issue with the latest PF as it was fixed in:

patternfly/patternfly-react#7834

Related: cockpit-project/cockpit#20973
jelly added a commit to jelly/cockpit that referenced this issue Sep 10, 2024
jelly added a commit to jelly/cockpit that referenced this issue Sep 10, 2024
jelly added a commit that referenced this issue Sep 10, 2024
This was fixed in PatternFly already and in machines.

cockpit-project/cockpit-machines#1330

Related: #20973
jelly added a commit that referenced this issue Sep 10, 2024
jelly added a commit to cockpit-project/cockpit-machines that referenced this issue Sep 12, 2024
Was temporary required due to a PF bug which was fixed long ago.

patternfly/patternfly-react#7163

Related: cockpit-project/cockpit#20973
jelly added a commit to cockpit-project/cockpit-machines that referenced this issue Sep 12, 2024
No longer an issue with the latest PF as it was fixed in:

patternfly/patternfly-react#7834

Related: cockpit-project/cockpit#20973
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants