feat(stacks): show planned deployment info [BE-12737] (#2097)
Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -43,13 +43,18 @@ export function InnerForm({
|
||||
return (
|
||||
<Form className="form-horizontal my-8">
|
||||
<FormSection title="Redeploy from git repository">
|
||||
<InfoPanel
|
||||
className="text-muted small"
|
||||
url={gitConfig.URL}
|
||||
type="stack"
|
||||
configFilePath={gitConfig.ConfigFilePath}
|
||||
additionalFiles={stack.AdditionalFiles || []}
|
||||
/>
|
||||
<div className="row small">
|
||||
<div className="col-sm-12">
|
||||
<InfoPanel
|
||||
type="stack"
|
||||
currentDeployment={{
|
||||
repositoryUrl: gitConfig.URL,
|
||||
configFilePath: gitConfig.ConfigFilePath,
|
||||
additionalFiles: stack.AdditionalFiles || [],
|
||||
}}
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<AutoUpdateFieldset
|
||||
value={values.autoUpdate}
|
||||
|
||||
+3
-3
@@ -95,10 +95,10 @@ vi.mock(
|
||||
);
|
||||
|
||||
vi.mock('@/react/portainer/gitops/InfoPanel', () => ({
|
||||
InfoPanel: vi.fn(({ url, configFilePath }) => (
|
||||
InfoPanel: vi.fn(({ currentDeployment }) => (
|
||||
<div data-testid="info-panel">
|
||||
<span>{url}</span>
|
||||
<span>{configFilePath}</span>
|
||||
<span>{currentDeployment?.repositoryUrl}</span>
|
||||
<span>{currentDeployment?.configFilePath}</span>
|
||||
</div>
|
||||
)),
|
||||
}));
|
||||
|
||||
Reference in New Issue
Block a user