Skip to content

Commit 5be4c88

Browse files
committed
fix(tasks-ui): update in progress to be amber, added status to dropdownmenu
1 parent 8837f14 commit 5be4c88

File tree

2 files changed

+15
-4
lines changed

2 files changed

+15
-4
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]/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>

0 commit comments

Comments
 (0)