Skip to content
Merged
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
25 changes: 23 additions & 2 deletions apps/web/src/components/chat/ThreadAutomationsPanel.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { useNavigate } from "@tanstack/react-router";
import { CalendarClockIcon, PlayIcon, Settings2Icon } from "lucide-react";
import { CalendarClockIcon, PencilIcon, PlayIcon, Settings2Icon } from "lucide-react";
import { useState } from "react";
import type { EnvironmentId, ScheduledTask, ThreadId } from "@t3tools/contracts";
import {
Expand Down Expand Up @@ -122,7 +122,7 @@ export function ThreadAutomationsPanel(props: {
</Button>
}
/>
<TooltipPopup>Manage schedule tasks</TooltipPopup>
<TooltipPopup>Manage scheduled tasks</TooltipPopup>
</Tooltip>
}
>
Expand Down Expand Up @@ -158,6 +158,27 @@ export function ThreadAutomationsPanel(props: {
: " · paused"}
</p>
</div>
<Tooltip>
<TooltipTrigger
render={
<Button
size="icon-xs"
variant="ghost"
className={THREAD_DETAILS_PANEL_ICON_ACTION_CLASS}

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shared primitives over custom controls: THREAD_DETAILS_PANEL_ICON_ACTION_CLASS overrides Button sizing, radius, padding, and base colors. Please move this treatment into a Button size/variant and use that here.

Suggested fix: No diff — this requires adding or extending the shared Button API.

Posted via Macroscope — UI Consistency

aria-label={`Edit ${task.title}`}
onClick={() =>
void navigate({
to: "/settings/scheduled-tasks",
search: { environmentId: props.environmentId, taskId: task.id },
})
}
>
<PencilIcon className="size-3.5" />
</Button>
}
/>
<TooltipPopup>Edit automation</TooltipPopup>
</Tooltip>
<Tooltip>
<TooltipTrigger
render={
Expand Down
Loading