[WIP] CONSOLE-5068: Remove createModalLauncher from modal factory#16066
[WIP] CONSOLE-5068: Remove createModalLauncher from modal factory#16066sg00dwin wants to merge 2 commits intoopenshift:mainfrom
Conversation
|
@sg00dwin: This pull request references CONSOLE-5068 which is a valid jira issue. Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the sub-task to target the "4.22.0" version, but no target version was set. 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. |
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: sg00dwin The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
Assisted by claude code
Allows CI to pass while consumer migration PRs are in flight. Assisted by: Claude Code
f7ec55c to
84fd938
Compare
|
@sg00dwin: This pull request references CONSOLE-5068 which is a valid jira issue. Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the sub-task to target the "4.22.0" version, but no target version was set. 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. |
|
/retest-required |
|
@sg00dwin: The following tests failed, say
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. |
This PR must wait to merge after all dependency modal migration PRs have merged.
Summary
Removes the deprecated
createModalLauncherfunction and all associated types frompublic/components/factory/modal.tsx. This is the final cleanup step in the CONSOLE-5012 modal migration effort.Currently,
createModalLauncheris replaced with a deprecated no-op stub so the build passes while consumer migration PRs are in flight. Once all dependency PRs merge and remove their usage, a follow-up commit will delete the stub entirely.Changes
Removed from
modal.tsx:createModalfunctioncreateModalLauncherimplementation (replaced with no-op stub)GetModalContainertypeCreateModaltypeReactDOM,Provider,Router,CompatRouter,store,history,PluginStoreProvider,pluginStoreRetained (still in use by migrated modals):
ModalWrapper,ModalTitle,ModalBody,ModalFooter,ModalSubmitFooterModalComponentPropsTemporarily retained as deprecated stubs (to be removed once all consumers are migrated):
createModalLauncher(no-op)CreateModalLaunchertypeCreateModalLauncherPropstypeDependencies
Test plan
yarn buildcompiles without errorsyarn lintpassesyarn testpassesAssisted by Claude Code