Files
sencho/frontend/src/components/FleetView/PinnedUpdateBadge.tsx
T
Anso e12602091a fix: repin semver compose tags during fleet self-update (#1587)
* fix: repin semver compose tags during fleet self-update

Fleet updates failed when docker-compose.yml pinned a semver tag because recreate reused the on-disk pin. Pull the target image first, rewrite semver pins via the update helper, and block digest or unresolved pins with fast 409s.

* fix: update OFFLINE_META shape in capability and node-registry meta tests
2026-07-07 14:40:50 -04:00

20 lines
620 B
TypeScript

import { Ban } from 'lucide-react';
import { Badge } from '@/components/ui/badge';
import { PINNED_UPDATE_BLOCKED_FALLBACK } from './types';
interface PinnedUpdateBadgeProps {
reason?: string | null;
className?: string;
}
export function PinnedUpdateBadge({
reason,
className = 'text-[10px] px-1.5 py-0 h-4 bg-muted text-muted-foreground border-card-border/40 shrink-0',
}: PinnedUpdateBadgeProps) {
return (
<Badge className={className} title={reason ?? PINNED_UPDATE_BLOCKED_FALLBACK}>
<Ban className="w-2.5 h-2.5 mr-0.5" strokeWidth={1.5} /> Pinned
</Badge>
);
}