Skip to content

Commit 7ecd377

Browse files
authored
fix(tasks-ui): update in progress to be amber, added status to dropdown menu, fixed scheduled tasks modal (#3597)
* fix(tasks-ui): update in progress to be amber, added status to dropdownmenu * fix play button, scheduled tasks modal
1 parent 743742d commit 7ecd377

File tree

4 files changed

+21
-6
lines changed

4 files changed

+21
-6
lines changed

apps/sim/app/workspace/[workspaceId]/logs/utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ export const STATUS_CONFIG: Record<
5757
> = {
5858
error: { variant: 'red', label: 'Error', color: 'var(--text-error)' },
5959
pending: { variant: 'amber', label: 'Pending', color: '#f59e0b' },
60-
running: { variant: 'green', label: 'Running', color: '#22c55e' },
60+
running: { variant: 'amber', label: 'Running', color: '#f59e0b' },
6161
cancelled: { variant: 'orange', label: 'Cancelled', color: '#f97316' },
6262
info: { variant: 'gray', label: 'Info', color: 'var(--terminal-status-info-color)' },
6363
}

apps/sim/app/workspace/[workspaceId]/scheduled-tasks/scheduled-tasks.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,11 @@ export function ScheduledTasks() {
249249
>
250250
Cancel
251251
</Button>
252-
<Button variant='default' onClick={handleDelete} disabled={deleteSchedule.isPending}>
252+
<Button
253+
variant='destructive'
254+
onClick={handleDelete}
255+
disabled={deleteSchedule.isPending}
256+
>
253257
{deleteSchedule.isPending ? 'Deleting...' : 'Delete'}
254258
</Button>
255259
</ModalFooter>

apps/sim/app/workspace/[workspaceId]/w/components/sidebar/sidebar.tsx

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -138,9 +138,12 @@ const SidebarTaskItem = memo(function SidebarTaskItem({
138138
{task.id !== 'new' && (
139139
<div className='relative flex h-[18px] w-[18px] flex-shrink-0 items-center justify-center'>
140140
{isActive && !isCurrentRoute && (
141-
<span className='absolute h-[7px] w-[7px] animate-ping rounded-full bg-[#33C482] opacity-30 group-hover:hidden' />
141+
<span className='absolute h-[7px] w-[7px] animate-ping rounded-full bg-amber-400 opacity-30 group-hover:hidden' />
142142
)}
143-
{(isActive || isUnread) && !isCurrentRoute && (
143+
{isActive && !isCurrentRoute && (
144+
<span className='absolute h-[7px] w-[7px] rounded-full bg-amber-400 group-hover:hidden' />
145+
)}
146+
{!isActive && isUnread && !isCurrentRoute && (
144147
<span className='absolute h-[7px] w-[7px] rounded-full bg-[#33C482] group-hover:hidden' />
145148
)}
146149
<button
@@ -1096,7 +1099,15 @@ export const Sidebar = memo(function Sidebar() {
10961099
tasks.map((task) => (
10971100
<DropdownMenuItem key={task.id} asChild>
10981101
<Link href={task.href}>
1099-
<Blimp className='h-[16px] w-[16px]' />
1102+
<span className='relative flex-shrink-0'>
1103+
<Blimp className='h-[16px] w-[16px]' />
1104+
{task.isActive && (
1105+
<span className='-bottom-[1px] -right-[1px] absolute h-[6px] w-[6px] rounded-full border border-[var(--surface-1)] bg-amber-400' />
1106+
)}
1107+
{!task.isActive && task.isUnread && (
1108+
<span className='-bottom-[1px] -right-[1px] absolute h-[6px] w-[6px] rounded-full border border-[var(--surface-1)] bg-[#33C482]' />
1109+
)}
1110+
</span>
11001111
<span>{task.name}</span>
11011112
</Link>
11021113
</DropdownMenuItem>

apps/sim/components/emcn/icons/play.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ export function PlayOutline(props: SVGProps<SVGSVGElement>) {
4040
xmlns='http://www.w3.org/2000/svg'
4141
{...props}
4242
>
43-
<path d='M6.25 3.9C6.25 3.408 6.799 3.114 7.209 3.399L15.709 9.299C16.063 9.545 16.063 10.069 15.709 10.315L7.209 16.215C6.799 16.5 6.25 16.206 6.25 15.714V3.9Z' />
43+
<path d='M7.5 3.5C7.5 2.672 8.452 2.18 9.128 2.66L18.128 9.16C18.72 9.58 18.72 10.46 18.128 10.88L9.128 17.38C8.452 17.86 7.5 17.368 7.5 16.54V3.5Z' />
4444
</svg>
4545
)
4646
}

0 commit comments

Comments
 (0)