Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions services/hackbot-ui/components/RunDetail.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -271,11 +271,18 @@ export function RunDetail({ runId }: { runId: string }) {
<ul className="action-list">
{actions.map((a) => {
Comment thread
johnpangas marked this conversation as resolved.
const preview = commentPreview(a);
const url =
typeof a.result?.url === "string" ? a.result.url : null;
Comment thread
suhaibmujahid marked this conversation as resolved.
return (
<li key={a.idx}>
<div className="action-row">
<span className={`badge ${a.status}`}>{a.status}</span>
<code>{a.type}</code>
{url && (
<a href={url} target="_blank" rel="noreferrer">
Open
</a>
)}
{a.error && <span className="muted">{a.error}</span>}
</div>
{preview && (
Expand Down