Rename publish-app drawer wording to 'Share as iframe'

'Publish publicly' was ambiguous (publish to Hub vs make public URL).
Use 'Share as iframe' for the button and drawer title, and 'Generate
iframe' for the confirm action. Intro text now explicitly mentions
iframe embedding use cases (Hub, docs page, own site).

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
tristantr
2026-05-25 12:18:31 +02:00
co-authored by Claude Opus 4.7
parent 19ab7e2e41
commit 16e61e00d8
@@ -302,7 +302,7 @@
startIcon={{ icon: Globe }}
onclick={() => openPublish(it)}
>
Publish publicly
Share as iframe
</Button>
{/if}
{/if}
@@ -368,14 +368,14 @@
<Drawer bind:this={publishDrawer} size="600px">
<DrawerContent
title={publishTarget ? `Publish ${publishTarget.path}` : 'Publish'}
title={publishTarget ? `Share as iframe ${publishTarget.path}` : 'Share as iframe'}
on:close={() => publishDrawer?.closeDrawer()}
>
<div class="flex flex-col gap-4">
<p class="text-xs text-secondary">
This will expose <span class="font-mono text-emphasis">{publishTarget?.path}</span> at a public
URL so the Hub can embed it as a live iframe instead of a frontend-only run. Anyone with the
URL will be able to interact with it.
Expose <span class="font-mono text-emphasis">{publishTarget?.path}</span> at a public URL so
it can be embedded as an iframe (e.g. on the Hub, a docs page, or your own site). Anyone with
the URL will be able to interact with it.
</p>
<div class="flex flex-col gap-2 rounded-md border bg-surface-secondary p-3">
@@ -430,7 +430,7 @@
startIcon={{ icon: Globe }}
onclick={confirmPublish}
>
Publish publicly
Generate iframe
</Button>
{/snippet}
</DrawerContent>