Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
paulclindo committed Dec 14, 2024
1 parent aea2080 commit 0f8c2f4
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
8 changes: 4 additions & 4 deletions apps/shinkai-desktop/src/pages/create-task.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ function CreateTaskPage() {
const form = useForm<CreateTaskForm>({
resolver: zodResolver(createTaskFormSchema),
defaultValues: {
name: 'Hacker News',
name: 'Hacker News Task',
description: 'Hacker News yada yada',
cronExpression: '* * * * *',
jobConfig: {
Expand All @@ -106,7 +106,7 @@ function CreateTaskPage() {
},
llmOrAgentId: defaultAgentId,
jobMessage: {
content: 'Search in duckduckgo about hacker news',
content: 'Search in duckduckgo about top hacker news stories',
toolKey:
'local:::shinkai_tool_duckduckgo_search:::shinkai__duckduckgo_search',
},
Expand Down Expand Up @@ -234,7 +234,7 @@ function CreateTaskPage() {
<div className="space-y-4">
<div className="grid grid-cols-[1fr_100px] items-center">
<span className="text-gray-80 text-xs">
Select Tool (optional)
Select AI/Agent
</span>
<AIModelSelector
onValueChange={(value) => {
Expand All @@ -245,7 +245,7 @@ function CreateTaskPage() {
</div>
<div className="grid grid-cols-[1fr_250px] items-center">
<span className="text-gray-80 text-xs">
Select AI/Agent
Select Tool (optional)
</span>

<DropdownMenu>
Expand Down
8 changes: 7 additions & 1 deletion apps/shinkai-desktop/src/pages/task-logs.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -100,11 +100,17 @@ export const TaskLogs = () => {
{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-gray-80">
<p className="text-gray-80 text-xs">
check the schedule for your cron tasks to see when it runs
</p>
</div>
)}
{isSuccess && logs.length > 0 && (
<div className="p-10 text-center text-sm">
<p className="text-white">Logs found</p>
<p className="text-gray-80 text-xs">TODO: Display logs</p>
</div>
)}
{/*{isSuccess && (*/}
{/* <TaskCard*/}
{/* cronExpression={task.cron}*/}
Expand Down

0 comments on commit 0f8c2f4

Please sign in to comment.