mirror of
https://github.com/stablyai/orca.git
synced 2026-10-12 16:03:03 +00:00
test: import Activity functions directly in eight suites (#26237)
This commit is contained in:
+1
-1
@@ -3,7 +3,7 @@ import {
|
||||
handleActivityFilterFocusShortcut,
|
||||
isActivityFilterFocusShortcut,
|
||||
shouldIgnoreActivityFilterFocusShortcutTarget
|
||||
} from './ActivityPrototypePage'
|
||||
} from './activity-filter-focus-shortcut'
|
||||
|
||||
describe('activity filter focus shortcut', () => {
|
||||
it('matches Cmd+F on Mac and Ctrl+F elsewhere without extra modifiers', () => {
|
||||
|
||||
@@ -8,13 +8,16 @@ import { makePaneKey } from '../../../../shared/stable-pane-id'
|
||||
import type { TerminalTab } from '../../../../shared/terminal-tab-types'
|
||||
import {
|
||||
ACTIVITY_SEARCH_QUERY_MAX_BYTES,
|
||||
activityThreadResponseRenderPreview,
|
||||
activityThreadMatchesSearchQuery,
|
||||
buildActivityEvents,
|
||||
buildAgentPaneThreads,
|
||||
buildActivityThreadGroups,
|
||||
isActivitySearchQueryTooLarge
|
||||
} from './ActivityPrototypePage'
|
||||
} from './activity-thread-grouping'
|
||||
import {
|
||||
activityThreadResponseRenderPreview,
|
||||
activityThreadStatusId
|
||||
} from './activity-thread-presentation'
|
||||
import { buildActivityEvents } from './activity-event-builder'
|
||||
import { buildAgentPaneThreads } from './activity-thread-builder'
|
||||
import {
|
||||
makeActivityResult,
|
||||
makeRepo,
|
||||
@@ -29,7 +32,6 @@ import {
|
||||
PANE_KEY_2,
|
||||
PANE_KEY_3
|
||||
} from './ActivityPrototypePage-test-fixtures'
|
||||
import { activityThreadStatusId } from './activity-thread-presentation'
|
||||
|
||||
describe('buildActivityEvents', () => {
|
||||
it('keeps every pane visible before applying the global activity cap', () => {
|
||||
|
||||
@@ -4,13 +4,10 @@ import { describe, expect, it } from 'vitest'
|
||||
import type { AgentStatusEntry } from '../../../../shared/agent-status-types'
|
||||
import { formatAgentTypeLabel } from '@/lib/agent-status'
|
||||
import { TooltipProvider } from '@/components/ui/tooltip'
|
||||
import {
|
||||
buildActivityThreadGroups,
|
||||
buildActivityEvents,
|
||||
buildAgentPaneThreads,
|
||||
getActivityThreadGroup,
|
||||
ThreadAgentStateIndicator
|
||||
} from './ActivityPrototypePage'
|
||||
import { buildActivityThreadGroups, getActivityThreadGroup } from './activity-thread-grouping'
|
||||
import { buildActivityEvents } from './activity-event-builder'
|
||||
import { buildAgentPaneThreads } from './activity-thread-builder'
|
||||
import { ThreadAgentStateIndicator } from './activity-thread-controls'
|
||||
import {
|
||||
makeActivityResult,
|
||||
makeRepo,
|
||||
|
||||
@@ -6,7 +6,7 @@ import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest'
|
||||
|
||||
import { TooltipProvider } from '@/components/ui/tooltip'
|
||||
import { useAppStore } from '@/store'
|
||||
import { ActivityThreadOptionsMenu } from './ActivityPrototypePage'
|
||||
import { ActivityThreadOptionsMenu } from './activity-thread-controls'
|
||||
import type { ActivityGroupBy } from './activity-thread-types'
|
||||
import { makeRepo } from './ActivityPrototypePage-test-fixtures'
|
||||
|
||||
|
||||
+1
-1
@@ -2,7 +2,7 @@
|
||||
import { act } from 'react'
|
||||
import { createRoot, type Root } from 'react-dom/client'
|
||||
import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest'
|
||||
import { useActivityTerminalPortalStatus } from './ActivityPrototypePage'
|
||||
import { useActivityTerminalPortalStatus } from './activity-terminal-portal-status'
|
||||
import {
|
||||
ACTIVITY_PORTAL_READINESS_BURST_WINDOW_MS,
|
||||
ACTIVITY_PORTAL_READINESS_MAX_FLIPS
|
||||
|
||||
+1
-1
@@ -5,7 +5,7 @@ import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest'
|
||||
|
||||
;(globalThis as { IS_REACT_ACT_ENVIRONMENT?: boolean }).IS_REACT_ACT_ENVIRONMENT = true
|
||||
|
||||
import { useActivityTerminalPortalStatus } from './ActivityPrototypePage'
|
||||
import { useActivityTerminalPortalStatus } from './activity-terminal-portal-status'
|
||||
import {
|
||||
findActivityTerminalPortal,
|
||||
type ActivityTerminalPortalTarget
|
||||
|
||||
+1
-1
@@ -3,7 +3,7 @@ import { act, useState } from 'react'
|
||||
import { flushSync } from 'react-dom'
|
||||
import { createRoot, type Root } from 'react-dom/client'
|
||||
import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest'
|
||||
import { useActivityTerminalPortalStatus } from './ActivityPrototypePage'
|
||||
import { useActivityTerminalPortalStatus } from './activity-terminal-portal-status'
|
||||
import { ACTIVITY_PORTAL_READINESS_MAX_FLIPS } from './activity-portal-readiness-oscillation'
|
||||
|
||||
;(globalThis as { IS_REACT_ACT_ENVIRONMENT?: boolean }).IS_REACT_ACT_ENVIRONMENT = true
|
||||
|
||||
@@ -1,10 +1,8 @@
|
||||
import { describe, expect, it } from 'vitest'
|
||||
import type { AgentStatusEntry } from '../../../../shared/agent-status-types'
|
||||
import {
|
||||
buildActivityEvents,
|
||||
buildActivityThreadGroups,
|
||||
buildAgentPaneThreads
|
||||
} from './ActivityPrototypePage'
|
||||
import { buildActivityEvents } from './activity-event-builder'
|
||||
import { buildActivityThreadGroups } from './activity-thread-grouping'
|
||||
import { buildAgentPaneThreads } from './activity-thread-builder'
|
||||
import {
|
||||
makeRepo,
|
||||
makeTabWithIds,
|
||||
|
||||
Reference in New Issue
Block a user