import type { ReactNode } from "react"; import { Card, CardContent, CardHeader } from "../components/ui/card"; import { Badge } from "../components/ui/badge"; import type { CtePlanCte, CtePlanFilter, CtePlanV2 } from "./artifactV2"; const CHIP = "min-w-0 max-w-full whitespace-pre-wrap [overflow-wrap:anywhere] rounded-md bg-muted px-1.5 py-0.5 font-mono text-xs text-foreground/90"; const FIELD_LABEL = "text-[0.65rem] font-semibold uppercase tracking-[0.08em] text-muted-foreground"; function Chip({ children }: { children: ReactNode }) { return {children}; } function FilterRow({ filter, index }: { filter: CtePlanFilter; index: number }) { return (
Column
{filter.column}
Operator
{filter.op}
Value
{filter.value}
{filter.description}
> )} {filter.rationale && ( <> Rationale{filter.rationale}
> )}{cte.purpose}
)}no dependencies
)}
{table.name}
{table.description && (
{table.description}
)}{cte.rationale}
Question
{plan.question}
Strategy
{plan.strategy}
Execution order