-
Notifications
You must be signed in to change notification settings - Fork 611
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
fd673c8
commit 9d8f345
Showing
3 changed files
with
87 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
51 changes: 51 additions & 0 deletions
51
frontend/packages/console-dynamic-plugin-sdk/upgrade-PatternFly.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
# PatternFly Upgrade Notes | ||
|
||
A dynamic plugin targets one or more versions of OpenShift Console. Each Console version supports | ||
specific version(s) of [PatternFly](https://www.patternfly.org/) in terms of CSS styling. | ||
|
||
Check the [OpenShift Console Versions vs PatternFly Versions][console-pf-versions] table | ||
for compatibility before upgrading to a newer version of PatternFly. | ||
|
||
## Console 4.14 and below | ||
|
||
Console provides the following PatternFly 4.x [shared modules][console-shared-modules] to plugins: | ||
|
||
- `@patternfly/react-core` | ||
- `@patternfly/react-table` | ||
- `@patternfly/quickstarts` | ||
|
||
When using code from these packages, make sure to import directly from the package index: | ||
|
||
```ts | ||
// Do _not_ do this: | ||
import { Button } from '@patternfly/react-core/dist/esm/components/Button'; | ||
// Instead, do this: | ||
import { Button } from '@patternfly/react-core'; | ||
``` | ||
|
||
## Console 4.15 | ||
|
||
All plugins that target OpenShift Console 4.15 should upgrade to PatternFly 5.x to take advantage | ||
of [PatternFly dynamic modules][console-pf-dynamic-modules]. | ||
|
||
Any PatternFly related code should be imported via the corresponding package index: | ||
|
||
```ts | ||
// Do _not_ do this: | ||
import { MonitoringIcon } from '@patternfly/react-icons/dist/esm/icons/monitoring-icon'; | ||
// Instead, do this: | ||
import { MonitoringIcon } from '@patternfly/react-icons'; | ||
``` | ||
|
||
## PatternFly resources | ||
|
||
- [Major release highlights providing an overview of changes][pf-release-highlights] | ||
- [Upgrade guide with information about codemods and other resources][pf-upgrade-guide] | ||
- [Release notes change log that can be searched and filtered][pf-upgrade-release-notes] | ||
|
||
[console-shared-modules]: ./README.md#shared-modules | ||
[console-pf-versions]: ./README.md#openshift-console-versions-vs-patternfly-versions | ||
[console-pf-dynamic-modules]: ./README.md#patternfly-dynamic-modules | ||
[pf-release-highlights]: https://www.patternfly.org/get-started/release-highlights/ | ||
[pf-upgrade-guide]: https://www.patternfly.org/get-started/upgrade | ||
[pf-upgrade-release-notes]: https://www.patternfly.org/get-started/upgrade/release-notes |