Add Routine badge to issue detail for routine-generated issues
Issues created from routine executions now display a clickable "Routine" badge in the header bar, linking back to the originating routine. Co-Authored-By: Paperclip <noreply@paperclip.ing>
This commit is contained in:
@@ -48,6 +48,7 @@ import {
|
|||||||
MessageSquare,
|
MessageSquare,
|
||||||
MoreHorizontal,
|
MoreHorizontal,
|
||||||
Paperclip,
|
Paperclip,
|
||||||
|
Repeat,
|
||||||
SlidersHorizontal,
|
SlidersHorizontal,
|
||||||
Trash2,
|
Trash2,
|
||||||
} from "lucide-react";
|
} from "lucide-react";
|
||||||
@@ -726,6 +727,16 @@ export function IssueDetail() {
|
|||||||
</span>
|
</span>
|
||||||
)}
|
)}
|
||||||
|
|
||||||
|
{issue.originKind === "routine_execution" && issue.originId && (
|
||||||
|
<Link
|
||||||
|
to={`/routines/${issue.originId}`}
|
||||||
|
className="inline-flex items-center gap-1 rounded-full bg-violet-500/10 border border-violet-500/30 px-2 py-0.5 text-[10px] font-medium text-violet-600 dark:text-violet-400 shrink-0 hover:bg-violet-500/20 transition-colors"
|
||||||
|
>
|
||||||
|
<Repeat className="h-3 w-3" />
|
||||||
|
Routine
|
||||||
|
</Link>
|
||||||
|
)}
|
||||||
|
|
||||||
{issue.projectId ? (
|
{issue.projectId ? (
|
||||||
<Link
|
<Link
|
||||||
to={`/projects/${issue.projectId}`}
|
to={`/projects/${issue.projectId}`}
|
||||||
|
|||||||
Reference in New Issue
Block a user