Skip to content

Commit

Permalink
Merge pull request #23 from diggerhq/feat/activity-links
Browse files Browse the repository at this point in the history
Always show links to runs in Activity
  • Loading branch information
ZIJ authored Aug 13, 2024
2 parents 3c63604 + 1c41a38 commit 3990d6f
Showing 1 changed file with 8 additions and 18 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,28 +49,18 @@ export const AllActivityTable = ({ runs, allowedRunsForUser }: {
transition={{ duration: 0.3 }}
>
<TableCell>
{allowedRunsForUser.includes(run.id) ? (
<Link href={`/project/${run.project_slug}/runs/${run.id}`} className="hover:underline cursor-pointer">
<span>
{run.id.length > 8 ? `${run.id.substring(0, 8)}...` : run.id}
</span>
</Link>
) : (
<Link href={`/project/${run.project_slug}/runs/${run.id}`} className="hover:underline cursor-pointer">
<span>
{run.id.length > 8 ? `${run.id.substring(0, 8)}...` : run.id}
</span>
)}
</Link>
</TableCell>
<TableCell>
<Link href={`https://github.com/${run.repo_full_name}/commit/${run.commit_id}`}
className="hover:underline cursor-pointer">
{run.commit_id.substring(0, 8)}
</Link>
</TableCell>
{allowedRunsForUser.includes(run.id) ?
<TableCell>
<Link href={`https://github.com/${run.repo_full_name}/commit/${run.commit_id}`}
className="hover:underline cursor-pointer">
{run.commit_id.substring(0, 8)}
</Link>
</TableCell>
:
<TableCell>{run.commit_id.substring(0, 8)}</TableCell>
}
<TableCell>
<span className={`px-2 py-1 rounded-full text-xs font-medium ${statusColors[ToSnakeCase(run.status)] || ''}`}>
{run.status.toUpperCase()}
Expand Down

0 comments on commit 3990d6f

Please sign in to comment.