This migration guide covers all components that have been moved from the Insights repository to the new PatternFly “React component groups” extension. The API changes resulting from this migration will affect aspects of each component’s usage implementation. This guide outlines these changes and provides solutions for replicating your previous implementation.
The guide should be applicable when migrating from frontend-components version 3.8.0 and later. Please be aware that frontend-components version 4 included an upgrade to PatternFly 5, which brought changes to CSS class names and the DOM representation of components.Although this did not change the API of individual components or their visual appearance, their DOM representation may be slightly different.
- The disabled color for “Ansible unsupported” has been changed from
--pf-v5-global--disabled-color--200to--pf-v5-global--disabled-color--100in order to comply with PatternFly guidelines SOLUTION: use theclassNameproperty if you need a custom color
- The default error description “If the problem persists, contact Red Hat Support or check our status page for known outages.” has been removed.
SOLUTION: pass a default value using the new
defaultErrorDescriptionproperty
- The removal of the default error description from
ErrorState“If the problem persists, contact Red Hat Support or check our status page for known outages.” also affected this component. SOLUTION: pass a default value using the newdefaultErrorDescriptionproperty
overflowWrap: 'break-word'styling change has been made to the component SOLUTION: use theclassNameproperty for custom styling
- The default error description “Contact your organization administrator(s) for more information or visit My User Access to learn more about your permissions.” has been removed.
SOLUTION: pass a default value using the new
descriptionproperty - The
actionsproperty has been divided intoprimaryAction(there should be only one for any given screen) andsecondaryActions SOLUTION: use the new properties for primary and secondary actions
-
The logic automatically persisting the
/betaURL section for “Go to home page” target has been removed. SOLUTION: handle/betain your URL on your own and pass a final URL using the newtoLandingPageUrlproperty ## Severity -
No action required
- No action required
- The tag icon size is set to
mdby default instead oflgthe previous default SOLUTION: use the newiconSizeproperty to customize icon size Note: if you migrate from Insights FEC version 3.x.x you may not be affected - The
onTagClickproperty has been renamed toonClick SOLUTION: use the newonTagClickproperty
- The default status page URL (https://status.redhat.com) has been removed
SOLUTION: use the new
statusPageUrlproperty to pass in your custom URL