Skip to content
Merged
Changes from 1 commit
Commits
Show all changes
15 commits
Select commit Hold shift + click to select a range
2a8d23d
feat(chat): drag workflows and folders from sidebar into chat input
waleedlatif1 Apr 8, 2026
c0dd830
fix(chat): fix effectAllowed, stale atInsertPosRef, and drag-enter ov…
waleedlatif1 Apr 8, 2026
9cfd1ee
feat(chat): add task dragging and visible drag ghost for sidebar items
waleedlatif1 Apr 8, 2026
3bdedad
feat(sidebar): add drag ghost with icons and task icon to context chips
waleedlatif1 Apr 8, 2026
0ebee18
refactor(types): narrow ChatMessageContext.kind to ChatContextKind un…
waleedlatif1 Apr 8, 2026
86e7c9e
feat(user-input): support Tab to select resource in mention dropdown
waleedlatif1 Apr 8, 2026
4e1fa16
fix(user-input): narrow ChatContext discriminated union before access…
waleedlatif1 Apr 8, 2026
fccf98d
fix(colors): overload workflowBorderColor to accept string | undefined
waleedlatif1 Apr 8, 2026
4ff9b84
fix(colors): simplify workflowBorderColor to single string | undefine…
waleedlatif1 Apr 8, 2026
7b8fa00
fix(chat): remove resource panel tab when context mention is deleted …
waleedlatif1 Apr 8, 2026
6d31c36
fix(chat): use resource ID for context removal identity check
waleedlatif1 Apr 8, 2026
4d492a4
fix(chat): add folder/task cases to resource resolver, task key to ex…
waleedlatif1 Apr 8, 2026
abaac15
revert(chat): remove folder/task from resolveResourceFromContext — no…
waleedlatif1 Apr 8, 2026
669f2ac
fix(chat): add chatId to stored context types and workflow.color to d…
waleedlatif1 Apr 8, 2026
e471b2e
fix(chat): guard chatId before adding task key to existingResourceKeys
waleedlatif1 Apr 8, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix(colors): overload workflowBorderColor to accept string | undefined
  • Loading branch information
waleedlatif1 committed Apr 8, 2026
commit fccf98db19109ef53249153db171c340ee391484
6 changes: 4 additions & 2 deletions apps/sim/lib/workspaces/colors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,10 @@ function withAlpha(hexColor: string, alpha: number): string {
* @param color - A hex color string (e.g. `#2ABBF8`)
* @returns The color string with `60` appended as the hex alpha channel
*/
export function workflowBorderColor(color: string): string {
return `${color}60`
export function workflowBorderColor(color: string): string
export function workflowBorderColor(color: string | undefined): string | undefined
export function workflowBorderColor(color: string | undefined): string | undefined {
return color ? `${color}60` : undefined
}

function buildGradient(fromColor: string, toColor: string, rotationSeed: number): string {
Expand Down