From 881d8669cf015c4452fc78a6b3dcca05643dd229 Mon Sep 17 00:00:00 2001 From: Seongmin Lee Date: Mon, 27 Jul 2026 17:54:02 +0900 Subject: [PATCH] web: remove `rkey` and `knot` fields from `RepoCardData` We don't need both in most of the cases. Signed-off-by: Seongmin Lee --- web/src/lib/components/profile/tabs/OverviewTab.svelte | 2 +- web/src/lib/components/profile/tabs/RepoListTab.svelte | 2 +- web/src/lib/components/profile/types.ts | 2 -- 3 files changed, 2 insertions(+), 4 deletions(-) diff --git a/web/src/lib/components/profile/tabs/OverviewTab.svelte b/web/src/lib/components/profile/tabs/OverviewTab.svelte index b05d2bda..690797dc 100644 --- a/web/src/lib/components/profile/tabs/OverviewTab.svelte +++ b/web/src/lib/components/profile/tabs/OverviewTab.svelte @@ -18,7 +18,7 @@ empty={pinned.length === 0} emptyMessage="No pinned repositories." > - {#each pinned as repo (repo.rkey)} + {#each pinned as repo (repo.repoDid)} {/each} diff --git a/web/src/lib/components/profile/tabs/RepoListTab.svelte b/web/src/lib/components/profile/tabs/RepoListTab.svelte index 0e68a395..b543615c 100644 --- a/web/src/lib/components/profile/tabs/RepoListTab.svelte +++ b/web/src/lib/components/profile/tabs/RepoListTab.svelte @@ -43,7 +43,7 @@ {/snippet} - {#each repos as repo (repo.rkey)} + {#each repos as repo (repo.repoDid)} {/each} diff --git a/web/src/lib/components/profile/types.ts b/web/src/lib/components/profile/types.ts index 7125e2c3..0a71c2ec 100644 --- a/web/src/lib/components/profile/types.ts +++ b/web/src/lib/components/profile/types.ts @@ -10,12 +10,10 @@ export interface ProfileCounts { } export interface RepoCardData { - rkey: string; name: string; repoDid: string; ownerHandle: string; description?: string; - knot: string; createdAt: string; language?: string; stars?: number; -- 2.51.2