diff --git a/webui/src/components/CiTokens.svelte b/webui/src/components/CiTokens.svelte index 863eb78..610d6ce 100644 --- a/webui/src/components/CiTokens.svelte +++ b/webui/src/components/CiTokens.svelte @@ -125,7 +125,11 @@ {#if error}

{error}

{/if} {#if newToken} - + (newToken = null)} + /> {/if}
diff --git a/webui/src/components/OneTimeSecret.svelte b/webui/src/components/OneTimeSecret.svelte index 661420d..f10781c 100644 --- a/webui/src/components/OneTimeSecret.svelte +++ b/webui/src/components/OneTimeSecret.svelte @@ -1,10 +1,58 @@ -

{label}

-
{value}
+ true} width={520}> +

{label}

+
{value}
+ {#if error}

{error}

{/if} + {@render children?.()} +
+ + +
+
+ + diff --git a/webui/src/components/dialogs/AgentsDialog.svelte b/webui/src/components/dialogs/AgentsDialog.svelte index 4ee863b..e599513 100644 --- a/webui/src/components/dialogs/AgentsDialog.svelte +++ b/webui/src/components/dialogs/AgentsDialog.svelte @@ -224,13 +224,16 @@ {#if testResult}

{testResult}

{/if} {#if key} - {#each examples as e (e.text)} -

{e.text}

-
{e.code}
- {/each} + onclose={() => (key = null)} + > + {#each examples as e (e.text)} +

{e.text}

+
{e.code}
+ {/each} +
{/if}
diff --git a/webui/src/components/dialogs/ApproveDialog.svelte b/webui/src/components/dialogs/ApproveDialog.svelte index a86f073..5a06c29 100644 --- a/webui/src/components/dialogs/ApproveDialog.svelte +++ b/webui/src/components/dialogs/ApproveDialog.svelte @@ -47,7 +47,7 @@ : ''}. Its answer goes to {proposal.from}.

- + diff --git a/webui/src/components/dialogs/BackupSettings.svelte b/webui/src/components/dialogs/BackupSettings.svelte index 4d12f39..9ac2ae6 100644 --- a/webui/src/components/dialogs/BackupSettings.svelte +++ b/webui/src/components/dialogs/BackupSettings.svelte @@ -244,18 +244,18 @@ {/if} {#if generated} -
- Repository Password - + (generated = null)} + >

Keep it outside this server, e.g. in your password manager, with the bucket's key. Without it the remote copy can't be read when the server is lost.

-
+ {/if} {#if saved} diff --git a/webui/src/components/dialogs/PasswordsDialog.svelte b/webui/src/components/dialogs/PasswordsDialog.svelte index db92fab..5d395a0 100644 --- a/webui/src/components/dialogs/PasswordsDialog.svelte +++ b/webui/src/components/dialogs/PasswordsDialog.svelte @@ -1,5 +1,6 @@ @@ -113,10 +110,17 @@ {#if error}

{error}

{/if} {#if created} - + (created = null)} + > +

Download a database:

+
{example(created)}
+
{/if}

Download a database:

-
{example}
+
{example('')}

Deploy tokens are made in a group's Deploy tab, the keys of AI agents in Start → AI Agents. diff --git a/webui/src/lib/clipboard.ts b/webui/src/lib/clipboard.ts new file mode 100644 index 0000000..c75bf4a --- /dev/null +++ b/webui/src/lib/clipboard.ts @@ -0,0 +1,8 @@ +/** copies text, with a readable error where the browser has no clipboard + * (plain http) */ +export async function copyText(text: string): Promise { + if (!navigator.clipboard) + throw new Error('This page may not copy, select it and copy by hand.'); + + await navigator.clipboard.writeText(text); +} diff --git a/webui/src/pages/ProposalLink.svelte b/webui/src/pages/ProposalLink.svelte index 8af9b74..d6de37e 100644 --- a/webui/src/pages/ProposalLink.svelte +++ b/webui/src/pages/ProposalLink.svelte @@ -187,18 +187,22 @@

{#if link.totp} + {:else} + {/if}