Stijnus
commited on
Commit
·
c1f4f2f
1
Parent(s):
27eab59
Update ConnectionsTab.tsx
Browse files
app/components/settings/connections/ConnectionsTab.tsx
CHANGED
@@ -327,6 +327,83 @@ export default function ConnectionsTab() {
|
|
327 |
)}
|
328 |
</div>
|
329 |
)}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
330 |
</div>
|
331 |
</motion.div>
|
332 |
</div>
|
|
|
327 |
)}
|
328 |
</div>
|
329 |
)}
|
330 |
+
|
331 |
+
{connection.user && connection.stats && (
|
332 |
+
<div className="mt-6 border-t border-[#E5E5E5] dark:border-[#1A1A1A] pt-6">
|
333 |
+
<div className="flex items-center gap-4 mb-6">
|
334 |
+
<img
|
335 |
+
src={connection.user.avatar_url}
|
336 |
+
alt={connection.user.login}
|
337 |
+
className="w-16 h-16 rounded-full"
|
338 |
+
/>
|
339 |
+
<div>
|
340 |
+
<h3 className="text-lg font-medium text-bolt-elements-textPrimary">
|
341 |
+
{connection.user.name || connection.user.login}
|
342 |
+
</h3>
|
343 |
+
{connection.user.bio && (
|
344 |
+
<p className="text-sm text-bolt-elements-textSecondary">{connection.user.bio}</p>
|
345 |
+
)}
|
346 |
+
<div className="flex gap-4 mt-2 text-sm text-bolt-elements-textSecondary">
|
347 |
+
<span className="flex items-center gap-1">
|
348 |
+
<div className="i-ph:users w-4 h-4" />
|
349 |
+
{connection.user.followers} followers
|
350 |
+
</span>
|
351 |
+
<span className="flex items-center gap-1">
|
352 |
+
<div className="i-ph:star w-4 h-4" />
|
353 |
+
{connection.stats.totalStars} stars
|
354 |
+
</span>
|
355 |
+
<span className="flex items-center gap-1">
|
356 |
+
<div className="i-ph:git-fork w-4 h-4" />
|
357 |
+
{connection.stats.totalForks} forks
|
358 |
+
</span>
|
359 |
+
</div>
|
360 |
+
</div>
|
361 |
+
</div>
|
362 |
+
|
363 |
+
<h4 className="text-sm font-medium text-bolt-elements-textPrimary mb-3">Recent Repositories</h4>
|
364 |
+
<div className="space-y-3">
|
365 |
+
{connection.stats.repos.map((repo) => (
|
366 |
+
<a
|
367 |
+
key={repo.full_name}
|
368 |
+
href={repo.html_url}
|
369 |
+
target="_blank"
|
370 |
+
rel="noopener noreferrer"
|
371 |
+
className="block p-3 rounded-lg bg-[#F8F8F8] dark:bg-[#1A1A1A] hover:bg-[#F0F0F0] dark:hover:bg-[#252525] transition-colors"
|
372 |
+
>
|
373 |
+
<div className="flex items-center justify-between">
|
374 |
+
<div>
|
375 |
+
<h5 className="text-sm font-medium text-bolt-elements-textPrimary flex items-center gap-2">
|
376 |
+
<div className="i-ph:git-repository w-4 h-4 text-bolt-elements-textSecondary" />
|
377 |
+
{repo.name}
|
378 |
+
</h5>
|
379 |
+
{repo.description && (
|
380 |
+
<p className="text-xs text-bolt-elements-textSecondary mt-1">{repo.description}</p>
|
381 |
+
)}
|
382 |
+
<div className="flex items-center gap-2 mt-2 text-xs text-bolt-elements-textSecondary">
|
383 |
+
<span className="flex items-center gap-1">
|
384 |
+
<div className="i-ph:git-branch w-3 h-3" />
|
385 |
+
{repo.default_branch}
|
386 |
+
</span>
|
387 |
+
<span>•</span>
|
388 |
+
<span>Updated {new Date(repo.updated_at).toLocaleDateString()}</span>
|
389 |
+
</div>
|
390 |
+
</div>
|
391 |
+
<div className="flex items-center gap-3 text-xs text-bolt-elements-textSecondary">
|
392 |
+
<span className="flex items-center gap-1">
|
393 |
+
<div className="i-ph:star w-3 h-3" />
|
394 |
+
{repo.stargazers_count}
|
395 |
+
</span>
|
396 |
+
<span className="flex items-center gap-1">
|
397 |
+
<div className="i-ph:git-fork w-3 h-3" />
|
398 |
+
{repo.forks_count}
|
399 |
+
</span>
|
400 |
+
</div>
|
401 |
+
</div>
|
402 |
+
</a>
|
403 |
+
))}
|
404 |
+
</div>
|
405 |
+
</div>
|
406 |
+
)}
|
407 |
</div>
|
408 |
</motion.div>
|
409 |
</div>
|