Skip to content

Commit fbb8f22

Browse files
matt2eclaude
andauthored
fix(penpal): ensure repo badges are generated when repos are added (#534)
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent cd09878 commit fbb8f22

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

apps/staged/src/lib/features/projects/ProjectHome.svelte

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,9 @@
121121
branchesByProject = new Map(branchesByProject).set(projectId, branches);
122122
workspaceLifecycle.enqueueInitialSetup(projectId, branches);
123123
replaceProjectRepos(projectId, repos);
124+
void repoBadgeStore.ensureForRepos(
125+
repos.map((r) => ({ githubRepo: r.githubRepo, subpath: r.subpath }))
126+
);
124127
} catch (e) {
125128
console.error('[ProjectHome] Failed to refresh project after setup progress:', e);
126129
}
@@ -533,6 +536,9 @@
533536
branchesByProject = new Map(branchesByProject).set(projectId, branches);
534537
workspaceLifecycle.enqueueInitialSetup(projectId, branches);
535538
replaceProjectRepos(projectId, repos);
539+
void repoBadgeStore.ensureForRepos(
540+
repos.map((r) => ({ githubRepo: r.githubRepo, subpath: r.subpath }))
541+
);
536542
} catch (e) {
537543
console.error('Failed to add repo:', e);
538544
const message = e instanceof Error ? e.message : String(e);

0 commit comments

Comments
 (0)