Radish alpha
r
Radicle desktop app
Radicle
Git (anonymous pull)
Log in to clone via SSH
Allow fuzzy finding by repo id, and issue/patch ids
✓ CI success Rūdolfs Ošiņš committed 11 months ago
commit 8ff59fd0db8421c359b58710c4ad0297666df24b
parent edc9c33a8fdc1da8b9202eb307b6652724259e8a
1 passed (1 total) View logs
5 files changed +13 -5
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,
    }),
  );