Skip to content

Commit 85b93da

Browse files
Merge branch 'main' into iss#4518
2 parents 29c7a91 + ab21444 commit 85b93da

45 files changed

Lines changed: 1366 additions & 292 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/slack-rotation.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Weekly Slack Monitor Rotation
2+
3+
on:
4+
schedule:
5+
# Runs at 9:00 AM every Monday (UTC)
6+
- cron: '0 9 * * 1'
7+
# Also allow manual trigger for testing
8+
workflow_dispatch:
9+
10+
jobs:
11+
rotate-monitor:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@v3
15+
with:
16+
fetch-depth: 0
17+
18+
- name: Set up Python
19+
uses: actions/setup-python@v4
20+
with:
21+
python-version: '3.10'
22+
23+
- name: Install dependencies
24+
run: |
25+
python -m pip install --upgrade pip
26+
pip install requests
27+
28+
- name: Run rotation script
29+
env:
30+
SLACK_TOKEN: ${{ secrets.SLACK_MONITOR_APP_SLACK_TOKEN }}
31+
CHANNEL_ID: ${{ secrets.TEAM_UXD_PATTERNFLY_CHANNEL_ID }}
32+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
33+
EXCLUDED_USERS: ${{ secrets.SLACK_MONITOR_EXCLUDED_USERS }}
34+
run: python scripts/slack_monitor_rotation.py
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Weekly Slack Monitor Rotation
2+
3+
on:
4+
schedule:
5+
# Runs at 9:00 AM every Monday (UTC)
6+
- cron: '0 9 * * 1'
7+
# Also allow manual trigger for testing
8+
workflow_dispatch:
9+
10+
jobs:
11+
rotate-monitor:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@v3
15+
with:
16+
fetch-depth: 0
17+
18+
- name: Set up Python
19+
uses: actions/setup-python@v4
20+
with:
21+
python-version: '3.10'
22+
23+
- name: Install dependencies
24+
run: |
25+
python -m pip install --upgrade pip
26+
pip install requests
27+
28+
- name: Run rotation script
29+
env:
30+
SLACK_TOKEN: ${{ secrets.SLACK_MONITOR_APP_SLACK_TOKEN }}
31+
CHANNEL_ID: ${{ secrets.TEAM_UXD_PATTERNFLY_CHANNEL_ID }}
32+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
33+
EXCLUDED_USERS: ${{ secrets.SLACK_MONITOR_EXCLUDED_USERS }}
34+
run: python scripts/slack_monitor_rotation.py

packages/ast-helpers/CHANGELOG.md

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,55 @@
33
All notable changes to this project will be documented in this file.
44
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
55

