Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
230 changes: 230 additions & 0 deletions frontend/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
"@radix-ui/react-toggle": "^1.1.10",
"@radix-ui/react-toggle-group": "^1.1.11",
"@radix-ui/react-tooltip": "^1.2.8",
"@xyflow/react": "^12.10.0",
"class-variance-authority": "^0.7.1",
"clsx": "^2.1.1",
"lucide-react": "^0.544.0",
Expand Down
4 changes: 3 additions & 1 deletion frontend/src/components/ComplexFields.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,8 @@ export interface SchemaComplexFieldContext {
isStreaming?: boolean;
isLoading?: boolean;
isCloudMode?: boolean;
/** When true, VACE controls are disabled (pipeline chain from DAG editor). */
graphMode?: boolean;
/** Per-field overrides for schema-driven fields (e.g. image path). */
schemaFieldOverrides?: Record<string, unknown>;
onSchemaFieldOverrideChange?: (
Expand Down Expand Up @@ -132,7 +134,7 @@ export function SchemaComplexField({
if (component === "vace" && !rendered.has("vace")) {
rendered.add("vace");
return (
<div key="vace" className="space-y-2">
<div key="vace" className={`space-y-2 ${ctx.graphMode ? "opacity-50 pointer-events-none" : ""}`}>
<div className="flex items-center justify-between gap-2">
<LabelWithTooltip
label="VACE"
Expand Down
18 changes: 17 additions & 1 deletion frontend/src/components/Header.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
import { useState, useEffect, useRef } from "react";
import { Settings, Cloud, CloudOff } from "lucide-react";
import { Settings, Cloud, CloudOff, GitBranch } from "lucide-react";
import { Button } from "./ui/button";
import { SettingsDialog } from "./SettingsDialog";
import { DagEditorDialog } from "./dag/DagEditorDialog";
import { toast } from "sonner";
import { useCloudStatus } from "../hooks/useCloudStatus";

Expand All @@ -22,6 +23,7 @@ export function Header({
onSettingsTabOpened,
}: HeaderProps) {
const [settingsOpen, setSettingsOpen] = useState(false);
const [dagEditorOpen, setDagEditorOpen] = useState(false);
const [initialTab, setInitialTab] = useState<
"general" | "account" | "api-keys" | "plugins"
>("general");
Expand Down Expand Up @@ -114,6 +116,15 @@ export function Header({
<div className="flex items-center justify-between">
<h1 className="text-xl font-medium text-foreground">Daydream Scope</h1>
<div className="flex items-center gap-1">
<Button
variant="ghost"
size="icon"
onClick={() => setDagEditorOpen(true)}
className="hover:opacity-80 transition-opacity text-muted-foreground opacity-60 h-8 w-8"
title="DAG Editor"
>
<GitBranch className="h-5 w-5" />
</Button>
<Button
variant="ghost"
size="icon"
Expand Down Expand Up @@ -161,6 +172,11 @@ export function Header({
onPipelinesRefresh={onPipelinesRefresh}
cloudDisabled={cloudDisabled}
/>

<DagEditorDialog
open={dagEditorOpen}
onClose={() => setDagEditorOpen(false)}
/>
</header>
);
}
Loading