fix(v5): rename nginx action to deploy

This commit is contained in:
Andras Bacsai
2026-06-21 22:55:13 +02:00
parent e543d2b376
commit 0914052b56
2 changed files with 4 additions and 3 deletions
+2 -2
View File
@@ -1262,7 +1262,7 @@ function normalizeConnection(connection: V5ResourceConnection): CanvasConnection
disabled={isCreating || nginxServers.length === 0}
className="rounded-lg bg-warning px-3 py-2 text-sm font-semibold text-black transition hover:bg-warning/90 disabled:cursor-not-allowed disabled:opacity-60"
>
{isCreating ? 'Adding nginx…' : 'Add nginx'}
{isCreating ? 'Deploying…' : 'Deploy'}
</button>
<button
type="button"
@@ -1335,7 +1335,7 @@ function normalizeConnection(connection: V5ResourceConnection): CanvasConnection
<section className="pointer-events-none absolute left-1/2 top-1/2 flex w-[min(32rem,calc(100%-2rem))] -translate-x-1/2 -translate-y-1/2 flex-col items-center justify-center gap-3 rounded-lg border border-dashed border-border bg-card/90 px-8 py-16 text-center shadow-sm">
<p className="text-sm font-medium text-foreground">No applications on this canvas yet.</p>
<p className="max-w-md text-sm text-muted-foreground">
Click Add nginx to deploy a test container on one of your v5 servers.
Click Deploy to deploy a test container on one of your v5 servers.
</p>
</section>
)}
+2 -1
View File
@@ -4226,7 +4226,8 @@ it('defines the v5 dashboard page as a shadcn styled canvas shell', function ()
->toContain('bg-background text-foreground')
->toContain('h-dvh overflow-hidden bg-background text-foreground')
->toContain('relative h-full min-h-0 overflow-hidden pt-16')
->toContain('Add nginx')
->toContain('Deploy')
->not->toContain('Add nginx')
->toContain('Select nginx server')
->toContain('selectedNginxServerId')
->toContain('nginxImage')