fix: name the workspace that connects on its own, set its two ways apart

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
hugocasa
2026-12-02 18:19:21 +01:00
co-authored by Claude Opus 5.5
parent 3ebe4b1b5f
commit a7d6565eba
@@ -671,31 +671,45 @@
{#if leftOut.length > 0}
{@const one = leftOut.length === 1}
<div class="mb-6 flex flex-col gap-2 rounded-md border bg-surface-secondary p-3">
<p class="text-xs font-semibold text-emphasis">
{leftOut.map((w) => w.name).join(', ')}
<p class="text-xs text-emphasis">
{one ? 'Workspace' : 'Workspaces'}
<span class="font-semibold">{leftOut.map((w) => w.name).join(', ')}</span>
{one ? 'connects on its own' : 'connect on their own'}
</p>
<p class="text-xs text-primary">
Your role gives scripts and flows as tools there, served on a connection covering {one
Your role gives scripts and flows as tools there, which need a connection covering {one
? 'that workspace'
: 'one workspace'} alone. Add {one ? 'its URL' : 'each URL'} to your client, or connect
{one ? 'it' : 'one'} here instead of the others.
: 'one workspace'} alone. Either:
</p>
{#each leftOut as w (w.id)}
<div class="flex flex-col gap-1">
<ClipboardPanel
title={one ? undefined : w.name}
content={workspaceMcpUrl(w.id)}
size="sm"
/>
<Button
variant="default"
unifiedSize="sm"
btnClasses="w-fit"
onClick={() => connectOnly(w.id)}
>
Connect {w.name} only
</Button>
<div class="flex flex-col gap-2">
{#if !one}
<p class="text-xs font-semibold text-emphasis">{w.name}</p>
{/if}
<div class="flex flex-col gap-1">
<p class="text-2xs text-secondary">
Add this URL to your AI client as another connection
</p>
<ClipboardPanel content={workspaceMcpUrl(w.id)} size="sm" />
</div>
<div class="flex items-center gap-2 text-2xs text-secondary">
<div class="grow border-t"></div>
or
<div class="grow border-t"></div>
</div>
<div class="flex flex-col gap-1">
<p class="text-2xs text-secondary">
Connect only this workspace here, in place of the others
</p>
<Button
variant="default"
unifiedSize="sm"
btnClasses="w-fit"
onClick={() => connectOnly(w.id)}
>
Connect {w.name} only
</Button>
</div>
</div>
{/each}
</div>