diff --git a/apps/sim/app/(auth)/components/oauth-provider-checker.tsx b/apps/sim/app/(auth)/components/oauth-provider-checker.tsx index ee2f4ede8a3..a8ba38dcfb4 100644 --- a/apps/sim/app/(auth)/components/oauth-provider-checker.tsx +++ b/apps/sim/app/(auth)/components/oauth-provider-checker.tsx @@ -3,7 +3,6 @@ import { isGithubAuthDisabled, isGoogleAuthDisabled, isMicrosoftAuthDisabled, - isProd, } from '@/lib/core/config/env-flags' export async function getOAuthProviderStatus() { @@ -16,5 +15,5 @@ export async function getOAuthProviderStatus() { const microsoftAvailable = !!(env.MICROSOFT_CLIENT_ID && env.MICROSOFT_CLIENT_SECRET) && !isMicrosoftAuthDisabled - return { githubAvailable, googleAvailable, microsoftAvailable, isProduction: isProd } + return { githubAvailable, googleAvailable, microsoftAvailable } } diff --git a/apps/sim/app/(auth)/components/social-login-buttons.tsx b/apps/sim/app/(auth)/components/social-login-buttons.tsx index c2156e7dd3f..c200d86bd11 100644 --- a/apps/sim/app/(auth)/components/social-login-buttons.tsx +++ b/apps/sim/app/(auth)/components/social-login-buttons.tsx @@ -15,7 +15,6 @@ interface SocialLoginButtonsProps { googleAvailable: boolean microsoftAvailable: boolean callbackURL?: string - isProduction: boolean children?: ReactNode } @@ -24,7 +23,6 @@ export function SocialLoginButtons({ googleAvailable, microsoftAvailable, callbackURL = '/workspace', - isProduction, children, }: SocialLoginButtonsProps) { const [isGithubLoading, setIsGithubLoading] = useState(false) diff --git a/apps/sim/app/(auth)/login/login-form.tsx b/apps/sim/app/(auth)/login/login-form.tsx index d3c7d8bd6ed..cfe0b1403b8 100644 --- a/apps/sim/app/(auth)/login/login-form.tsx +++ b/apps/sim/app/(auth)/login/login-form.tsx @@ -87,13 +87,11 @@ export default function LoginPage({ githubAvailable, googleAvailable, microsoftAvailable, - isProduction, registrationDisabled, }: { githubAvailable: boolean googleAvailable: boolean microsoftAvailable: boolean - isProduction: boolean /** DISABLE_REGISTRATION. Hides the signup cross-link, which `/signup` blocks. */ registrationDisabled: boolean }) { @@ -430,7 +428,6 @@ export default function LoginPage({ googleAvailable={googleAvailable} githubAvailable={githubAvailable} microsoftAvailable={microsoftAvailable} - isProduction={isProduction} callbackURL={callbackUrl} > {ssoEnabled && !hasOnlySSO && ( diff --git a/apps/sim/app/(auth)/login/page.tsx b/apps/sim/app/(auth)/login/page.tsx index 3b0c3f6a96a..726727b1435 100644 --- a/apps/sim/app/(auth)/login/page.tsx +++ b/apps/sim/app/(auth)/login/page.tsx @@ -12,8 +12,7 @@ export const metadata: Metadata = { export const dynamic = 'force-dynamic' export default async function LoginPage() { - const { githubAvailable, googleAvailable, microsoftAvailable, isProduction } = - await getOAuthProviderStatus() + const { githubAvailable, googleAvailable, microsoftAvailable } = await getOAuthProviderStatus() return ( }> @@ -21,7 +20,6 @@ export default async function LoginPage() { githubAvailable={githubAvailable} googleAvailable={googleAvailable} microsoftAvailable={microsoftAvailable} - isProduction={isProduction} registrationDisabled={isRegistrationDisabled} /> diff --git a/apps/sim/app/(auth)/signup/page.tsx b/apps/sim/app/(auth)/signup/page.tsx index d43dc7c0475..496f779b7fb 100644 --- a/apps/sim/app/(auth)/signup/page.tsx +++ b/apps/sim/app/(auth)/signup/page.tsx @@ -36,15 +36,13 @@ export default async function SignupPage({ ) } - const { githubAvailable, googleAvailable, microsoftAvailable, isProduction } = - await getOAuthProviderStatus() + const { githubAvailable, googleAvailable, microsoftAvailable } = await getOAuthProviderStatus() return ( diff --git a/apps/sim/app/(auth)/signup/signup-form.tsx b/apps/sim/app/(auth)/signup/signup-form.tsx index ad0d5213b97..94c4b74dfee 100644 --- a/apps/sim/app/(auth)/signup/signup-form.tsx +++ b/apps/sim/app/(auth)/signup/signup-form.tsx @@ -91,7 +91,6 @@ interface SignupFormProps { githubAvailable: boolean googleAvailable: boolean microsoftAvailable: boolean - isProduction: boolean emailSignupEnabled: boolean /** Server-derived: verification is enabled AND a mail provider is configured. */ emailVerificationEnabled: boolean @@ -101,7 +100,6 @@ function SignupFormContent({ githubAvailable, googleAvailable, microsoftAvailable, - isProduction, emailSignupEnabled, emailVerificationEnabled, }: SignupFormProps) { @@ -484,7 +482,6 @@ function SignupFormContent({ googleAvailable={googleAvailable} microsoftAvailable={microsoftAvailable} callbackURL={redirectUrl || '/workspace'} - isProduction={isProduction} > {ssoEnabled && !hasOnlySSO && ( @@ -507,7 +504,6 @@ export default function SignupPage({ githubAvailable, googleAvailable, microsoftAvailable, - isProduction, emailSignupEnabled, emailVerificationEnabled, }: SignupFormProps) { @@ -519,7 +515,6 @@ export default function SignupPage({ githubAvailable={githubAvailable} googleAvailable={googleAvailable} microsoftAvailable={microsoftAvailable} - isProduction={isProduction} emailSignupEnabled={emailSignupEnabled} emailVerificationEnabled={emailVerificationEnabled} /> diff --git a/apps/sim/app/workspace/[workspaceId]/home/components/user-input/components/prompt-editor/use-prompt-editor.ts b/apps/sim/app/workspace/[workspaceId]/home/components/user-input/components/prompt-editor/use-prompt-editor.ts index f86f69f24a2..41ddd83e4e8 100644 --- a/apps/sim/app/workspace/[workspaceId]/home/components/user-input/components/prompt-editor/use-prompt-editor.ts +++ b/apps/sim/app/workspace/[workspaceId]/home/components/user-input/components/prompt-editor/use-prompt-editor.ts @@ -218,7 +218,6 @@ export function usePromptEditor({ const mentionMenu = useMentionMenu({ message: value, selectedContexts: contextManagement.selectedContexts, - onContextSelect: addContextNotified, onMessageChange: commitValue, }) diff --git a/apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/panel/components/copilot/components/user-input/hooks/use-mention-menu.ts b/apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/panel/components/copilot/components/user-input/hooks/use-mention-menu.ts index 3e9a390f5ac..ac69a0d6e58 100644 --- a/apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/panel/components/copilot/components/user-input/hooks/use-mention-menu.ts +++ b/apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/panel/components/copilot/components/user-input/hooks/use-mention-menu.ts @@ -7,8 +7,6 @@ interface UseMentionMenuProps { message: string /** Currently selected contexts */ selectedContexts: ChatContext[] - /** Callback when a context is selected */ - onContextSelect: (context: ChatContext) => void /** Callback when message changes */ onMessageChange: (message: string) => void } @@ -23,7 +21,6 @@ interface UseMentionMenuProps { export function useMentionMenu({ message, selectedContexts, - onContextSelect, onMessageChange, }: UseMentionMenuProps) { // Refs diff --git a/apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/panel/components/editor/components/connection-blocks/components/field-item/field-item.tsx b/apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/panel/components/editor/components/connection-blocks/components/field-item/field-item.tsx index 3e5c792bced..40b6623f0eb 100644 --- a/apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/panel/components/editor/components/connection-blocks/components/field-item/field-item.tsx +++ b/apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/panel/components/editor/components/connection-blocks/components/field-item/field-item.tsx @@ -24,7 +24,6 @@ interface FieldItemProps { connection: ConnectedBlock field: SchemaField path: string - level: number hasChildren?: boolean isExpanded?: boolean onToggleExpand?: (path: string) => void @@ -37,7 +36,6 @@ export function FieldItem({ connection, field, path, - level, hasChildren, isExpanded, onToggleExpand, diff --git a/apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/panel/components/editor/components/connection-blocks/connection-blocks.tsx b/apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/panel/components/editor/components/connection-blocks/connection-blocks.tsx index 5d39c1b100e..98c6493a0b8 100644 --- a/apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/panel/components/editor/components/connection-blocks/connection-blocks.tsx +++ b/apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/panel/components/editor/components/connection-blocks/connection-blocks.tsx @@ -27,7 +27,6 @@ interface ConnectionBlocksProps { interface FieldTreeNodesProps { fields: SchemaField[] parentPath: string - level: number connection: ConnectedBlock isFieldExpanded: (connectionId: string, fieldPath: string) => boolean onToggleFieldExpansion: (connectionId: string, fieldPath: string) => void @@ -36,7 +35,6 @@ interface FieldTreeNodesProps { function FieldTreeNodes({ fields, parentPath, - level, connection, isFieldExpanded, onToggleFieldExpansion, @@ -52,7 +50,6 @@ function FieldTreeNodes({ connection={connection} field={field} path={fieldPath} - level={level} hasChildren={hasChildren} isExpanded={expanded} onToggleExpand={(p) => onToggleFieldExpansion(connection.id, p)} @@ -63,7 +60,6 @@ function FieldTreeNodes({ disabled?: boolean - maxHeight?: number } export function GroupedCheckboxList({ blockId, subBlockId, - title, options, isPreview = false, subBlockValues, disabled = false, - maxHeight = 400, }: GroupedCheckboxListProps) { const activeSearchTarget = useActiveSearchTarget() const [open, setOpen] = useState(false) diff --git a/apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/panel/components/editor/components/sub-block/components/tag-dropdown/tag-dropdown.tsx b/apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/panel/components/editor/components/sub-block/components/tag-dropdown/tag-dropdown.tsx index cec7d6e9c2b..97321b5b4a4 100644 --- a/apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/panel/components/editor/components/sub-block/components/tag-dropdown/tag-dropdown.tsx +++ b/apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/panel/components/editor/components/sub-block/components/tag-dropdown/tag-dropdown.tsx @@ -376,7 +376,6 @@ const buildNestedTagTree = (tags: string[], blockName: string): NestedTag[] => { interface NestedTagRendererProps { nestedTag: NestedTag group: NestedBlockTagGroup - flatTagList: Array<{ tag: string; group?: BlockTagGroup }> /** Map from tag string to index for O(1) lookups */ flatTagIndexMap: Map selectedIndex: number @@ -403,7 +402,6 @@ interface FolderContentsProps extends NestedTagRendererProps { */ const FolderContentsInner: React.FC = ({ group, - flatTagList, flatTagIndexMap, selectedIndex, setSelectedIndex, @@ -565,7 +563,6 @@ const FolderContents: React.FC> = (props) => const NestedTagRenderer: React.FC = ({ nestedTag, group, - flatTagList, flatTagIndexMap, selectedIndex, setSelectedIndex, @@ -612,7 +609,6 @@ const NestedTagRenderer: React.FC = ({ = ({ { @@ -1720,7 +1716,6 @@ export const TagDropdown: React.FC = ({ key={`${group.blockId}-${nestedTag.key}`} nestedTag={nestedTag} group={group} - flatTagList={flatTagList} flatTagIndexMap={flatTagIndexMap} selectedIndex={selectedIndex} setSelectedIndex={setSelectedIndex} diff --git a/apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/panel/components/editor/components/sub-block/sub-block.tsx b/apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/panel/components/editor/components/sub-block/sub-block.tsx index 22fb31478c0..9833b32824e 100644 --- a/apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/panel/components/editor/components/sub-block/sub-block.tsx +++ b/apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/panel/components/editor/components/sub-block/sub-block.tsx @@ -844,12 +844,10 @@ function SubBlockComponent({ ) diff --git a/apps/sim/ee/custom-blocks/components/custom-block-detail.tsx b/apps/sim/ee/custom-blocks/components/custom-block-detail.tsx index 59cd4a0bd1d..6ee3c467b1e 100644 --- a/apps/sim/ee/custom-blocks/components/custom-block-detail.tsx +++ b/apps/sim/ee/custom-blocks/components/custom-block-detail.tsx @@ -85,9 +85,9 @@ export function CustomBlockDetail({ blockId, workspaceId, onBack }: CustomBlockD [blocks, blockId] ) - const publish = usePublishCustomBlock(workspaceId) - const update = useUpdateCustomBlock(workspaceId) - const remove = useDeleteCustomBlock(workspaceId) + const publish = usePublishCustomBlock() + const update = useUpdateCustomBlock() + const remove = useDeleteCustomBlock() // Needed in both modes: the source picker (create) and the manage gate (edit). const { data: workspaces = [] } = useWorkspacesQuery() diff --git a/apps/sim/hooks/queries/custom-blocks.ts b/apps/sim/hooks/queries/custom-blocks.ts index 55a127fc68f..ff9f8228754 100644 --- a/apps/sim/hooks/queries/custom-blocks.ts +++ b/apps/sim/hooks/queries/custom-blocks.ts @@ -75,7 +75,7 @@ export function useCustomBlockUsageCounts(blockId?: string, options?: { enabled? }) } -export function usePublishCustomBlock(workspaceId?: string) { +export function usePublishCustomBlock() { const queryClient = useQueryClient() return useMutation({ mutationFn: (body: PublishCustomBlockBody) => requestJson(publishCustomBlockContract, { body }), @@ -85,7 +85,7 @@ export function usePublishCustomBlock(workspaceId?: string) { }) } -export function useUpdateCustomBlock(workspaceId?: string) { +export function useUpdateCustomBlock() { const queryClient = useQueryClient() return useMutation({ mutationFn: ({ id, ...body }: UpdateCustomBlockBody & { id: string }) => @@ -96,7 +96,7 @@ export function useUpdateCustomBlock(workspaceId?: string) { }) } -export function useDeleteCustomBlock(workspaceId?: string) { +export function useDeleteCustomBlock() { const queryClient = useQueryClient() return useMutation({ mutationFn: (id: string) => requestJson(deleteCustomBlockContract, { params: { id } }),