mirror of
https://github.com/harivansh-afk/sandbox-agent.git
synced 2026-04-18 07:01:34 +00:00
factory: rename project and handoff actors
This commit is contained in:
parent
3022bce2ad
commit
ea7c36a8e7
147 changed files with 6313 additions and 14364 deletions
|
|
@ -4,10 +4,10 @@ import { LabelSmall } from "baseui/typography";
|
|||
import { MailOpen } from "lucide-react";
|
||||
|
||||
import { PanelHeaderBar } from "./ui";
|
||||
import { type AgentTab, type Handoff } from "./view-model";
|
||||
import { type AgentTab, type Task } from "./view-model";
|
||||
|
||||
export const TranscriptHeader = memo(function TranscriptHeader({
|
||||
handoff,
|
||||
task,
|
||||
activeTab,
|
||||
editingField,
|
||||
editValue,
|
||||
|
|
@ -17,7 +17,7 @@ export const TranscriptHeader = memo(function TranscriptHeader({
|
|||
onCancelEditingField,
|
||||
onSetActiveTabUnread,
|
||||
}: {
|
||||
handoff: Handoff;
|
||||
task: Task;
|
||||
activeTab: AgentTab | null | undefined;
|
||||
editingField: "title" | "branch" | null;
|
||||
editValue: string;
|
||||
|
|
@ -59,12 +59,12 @@ export const TranscriptHeader = memo(function TranscriptHeader({
|
|||
title="Rename"
|
||||
color={theme.colors.contentPrimary}
|
||||
$style={{ fontWeight: 600, whiteSpace: "nowrap", cursor: "pointer", ":hover": { textDecoration: "underline" } }}
|
||||
onClick={() => onStartEditingField("title", handoff.title)}
|
||||
onClick={() => onStartEditingField("title", task.title)}
|
||||
>
|
||||
{handoff.title}
|
||||
{task.title}
|
||||
</LabelSmall>
|
||||
)}
|
||||
{handoff.branch ? (
|
||||
{task.branch ? (
|
||||
editingField === "branch" ? (
|
||||
<input
|
||||
autoFocus
|
||||
|
|
@ -94,7 +94,7 @@ export const TranscriptHeader = memo(function TranscriptHeader({
|
|||
) : (
|
||||
<span
|
||||
title="Rename"
|
||||
onClick={() => onStartEditingField("branch", handoff.branch ?? "")}
|
||||
onClick={() => onStartEditingField("branch", task.branch ?? "")}
|
||||
className={css({
|
||||
padding: "2px 8px",
|
||||
borderRadius: "999px",
|
||||
|
|
@ -108,7 +108,7 @@ export const TranscriptHeader = memo(function TranscriptHeader({
|
|||
":hover": { borderColor: "rgba(255, 255, 255, 0.3)" },
|
||||
})}
|
||||
>
|
||||
{handoff.branch}
|
||||
{task.branch}
|
||||
</span>
|
||||
)
|
||||
) : null}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue