Distinguish local repos from seeded ones

A repository can sit in storage without being seeded, which `rad ls`
hides and `rad ls --all` shows as "local". A new Settings preference
picks the `Show` passed to `list_repos_summary`, defaulting to seeded.
This commit is contained in:
Rūdolfs Ošiņš
2026-09-09 14:51:21 +02:00
parent 4c899537ab
commit 092f3354ee
14 changed files with 250 additions and 31 deletions
+30
View File
@@ -0,0 +1,30 @@
<script lang="ts">
import { repoListScope } from "@app/lib/repoListScope";
import Button from "@app/components/Button.svelte";
</script>
<style>
.container {
display: flex;
align-items: center;
}
</style>
<div class="container">
<Button
variant="ghost"
flatRight
active={repoListScope.value === "seeded"}
onclick={() => (repoListScope.value = "seeded")}>
Seeded
</Button>
<Button
variant="ghost"
flatLeft
active={repoListScope.value === "all"}
onclick={() => (repoListScope.value = "all")}>
All
</Button>
</div>