6+
# 1.4.0-alpha.177 (2025-04-23)
7+
8+
9+
### Bug Fixes
10+
11+
* **example:** keeps example content from overflowing content area ([#4550](https://github.com/patternfly/patternfly-org/issues/4550)) ([8a4b648](https://github.com/patternfly/patternfly-org/commit/8a4b648a46aa710608557ce920e8070bf251d5ef))
12+
13+
14+
15+
16+
17+
# 1.4.0-alpha.176 (2025-04-16)
18+
19+
**Note:** Version bump only for package @patternfly/ast-helpers
20+
21+
22+
23+
24+
25+
# 1.4.0-alpha.175 (2025-04-15)
26+
27+
**Note:** Version bump only for package @patternfly/ast-helpers
28+
29+
30+
31+
32+
33+
# 1.4.0-alpha.174 (2025-04-10)
34+
35+
36+
### Reverts
37+
38+
* Revert "feat(ver): enable react 19 support in framework (#4515)" (#4541) ([93ae3ec](https://github.com/patternfly/patternfly-org/commit/93ae3ecc6bf551ae1eb8ab844aa82ca6619cf2bf)), closes [#4515](https://github.com/patternfly/patternfly-org/issues/4515) [#4541](https://github.com/patternfly/patternfly-org/issues/4541)
39+
40+
41+
42+
43+
44+
# 1.4.0-alpha.173 (2025-04-10)
45+
46+
47+
### Features
48+
49+
* **ver:** enable react 19 support in framework ([#4515](https://github.com/patternfly/patternfly-org/issues/4515)) ([07ed7ae](https://github.com/patternfly/patternfly-org/commit/07ed7ae30789543204f8c8f5031c96e478164957))
50+
51+
52+
53+
54+
655
# 1.4.0-alpha.172 (2025-04-09)
756

857

packages/ast-helpers/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@patternfly/ast-helpers",
33
"description": "Acorn AST helpers for working with live code",
4-
"version": "1.4.0-alpha.172",
4+
"version": "1.4.0-alpha.177",
55
"author": "Red Hat",
66
"license": "MIT",
77
"publishConfig": {

packages/documentation-framework/CHANGELOG.md

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,55 @@
33
All notable changes to this project will be documented in this file.
44
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
55

6+
## 6.9.4 (2025-04-23)
7+
8+
9+
### Bug Fixes
10+
11+
* **example:** keeps example content from overflowing content area ([#4550](https://github.com/patternfly/patternfly-org/issues/4550)) ([8a4b648](https://github.com/patternfly/patternfly-org/commit/8a4b648a46aa710608557ce920e8070bf251d5ef))
12+
13+
14+
15+
16+
17+
## 6.9.3 (2025-04-16)
18+
19+
**Note:** Version bump only for package @patternfly/documentation-framework
20+
21+
22+
23+
24+
25+
## 6.9.2 (2025-04-15)
26+
27+
**Note:** Version bump only for package @patternfly/documentation-framework
28+
29+
30+
31+
32+
33+
## 6.9.1 (2025-04-10)
34+
35+
36+
### Reverts
37+
38+
* Revert "feat(ver): enable react 19 support in framework (#4515)" (#4541) ([93ae3ec](https://github.com/patternfly/patternfly-org/commit/93ae3ecc6bf551ae1eb8ab844aa82ca6619cf2bf)), closes [#4515](https://github.com/patternfly/patternfly-org/issues/4515) [#4541](https://github.com/patternfly/patternfly-org/issues/4541)
39+
40+
41+
42+
43+
44+
# 6.9.0 (2025-04-10)
45+
46+
47+
### Features
48+
49+
* **ver:** enable react 19 support in framework ([#4515](https://github.com/patternfly/patternfly-org/issues/4515)) ([07ed7ae](https://github.com/patternfly/patternfly-org/commit/07ed7ae30789543204f8c8f5031c96e478164957))
50+
51+
52+
53+
54+
655
## 6.8.4 (2025-04-09)
756

857

packages/documentation-framework/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@patternfly/documentation-framework",
33
"description": "A framework to build documentation for PatternFly.",
4-
"version": "6.8.4",
4+
"version": "6.9.4",
55
"author": "Red Hat",
66
"license": "MIT",
77
"bin": {
@@ -12,7 +12,7 @@
1212
"@babel/preset-env": "^7.24.3",
1313
"@babel/preset-react": "^7.24.1",
1414
"@mdx-js/util": "1.6.16",
15-
"@patternfly/ast-helpers": "^1.4.0-alpha.172",
15+
"@patternfly/ast-helpers": "^1.4.0-alpha.177",
1616
"@reach/router": "npm:@gatsbyjs/reach-router@1.3.9",
1717
"autoprefixer": "9.8.6",
1818
"babel-loader": "^9.1.3",

packages/documentation-framework/templates/mdx.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,3 +23,7 @@ p.pf-v6-c-content--p.ws-p {
2323
.ws-back-to-top {
2424
z-index: var(--pf-t--global--z-index--2xl);
2525
}
26+
27+
.ws-example-page-wrapper {
28+
max-width: min(100%, 825px);
29+
}

packages/documentation-framework/templates/mdx.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ const MDXChildTemplate = ({ Component, source, toc = [], index = 0, id }) => {
110110
const ChildComponent = () => (
111111
<div className={source !== 'landing-pages' ? 'pf-v6-l-flex' : ''}>
112112
{toc.length > 1 && <TableOfContents items={toc} />}
113-
<Stack hasGutter style={{ ...(source !== 'landing-pages' && { maxWidth: '825px' }) }}>
113+
<Stack hasGutter className={(source !== 'landing-pages' && 'ws-example-page-wrapper')}>
114114
{InlineAlerts}
115115
<Component />
116116
{functionDocumentation.length > 0 && (

packages/documentation-site/patternfly-docs/content/design-guidelines/charts/about/about.md

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,23 @@
11
---
22
id: About charts
33
section: charts
4+
sortValue: 1
45
---
56

67
_Charts are only available in React_
78

89
A **chart** visualizes data in an application. The type of chart you use will depend on your use case and the type of data you need to display.
910

1011
## Elements
11-
<img src="./img/axis-labels.png" alt="Chart with axis labels" width="713"/> 
12+
<img src="./img/axis-labels.png" alt="Chart with axis labels" width="713"/>
1213

1314
1. **Title:** Titles should be left-aligned and appear above your chart.
1415
2. **Axis labels and scale values:** We recommend using tick marks to clearly mark scale values on the y-axis. The text for axis labels and scale values should be 12px font in standard text color. All scale values should be equally distributed across the axis and the axis label should fall outside the scale values, centered with the axis line.
1516
3. **Legends:** We recommend using legends when charts include more than one variable and therefore use more than one color. When datasets are overlapping, an [interactive legend](#interactive-chart-legends) can be used. If space is not available to display names of horizontal and vertical axes, a legend must be added instead. The legend should list the colors that each variable obtains and the name of the variable. The text on the legend should be 14px size and standard text color. They can either be placed left-aligned to the right of the chart or centered below the chart.
1617
4. **Chart tooltip:** A tooltip will appear on hover over certain elements of a chart, like bars in a bar chart or segments in a donut chart. [Chart tooltips](/charts/tooltips) should display the specific values related to the element the user is hovering over.
1718

1819
## Chart types
19-
<img src="./img/chart-legend.png" alt="Image displaying what chart types to use when" width="1024"/> 
20+
<img src="./img/chart-legend.png" alt="Image displaying what chart types to use when" width="1024"/>
2021

2122
- [Area chart](/charts/area-chart/design-guidelines): Use to show (potentially multiple) trends over a continuous scale (usually time).
2223
- [Bar chart](/charts/bar-chart/design-guidelines): Use to show and compare categories and their respective data point/value. Bar charts can be plotted vertically or horizontally. The axis that labels the bar is the category, the axis that marks the end point of the bar displays the data points/values.
@@ -65,3 +66,14 @@ On click
6566

6667
1. **Legend:** When a user clicks on a legend label, it becomes disabled and the color swatch is replaced with an eye-slashed icon.
6768
2. **Chart:** Data corresponding to the clicked legend label is hidden from view.
69+
70+
## Develop with charts
71+
72+
Default styles in the [@patternfly/react-charts package](https://www.npmjs.com/package/@patternfly/react-charts) are aligned with our light theme. Charts work with PatternFly's light theme by default&mdash;you don't need to import anything else.
73+
74+
To support dark-themed charts, you must:
75+
1. Import the [@patternfly/patternfly package](https://www.npmjs.com/package/@patternfly/patternfly), so that you can use our global tokens.
76+
1. Import the stylesheet that contains dark theme styles by adding this line before importing your main application component: `import '@patternfly/patternfly/patternfly-charts.css';`
77+
- Once you import this file, you'll have access to [all chart variables](https://www.npmjs.com/package/@patternfly/patternfly?activeTab=code). Beyond dark theme, you could use these variables to match the style of other UI elements to your chart styles.
78+
79+
To display the list of all available chart tokens, filter for "charts" in [the PatternFly design tokens table](/tokens/all-patternfly-tokens).

packages/documentation-site/patternfly-docs/content/design-guidelines/components/code-block/code-block.md

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,14 @@ id: Code block
33
section: components
44
---
55

6+
import '../components.css';
7+
68
## Elements
79
Code block has 4 main components.
810

9-
<img src="./img/code-block-structure.png" alt="Elements of the code block component" width="441"/>
11+
<div class="ws-docs-content-img">
12+
![Elements of the code block component.](./img/code-block-elements.svg)
13+
</div>
1014

1115
1. **Code snippet:** the content that will be copied to the user’s clipboard.
1216
2. **[Action buttons](#multiple-action-buttons):** completes an action when clicked. The copy button is the most common, but different or additional action buttons can be added on an as-needed basis.
@@ -15,14 +19,18 @@ Code block has 4 main components.
1519

1620
### Multiple action buttons
1721

18-
<img src="./img/code-block-multiple-actions.png" alt="Code block with multiple actions" width="355"/>
19-
2022
Code blocks can include multiple actions. Any actions are optional and customizable, but the copy action is the most common.
2123

2224
The additional actions to the copy action can include the option to show a checkmark after the user has clicked the action button. The checkmark can be used to indicate to the user that the action was successfully triggered.
2325

24-
### Show more/less
26+
<div class="ws-docs-content-img">
27+
![Example of a code block with multiple actions.](./img/code-block-multiple-actions.svg)
28+
</div>
2529

26-
<img src="./img/code-block-collapsed-expanded.png" alt="Expanded and collapsed code block" width="758"/>
30+
### Show more/less
2731

2832
There is the option to include a show more/less section in the code block. The show more/less section can be used to collapse larger code snippets. An expandable code block allows for long lines of code to be stored in an expansion panel. Expanding the code block allows the user to view the full string that they can copy.
33+
34+
<div class="ws-docs-content-img">
35+
![Examples of expanded and collapsed code blocks.](./img/code-block-expanded.svg)
36+
</div>

0 commit comments

Comments
 (0)