Skip to content

Commit 585f5e3

Browse files
authored
v0.5.50: import improvements, ui upgrades, kb styling and performance improvements
2 parents 3792bdd + 0977ed2 commit 585f5e3

File tree

36 files changed

+1034
-594
lines changed

36 files changed

+1034
-594
lines changed

apps/sim/app/_styles/globals.css

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,8 @@
5050
@layer base {
5151
:root,
5252
.light {
53-
--bg: #fdfdfd; /* main canvas - neutral near-white */
54-
--surface-1: #fcfcfc; /* sidebar, panels */
53+
--bg: #fefefe; /* main canvas - neutral near-white */
54+
--surface-1: #fefefe; /* sidebar, panels */
5555
--surface-2: #ffffff; /* blocks, cards, modals - pure white */
5656
--surface-3: #f7f7f7; /* popovers, headers */
5757
--surface-4: #f5f5f5; /* buttons base */
@@ -70,6 +70,7 @@
7070
--text-muted: #737373;
7171
--text-subtle: #8c8c8c;
7272
--text-inverse: #ffffff;
73+
--text-muted-inverse: #a0a0a0;
7374
--text-error: #ef4444;
7475

7576
/* Borders / dividers */
@@ -186,6 +187,7 @@
186187
--text-muted: #787878;
187188
--text-subtle: #7d7d7d;
188189
--text-inverse: #1b1b1b;
190+
--text-muted-inverse: #b3b3b3;
189191
--text-error: #ef4444;
190192

191193
/* --border-strong: #303030; */
@@ -331,38 +333,38 @@
331333
}
332334

333335
::-webkit-scrollbar-track {
334-
background: var(--surface-1);
336+
background: transparent;
335337
}
336338

337339
::-webkit-scrollbar-thumb {
338-
background-color: var(--surface-7);
340+
background-color: #c0c0c0;
339341
border-radius: var(--radius);
340342
}
341343

342344
::-webkit-scrollbar-thumb:hover {
343-
background-color: var(--surface-7);
345+
background-color: #a8a8a8;
344346
}
345347

346348
/* Dark Mode Global Scrollbar */
347349
.dark ::-webkit-scrollbar-track {
348-
background: var(--surface-4);
350+
background: transparent;
349351
}
350352

351353
.dark ::-webkit-scrollbar-thumb {
352-
background-color: var(--surface-7);
354+
background-color: #5a5a5a;
353355
}
354356

355357
.dark ::-webkit-scrollbar-thumb:hover {
356-
background-color: var(--surface-7);
358+
background-color: #6a6a6a;
357359
}
358360

359361
* {
360362
scrollbar-width: thin;
361-
scrollbar-color: var(--surface-7) var(--surface-1);
363+
scrollbar-color: #c0c0c0 transparent;
362364
}
363365

364366
.dark * {
365-
scrollbar-color: var(--surface-7) var(--surface-4);
367+
scrollbar-color: #5a5a5a transparent;
366368
}
367369

368370
.copilot-scrollable {

apps/sim/app/api/webhooks/trigger/[path]/route.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import {
55
checkWebhookPreprocessing,
66
findWebhookAndWorkflow,
77
handleProviderChallenges,
8+
handleProviderReachabilityTest,
89
parseWebhookBody,
910
queueWebhookExecution,
1011
verifyProviderAuth,
@@ -123,6 +124,11 @@ export async function POST(
123124
return authError
124125
}
125126

127+
const reachabilityResponse = handleProviderReachabilityTest(foundWebhook, body, requestId)
128+
if (reachabilityResponse) {
129+
return reachabilityResponse
130+
}
131+
126132
let preprocessError: NextResponse | null = null
127133
try {
128134
preprocessError = await checkWebhookPreprocessing(foundWorkflow, foundWebhook, requestId)

apps/sim/app/chat/components/message/components/markdown-renderer.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ export function LinkWithPreview({ href, children }: { href: string; children: Re
1616
{children}
1717
</a>
1818
</Tooltip.Trigger>
19-
<Tooltip.Content side='top' align='center' sideOffset={5} className='max-w-sm p-3'>
19+
<Tooltip.Content side='top' align='center' sideOffset={5} className='max-w-sm'>
2020
<span className='truncate font-medium text-xs'>{href}</span>
2121
</Tooltip.Content>
2222
</Tooltip.Root>

apps/sim/app/workspace/[workspaceId]/knowledge/[id]/[documentId]/components/chunk-context-menu/chunk-context-menu.tsx

Lines changed: 30 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,24 @@ interface ChunkContextMenuProps {
3939
* Whether add chunk is disabled
4040
*/
4141
disableAddChunk?: boolean
42+
/**
43+
* Number of selected chunks (for batch operations)
44+
*/
45+
selectedCount?: number
46+
/**
47+
* Number of enabled chunks in selection
48+
*/
49+
enabledCount?: number
50+
/**
51+
* Number of disabled chunks in selection
52+
*/
53+
disabledCount?: number
4254
}
4355

4456
/**
4557
* Context menu for chunks table.
4658
* Shows chunk actions when right-clicking a row, or "Create chunk" when right-clicking empty space.
59+
* Supports batch operations when multiple chunks are selected.
4760
*/
4861
export function ChunkContextMenu({
4962
isOpen,
@@ -61,7 +74,20 @@ export function ChunkContextMenu({
6174
disableToggleEnabled = false,
6275
disableDelete = false,
6376
disableAddChunk = false,
77+
selectedCount = 1,
78+
enabledCount = 0,
79+
disabledCount = 0,
6480
}: ChunkContextMenuProps) {
81+
const isMultiSelect = selectedCount > 1
82+
83+
const getToggleLabel = () => {
84+
if (isMultiSelect) {
85+
if (disabledCount > 0) return 'Enable'
86+
return 'Disable'
87+
}
88+
return isChunkEnabled ? 'Disable' : 'Enable'
89+
}
90+
6591
return (
6692
<Popover open={isOpen} onOpenChange={onClose} variant='secondary' size='sm'>
6793
<PopoverAnchor
@@ -76,7 +102,7 @@ export function ChunkContextMenu({
76102
<PopoverContent ref={menuRef} align='start' side='bottom' sideOffset={4}>
77103
{hasChunk ? (
78104
<>
79-
{onOpenInNewTab && (
105+
{!isMultiSelect && onOpenInNewTab && (
80106
<PopoverItem
81107
onClick={() => {
82108
onOpenInNewTab()
@@ -86,7 +112,7 @@ export function ChunkContextMenu({
86112
Open in new tab
87113
</PopoverItem>
88114
)}
89-
{onEdit && (
115+
{!isMultiSelect && onEdit && (
90116
<PopoverItem
91117
onClick={() => {
92118
onEdit()
@@ -96,7 +122,7 @@ export function ChunkContextMenu({
96122
Edit
97123
</PopoverItem>
98124
)}
99-
{onCopyContent && (
125+
{!isMultiSelect && onCopyContent && (
100126
<PopoverItem
101127
onClick={() => {
102128
onCopyContent()
@@ -114,7 +140,7 @@ export function ChunkContextMenu({
114140
onClose()
115141
}}
116142
>
117-
{isChunkEnabled ? 'Disable' : 'Enable'}
143+
{getToggleLabel()}
118144
</PopoverItem>
119145
)}
120146
{onDelete && (

0 commit comments

Comments
 (0)