Skip to content

chore: migrate to PatternFly v6#28

Draft
rrosatti wants to merge 7 commits into
patternfly-labs:mainfrom
rrosatti:KFLUXUI-1393/migrate-to-patternfly-v6
Draft

chore: migrate to PatternFly v6#28
rrosatti wants to merge 7 commits into
patternfly-labs:mainfrom
rrosatti:KFLUXUI-1393/migrate-to-patternfly-v6

Conversation

@rrosatti

@rrosatti rrosatti commented Jun 9, 2026

Copy link
Copy Markdown

Fixes

Fixes https://redhat.atlassian.net/browse/KFLUXUI-1393

Description

Migrate formik-pf from PatternFly v5 to v6.

Changes

  1. Bump @patternfly/react-core from ^5.3.3 to ^6.5.1
  2. Apply PF v6 codemods - class-name and css-vars updates
  3. Rewrite SelectField to PF v6 composable Select API
  4. Rewrite FormikWizard to PF v6 composable Wizard API
  5. Fix RadioGroupField - validation no longer fires on first selection
  6. Bump package version

Visual references

Storybook - all components working
formik-pf-migrate-to-v6-storybook.mp4
konflux-ui - components in use
konflux-ui-testing-formik-pf-updated-locally.mov

Test plan

  • Storybook renders all components correctly
  • Tested locally against konflux-ui PF v6 migration branch

rrosatti and others added 7 commits June 8, 2026 16:07
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- labelIcon → labelHelp on FormGroup
- Text → Content component
- Card: remove isFlat prop
- PageSection: variant="light" → hasBodyWrapper
- SCSS: pf-v5 class prefixes → pf-v6, CSS vars → pf-t tokens

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Replace deprecated Select/SelectVariant/SelectOption with the PF v6
composable API: Select, SelectList, SelectOption, MenuToggle with
TextInputGroup for typeahead. Remove lodash-es/pull dependency.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Replace deprecated WizardToggle/WizardNav/WizardNavItem/WizardProps
with PF v6 composable equivalents. Map FormikWizardStep to
WizardStepType. Replace deprecated WizardFooter with
WizardFooterWrapper in stories.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Pass shouldValidate=false to setFieldTouched so it does not trigger
validation before setFieldValue's state update commits.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Fix yarn lint errors.
Bump formik-pf version to 0.0.1-alpha12.
@rrosatti

Copy link
Copy Markdown
Author

@sahil143 could you please review this one once you get the chance? :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant