From ef156d9d2345bf7f7c1a6c9f91eeba0d9c366cf7 Mon Sep 17 00:00:00 2001 From: iris Date: Wed, 21 Oct 2026 21:47:02 +0200 Subject: [PATCH] swarm-ui link-account forms: keep the sent name, drop secrets, one word for forge The success line of both link forms read the live text field, so editing the name after a link changed the sentence. The result now carries the name that was sent. The matrix form held the typed token and password after a failed submit, and kept them across a switch of credential mode. It now drops them when the request ends and when the mode changes. The linked-accounts list and the delete dialog said forgejo where the link menu and forms say forge; they now say forge. --- docs/swarm/ui.md | 3 ++ .../src/agent/detail/LinkedAccounts.tsx | 7 +++-- .../swarm-ui/src/agent/detail/account-kind.ts | 6 ++++ .../src/pages/LinkForgeAccountForm.tsx | 8 +++-- .../src/pages/LinkMatrixAccountForm.tsx | 31 ++++++++++++------- .../swarm-ui/test/account-kind.test.mjs | 15 +++++++++ 6 files changed, 52 insertions(+), 18 deletions(-) create mode 100644 frontend/packages/swarm-ui/src/agent/detail/account-kind.ts create mode 100644 frontend/packages/swarm-ui/test/account-kind.test.mjs diff --git a/docs/swarm/ui.md b/docs/swarm/ui.md index 83c75584..3ee7479b 100644 --- a/docs/swarm/ui.md +++ b/docs/swarm/ui.md @@ -443,6 +443,9 @@ account of that agent as names and hosts and never a credential. | forgejo | `swarm/agents//forge/