Add repo fuzzy finder to home screen

This commit is contained in:
Rūdolfs Ošiņš
2025-03-28 09:03:17 +01:00
parent 5c5685d560
commit 8a3e480b3c
6 changed files with 104 additions and 13 deletions
+3 -2
View File
@@ -12,9 +12,10 @@
repo: RepoInfo;
selfDid: string;
onclick?: () => void;
focussed?: boolean;
}
const { repo, selfDid, onclick }: Props = $props();
const { repo, selfDid, onclick, focussed }: Props = $props();
const project = $derived(repo.payloads["xyz.radicle.project"]!);
</script>
@@ -34,7 +35,7 @@
</style>
<Border
variant="ghost"
variant={focussed ? "secondary" : "ghost"}
styleCursor="pointer"
styleWidth="100%"
stylePadding="8px 12px"
+3
View File
@@ -16,6 +16,7 @@
onDismiss?: () => void;
valid?: boolean;
oninput?: FormEventHandler<HTMLInputElement>;
keyShortcuts?: string;
}
/* eslint-disable prefer-const */
@@ -31,6 +32,7 @@
onDismiss,
valid = true,
oninput,
keyShortcuts,
}: Props = $props();
/* eslint-enable prefer-const */
@@ -93,6 +95,7 @@
variant={valid ? (focussed ? "secondary" : "ghost") : "danger"}
styleWidth="100%">
<input
aria-keyshortcuts={keyShortcuts}
onfocus={() => {
focussed = true;
}}