From 9ca793f393ccf756f403415e186dc339aa33a870 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C5=ABdolfs=20O=C5=A1i=C5=86=C5=A1?= Date: Tue, 6 Oct 2026 18:00:28 +0200 Subject: [PATCH] Suggest assignees by alias as you type Assigning someone meant finding and pasting their DID. Now the input searches aliases and lists you, the repo's delegates and other known peers, so a DID is only needed for someone the node has never seen. --- src/components/AssigneeInput.svelte | 327 +++++++++++++++++++++++-- src/components/IssueMetadata.svelte | 1 + src/components/NodeId.svelte | 8 +- src/components/PatchMetadata.svelte | 1 + src/components/TextInput.svelte | 7 + src/lib/assigneeSuggestions.ts | 71 ++++++ src/lib/inputValidation.ts | 5 +- src/modals/CreateIssue.svelte | 1 + tests/e2e/repo/issueEditing.spec.ts | 29 ++- tests/e2e/repo/patchEditing.spec.ts | 2 +- tests/unit/assigneeSuggestions.test.ts | 129 ++++++++++ tests/unit/inputValidation.test.ts | 16 +- 12 files changed, 563 insertions(+), 34 deletions(-) create mode 100644 src/lib/assigneeSuggestions.ts create mode 100644 tests/unit/assigneeSuggestions.test.ts diff --git a/src/components/AssigneeInput.svelte b/src/components/AssigneeInput.svelte index 2e8a44b45..b1583e924 100644 --- a/src/components/AssigneeInput.svelte +++ b/src/components/AssigneeInput.svelte @@ -1,18 +1,41 @@