Skip to content

Commit

Permalink
Merge pull request #575 from dcSpark/nico/fix_cron_copy
Browse files Browse the repository at this point in the history
fix copy cron
  • Loading branch information
nicarq authored Dec 20, 2024
2 parents d1ab44d + d358bd1 commit 5504ffb
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ function CronTask({ mode, initialValues }: CronTaskProps) {
return (
<SubpageLayout
className="max-w-4xl"
title={`${mode === 'create' ? 'Create' : 'Edit'} Cron Task`}
title={`${mode === 'create' ? 'Create' : 'Edit'} Scheduled Task`}
>
<p className="text-gray-80 -mt-8 py-3 pb-6 text-center text-sm">
Schedule recurring tasks at a specified time
Expand Down
2 changes: 1 addition & 1 deletion apps/shinkai-desktop/src/pages/layout/main-layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -363,7 +363,7 @@ export function MainNav() {
icon: <ToolsIcon className="h-5 w-5" />,
},
optInExperimental && {
title: 'Cron Tasks',
title: 'Scheduled Tasks',
href: '/tasks',
icon: <ScheduledTasksIcon className="h-5 w-5" />,
},
Expand Down
6 changes: 3 additions & 3 deletions apps/shinkai-desktop/src/pages/task-logs.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ export const TaskLogs = () => {
});

return (
<SubpageLayout alignLeft className="max-w-4xl px-4" title="Cron Logs">
<SubpageLayout alignLeft className="max-w-4xl px-4" title="Scheduled Task Logs">
{isGetRecurringTaskPending && (
<div className="p-4 text-center text-sm">
<p className="text-white">...</p>
Expand Down Expand Up @@ -136,9 +136,9 @@ export const TaskLogs = () => {
<Card className="border-0 p-0">
{isSuccess && logs.length === 0 && (
<div className="p-10 text-center text-sm">
<p className="text-white">No runs for this cron task yet</p>
<p className="text-white">No runs for this task yet</p>
<p className="text-gray-80 text-xs">
check the schedule for your cron tasks to see when it runs
check the schedule for your tasks to see when it runs
</p>
</div>
)}
Expand Down
10 changes: 5 additions & 5 deletions apps/shinkai-desktop/src/pages/tasks.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ export const Tasks = () => {
variant="outline"
>
<ScheduledTasksComingSoonIcon className="size-3.5" />
<span className="text-xs">Activity</span>
<span className="text-xs">Upcoming</span>
</Button>
</PopoverTrigger>
<PopoverContent
Expand All @@ -95,7 +95,7 @@ export const Tasks = () => {
onOpenAutoFocus={(e) => e.preventDefault()}
>
<div className="flex items-center justify-between gap-2">
<h1 className="text-sm">Scheduled Cron Tasks </h1>
<h1 className="text-sm">Upcoming Tasks </h1>
<Button
className="h-8 w-auto gap-2 rounded-lg p-1 px-2 text-xs"
disabled={isRefetching}
Expand Down Expand Up @@ -129,7 +129,7 @@ export const Tasks = () => {
Next execution in{' '}
<span className="text-gray-80 font-semibold">
{formatDistance(new Date(date), new Date(), {
addSuffix: true,
addSuffix: false,
})}
</span>
</span>
Expand All @@ -155,7 +155,7 @@ export const Tasks = () => {
</Link>
</div>
}
title="Cron Tasks"
title="Scheduled Tasks"
>
<div className="divide-y divide-gray-300 pt-4">
{isPending &&
Expand Down Expand Up @@ -222,7 +222,7 @@ export const Tasks = () => {
))}
{isSuccess && tasks?.length === 0 && (
<div className="flex h-20 items-center justify-center">
<p className="text-gray-80 text-sm">No cron tasks found</p>
<p className="text-gray-80 text-sm">No scheduled tasks found</p>
</div>
)}
</div>
Expand Down

0 comments on commit 5504ffb

Please sign in to comment.