Radish alpha
r
rad:z4D5UCArafTzTQpDZNQRuqswh3ury
Radicle desktop app
Radicle
Git
Allow fuzzy finding by repo id, and issue/patch ids
Open rudolfs opened 10 months ago

This supports the workflow of copying an id from radicle-explorer and searching for it on the app.

5 files changed +13 -5 edc9c33a 8ff59fd0
modified src/components/IssueSecondColumn.svelte
@@ -53,7 +53,8 @@

  const searchResults = $derived(
    fuzzysort.go(searchInput, searchableIssues, {
-
      keys: ["issue.title", "labels", "assignees", "author"],
+
      keys: ["issue.title", "labels", "assignees", "author", "issue.id"],
+
      threshold: 0.5,
      all: true,
    }),
  );
modified src/views/home/Repos.svelte
@@ -82,7 +82,11 @@
  );

  const searchResults = $derived(
-
    fuzzysort.go(searchInput, searchableRepos, { key: "name", all: true }),
+
    fuzzysort.go(searchInput, searchableRepos, {
+
      keys: ["name", "repo.rid"],
+
      threshold: 0.5,
+
      all: true,
+
    }),
  );
</script>

modified src/views/repo/Issues.svelte
@@ -64,7 +64,8 @@

  const searchResults = $derived(
    fuzzysort.go(searchInput, searchableIssues, {
-
      keys: ["issue.title", "labels", "assignees", "author"],
+
      keys: ["issue.title", "labels", "assignees", "author", "issue.id"],
+
      threshold: 0.5,
      all: true,
    }),
  );
modified src/views/repo/Patch.svelte
@@ -290,7 +290,8 @@

  const searchResults = $derived(
    fuzzysort.go(searchInput, searchablePatches, {
-
      keys: ["patch.title", "labels", "assignees", "author"],
+
      keys: ["patch.title", "labels", "assignees", "author", "patch.id"],
+
      threshold: 0.5,
      all: true,
    }),
  );
modified src/views/repo/Patches.svelte
@@ -96,7 +96,8 @@

  const searchResults = $derived(
    fuzzysort.go(searchInput, searchablePatches, {
-
      keys: ["patch.title", "labels", "assignees", "author"],
+
      keys: ["patch.title", "labels", "assignees", "author", "patch.id"],
+
      threshold: 0.5,
      all: true,
    }),
  );