Skip to content

OCPBUGS-76413: UI freezes when clicking Select button without version#3401

Merged
openshift-merge-bot[bot] merged 1 commit intoopenshift-assisted:masterfrom
ElayAharoni:UI-freezes-when-clicking-Select-button-without-version
Feb 17, 2026
Merged

OCPBUGS-76413: UI freezes when clicking Select button without version#3401
openshift-merge-bot[bot] merged 1 commit intoopenshift-assisted:masterfrom
ElayAharoni:UI-freezes-when-clicking-Select-button-without-version

Conversation

@ElayAharoni
Copy link
Contributor

@ElayAharoni ElayAharoni commented Feb 12, 2026

https://issues.redhat.com/browse/OCPBUGS-76413

Summary by CodeRabbit

Bug Fixes

  • Fixed OpenShift version selection modal to prevent invalid form updates when no valid version is selected.

Signed-off-by: Elay Aharoni <elayaha@gmail.com>
@openshift-ci-robot openshift-ci-robot added jira/valid-reference Indicates that this PR references a valid Jira ticket of any type. jira/invalid-bug Indicates that a referenced Jira bug is invalid for the branch this PR is targeting. labels Feb 12, 2026
@openshift-ci-robot
Copy link

@ElayAharoni: This pull request references Jira Issue OCPBUGS-76413, which is invalid:

  • expected the bug to target the "4.22.0" version, but no target version was set

Comment /jira refresh to re-evaluate validity if changes to the Jira bug are made, or edit the title of this pull request to link to a different bug.

The bug has been updated to refer to the pull request using the external bug tracker.

Details

In response to this:

https://issues.redhat.com/browse/OCPBUGS-76413

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.

@openshift-ci openshift-ci bot requested review from jkilzi and rawagner February 12, 2026 14:18
@openshift-ci openshift-ci bot added the size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. label Feb 12, 2026
@coderabbitai
Copy link

coderabbitai bot commented Feb 12, 2026

📝 Walkthrough

Walkthrough

A null guard is added to the OpenShiftVersionModal's onClick handler to conditionally update the openshiftVersion form field only when customOpenshiftSelect is not null, preventing updates when the selection is null.

Changes

Cohort / File(s) Summary
Null Guard in Modal Handler
libs/ui-lib/lib/common/components/ui/OpenShiftVersionModal.tsx
Added conditional check to skip setFieldValue call when customOpenshiftSelect is null, preventing unintended form field updates.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~3 minutes

Suggested labels

size/XS, jira/valid-bug

Suggested reviewers

  • rawagner

Poem

🐰 A null guard hops into the modal's gate,
Preventing null updates, oh how great!
No more silent overwrites in the night,
Just conditional logic, shining bright. ✨

🚥 Pre-merge checks | ✅ 3
✅ Passed checks (3 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title directly matches the bug being fixed: it references the issue number (OCPBUGS-76413) and describes the specific problem (UI freezes when clicking Select button without version) that the code change addresses.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing touches
  • 📝 Generate docstrings
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment

No actionable comments were generated in the recent review. 🎉

🧹 Recent nitpick comments
libs/ui-lib/lib/common/components/ui/OpenShiftVersionModal.tsx (1)

50-61: The null guard is correct as-is; consider disabling the button for better UX.

The type definition specifies customOpenshiftSelect: string | null (never undefined), so the !== null check properly guards against the only possible falsy value. No change needed there.

The valid improvement is the UX: when a user clicks Select without choosing a version, the modal closes silently. Instead, disable the button until a selection is made—it's clearer and follows standard form patterns for required fields.

Suggested improvement
         <Button
           key="select-custom-ocp"
           variant={ButtonVariant.primary}
+          isDisabled={!values.customOpenshiftSelect}
           onClick={() => {
             if (values.customOpenshiftSelect !== null) {
               setFieldValue('openshiftVersion', values.customOpenshiftSelect);
             }
             onClose();
           }}
         >

Tip

Issue Planner is now in beta. Read the docs and try it out! Share your feedback on Discord.


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Feb 12, 2026
@openshift-ci
Copy link

openshift-ci bot commented Feb 12, 2026

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: ElayAharoni, jgyselov

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-ci openshift-ci bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Feb 12, 2026
@ElayAharoni
Copy link
Contributor Author

/jira refresh

@openshift-ci-robot
Copy link

@ElayAharoni: This pull request references Jira Issue OCPBUGS-76413, which is invalid:

  • expected the bug to target the "4.22.0" version, but no target version was set

Comment /jira refresh to re-evaluate validity if changes to the Jira bug are made, or edit the title of this pull request to link to a different bug.

Details

In response to this:

/jira refresh

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.

@ElayAharoni
Copy link
Contributor Author

/jira refresh

@openshift-ci-robot openshift-ci-robot added jira/valid-bug Indicates that a referenced Jira bug is valid for the branch this PR is targeting. and removed jira/invalid-bug Indicates that a referenced Jira bug is invalid for the branch this PR is targeting. labels Feb 17, 2026
@openshift-ci-robot
Copy link

@ElayAharoni: This pull request references Jira Issue OCPBUGS-76413, which is valid.

3 validation(s) were run on this bug
  • bug is open, matching expected state (open)
  • bug target version (4.22.0) matches configured target version for branch (4.22.0)
  • bug is in the state POST, which is one of the valid states (NEW, ASSIGNED, POST)

No GitHub users were found matching the public email listed for the QA contact in Jira (mburman@redhat.com), skipping review request.

Details

In response to this:

/jira refresh

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.

@openshift-merge-bot openshift-merge-bot bot merged commit 52c39a9 into openshift-assisted:master Feb 17, 2026
12 checks passed
@openshift-ci-robot
Copy link

@ElayAharoni: Jira Issue OCPBUGS-76413: All pull requests linked via external trackers have merged:

Jira Issue OCPBUGS-76413 has been moved to the MODIFIED state.

Details

In response to this:

https://issues.redhat.com/browse/OCPBUGS-76413

Summary by CodeRabbit

Bug Fixes

  • Fixed OpenShift version selection modal to prevent invalid form updates when no valid version is selected.

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.

ElayAharoni added a commit to ElayAharoni/assisted-installer-ui that referenced this pull request Feb 23, 2026
openshift-merge-bot bot pushed a commit that referenced this pull request Feb 24, 2026
* Revert "UI freezes when clicking Select button without version (#3401)"

This reverts commit 52c39a9.

* Revert "OCPBUGS-75072 | OVE UI: Above-the-sea UI QE test (#3383)"

This reverts commit f61e1b1.

* Revert "OCPBUGS-74421 | OVE UI: Fix rendezvousIP field name in error message (#3376)"

This reverts commit 142fdc5.

* Revert "Add additional new fields to the above the sea UI (#3337)"

This reverts commit 2283bcd.

* Revert "add new fields to above sea level ABI (#3274)"

This reverts commit 41a3210.

* Revert "Assisted Installer OVE UI shows transient blank page with Technology Preview spinner (#3341)"

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

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. jira/valid-bug Indicates that a referenced Jira bug is valid for the branch this PR is targeting. jira/valid-reference Indicates that this PR references a valid Jira ticket of any type. lgtm Indicates that a PR is ready to be merged. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants