diff --git a/ui/desktop/src/components/recipes/RecipeActivities.tsx b/ui/desktop/src/components/recipes/RecipeActivities.tsx index 0c8db3a6efb7..2ec24d9a3e45 100644 --- a/ui/desktop/src/components/recipes/RecipeActivities.tsx +++ b/ui/desktop/src/components/recipes/RecipeActivities.tsx @@ -1,12 +1,8 @@ import { Card } from '../ui/card'; -import { gsap } from 'gsap'; import GooseLogo from '../GooseLogo'; import MarkdownContent from '../MarkdownContent'; import { substituteParameters } from '../../utils/providerUtils'; -// Register GSAP plugins -gsap.registerPlugin(); - interface RecipeActivitiesProps { append: (text: string) => void; activities: string[] | null; diff --git a/ui/desktop/src/components/settings/chat/ChatSettingsSection.tsx b/ui/desktop/src/components/settings/chat/ChatSettingsSection.tsx index 60888c197801..fff359cb358a 100644 --- a/ui/desktop/src/components/settings/chat/ChatSettingsSection.tsx +++ b/ui/desktop/src/components/settings/chat/ChatSettingsSection.tsx @@ -28,7 +28,6 @@ export default function ChatSettingsSection() { - diff --git a/ui/desktop/src/components/settings/mode/ConversationLimitsDropdown.tsx b/ui/desktop/src/components/settings/mode/ConversationLimitsDropdown.tsx index f4ade89cf8fb..54a54406ab94 100644 --- a/ui/desktop/src/components/settings/mode/ConversationLimitsDropdown.tsx +++ b/ui/desktop/src/components/settings/mode/ConversationLimitsDropdown.tsx @@ -7,9 +7,9 @@ interface ConversationLimitsDropdownProps { onMaxTurnsChange: (value: number) => void; } -export const ConversationLimitsDropdown = ({ - maxTurns, - onMaxTurnsChange +export const ConversationLimitsDropdown = ({ + maxTurns, + onMaxTurnsChange, }: ConversationLimitsDropdownProps) => { const [isExpanded, setIsExpanded] = useState(false); @@ -24,19 +24,17 @@ export const ConversationLimitsDropdown = ({ className="w-full flex items-center justify-between py-2 px-2 hover:bg-background-muted rounded-lg transition-all group" >

Conversation Limits

- - -
diff --git a/ui/desktop/src/components/settings/mode/ModeSection.tsx b/ui/desktop/src/components/settings/mode/ModeSection.tsx index 9b3097631265..c19248a1e602 100644 --- a/ui/desktop/src/components/settings/mode/ModeSection.tsx +++ b/ui/desktop/src/components/settings/mode/ModeSection.tsx @@ -69,10 +69,7 @@ export const ModeSection = () => { ))} {/* Conversation Limits Dropdown */} - +
); }; diff --git a/ui/desktop/src/components/settings/scheduler/SchedulerSection.tsx b/ui/desktop/src/components/settings/scheduler/SchedulerSection.tsx index 1999011d0652..64995da6d8be 100644 --- a/ui/desktop/src/components/settings/scheduler/SchedulerSection.tsx +++ b/ui/desktop/src/components/settings/scheduler/SchedulerSection.tsx @@ -11,12 +11,14 @@ const schedulingEngineOptions: SchedulingEngineOption[] = [ { key: 'builtin-cron', label: 'Built-in Cron (Default)', - description: 'Uses Goose\'s built-in cron scheduler. Simple and reliable for basic scheduling needs.', + description: + "Uses Goose's built-in cron scheduler. Simple and reliable for basic scheduling needs.", }, { key: 'temporal', label: 'Temporal', - description: 'Uses Temporal workflow engine for advanced scheduling features. Requires Temporal CLI to be installed.', + description: + 'Uses Temporal workflow engine for advanced scheduling features. Requires Temporal CLI to be installed.', }, ]; @@ -60,13 +62,13 @@ export default function SchedulerSection({ onSchedulingEngineChange }: Scheduler
{schedulingEngineOptions.map((option) => { const isChecked = schedulingEngine === option.key; - + return (
handleEngineChange(option.key)} diff --git a/ui/desktop/src/hooks/use-text-animator.tsx b/ui/desktop/src/hooks/use-text-animator.tsx index 54ec673f6951..bc8291a4ccaf 100644 --- a/ui/desktop/src/hooks/use-text-animator.tsx +++ b/ui/desktop/src/hooks/use-text-animator.tsx @@ -2,17 +2,6 @@ import { gsap } from 'gsap'; import SplitType from 'split-type'; import { useEffect, useRef } from 'react'; -// Utility debounce function -export const debounce = void>(func: T, delay: number): T => { - let timerId: ReturnType; - return ((...args: unknown[]) => { - window.clearTimeout(timerId); - timerId = setTimeout(() => { - func(...args); - }, delay); - }) as T; -}; - interface TextSplitterOptions { resizeCallback?: () => void; splitTypeTypes?: ('lines' | 'words' | 'chars')[]; @@ -61,18 +50,10 @@ export class TextSplitter { resizeObserver.observe(this.textElement); } - revert() { - return this.splitText.revert(); - } - getLines(): HTMLElement[] { return this.splitText.lines ?? []; } - getWords(): HTMLElement[] { - return this.splitText.words ?? []; - } - getChars(): HTMLElement[] { return this.splitText.chars ?? []; } diff --git a/ui/desktop/src/utils.ts b/ui/desktop/src/utils.ts index 7378ae768234..b31c8ed37ade 100644 --- a/ui/desktop/src/utils.ts +++ b/ui/desktop/src/utils.ts @@ -10,4 +10,4 @@ export function snakeToTitleCase(snake: string): string { .split('_') .map((word) => word.charAt(0).toUpperCase() + word.slice(1).toLowerCase()) .join(' '); -} \ No newline at end of file +} diff --git a/ui/desktop/src/utils/interruptionDetector.ts b/ui/desktop/src/utils/interruptionDetector.ts index 74eb108981ca..ec6ab8fbea3b 100644 --- a/ui/desktop/src/utils/interruptionDetector.ts +++ b/ui/desktop/src/utils/interruptionDetector.ts @@ -2,7 +2,7 @@ * Utility for detecting interruption keywords in user input */ -export interface InterruptionKeyword { +interface InterruptionKeyword { keyword: string; variations: string[]; priority: 'high' | 'medium' | 'low';