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
+5 -2
View File
@@ -1,5 +1,6 @@
<script lang="ts">
import { disableHide, enableHide, hide } from "@app/lib/modal";
import { repoListScope } from "@app/lib/repoListScope";
import Button from "@app/components/Button.svelte";
import Checkbox from "@app/components/Checkbox.svelte";
@@ -146,8 +147,10 @@
<span class="note-icon"><Icon name="seed" /></span>
<div class="note-body">
<span>
Your node stops replicating and announcing this repository, and it
leaves the sidebar.
Your node stops replicating and announcing this repository{repoListScope.value ===
"seeded"
? ", and it leaves the sidebar."
: "; the sidebar dims it."}
{#if !clean}
The files stay on disk.
{/if}
+10
View File
@@ -17,6 +17,7 @@
import ExternalLink from "@app/components/ExternalLink.svelte";
import FontSizeSwitch from "@app/components/FontSizeSwitch.svelte";
import Icon from "@app/components/Icon.svelte";
import RepoListSwitch from "@app/components/RepoListSwitch.svelte";
import SegmentedSwitch from "@app/components/SegmentedSwitch.svelte";
import ThemeSwitch from "@app/components/ThemeSwitch.svelte";
import UpdateSwitch from "@app/components/UpdateSwitch.svelte";
@@ -151,6 +152,15 @@
</div>
<FontSizeSwitch />
</div>
<div class="row">
<div class="row-label">
<span class="row-title">Repository list</span>
<span class="row-description">
List only the repositories you seed, or everything in local storage
</span>
</div>
<RepoListSwitch />
</div>
<div class="row">
<div class="row-label">
<span class="row-title">Notification badge</span>