feat: Add stop_grace_period to swarm settings, test layout

This commit is contained in:
Lucas Manchine
2025-07-23 21:18:57 +00:00
committed by GitHub
parent b4a5221caf
commit e22489926b
@@ -762,12 +762,36 @@ export const AddSwarmSettings = ({ applicationId }: Props) => {
render={({ field }) => ( render={({ field }) => (
<FormItem className="relative max-lg:px-4 lg:pr-6 "> <FormItem className="relative max-lg:px-4 lg:pr-6 ">
<FormLabel>Stop Grace Period</FormLabel> <FormLabel>Stop Grace Period</FormLabel>
<FormDescription> <TooltipProvider delayDuration={0}>
Time to wait for the container to stop gracefully. <Tooltip>
</FormDescription> <TooltipTrigger asChild>
<FormDescription className="break-all w-fit flex flex-row gap-1 items-center">
Check the format
<HelpCircle className="size-4 text-muted-foreground" />
</FormDescription>
</TooltipTrigger>
<TooltipContent
className="w-full z-[999]"
align="start"
side="bottom"
>
<code>
<pre>
{`Duration string format:
• "30s" - 30 seconds
• "2m" - 2 minutes
• "1h" - 1 hour
• "0" - no grace period`}
</pre>
</code>
</TooltipContent>
</Tooltip>
</TooltipProvider>
<FormControl> <FormControl>
<Input <CodeEditor
placeholder="e.g, 30s" language="properties"
placeholder="30s"
className="h-[8rem] font-mono"
{...field} {...field}
value={field?.value || ""} value={field?.value || ""}
/> />