1
0
Fork 0
mirror of https://github.com/portainer/portainer.git synced 2025-07-19 05:19:39 +02:00

feat(helm): helm actions [r8s-259] (#715)

Co-authored-by: James Player <james.player@portainer.io>
Co-authored-by: Cara Ryan <cara.ryan@portainer.io>
Co-authored-by: stevensbkang <skan070@gmail.com>
This commit is contained in:
Ali 2025-05-13 22:15:04 +12:00 committed by GitHub
parent dfa32b6755
commit 4ee349bd6b
117 changed files with 4161 additions and 696 deletions

View file

@ -0,0 +1,40 @@
import { Eye } from 'lucide-react';
import { Icon } from '@@/Icon';
import {
Sheet,
SheetContent,
SheetDescription,
SheetHeader,
SheetTrigger,
} from '@@/Sheet';
import { HelmRelease } from '../types';
import { HelmRevisionList } from './HelmRevisionList';
export function HelmRevisionListSheet({
currentRevision,
history,
}: {
currentRevision: number | undefined;
history: HelmRelease[] | undefined;
}) {
return (
<Sheet>
<SheetTrigger className="btn btn-link">
<Icon icon={Eye} />
View revisions
</SheetTrigger>
<SheetContent className="!w-80 !p-0 !pt-1 overflow-auto">
<div className="sr-only">
<SheetHeader title="Revisions" />
<SheetDescription>
View the history of this Helm application.
</SheetDescription>
</div>
<HelmRevisionList currentRevision={currentRevision} history={history} />
</SheetContent>
</Sheet>
);
}