feat(stacks): show planned deployment info [BE-12737] (#2097)

Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Chaim Lev-Ari
2026-03-22 09:34:45 +02:00
committed by GitHub
parent 7569266e46
commit 5670216d7e
13 changed files with 465 additions and 50 deletions
@@ -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}
@@ -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>
)),
}));