feat(web): always show workflow breadcrumb on run detail

The workflow breadcrumb was previously demo-mode-only. Render it in
all modes and point it at the runs list filtered by that workflow,
which is now honored via URL params.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
Bryan Helmkamp 2026-05-07 22:20:00 -07:00
parent 49c1263c8a
commit 7034266dc9
No known key found for this signature in database

View file

@ -237,14 +237,13 @@ export default function RunDetail({ params }: { params: { id: string } }) {
)}
>
<Link to="/runs" className="text-fg-3 hover:text-fg">Runs</Link>
{demoMode && (
<>
<ChevronRightIcon className="size-3" />
<Link to={`/workflows/${run.workflow}`} className="text-fg-3 hover:text-fg">
{run.workflow}
</Link>
</>
)}
<ChevronRightIcon className="size-3" />
<Link
to={`/runs?workflow=${encodeURIComponent(run.workflow)}`}
className="text-fg-3 hover:text-fg"
>
{run.workflow}
</Link>
<ChevronRightIcon className="size-3" />
<span>{run.title}</span>
</nav>