Back to components

AI Interfaces

Tool Dependency Graph

A compact execution DAG showing tool order, dependency gates, live state, and critical-path timing.

toolsdependenciesworkflow

Installation

Copy and paste the code into your project.

Accessibility notes

An ordered list preserves dependency sequence and each tool includes a readable execution state.

Execution graph

Research workflow

2 dependencies
  1. 01

    Search docs

    Complete

  2. 02

    Extract facts

    Running

  3. 03

    Draft answer

    Waiting

Critical path1.8s estimated

Preview accent

TypeScript
const tools = [{ name: "Search docs", state: "Complete", step: "01" }, { name: "Extract facts", state: "Running", step: "02" }, { name: "Draft answer", state: "Waiting", step: "03" }];

export function ToolDependencyGraph() {
  return <section className="w-full max-w-md rounded-xl border border-white/12 bg-[#0b0f14]/92 p-4 shadow-2xl">
    <header><p className="text-xs font-semibold uppercase tracking-[0.18em] text-[#a78bfa]">Execution graph</p><h3 className="mt-1 text-base font-bold text-white">Research workflow</h3></header>
    <ol className="mt-5 flex gap-2">{tools.map((tool, index) => <li key={tool.name} className="flex min-w-0 flex-1 items-center gap-2"><div className="min-w-0 flex-1 rounded-lg border border-white/9 bg-white/[0.025] p-3"><span className="text-[0.6rem] text-slate-500">{tool.step}</span><p className="mt-2 text-xs font-semibold text-slate-200">{tool.name}</p><p className="mt-1 text-[0.65rem] text-slate-500">{tool.state}</p></div>{index < tools.length - 1 && <span aria-hidden="true">→</span>}</li>)}</ol>
  </section>;
}
Usage
<ToolDependencyGraph />

Related components

Approval

Publish launch prompt

pending
DesignLegalOps

AI Interfaces

Approval Action Panel

Intermediate

A review panel with assignee chips and paired approval actions for launch workflows.

approvalreviewworkflow
View component

Pipeline

1Input
2Clean
3Ship

AI Interfaces

Data Pipeline Card

Intermediate

A simple horizontal pipeline for data prep, agent workflows, and release steps.

pipelinedataworkflow
View component

Human handoff

Ready to escalate?

75%

complete

  • Decision summary

    Generated

  • Supporting evidence

    4 sources attached

  • Open risks

    1 needs review

  • Next owner

    Support lead

AI Interfaces

Handoff Readiness Card

Intermediate

A pre-escalation checklist for packaging AI decisions, evidence, risks, and ownership for human review.

handoffreviewworkflow
View component