OCPBUGS-78253: Fix InstallPlan > Components layout issue#16127
OCPBUGS-78253: Fix InstallPlan > Components layout issue#16127rhamilto wants to merge 1 commit intoopenshift:mainfrom
Conversation
Replace HTML table markup with PatternFly Table components in the InstallPlanPreview component. Also replace the raw co-m-pane__body div wrapper with the proper PaneBody component for consistency. Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
|
@rhamilto: This pull request references Jira Issue OCPBUGS-78253, which is valid. The bug has been moved to the POST state. 3 validation(s) were run on this bug
Requesting review from QA contact: The bug has been updated to refer to the pull request using the external bug tracker. DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository. |
|
@rhamilto: This pull request references Jira Issue OCPBUGS-78253, which is valid. 3 validation(s) were run on this bug
Requesting review from QA contact: DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository. |
📝 WalkthroughWalkthroughThis change migrates the InstallPlanPreview component's per-step table rendering from native HTML elements to PatternFly's PFTable component structure. The refactoring replaces manual 🚥 Pre-merge checks | ✅ 2 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
📝 Coding Plan
Comment Tip CodeRabbit can generate a title for your PR based on the changes with custom instructions.Set the |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Inline comments:
In
`@frontend/packages/operator-lifecycle-manager/src/components/install-plan.tsx`:
- Line 490: Add an accessibility label to the PFTable by passing the translation
string used elsewhere; specifically update the PFTable element (symbol PFTable
in this component) to include aria-label={t('olm~InstallPlans')} so it matches
the main InstallPlansList table's pattern and uses the existing t translation
function in scope.
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Pro
Run ID: cefc0fc9-aad4-4e37-ba74-843810fe745e
📒 Files selected for processing (1)
frontend/packages/operator-lifecycle-manager/src/components/install-plan.tsx
| </table> | ||
| </div> | ||
| </div> | ||
| <PFTable variant="compact" borders> |
There was a problem hiding this comment.
Add aria-label for accessibility compliance.
The table is missing an aria-label attribute, which screen readers rely on to convey the table's purpose. The main InstallPlansList table (line 218) correctly sets aria-label={t('olm~InstallPlans')} — this components table should follow the same pattern.
♿ Proposed fix to add aria-label
- <PFTable variant="compact" borders>
+ <PFTable variant="compact" borders aria-label={t('olm~InstallPlan components')}>📝 Committable suggestion
‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.
| <PFTable variant="compact" borders> | |
| <PFTable variant="compact" borders aria-label={t('olm~InstallPlan components')}> |
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.
In `@frontend/packages/operator-lifecycle-manager/src/components/install-plan.tsx`
at line 490, Add an accessibility label to the PFTable by passing the
translation string used elsewhere; specifically update the PFTable element
(symbol PFTable in this component) to include aria-label={t('olm~InstallPlans')}
so it matches the main InstallPlansList table's pattern and uses the existing t
translation function in scope.
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: logonoff, rhamilto The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
/retest |
3 similar comments
|
/retest |
|
/retest |
|
/retest |
|
/retest |
1 similar comment
|
/retest |
|
@rhamilto: all tests passed! Full PR test history. Your PR dashboard. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here. |
|
/assign @yapei |
|
@XiyunZhao will help verify |

Summary
<div className="co-m-pane__body">wrapper with the properPaneBodycomponent for consistencyBonus cleanup:
Table,Thead,Tr,Th,Tbody,Td) in theInstallPlanPreviewcomponentco-table-containerwrapper as PatternFly Table handles its own spacingAfter
Test plan
🤖 Generated with Claude Code
Summary by CodeRabbit