mirror of
https://seed.radicle.dev/rad:z4V1sjrXqjvFdnCUbxPFqd5p4DtH5.git
synced 2026-11-21 06:10:44 +08:00
Allow fuzzy finding by repo id, and issue/patch ids
This supports the workflow of copying an id from radicle-explorer and searching for it on the app.
This commit is contained in:
@@ -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,
|
||||
}),
|
||||
);
|
||||
|
||||
@@ -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>
|
||||
|
||||
|
||||
@@ -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,
|
||||
}),
|
||||
);
|
||||
|
||||
@@ -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,
|
||||
}),
|
||||
);
|
||||
|
||||
@@ -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,
|
||||
}),
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user