Skip to content

Commit f92be2a

Browse files
committed
Fix lint
1 parent c9d6e05 commit f92be2a

File tree

26 files changed

+724
-2099
lines changed

26 files changed

+724
-2099
lines changed

apps/sim/app/api/copilot/confirm/route.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,11 @@ async function updateToolCallStatus(
5050
args: {},
5151
status: durableStatus,
5252
}).catch(() => {})
53-
if (durableStatus === 'completed' || durableStatus === 'failed' || durableStatus === 'cancelled') {
53+
if (
54+
durableStatus === 'completed' ||
55+
durableStatus === 'failed' ||
56+
durableStatus === 'cancelled'
57+
) {
5458
await completeAsyncToolCall({
5559
toolCallId,
5660
status: durableStatus,

apps/sim/app/workspace/[workspaceId]/components/conversation-list-item.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,10 @@ export function ConversationListItem({
2626
<span className='relative flex-shrink-0'>
2727
<Blimp className='h-[16px] w-[16px] text-[var(--text-icon)]' />
2828
{isActive && (
29-
<span className='absolute -right-[1px] -bottom-[1px] h-[6px] w-[6px] rounded-full border border-[var(--surface-1)] bg-amber-400' />
29+
<span className='-right-[1px] -bottom-[1px] absolute h-[6px] w-[6px] rounded-full border border-[var(--surface-1)] bg-amber-400' />
3030
)}
3131
{!isActive && isUnread && (
32-
<span className='absolute -right-[1px] -bottom-[1px] h-[6px] w-[6px] rounded-full border border-[var(--surface-1)] bg-[#33C482]' />
32+
<span className='-right-[1px] -bottom-[1px] absolute h-[6px] w-[6px] rounded-full border border-[var(--surface-1)] bg-[#33C482]' />
3333
)}
3434
</span>
3535
<span className={cn('min-w-0 flex-1 truncate', titleClassName)}>{title}</span>
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1+
export { ChatMessageAttachments } from './chat-message-attachments'
12
export {
2-
MessageContent,
33
assistantMessageHasRenderableContent,
4+
MessageContent,
45
} from './message-content'
56
export { MothershipView } from './mothership-view'
67
export { QueuedMessages } from './queued-messages'
78
export { TemplatePrompts } from './template-prompts'
8-
export { ChatMessageAttachments } from './chat-message-attachments'
99
export { UserInput } from './user-input'
1010
export { UserMessageContent } from './user-message-content'
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
export {
2-
MessageContent,
32
assistantMessageHasRenderableContent,
3+
MessageContent,
44
} from './message-content'

apps/sim/app/workspace/[workspaceId]/home/components/mothership-view/components/resource-content/resource-content.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -426,4 +426,3 @@ function extractFileContent(raw: string): string {
426426
.replace(/\\"/g, '"')
427427
.replace(/\\\\/g, '\\')
428428
}
429-

apps/sim/app/workspace/[workspaceId]/home/hooks/use-chat.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -774,11 +774,7 @@ export function useChat(
774774
if (m) {
775775
fileName = m[1]
776776
setResources((rs) =>
777-
rs.map((r) =>
778-
r.id === 'streaming-file'
779-
? { ...r, title: fileName }
780-
: r
781-
)
777+
rs.map((r) => (r.id === 'streaming-file' ? { ...r, title: fileName } : r))
782778
)
783779
}
784780
}

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,11 @@ import { CHAT_ACCEPT_ATTRIBUTE } from '@/lib/uploads/utils/validation'
3434
import { normalizeInputFormatValue } from '@/lib/workflows/input-format'
3535
import { StartBlockPath, TriggerUtils } from '@/lib/workflows/triggers/triggers'
3636
import { START_BLOCK_RESERVED_FIELDS } from '@/lib/workflows/types'
37+
import type { ChatMessageAttachment } from '@/app/workspace/[workspaceId]/home/types'
3738
import {
3839
ChatMessage,
3940
OutputSelect,
4041
} from '@/app/workspace/[workspaceId]/w/[workflowId]/components/chat/components'
41-
import type { ChatMessageAttachment } from '@/app/workspace/[workspaceId]/home/types'
4242
import { useChatFileUpload } from '@/app/workspace/[workspaceId]/w/[workflowId]/components/chat/hooks'
4343
import {
4444
usePreventZoom,

apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/chat/components/chat-message/chat-message.tsx

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
import { useMemo } from 'react'
2-
import { useThrottledValue } from '@/hooks/use-throttled-value'
3-
import {
4-
ChatMessageAttachments,
5-
} from '@/app/workspace/[workspaceId]/home/components'
2+
import { ChatMessageAttachments } from '@/app/workspace/[workspaceId]/home/components'
63
import type { ChatMessageAttachment } from '@/app/workspace/[workspaceId]/home/types'
4+
import { useThrottledValue } from '@/hooks/use-throttled-value'
75

86
interface ChatMessageProps {
97
message: {
@@ -73,7 +71,11 @@ export function ChatMessage({ message }: ChatMessageProps) {
7371
return (
7472
<div className='w-full max-w-full overflow-hidden opacity-100 transition-opacity duration-200'>
7573
{hasAttachments && (
76-
<ChatMessageAttachments attachments={message.attachments!} align='start' className='mb-[4px]' />
74+
<ChatMessageAttachments
75+
attachments={message.attachments!}
76+
align='start'
77+
className='mb-[4px]'
78+
/>
7779
)}
7880

7981
{formattedContent && !formattedContent.startsWith('Uploaded') && (

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

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -821,11 +821,7 @@ export const Panel = memo(function Panel() {
821821
msg.role === 'assistant' && index === copilotMessages.length - 1
822822
const isThisStreaming = copilotIsSending && isLastAssistant
823823

824-
if (
825-
!hasAnyBlocks &&
826-
!msg.content?.trim() &&
827-
isThisStreaming
828-
) {
824+
if (!hasAnyBlocks && !msg.content?.trim() && isThisStreaming) {
829825
return <PendingTagIndicator key={msg.id} />
830826
}
831827

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,10 @@ import {
3535
} from '@/components/emcn/icons'
3636
import { useSession } from '@/lib/auth/auth-client'
3737
import { cn } from '@/lib/core/utils/cn'
38+
import { ConversationListItem } from '@/app/workspace/[workspaceId]/components'
3839
import { useRegisterGlobalCommands } from '@/app/workspace/[workspaceId]/providers/global-commands-provider'
3940
import { useUserPermissionsContext } from '@/app/workspace/[workspaceId]/providers/workspace-permissions-provider'
4041
import { createCommands } from '@/app/workspace/[workspaceId]/utils/commands-utils'
41-
import { ConversationListItem } from '@/app/workspace/[workspaceId]/components'
4242
import {
4343
CollapsedFolderItems,
4444
CollapsedSidebarMenu,

0 commit comments

Comments
 (0)