Skip to content
Merged
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
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ export function AutomationBody({
});

return (
<div className="flex-1 overflow-y-auto px-8 py-6">
<div className="flex-1 overflow-y-auto px-8 py-8">
<EmojiTextInput
value={name}
onChange={setName}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,27 +36,27 @@ export function AutomationDetailHeader({
runNowDisabled,
}: AutomationDetailHeaderProps) {
return (
<header className="flex items-center justify-between border-b px-8 py-4">
<header className="flex h-11 shrink-0 items-center justify-between border-b border-border px-4">
<Breadcrumb>
<BreadcrumbList>
<BreadcrumbList className="text-sm">
<BreadcrumbItem>
<BreadcrumbLink onClick={onBack} className="cursor-pointer">
Automations
</BreadcrumbLink>
</BreadcrumbItem>
<BreadcrumbSeparator />
<BreadcrumbItem>
<BreadcrumbPage>{name}</BreadcrumbPage>
<BreadcrumbPage className="font-medium">{name}</BreadcrumbPage>
</BreadcrumbItem>
</BreadcrumbList>
</Breadcrumb>

<div className="flex items-center gap-2">
<div className="flex items-center gap-1">
<Tooltip>
<TooltipTrigger asChild>
<Button
variant="ghost"
size="icon"
size="icon-sm"
onClick={onOpenHistory}
aria-label="Version history"
>
Expand All @@ -69,7 +69,7 @@ export function AutomationDetailHeader({
<TooltipTrigger asChild>
<Button
variant="ghost"
size="icon"
size="icon-sm"
onClick={onToggleEnabled}
disabled={toggleDisabled}
aria-label={enabled ? "Pause" : "Resume"}
Expand All @@ -87,7 +87,7 @@ export function AutomationDetailHeader({
<TooltipTrigger asChild>
<Button
variant="ghost"
size="icon"
size="icon-sm"
onClick={onDelete}
disabled={deleteDisabled}
aria-label="Delete"
Expand All @@ -97,9 +97,16 @@ export function AutomationDetailHeader({
</TooltipTrigger>
<TooltipContent>Delete</TooltipContent>
</Tooltip>
<Button size="sm" onClick={onRunNow} disabled={runNowDisabled}>
<div className="mx-1 h-4 w-px bg-border" />
<Button
variant="outline"
size="sm"
className="h-8 gap-1.5 px-3"
onClick={onRunNow}
disabled={runNowDisabled}
>
<LuPlay className="size-4" />
Run now
<span>Run now</span>
</Button>
</div>
</header>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,8 @@ export function AutomationDetailSidebar({
.sort((a, b) => b.getTime() - a.getTime())[0];

return (
<aside className="flex w-[368px] shrink-0 flex-col border-l overflow-hidden">
<div className="flex flex-col gap-8 p-6 pb-2 shrink-0">
<aside className="flex w-[360px] shrink-0 flex-col overflow-hidden border-l border-border">
<div className="flex shrink-0 flex-col gap-6 px-5 pt-5 pb-2">
<Section title="Status">
<Row
label="Status"
Expand Down Expand Up @@ -170,7 +170,7 @@ export function AutomationDetailSidebar({
</Section>
</div>

<div className="mt-8 flex min-h-0 flex-1 flex-col gap-2 pl-6 pr-3 pb-6">
<div className="mt-6 flex min-h-0 flex-1 flex-col gap-2 pl-5 pr-3 pb-5">
<SectionTitle>Previous runs</SectionTitle>
<div className="min-h-0 flex-1 overflow-y-auto">
<PreviousRunsList runs={recentRuns} />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,22 @@ export function AutomationsEmptyState({
onSelectTemplate,
}: AutomationsEmptyStateProps) {
return (
<div className="mx-auto max-w-5xl flex flex-col gap-8">
<div className="mx-auto flex max-w-5xl flex-col gap-8">
<div className="flex flex-col gap-1">
<h2 className="text-base font-semibold tracking-tight">
Start from a template
</h2>
<p className="text-sm text-muted-foreground">
Run an agent on a schedule to automate work.
</p>
</div>
{AUTOMATION_TEMPLATE_CATEGORIES.map((category) => (
<Fragment key={category.id}>
<section className="flex flex-col gap-3">
<h2 className="text-sm font-medium">{category.label}</h2>
<div className="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-3">
<h3 className="text-xs font-medium uppercase tracking-wider text-muted-foreground">
{category.label}
</h3>
<div className="grid grid-cols-1 gap-3 md:grid-cols-2 lg:grid-cols-3">
{category.templates.map((template) => (
<TemplateCard
key={template.id}
Expand Down
Loading
Loading