{#if seededNotReplicated.length > 0}
(fetchingExpanded.value = !fetchingExpanded.value)} role="button" tabindex="0" onkeydown={e => { if (e.key === "Enter" || e.key === " ") { fetchingExpanded.value = !fetchingExpanded.value; } }}> Fetching {seededNotReplicated.length > 1 ? ` (${seededNotReplicated.length})` : ""}
{#if fetchingExpanded.value}
{#each seededNotReplicated as rid (rid)} {/each}
{/if} {/if}
{#each pinnedRepos as repo (repo.rid)}
{@render repoRowInner(repo, true)}
{/each}
{ if (!filterOpen) { reposExpanded.value = !reposExpanded.value; } }} role="button" tabindex="0" onkeydown={e => { if (e.key === "Enter" || e.key === " ") { if (!filterOpen) { reposExpanded.value = !reposExpanded.value; } } }}> {#if filterOpen} e.stopPropagation()} role="none"> { if (e.key === "Escape") { filterOpen = false; filterQuery = ""; } else if (e.key === "Enter" && unpinnedFilteredRepos.length > 0) { void router.push({ resource: "repo.home", rid: unpinnedFilteredRepos[0].rid, }); filterQuery = ""; } }} /> {:else} e.stopPropagation()} role="none"> All Repos{unpinnedReposCount > 1 ? ` (${unpinnedReposCount})` : ""} {/if} e.stopPropagation()} role="none"> (reposExpanded.value = true)} reload={reloadRepos} {repos} {seededNotReplicated} />
{#snippet repoRowInner(repo: RepoSummary, pinned: boolean = false)} {@const pinState = pinnedRepoIds.value.includes(repo.rid)} drag.onMouseDown(e, repo.rid) : undefined} onclick={pinned ? drag.onClick : undefined} href={router.routeToPath({ resource: "repo.home", rid: repo.rid })}> {repo.name} { e.preventDefault(); e.stopPropagation(); }}> {#if pinned} {/if} {#if activeRid() === repo.rid} {@const activeProject = activeRepo?.payloads["xyz.radicle.project"]} {@render subItem( router.routeToPath({ resource: "repo.commits", rid: repo.rid }), "branch", "Commits", isCommits(repo.rid), activeCommitCount, )} {@render subItem( router.routeToPath({ resource: "repo.issues", rid: repo.rid, status: "open", }), "issue", "Issues", isIssues(repo.rid), activeProject?.meta.issues.open || undefined, )} {@render subItem( router.routeToPath({ resource: "repo.patches", rid: repo.rid, status: "open", }), "patch", "Patches", isPatches(repo.rid), activeProject?.meta.patches.open || undefined, )} {/if} {/snippet} {#snippet subItem( href: string, icon: "branch" | "issue" | "patch", label: string, active: boolean, count: number | undefined, )} {label} {#if count !== undefined} {count} {/if} {/snippet} {#if reposExpanded.value}
{#each unpinnedFilteredRepos as repo (repo.rid)}
{@render repoRowInner(repo, false)}
{/each}
{/if} {#if drag.draggedRepo}
{drag.draggedRepo.name}
{/if}