From f79f3dc1ecc54d24a14c8634abd20bed26e63066 Mon Sep 17 00:00:00 2001 From: Christoph Brandau Date: Thu, 9 Jul 2026 15:14:29 +0200 Subject: [PATCH] feat(recent-repos): add functionality to remove repositories from recent This update introduces a new function to remove repositories from the recent list. The user can now manage their recent repositories more effectively, enhancing the overall user experience. - Implemented removal of repositories from the recent list - Updated UI to reflect changes in the recent repositories management --- src/App.svelte | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/src/App.svelte b/src/App.svelte index 32c6b59..503c7f7 100644 --- a/src/App.svelte +++ b/src/App.svelte @@ -1939,6 +1939,21 @@ if (!activeStillOpen) await openRepo(path); } + async function removeRepoFromRecent(path: string, event?: MouseEvent) { + event?.stopPropagation(); + if (isBusy) return; + recentRepoPaths = recentRepoPaths.filter((recentPath) => !sameRepoPath(recentPath, path)); + persistRepoLists(); + trackEvent("repository_removed_from_recent", { + recent_repositories: recentRepoPaths.length, + }); + if (!repoTabs.some((tab) => sameRepoPath(tab.path, path)) && !isFavoriteRepo(path) && repoStatusCache[repoKey(path)]) { + const { [repoKey(path)]: _removed, ...rest } = repoStatusCache; + repoStatusCache = rest; + persistRepoStatusCache(); + } + } + async function removeRepoFromManagement(path: string, event?: MouseEvent) { event?.stopPropagation(); if (isBusy) return; @@ -3516,7 +3531,7 @@ >