feat: add forkCount and source badge to RepoCard

Author: Aaron Steven White
Commit 01aaffd9db0a1e854fad7b0cd8f3c93d7d576217
Parent: a09383ac46
Structural diff unavailable

These commits were pushed via plain git push, so no pre-parsed schemas are available. Install git-remote-cospan and re-push via panproto:// to see scope-level changes, breaking change detection, and semantic diffs.

brew install panproto/tap/git-remote-cospan
1 file changed +17 -0
@@ -35,6 +35,8 @@
3535 
3636 	// Owner handle: extract from DID for display (placeholder until handle resolution)
3737 	let ownerHandle = $derived(repo.did.startsWith('did:plc:') ? repo.did.slice(8, 20) + '...' : repo.did);
38+
39+	let isTangled = $derived(repo.source === 'tangled');
3840 </script>
3941 
4042 <a
@@ -88,10 +90,25 @@
8890 			</span>
8991 		{/if}
9092 
93+		{#if repo.forkCount > 0}
94+			<span class="text-text-muted" title="Forks">
95+				<svg class="mr-0.5 inline-block h-3 w-3" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2">
96+					<path stroke-linecap="round" stroke-linejoin="round" d="M7.217 10.907a2.25 2.25 0 100 2.186m0-2.186c.18.324.283.696.283 1.093s-.103.77-.283 1.093m0-2.186l9.566-5.314m-9.566 7.5l9.566 5.314m0 0a2.25 2.25 0 103.935 2.186 2.25 2.25 0 00-3.935-2.186zm0-12.814a2.25 2.25 0 103.933-2.185 2.25 2.25 0 00-3.933 2.185z" />
97+				</svg>
98+				{repo.forkCount}
99+			</span>
100+		{/if}
101+
91102 		{#if repo.openIssueCount > 0}
92103 			<span class="text-text-muted" title="Open issues">
93104 				{repo.openIssueCount} issues
94105 			</span>
95106 		{/if}
107+
108+		{#if isTangled}
109+			<span class="ml-auto rounded-full bg-info/15 px-2 py-0.5 text-xs font-medium text-info">tangled</span>
110+		{:else if repo.source && repo.source !== 'cospan'}
111+			<span class="ml-auto rounded-full bg-surface-2 px-2 py-0.5 text-xs text-text-muted">{repo.source}</span>
112+		{/if}
96113 	</div>
97114 </a>
cospan · schematic version control on atproto built on AT Protocol