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,
|
||||
MoreHorizontal,
|
||||
Paperclip,
|
||||
Repeat,
|
||||
SlidersHorizontal,
|
||||
Trash2,
|
||||
} from "lucide-react";
|
||||
@@ -726,6 +727,16 @@ export function IssueDetail() {
|
||||
</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 ? (
|
||||
<Link
|
||||
to={`/projects/${issue.projectId}`}
|
||||
|
||||
Reference in New Issue
Block a user