From f472fe892be14e121031741968b831ed7a253b09 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C5=ABdolfs=20O=C5=A1i=C5=86=C5=A1?= Date: Wed, 29 Apr 2026 12:06:31 +0200 Subject: [PATCH] Add "Sort by activity" toggle to UserReposView --- src/views/users/UserReposView.svelte | 67 ++++++++++++++++++++++++++-- 1 file changed, 63 insertions(+), 4 deletions(-) diff --git a/src/views/users/UserReposView.svelte b/src/views/users/UserReposView.svelte index 32740a3e7..11cd1bd6c 100644 --- a/src/views/users/UserReposView.svelte +++ b/src/views/users/UserReposView.svelte @@ -1,11 +1,15 @@ -{#await fetchRepoInfos(baseUrl, { show: "all", perPage: stats.repos.total }, utils.formatDid(did), newActivitySession())} +{#await fetchRepos()}
{:then repos} {#if repos.length > 0}
- {#each repos as repoInfo} + {#each displayedRepos as repoInfo (repoInfo.repo.rid)}
{repos.length} - {repos.length === 1 ? "repository" : "repositories"} + {repos.length === 1 ? "repository" : "repositories"} ยท +
{:else}