Skip to content

Commit 0c0f19c

Browse files
authored
fix(icons): update strokeWidth of action bar items to match, update run from block icon to match run workflow button (#3056)
* fix(icons): update strokeWidth of action bar items to match, update run from block icon to match run workflow button * update docs
1 parent 12d529d commit 0c0f19c

File tree

8 files changed

+41
-7
lines changed

8 files changed

+41
-7
lines changed

apps/docs/content/docs/en/quick-reference/index.mdx

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -280,14 +280,24 @@ A quick lookup for everyday actions in the Sim workflow editor. For keyboard sho
280280
<td>Click clear button in Chat panel</td>
281281
<td><ActionImage src="/static/quick-reference/clear-chat.png" alt="Clear chat history" /></td>
282282
</tr>
283+
<tr>
284+
<td>Run from block</td>
285+
<td>Hover block → Click play button, or right-click → **Run from block**</td>
286+
<td><ActionImage src="/static/quick-reference/run-from-block.png" alt="Run from block" /></td>
287+
</tr>
288+
<tr>
289+
<td>Run until block</td>
290+
<td>Right-click block → **Run until block**</td>
291+
<td><ActionImage src="/static/quick-reference/run-until-block.png" alt="Run until block" /></td>
292+
</tr>
283293
<tr>
284294
<td>View execution logs</td>
285295
<td>Open terminal panel at bottom, or `Mod+L`</td>
286296
<td><ActionImage src="/static/quick-reference/terminal.png" alt="Execution logs terminal" /></td>
287297
</tr>
288298
<tr>
289-
<td>Filter logs by block or status</td>
290-
<td>Click block filter in terminal or right-click log entry → **Filter by Block** or **Filter by Status**</td>
299+
<td>Filter logs</td>
300+
<td>Click filter icon in terminal Filter by block or status</td>
291301
<td><ActionImage src="/static/quick-reference/filter-block.png" alt="Filter logs by block" /></td>
292302
</tr>
293303
<tr>
-59 KB
Loading
20.1 KB
Loading
25 KB
Loading
-48.6 KB
Loading

apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/action-bar/action-bar.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { memo, useCallback } from 'react'
2-
import { ArrowLeftRight, ArrowUpDown, Circle, CircleOff, LogOut, Play } from 'lucide-react'
3-
import { Button, Copy, Tooltip, Trash2 } from '@/components/emcn'
2+
import { ArrowLeftRight, ArrowUpDown, Circle, CircleOff, LogOut } from 'lucide-react'
3+
import { Button, Copy, PlayOutline, Tooltip, Trash2 } from '@/components/emcn'
44
import { cn } from '@/lib/core/utils/cn'
55
import { isInputDefinitionTrigger } from '@/lib/workflows/triggers/input-definition-triggers'
66
import { useUserPermissionsContext } from '@/app/workspace/[workspaceId]/providers/workspace-permissions-provider'
@@ -172,7 +172,7 @@ export const ActionBar = memo(
172172
className={ACTION_BUTTON_STYLES}
173173
disabled={disabled || !canRunFromBlock}
174174
>
175-
<Play className={ICON_SIZE} />
175+
<PlayOutline className={ICON_SIZE} />
176176
</Button>
177177
</Tooltip.Trigger>
178178
<Tooltip.Content side='top'>

apps/sim/components/emcn/icons/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ export { Loader } from './loader'
2121
export { MoreHorizontal } from './more-horizontal'
2222
export { NoWrap } from './no-wrap'
2323
export { PanelLeft } from './panel-left'
24-
export { Play } from './play'
24+
export { Play, PlayOutline } from './play'
2525
export { Redo } from './redo'
2626
export { Rocket } from './rocket'
2727
export { Trash } from './trash'

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

Lines changed: 25 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import type { SVGProps } from 'react'
22

33
/**
4-
* Play icon component
4+
* Play icon component (filled/solid version)
55
* @param props - SVG properties including className, fill, etc.
66
*/
77
export function Play(props: SVGProps<SVGSVGElement>) {
@@ -21,3 +21,27 @@ export function Play(props: SVGProps<SVGSVGElement>) {
2121
</svg>
2222
)
2323
}
24+
25+
/**
26+
* Play icon component (stroke/outline version, matches lucide style)
27+
* Uses 24x24 viewBox and strokeWidth 2 for consistency with other icons.
28+
* @param props - SVG properties including className, stroke, etc.
29+
*/
30+
export function PlayOutline(props: SVGProps<SVGSVGElement>) {
31+
return (
32+
<svg
33+
width='24'
34+
height='24'
35+
viewBox='0 0 24 24'
36+
fill='none'
37+
stroke='currentColor'
38+
strokeWidth='2'
39+
strokeLinecap='round'
40+
strokeLinejoin='round'
41+
xmlns='http://www.w3.org/2000/svg'
42+
{...props}
43+
>
44+
<path d='M14.7175 4.07175C16.6036 5.37051 18.0001 6.39111 19.0000 7.32600C20.0087 8.26733 20.9617 9.25123 21.3031 10.5484C21.5534 11.4996 21.5534 12.5003 21.3031 13.4515C20.9617 14.7487 20.0087 15.7326 19.0000 16.6739C18.0001 17.6088 16.6037 18.6294 14.7176 19.9281C12.9093 21.1827 11.0470 22.2407 9.6333 22.8420C8.2082 23.4482 6.9090 23.7554 5.6463 23.3976C4.6383 23.1346 3.7940 22.6355 3.1138 21.9492C2.1907 21.0179 1.9001 19.7306 1.7248 18.1814C1.5507 16.6436 1.5507 14.6305 1.5508 12.0701V11.9298C1.5507 9.36936 1.5507 7.35626 1.7248 5.81844C1.9001 4.26926 2.1907 2.982 3.1138 2.05063C3.7940 1.36438 4.6383 0.865267 5.6463 0.602306C6.9090 0.244489 8.2082 0.551707 9.6333 1.15785C11.0470 1.75916 12.9092 2.81712 14.7175 4.07175Z' />
45+
</svg>
46+
)
47+
}

0 commit comments

Comments
 (0)