Talk to wren nodes from the chat's Control tab, opened from Home
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_013GAeg4Jo6xjZzjwy9QDWMQ
This commit is contained in:
@@ -2,6 +2,7 @@ import { useQuery } from "@tanstack/react-query"
|
||||
import { createFileRoute } from "@tanstack/react-router"
|
||||
import { useState } from "react"
|
||||
|
||||
import { ControlTrigger } from "@/components/Chat/ChatPanel"
|
||||
import { byRecency, DashboardMosaic } from "@/components/Common/DashboardMosaic"
|
||||
import { DEFAULT_RANGE } from "@/components/Common/RangePicker"
|
||||
import { dashboardsQueryOptions } from "@/components/Dashboard/queries"
|
||||
@@ -62,7 +63,13 @@ function Home() {
|
||||
{/* Nothing wired up yet means nothing to draw, and the band would still
|
||||
hold a screenful of empty space above the flows table. Node count
|
||||
rather than flow count: a flow made a minute ago has none. */}
|
||||
{flows.some((flow) => (flow.node_count ?? 0) > 0) ? <BrainView /> : null}
|
||||
{flows.some((flow) => (flow.node_count ?? 0) > 0) ? (
|
||||
<div className="relative">
|
||||
<BrainView />
|
||||
{/* A phone has it in the header instead, opposite the sidebar's. */}
|
||||
<ControlTrigger className="absolute top-0 right-0 hidden md:inline-flex" />
|
||||
</div>
|
||||
) : null}
|
||||
|
||||
{/* One row across the full width rather than a column beside the flows:
|
||||
a dashboard tile is a picture, and a picture wants to be wide. Past
|
||||
|
||||
Reference in New Issue
Block a user