The open-source app everyone uses to manage agents at work
TypeScript acpxagent-orchestrationagent-skillsagentic-aiai-agentsai-engineeringai-governanceai-toolsautonomous-agentsclaudeclaude-codeclaude-skillscodexhermesllmmcpmulti-agentopenclawproject-managementworkflow-automation
fix(ui): project dialog improvements, onboarding cleanup, scroll-area fix
Dotta7642743e62a4
diff --git a/ui/src/components/NewProjectDialog.tsx b/ui/src/components/NewProjectDialog.tsxindex 1ba5e5d6f9..b163f3dcad 100644--- a/ui/src/components/NewProjectDialog.tsx+++ b/ui/src/components/NewProjectDialog.tsx@@ -31,6 +31,7 @@ import { PROJECT_COLORS } from "@paperclip/shared";import { cn } from "../lib/utils";import { MarkdownEditor, type MarkdownEditorRef } from "./MarkdownEditor";import { StatusBadge } from "./StatusBadge";+import { ChoosePathButton } from "./PathInstructionsModal";const projectStatuses = [{ value: "backlog", label: "Backlog" },@@ -333,12 +334,15 @@ export function NewProjectDialog() {{(workspaceSetup === "local" || workspaceSetup === "both") && (<div className="rounded-md border border-border p-2"><label className="mb-1 block text-xs text-muted-foreground">Local folder (full path)</label>- <input- className="w-full rounded border border-border bg-transparent px-2 py-1 text-xs font-mono outline-none"- value={workspaceLocalPath}- onChange={(e) => setWorkspaceLocalPath(e.target.value)}- placeholder="/absolute/path/to/workspace"- />+ <div className="flex items-center gap-2">+ <input+ className="w-full rounded border border-border bg-transparent px-2 py-1 text-xs font-mono outline-none"+ value={workspaceLocalPath}+ onChange={(e) => setWorkspaceLocalPath(e.target.value)}+ placeholder="/absolute/path/to/workspace"+ />+ <ChoosePathButton />+ </div></div>)}{(workspaceSetup === "repo" || workspaceSetup === "both") && (diff --git a/ui/src/components/OnboardingWizard.tsx b/ui/src/components/OnboardingWizard.tsxindex ec6dbfdd37..631576185f 100644--- a/ui/src/components/OnboardingWizard.tsx+++ b/ui/src/components/OnboardingWizard.tsx@@ -19,6 +19,7 @@ import { cn } from "../lib/utils";import { getUIAdapter } from "../adapters";import { defaultCreateValues } from "./agent-config-defaults";import { AsciiArtAnimation } from "./AsciiArtAnimation";+import { ChoosePathButton } from "./PathInstructionsModal";import {Building2,Bot,@@ -63,7 +64,6 @@ export function OnboardingWizard() {const [command, setCommand] = useState("");const [args, setArgs] = useState("");const [url, setUrl] = useState("");- const [cwdPickerNotice, setCwdPickerNotice] = useState<string | null>(null);// Step 3const [taskTitle, setTaskTitle] = useState("Create your CEO HEARTBEAT.md");@@ -94,7 +94,6 @@ export function OnboardingWizard() {setCommand("");setArgs("");setUrl("");- setCwdPickerNotice(null);setTaskTitle("Create your CEO HEARTBEAT.md");setTaskDescription("You're the CEO of the company, make sure you have a file agents/ceo/HEARTBEAT.md that tells you your core loop. You MUST use the Paperclip SKILL.");setCreatedCompanyId(null);@@ -415,44 +414,8 @@ export function OnboardingWizard() {value={cwd}onChange={(e) => setCwd(e.target.value)}/>- <button- type="button"- className="inline-flex items-center rounded-md border border-border px-2 py-0.5 text-xs text-muted-foreground hover:bg-accent/50 transition-colors shrink-0"- onClick={async () => {- try {- setCwdPickerNotice(null);- // @ts-expect-error -- showDirectoryPicker is not in all TS lib defs yet- const handle = await window.showDirectoryPicker({ mode: "read" });- const pickedPath =- typeof handle === "object" &&- handle !== null &&- typeof (handle as { path?: unknown }).path === "string"- ? String((handle as { path: string }).path)- : "";- if (pickedPath) {- setCwd(pickedPath);- return;- }- const selectedName =- typeof handle === "object" &&- handle !== null &&- typeof (handle as { name?: unknown }).name === "string"- ? String((handle as { name: string }).name)- : "selected folder";- setCwdPickerNotice(- `Directory picker only exposed "${selectedName}". Paste the absolute path manually.`,- );- } catch {- // user cancelled or API unsupported- }- }}- >- Choose- </button>+ <ChoosePathButton /></div>- {cwdPickerNotice && (- <p className="mt-1 text-xs text-amber-400">{cwdPickerNotice}</p>- )}</div><div><label className="text-xs text-muted-foreground mb-1 block">diff --git a/ui/src/components/ProjectProperties.tsx b/ui/src/components/ProjectProperties.tsxindex af11a26c3e..1d126016a9 100644--- a/ui/src/components/ProjectProperties.tsx+++ b/ui/src/components/ProjectProperties.tsx@@ -13,6 +13,7 @@ import { Button } from "@/components/ui/button";import { Popover, PopoverContent, PopoverTrigger } from "@/components/ui/popover";import { Tooltip, TooltipContent, TooltipTrigger } from "@/components/ui/tooltip";import { ExternalLink, Github, Plus, Trash2, X } from "lucide-react";+import { ChoosePathButton } from "./PathInstructionsModal";interface ProjectPropertiesProps {project: Project;@@ -384,12 +385,15 @@ export function ProjectProperties({ project, onUpdate }: ProjectPropertiesProps)</div>{workspaceMode === "local" && (<div className="space-y-1.5 rounded-md border border-border p-2">- <input- className="w-full rounded border border-border bg-transparent px-2 py-1 text-xs font-mono outline-none"- value={workspaceCwd}- onChange={(e) => setWorkspaceCwd(e.target.value)}- placeholder="/absolute/path/to/workspace"- />+ <div className="flex items-center gap-2">+ <input+ className="w-full rounded border border-border bg-transparent px-2 py-1 text-xs font-mono outline-none"+ value={workspaceCwd}+ onChange={(e) => setWorkspaceCwd(e.target.value)}+ placeholder="/absolute/path/to/workspace"+ />+ <ChoosePathButton />+ </div><div className="flex items-center gap-2"><Buttonvariant="outline"diff --git a/ui/src/components/ui/scroll-area.tsx b/ui/src/components/ui/scroll-area.tsxindex 98264f5580..4f4e34b72f 100644--- a/ui/src/components/ui/scroll-area.tsx+++ b/ui/src/components/ui/scroll-area.tsx@@ -11,7 +11,7 @@ function ScrollArea({return (<ScrollAreaPrimitive.Rootdata-slot="scroll-area"- className={cn("relative flex flex-col", className)}+ className={cn("relative flex flex-col overflow-hidden", className)}{...props}><ScrollAreaPrimitive.Viewport