[patronus] PAT-147 Warn about required approval and autoconfigure the push dialog.

GitOrigin-RevId: ff3d5c4a2efecfc4b98c2b59308c63cb6af869da
This commit is contained in:
Piotr Tomiak
2025-10-23 15:35:10 +00:00
committed by intellij-monorepo-bot
parent 5385d2e297
commit 06d428e1ba
3 changed files with 12 additions and 0 deletions
@@ -1,12 +1,14 @@
f:com.intellij.dvcs.push.PushController
- com.intellij.openapi.Disposable
- *:createCustomPanels(java.util.Collection):java.util.Map
- *:getDialog():com.intellij.dvcs.push.ui.VcsPushDialog
*:com.intellij.dvcs.push.ui.CommitNodeUiRenderExtension
- a:render(com.intellij.openapi.project.Project,com.intellij.ui.ColoredTreeCellRenderer,com.intellij.dvcs.push.ui.CommitNode):V
c:com.intellij.dvcs.push.ui.VcsPushDialog
- com.intellij.openapi.ui.DialogWrapper
- com.intellij.dvcs.push.ui.VcsPushUi
- com.intellij.openapi.actionSystem.UiDataProvider
- *:getCustomPanel(java.lang.String):com.intellij.dvcs.push.VcsPushOptionsPanel
- *:getCustomParams():java.util.Map
com.intellij.dvcs.push.ui.VcsPushUi
- *:hasWarnings():Z
@@ -388,6 +388,11 @@ public final class PushController implements Disposable {
return myPushLog;
}
@ApiStatus.Experimental
public @NotNull VcsPushDialog getDialog() {
return myDialog;
}
/**
* An exception thrown if a {@link PrePushHandler} has failed to make the decision
* by whatever reason: either it had been cancelled, or an execution exception had occurred.
@@ -359,6 +359,11 @@ public class VcsPushDialog extends DialogWrapper implements VcsPushUi, UiDataPro
return panel == null ? null : panel.getValue();
}
@ApiStatus.Experimental
public @Nullable VcsPushOptionsPanel getCustomPanel(@NotNull String id) {
return myCustomPanels.get(id);
}
@Override
public void uiDataSnapshot(@NotNull DataSink sink) {
sink.set(VcsPushUi.VCS_PUSH_DIALOG, this);