-
+
{firstSignIn
? t(
diff --git a/src/renderer/src/components/bots/BotCreateButton.tsx b/src/renderer/src/components/bots/BotCreateButton.tsx
index 87073a2a7320..00a47193711c 100644
--- a/src/renderer/src/components/bots/BotCreateButton.tsx
+++ b/src/renderer/src/components/bots/BotCreateButton.tsx
@@ -1,3 +1,4 @@
+import { observeVisibleAnimation } from '@/lib/window-activity/offscreen-animation-pause'
// New bot's primary action, drawn like Create worktree's: spinner while busy, label, ⌘↩ hint.
import React from 'react'
import { LoaderCircle } from 'lucide-react'
@@ -14,7 +15,9 @@ export function BotCreateButton({
}): React.JSX.Element {
return (
diff --git a/src/renderer/src/components/browser-pane/stream-remote/remote-browser-page-viewport.tsx b/src/renderer/src/components/browser-pane/stream-remote/remote-browser-page-viewport.tsx
index 57a1729641ed..fddc0d3b29ae 100644
--- a/src/renderer/src/components/browser-pane/stream-remote/remote-browser-page-viewport.tsx
+++ b/src/renderer/src/components/browser-pane/stream-remote/remote-browser-page-viewport.tsx
@@ -1,3 +1,4 @@
+import { observeVisibleAnimation } from '@/lib/window-activity/offscreen-animation-pause'
import { useMemo, useState } from 'react'
import { Globe, Loader2 } from 'lucide-react'
import { Button } from '@/components/ui/button'
@@ -135,7 +136,10 @@ export function RemoteBrowserPageViewport({
{busy ? (
-
+
) : (
)}
diff --git a/src/renderer/src/components/browser-pane/workspace-doc/HtmlDocPreview.tsx b/src/renderer/src/components/browser-pane/workspace-doc/HtmlDocPreview.tsx
index 6009d2c3f4ec..e289e41068e0 100644
--- a/src/renderer/src/components/browser-pane/workspace-doc/HtmlDocPreview.tsx
+++ b/src/renderer/src/components/browser-pane/workspace-doc/HtmlDocPreview.tsx
@@ -1,3 +1,4 @@
+import { observeVisibleAnimation } from '@/lib/window-activity/offscreen-animation-pause'
import { useCallback, useEffect, useLayoutEffect, useMemo, useRef, useState } from 'react'
import { AlertCircle, Loader2 } from 'lucide-react'
import type {
@@ -383,7 +384,10 @@ export function HtmlDocPreview({
/>
{state === 'loading' && failureReason === null ? (
-
+
) : null}
{isUnavailable ? (
diff --git a/src/renderer/src/components/browser-pane/workspace-doc/doc-preview-directory-access.tsx b/src/renderer/src/components/browser-pane/workspace-doc/doc-preview-directory-access.tsx
index 8a576c381376..7ff071fa0b60 100644
--- a/src/renderer/src/components/browser-pane/workspace-doc/doc-preview-directory-access.tsx
+++ b/src/renderer/src/components/browser-pane/workspace-doc/doc-preview-directory-access.tsx
@@ -1,3 +1,4 @@
+import { observeVisibleAnimation } from '@/lib/window-activity/offscreen-animation-pause'
import { useCallback, useRef, useState, type RefObject } from 'react'
import { AlertCircle, Loader2 } from 'lucide-react'
import { toast } from 'sonner'
@@ -156,7 +157,9 @@ export function DocPreviewDirectoryAccessBanner({
{t('auto.components.editor.HtmlDocPreview.dismissAccessRequest', 'Dismiss')}
void onAllow()}>
- {busy ? : null}
+ {busy ? (
+
+ ) : null}
{labels.length === 1
? t('auto.components.editor.HtmlDocPreview.allowDirectory', 'Allow folder')
: t('auto.components.editor.HtmlDocPreview.allowDirectories', 'Allow {{count}} folders', {
diff --git a/src/renderer/src/components/dictation/DictationGrapes.tsx b/src/renderer/src/components/dictation/DictationGrapes.tsx
index 7b8a6b90b4be..6b8d12f8a4c5 100644
--- a/src/renderer/src/components/dictation/DictationGrapes.tsx
+++ b/src/renderer/src/components/dictation/DictationGrapes.tsx
@@ -1,3 +1,4 @@
+import { observeVisibleAnimation } from '@/lib/window-activity/offscreen-animation-pause'
import { cn } from '@/lib/class-names'
import { DICTATION_GRAPES } from '../../../../shared/speech/dictation/dictation-audio-meter'
@@ -13,11 +14,12 @@ export function DictationGrapes({ level, active, className }: DictationGrapesPro
return (
diff --git a/src/renderer/src/components/dictation/DictationIndicator.tsx b/src/renderer/src/components/dictation/DictationIndicator.tsx
index 478a11849502..b9e8f92bbee8 100644
--- a/src/renderer/src/components/dictation/DictationIndicator.tsx
+++ b/src/renderer/src/components/dictation/DictationIndicator.tsx
@@ -1,3 +1,4 @@
+import { observeVisibleAnimation } from '@/lib/window-activity/offscreen-animation-pause'
import { useEffect, useRef, useState } from 'react'
import { ShortcutKeyCombo } from '@/components/ui/ShortcutKeyCombo'
import { Button } from '@/components/ui/button'
@@ -151,8 +152,9 @@ function DictationPendingDots() {
{[0, 150, 300].map((delayMs) => (
))}
@@ -262,7 +264,7 @@ function DictationPill({ captureLive, anchor, failure, queued, cleanup }: Dictat
className="grid size-6 shrink-0 place-items-center rounded-full bg-secondary text-muted-foreground"
>
{showSpinner ? (
-
+
) : (
)}
diff --git a/src/renderer/src/components/editor/external-changes/ExternalFileChangeCompareDialog.tsx b/src/renderer/src/components/editor/external-changes/ExternalFileChangeCompareDialog.tsx
index 7d9d7f757d4f..f23bcd0aa0cb 100644
--- a/src/renderer/src/components/editor/external-changes/ExternalFileChangeCompareDialog.tsx
+++ b/src/renderer/src/components/editor/external-changes/ExternalFileChangeCompareDialog.tsx
@@ -1,3 +1,4 @@
+import { observeVisibleAnimation } from '@/lib/window-activity/offscreen-animation-pause'
import React, { Suspense, useEffect, useState } from 'react'
import { Loader2 } from 'lucide-react'
import { Button } from '@/components/ui/button'
@@ -130,7 +131,7 @@ export function ExternalFileChangeCompareDialog({
{diskState.kind === 'loading' ? (
-
+
{t(
'auto.components.editor.ExternalFileChangeCompareDialog.8fe30ab254',
'Reading file from disk...'
@@ -155,7 +156,10 @@ export function ExternalFileChangeCompareDialog({
-
+
{t(
'auto.components.editor.ExternalFileChangeCompareDialog.2c8f1e07b9',
'Loading comparison...'
diff --git a/src/renderer/src/components/editor/markdown-preview/surface/MarkdownPreviewSurface.tsx b/src/renderer/src/components/editor/markdown-preview/surface/MarkdownPreviewSurface.tsx
index 29b0c598b777..65b17c2369f5 100644
--- a/src/renderer/src/components/editor/markdown-preview/surface/MarkdownPreviewSurface.tsx
+++ b/src/renderer/src/components/editor/markdown-preview/surface/MarkdownPreviewSurface.tsx
@@ -1,3 +1,4 @@
+import { observeVisibleAnimation } from '@/lib/window-activity/offscreen-animation-pause'
import { Loader2 } from 'lucide-react'
import { useCallback, useMemo, useState, type RefObject } from 'react'
import { parseMarkdownDocLinkHref } from '../../markdown/documents/markdown-doc-links'
@@ -220,7 +221,7 @@ export function MarkdownPreviewSurface({
) : (
-
+
{t('editor.markdownPreview.preparing', 'Preparing preview…')}
)}
diff --git a/src/renderer/src/components/editor/notebook/cells/IpynbCellToolbar.tsx b/src/renderer/src/components/editor/notebook/cells/IpynbCellToolbar.tsx
index 1a55eefb02ed..592d12b95e73 100644
--- a/src/renderer/src/components/editor/notebook/cells/IpynbCellToolbar.tsx
+++ b/src/renderer/src/components/editor/notebook/cells/IpynbCellToolbar.tsx
@@ -1,3 +1,4 @@
+import { observeVisibleAnimation } from '@/lib/window-activity/offscreen-animation-pause'
// @protected-copy
import type { ReactNode } from 'react'
import {
@@ -126,7 +127,7 @@ export function IpynbRunPrompt({
onClick={onRun}
>
{state === 'running' ? (
-
+
) : state === 'queued' ? (
) : (
diff --git a/src/renderer/src/components/editor/notebook/kernel/IpynbKernelSetupDialog.tsx b/src/renderer/src/components/editor/notebook/kernel/IpynbKernelSetupDialog.tsx
index 2f5112086ecc..6259a50831b5 100644
--- a/src/renderer/src/components/editor/notebook/kernel/IpynbKernelSetupDialog.tsx
+++ b/src/renderer/src/components/editor/notebook/kernel/IpynbKernelSetupDialog.tsx
@@ -1,3 +1,4 @@
+import { observeVisibleAnimation } from '@/lib/window-activity/offscreen-animation-pause'
// @protected-copy: notebook trust and kernel setup copy.
import { Copy, Loader2 } from 'lucide-react'
import { toast } from 'sonner'
@@ -175,7 +176,9 @@ export function IpynbKernelSetupDialog({
: installIpykernel(filePath))
}
>
- {working ? : null}
+ {working ? (
+
+ ) : null}
{error && !working
? t('auto.components.editor.IpynbViewer.tryAgain', 'Try again')
: copy.action}
diff --git a/src/renderer/src/components/editor/notebook/kernel/IpynbKernelToolbar.tsx b/src/renderer/src/components/editor/notebook/kernel/IpynbKernelToolbar.tsx
index 1fefe3eac960..8ea3a929fc01 100644
--- a/src/renderer/src/components/editor/notebook/kernel/IpynbKernelToolbar.tsx
+++ b/src/renderer/src/components/editor/notebook/kernel/IpynbKernelToolbar.tsx
@@ -1,3 +1,4 @@
+import { observeVisibleAnimation } from '@/lib/window-activity/offscreen-animation-pause'
// @protected-copy
import { useEffect, useState } from 'react'
import {
@@ -185,13 +186,14 @@ export function IpynbKernelToolbar({
{settling ? (
-
+
) : kernel.status === 'ready' ? (
@@ -205,7 +207,7 @@ export function IpynbKernelToolbar({
{environments === null ? (
-
+
{t(
'auto.components.editor.IpynbViewer.findingPython',
'Finding Python environments…'
diff --git a/src/renderer/src/components/emulator-pane/streaming/emulator-screen-stream-content.tsx b/src/renderer/src/components/emulator-pane/streaming/emulator-screen-stream-content.tsx
index a465a451246b..53bddf4d6b44 100644
--- a/src/renderer/src/components/emulator-pane/streaming/emulator-screen-stream-content.tsx
+++ b/src/renderer/src/components/emulator-pane/streaming/emulator-screen-stream-content.tsx
@@ -1,3 +1,4 @@
+import { observeVisibleAnimation } from '@/lib/window-activity/offscreen-animation-pause'
import { Loader2 } from 'lucide-react'
import { useEffect, useState, type CSSProperties } from 'react'
import { useEmulatorFrameStream } from './use-emulator-frame-stream'
@@ -123,7 +124,10 @@ export function EmulatorScreenStreamContent({
{loading || waitingForFrame ? (
<>
-
+
{t(
'auto.components.emulator.pane.emulator.screen.stream.content.5f818f12ab',
diff --git a/src/renderer/src/components/feature-tips/FeatureTipActions.tsx b/src/renderer/src/components/feature-tips/FeatureTipActions.tsx
index 085b86c251c6..005f4598eccf 100644
--- a/src/renderer/src/components/feature-tips/FeatureTipActions.tsx
+++ b/src/renderer/src/components/feature-tips/FeatureTipActions.tsx
@@ -1,3 +1,4 @@
+import { observeVisibleAnimation } from '@/lib/window-activity/offscreen-animation-pause'
import type { JSX, MouseEventHandler, Ref } from 'react'
import { Loader2 } from 'lucide-react'
import type {
@@ -71,7 +72,7 @@ export function FeatureTipActions({
>
{primaryBusy ? (
<>
-
+
{getPrimaryBusyLabel(currentTip.action, t)}
>
) : (
diff --git a/src/renderer/src/components/feature-wall/agents-orchestration/UsageAccountsCard.tsx b/src/renderer/src/components/feature-wall/agents-orchestration/UsageAccountsCard.tsx
index fb4733e0c1ad..9604f1aa9f49 100644
--- a/src/renderer/src/components/feature-wall/agents-orchestration/UsageAccountsCard.tsx
+++ b/src/renderer/src/components/feature-wall/agents-orchestration/UsageAccountsCard.tsx
@@ -1,3 +1,4 @@
+import { observeVisibleAnimation } from '@/lib/window-activity/offscreen-animation-pause'
import { useEffect, useState } from 'react'
import type { JSX, ReactNode } from 'react'
import { Loader2, Plus } from 'lucide-react'
@@ -69,7 +70,7 @@ function ProviderRow(props: {
{connected ? null : (
{isAdding ? (
-
+
) : (
)}
diff --git a/src/renderer/src/components/feature-wall/browser-storyboard/BrowserAgentVerificationPane.tsx b/src/renderer/src/components/feature-wall/browser-storyboard/BrowserAgentVerificationPane.tsx
index 1b09cc2eed9e..b3c10d0ec7dd 100644
--- a/src/renderer/src/components/feature-wall/browser-storyboard/BrowserAgentVerificationPane.tsx
+++ b/src/renderer/src/components/feature-wall/browser-storyboard/BrowserAgentVerificationPane.tsx
@@ -1,3 +1,4 @@
+import { observeVisibleAnimation } from '@/lib/window-activity/offscreen-animation-pause'
import type { JSX, ReactNode } from 'react'
import { ClaudeIcon } from '@/components/status-bar/accounts/provider-icons'
import { translate } from '@/i18n/i18n'
@@ -123,7 +124,10 @@ function TerminalEntryView(props: { entry: TerminalEntry }): JSX.Element {
if (entry.kind === 'working') {
return (
-
+
{t('auto.components.feature.wall.BrowserAnimatedVisual.0ce7c24b4d', 'Working…')}
)
diff --git a/src/renderer/src/components/feature-wall/setup/FullDiskAccessSetupPrompt.tsx b/src/renderer/src/components/feature-wall/setup/FullDiskAccessSetupPrompt.tsx
index 1b3e293a03c0..e383a4454efa 100644
--- a/src/renderer/src/components/feature-wall/setup/FullDiskAccessSetupPrompt.tsx
+++ b/src/renderer/src/components/feature-wall/setup/FullDiskAccessSetupPrompt.tsx
@@ -1,3 +1,4 @@
+import { observeVisibleAnimation } from '@/lib/window-activity/offscreen-animation-pause'
import { useCallback, useEffect, useRef, useState } from 'react'
import { ExternalLink, HardDrive, Loader2 } from 'lucide-react'
import { toast } from 'sonner'
@@ -65,7 +66,7 @@ function getFullDiskAccessButtonLabel(
function FullDiskAccessButtonIcon(props: FullDiskAccessButtonState): React.JSX.Element {
if (props.requesting) {
- return
+ return
}
return
}
diff --git a/src/renderer/src/components/feature-wall/setup/agent-capabilities/AgentCapabilitiesSetupAction.tsx b/src/renderer/src/components/feature-wall/setup/agent-capabilities/AgentCapabilitiesSetupAction.tsx
index a36cdf1f5a02..51060e8c473c 100644
--- a/src/renderer/src/components/feature-wall/setup/agent-capabilities/AgentCapabilitiesSetupAction.tsx
+++ b/src/renderer/src/components/feature-wall/setup/agent-capabilities/AgentCapabilitiesSetupAction.tsx
@@ -1,3 +1,4 @@
+import { observeVisibleAnimation } from '@/lib/window-activity/offscreen-animation-pause'
import {
useBundledSkillInstallAction,
type BundledSkillInstallActionState
@@ -260,7 +261,7 @@ function AgentCapabilitySetupControls(props: {
onClick={props.onStartFeatureSetup}
>
{props.setupBusyLabel ? (
-
+
) : (
)}
diff --git a/src/renderer/src/components/feature-wall/setup/browser/FeatureWallBrowserAction.tsx b/src/renderer/src/components/feature-wall/setup/browser/FeatureWallBrowserAction.tsx
index a80724ce022d..f3fe6c601264 100644
--- a/src/renderer/src/components/feature-wall/setup/browser/FeatureWallBrowserAction.tsx
+++ b/src/renderer/src/components/feature-wall/setup/browser/FeatureWallBrowserAction.tsx
@@ -1,3 +1,4 @@
+import { observeVisibleAnimation } from '@/lib/window-activity/offscreen-animation-pause'
import { useBundledSkillInstallAction } from '@/hooks/skills/installation/use-bundled-skill-install-action'
import { bundledSkillSetupActionLabel } from '../../../skills/setup/bundled-skill-setup-copy'
import { ORCA_CLI_SKILL_NAME } from '@/lib/skills/installation/agent-feature-skill-names'
@@ -247,7 +248,11 @@ function BrowserSkillInstallForRuntime({
}
onClick={() => void handleInstall()}
>
- {busy ? : }
+ {busy ? (
+
+ ) : (
+
+ )}
{busy
? t('auto.components.feature.wall.FeatureWallBrowserAction.5f97caf76b', 'Installing…')
: installAction.kind === 'replace'
diff --git a/src/renderer/src/components/feature-wall/task-storyboard/TasksAnimatedVisual.tsx b/src/renderer/src/components/feature-wall/task-storyboard/TasksAnimatedVisual.tsx
index 3e31edb89e08..9a07fd8eeda1 100644
--- a/src/renderer/src/components/feature-wall/task-storyboard/TasksAnimatedVisual.tsx
+++ b/src/renderer/src/components/feature-wall/task-storyboard/TasksAnimatedVisual.tsx
@@ -1,3 +1,4 @@
+import { observeVisibleAnimation } from '@/lib/window-activity/offscreen-animation-pause'
import { useEffect, useLayoutEffect, useRef, useState } from 'react'
import type { JSX } from 'react'
import { ArrowRight, CircleDot } from 'lucide-react'
@@ -278,7 +279,10 @@ export function TasksAnimatedVisual(props: { reducedMotion: boolean }): JSX.Elem
>
{workspaceCreating ? (
-
+
) : (
)}
diff --git a/src/renderer/src/components/feature-wall/workbench-storyboard/WorkbenchTerminalPanes.tsx b/src/renderer/src/components/feature-wall/workbench-storyboard/WorkbenchTerminalPanes.tsx
index f99c4dbfe4a3..3d32a6b78def 100644
--- a/src/renderer/src/components/feature-wall/workbench-storyboard/WorkbenchTerminalPanes.tsx
+++ b/src/renderer/src/components/feature-wall/workbench-storyboard/WorkbenchTerminalPanes.tsx
@@ -1,3 +1,4 @@
+import { observeVisibleAnimation } from '@/lib/window-activity/offscreen-animation-pause'
import type { JSX, ReactNode } from 'react'
import { useTranslate } from '@/i18n/use-translate'
import { cn } from '@/lib/class-names'
@@ -49,7 +50,10 @@ export function WorkbenchAgentTerminalPane(props: {
'}>{props.promptGlyph}
{props.typedText}
{props.showCaret ? (
-
+
) : null}
) : null}
@@ -326,9 +330,10 @@ function PlaywrightDuration(props: { children: ReactNode }): JSX.Element {
function RunSpinner(props: { reducedMotion?: boolean }): JSX.Element {
return (
)
diff --git a/src/renderer/src/components/github-item-dialog/discuss-item/conversation-tab-description.tsx b/src/renderer/src/components/github-item-dialog/discuss-item/conversation-tab-description.tsx
index b11993a191bf..1855fd7bcfc6 100644
--- a/src/renderer/src/components/github-item-dialog/discuss-item/conversation-tab-description.tsx
+++ b/src/renderer/src/components/github-item-dialog/discuss-item/conversation-tab-description.tsx
@@ -1,3 +1,4 @@
+import { observeVisibleAnimation } from '@/lib/window-activity/offscreen-animation-pause'
import React, { useState } from 'react'
import type { GitHubImageUploadAddress } from '@/components/github/github-image-upload'
import { Check, LoaderCircle, Pencil, X } from 'lucide-react'
@@ -87,7 +88,10 @@ export function ConversationTabDescription({
onClick={save}
>
{bodySaving ? (
-
+
) : (
)}
@@ -121,7 +125,10 @@ export function ConversationTabDescription({
{loading && !detailsLoaded ? (
-
+
) : bodyEditing ? (
{submitting ? (
-
+
) : (
)}
diff --git a/src/renderer/src/components/github-item-dialog/edit-item-fields/gh-edit-section-assignees.tsx b/src/renderer/src/components/github-item-dialog/edit-item-fields/gh-edit-section-assignees.tsx
index 9a3e243dda02..96af1a8d95f1 100644
--- a/src/renderer/src/components/github-item-dialog/edit-item-fields/gh-edit-section-assignees.tsx
+++ b/src/renderer/src/components/github-item-dialog/edit-item-fields/gh-edit-section-assignees.tsx
@@ -1,3 +1,4 @@
+import { observeVisibleAnimation } from '@/lib/window-activity/offscreen-animation-pause'
import React from 'react'
import { ChevronDown, LoaderCircle, Pencil } from 'lucide-react'
import { Popover, PopoverContent, PopoverTrigger } from '@/components/ui/popover'
@@ -46,7 +47,10 @@ export function GHEditSectionAssigneesColumn({
className="rounded p-0.5 text-muted-foreground transition hover:bg-accent hover:text-foreground disabled:opacity-50"
>
{isPending ? (
-
+
) : (
)}
@@ -158,7 +162,10 @@ export function GHEditSectionAssigneesPill({
))
)}
{isPending ? (
-
+
) : (
)}
diff --git a/src/renderer/src/components/github-item-dialog/edit-item-fields/gh-edit-section-labels.tsx b/src/renderer/src/components/github-item-dialog/edit-item-fields/gh-edit-section-labels.tsx
index f38edfd87bf3..c11ae6786ae0 100644
--- a/src/renderer/src/components/github-item-dialog/edit-item-fields/gh-edit-section-labels.tsx
+++ b/src/renderer/src/components/github-item-dialog/edit-item-fields/gh-edit-section-labels.tsx
@@ -1,3 +1,4 @@
+import { observeVisibleAnimation } from '@/lib/window-activity/offscreen-animation-pause'
import React from 'react'
import { ChevronDown, LoaderCircle, Pencil } from 'lucide-react'
import { Popover, PopoverContent, PopoverTrigger } from '@/components/ui/popover'
@@ -48,7 +49,10 @@ export function GHEditSectionLabelsColumn({
className="rounded p-0.5 text-muted-foreground transition hover:bg-accent hover:text-foreground disabled:opacity-50"
>
{isPending ? (
-
+
) : (
)}
@@ -150,7 +154,10 @@ export function GHEditSectionLabelsPill({
))
)}
{isPending ? (
-
+
) : (
)}
diff --git a/src/renderer/src/components/github-item-dialog/inspect-pull-request/checks-tab-check-details.tsx b/src/renderer/src/components/github-item-dialog/inspect-pull-request/checks-tab-check-details.tsx
index f41b41b1953c..f2c5ee28d90f 100644
--- a/src/renderer/src/components/github-item-dialog/inspect-pull-request/checks-tab-check-details.tsx
+++ b/src/renderer/src/components/github-item-dialog/inspect-pull-request/checks-tab-check-details.tsx
@@ -1,3 +1,4 @@
+import { observeVisibleAnimation } from '@/lib/window-activity/offscreen-animation-pause'
import React from 'react'
import { ExternalLink, LoaderCircle, RefreshCw } from 'lucide-react'
import { Button } from '@/components/ui/button'
@@ -44,7 +45,7 @@ export function ChecksTabCheckDetails({
{state?.loading && !state.error ? (
-
+
{t('auto.components.GitHubItemDialog.934d87ab96', 'Loading check details…')}
) : (
@@ -86,7 +87,10 @@ export function ChecksTabCheckDetails({
aria-busy={state.loading}
onClick={() => onRetry(check, getCheckDetailsKey(check))}
>
-
+
{state.loading
? t('githubChecks.retrying', 'Retrying…')
: t('auto.components.GitHubItemDialog.dcb3c546fe', 'Retry')}
diff --git a/src/renderer/src/components/github-item-dialog/inspect-pull-request/checks-tab-check-row.tsx b/src/renderer/src/components/github-item-dialog/inspect-pull-request/checks-tab-check-row.tsx
index 2bb329f14337..384a47d9b0cd 100644
--- a/src/renderer/src/components/github-item-dialog/inspect-pull-request/checks-tab-check-row.tsx
+++ b/src/renderer/src/components/github-item-dialog/inspect-pull-request/checks-tab-check-row.tsx
@@ -11,6 +11,10 @@ import type { PRCheckDetail } from '../../../../../shared/github/checks/check-ty
import { getCheckDetailsKey, getCheckStatusLabel } from '@/components/github/pr-check-presentation'
import { ChecksTabCheckDetails } from './checks-tab-check-details'
import { useTranslate } from '@/i18n/use-translate'
+import {
+ observeOffscreenAnimation,
+ observeVisibleAnimation
+} from '@/lib/window-activity/offscreen-animation-pause'
export function renderCheckRow({
check,
@@ -62,7 +66,7 @@ export function ChecksTabCheckRow({
const color = CHECK_COLOR[conclusion] ?? 'text-muted-foreground'
const statusLabel = getCheckStatusLabel(check, t)
return (
-
+
onToggle(check)}
@@ -79,7 +83,12 @@ export function ChecksTabCheckRow({
)}
/>
{check.name}
{statusLabel}
diff --git a/src/renderer/src/components/github-item-dialog/inspect-pull-request/checks-tab-header.tsx b/src/renderer/src/components/github-item-dialog/inspect-pull-request/checks-tab-header.tsx
index 04b546622704..47cf2f7200ae 100644
--- a/src/renderer/src/components/github-item-dialog/inspect-pull-request/checks-tab-header.tsx
+++ b/src/renderer/src/components/github-item-dialog/inspect-pull-request/checks-tab-header.tsx
@@ -1,3 +1,5 @@
+import type { LucideIcon } from 'lucide-react'
+import { observeVisibleAnimation } from '@/lib/window-activity/offscreen-animation-pause'
import React from 'react'
import { ChevronDown, LoaderCircle, RefreshCw, Wrench } from 'lucide-react'
import { Button } from '@/components/ui/button'
@@ -57,7 +59,10 @@ export function ChecksTabActions({
onClick={() => void onRefresh()}
aria-label={t('auto.components.GitHubItemDialog.9a1004fc76', 'Refresh checks')}
>
-
+
@@ -78,7 +83,7 @@ export function ChecksTabActions({
onClick={() => void onFix()}
>
{fixingChecks ? (
-
+
) : (
)}
@@ -107,7 +112,7 @@ export function ChecksTabActions({
disabled={!canUseChecksRepoContext || rerunning || listLength === 0}
>
{rerunning ? (
-
+
) : (
)}
@@ -159,7 +164,7 @@ export function ChecksTabCompactHeader({
rerunAction,
secondaryActions
}: {
- SummaryIcon: React.ComponentType<{ className?: string }>
+ SummaryIcon: LucideIcon
summaryColor: string
counts: { failing: number; pending: number }
summaryLabel: string
@@ -175,10 +180,11 @@ export function ChecksTabCompactHeader({
0 && counts.failing === 0 && 'animate-spin'
+ counts.pending > 0 && counts.failing === 0 && 'visible-animate-spin'
)}
/>
diff --git a/src/renderer/src/components/github-item-dialog/inspect-pull-request/checks-tab.tsx b/src/renderer/src/components/github-item-dialog/inspect-pull-request/checks-tab.tsx
index 4a21d6da31b1..52fb4beebcc4 100644
--- a/src/renderer/src/components/github-item-dialog/inspect-pull-request/checks-tab.tsx
+++ b/src/renderer/src/components/github-item-dialog/inspect-pull-request/checks-tab.tsx
@@ -1,3 +1,4 @@
+import { observeVisibleAnimation } from '@/lib/window-activity/offscreen-animation-pause'
import { PRCheckEmptyDetails } from '@/components/github/pr-check-empty-details'
import { isCompletePRCheckOwner } from '../../../../../shared/github/checks/complete-pr-check-owner'
import { usePRCheckRefreshOwner } from '@/lib/work-items/github/use-pr-check-refresh-owner'
@@ -322,8 +323,8 @@ export function ChecksTab({
return (
<>
{variant === 'compact' ? compactHeader : null}
-
-
+
+
>
)
@@ -348,10 +349,11 @@ export function ChecksTab({
0 && overallCounts.failing === 0 && 'animate-spin'
+ overallCounts.pending > 0 && overallCounts.failing === 0 && 'visible-animate-spin'
)}
/>
diff --git a/src/renderer/src/components/github-item-dialog/land-pull-request/pr-actions-merge-menu.tsx b/src/renderer/src/components/github-item-dialog/land-pull-request/pr-actions-merge-menu.tsx
index e86b3a2d7403..d075f943f4d7 100644
--- a/src/renderer/src/components/github-item-dialog/land-pull-request/pr-actions-merge-menu.tsx
+++ b/src/renderer/src/components/github-item-dialog/land-pull-request/pr-actions-merge-menu.tsx
@@ -1,3 +1,4 @@
+import { observeVisibleAnimation } from '@/lib/window-activity/offscreen-animation-pause'
import React from 'react'
import { ChevronDown, ExternalLink, GitMerge, LoaderCircle } from 'lucide-react'
import { Button } from '@/components/ui/button'
@@ -51,7 +52,10 @@ export function PRActionsMergeMenu({
)}
>
{mergePending ? (
-
+
) : (
)}
diff --git a/src/renderer/src/components/github-item-dialog/land-pull-request/pr-actions-panel.tsx b/src/renderer/src/components/github-item-dialog/land-pull-request/pr-actions-panel.tsx
index 9f69948f939b..eeb5932847d4 100644
--- a/src/renderer/src/components/github-item-dialog/land-pull-request/pr-actions-panel.tsx
+++ b/src/renderer/src/components/github-item-dialog/land-pull-request/pr-actions-panel.tsx
@@ -1,3 +1,4 @@
+import { observeVisibleAnimation } from '@/lib/window-activity/offscreen-animation-pause'
import React, { useCallback, useState } from 'react'
import { useShallow } from 'zustand/react/shallow'
import { CircleDot, GitPullRequest, GitPullRequestClosed, LoaderCircle } from 'lucide-react'
@@ -344,7 +345,7 @@ export function PRActionsPanel({
onClick={() => void handleStateChange()}
>
{statePending ? (
-
+
) : nextState === 'closed' ? (
) : (
diff --git a/src/renderer/src/components/github-item-dialog/land-pull-request/pr-reviewers-panel.tsx b/src/renderer/src/components/github-item-dialog/land-pull-request/pr-reviewers-panel.tsx
index 862741d2b358..ad02c63cca10 100644
--- a/src/renderer/src/components/github-item-dialog/land-pull-request/pr-reviewers-panel.tsx
+++ b/src/renderer/src/components/github-item-dialog/land-pull-request/pr-reviewers-panel.tsx
@@ -1,3 +1,4 @@
+import { observeVisibleAnimation } from '@/lib/window-activity/offscreen-animation-pause'
import React, { useCallback, useEffect, useMemo, useRef, useState } from 'react'
import { useShallow } from 'zustand/react/shallow'
import { LoaderCircle, Pencil } from 'lucide-react'
@@ -290,7 +291,10 @@ export function PRReviewersPanel({
className="rounded p-0.5 text-muted-foreground transition hover:bg-accent hover:text-foreground disabled:opacity-50"
>
{submitting ? (
-
+
) : (
)}
diff --git a/src/renderer/src/components/github-item-dialog/land-pull-request/pr-reviewers-requested-list.tsx b/src/renderer/src/components/github-item-dialog/land-pull-request/pr-reviewers-requested-list.tsx
index 8ebd6d50cc59..24571f657814 100644
--- a/src/renderer/src/components/github-item-dialog/land-pull-request/pr-reviewers-requested-list.tsx
+++ b/src/renderer/src/components/github-item-dialog/land-pull-request/pr-reviewers-requested-list.tsx
@@ -1,3 +1,4 @@
+import { observeVisibleAnimation } from '@/lib/window-activity/offscreen-animation-pause'
import React from 'react'
import { LoaderCircle, X } from 'lucide-react'
import { Button } from '@/components/ui/button'
@@ -27,7 +28,7 @@ export function PRReviewersRequestedList({
if (loading && !hasReviewerMetadata) {
return (
-
+
{t('auto.components.GitHubItemDialog.6a45771d47', 'Loading reviewers')}
)
diff --git a/src/renderer/src/components/github-item-dialog/open-dialog/github-item-dialog-issue-header.tsx b/src/renderer/src/components/github-item-dialog/open-dialog/github-item-dialog-issue-header.tsx
index f6adef6bf733..8eb87541c2ff 100644
--- a/src/renderer/src/components/github-item-dialog/open-dialog/github-item-dialog-issue-header.tsx
+++ b/src/renderer/src/components/github-item-dialog/open-dialog/github-item-dialog-issue-header.tsx
@@ -1,3 +1,4 @@
+import { observeVisibleAnimation } from '@/lib/window-activity/offscreen-animation-pause'
import React from 'react'
import {
ArrowRight,
@@ -115,7 +116,10 @@ export function GitHubItemDialogIssueHeader({
onClick={() => void refreshTask()}
aria-label={t('auto.components.GitHubItemDialog.refreshTask', 'Refresh task')}
>
-
+
diff --git a/src/renderer/src/components/github-item-dialog/open-dialog/github-item-dialog-pr-tabs.tsx b/src/renderer/src/components/github-item-dialog/open-dialog/github-item-dialog-pr-tabs.tsx
index 625d8815f6a5..f53e17539388 100644
--- a/src/renderer/src/components/github-item-dialog/open-dialog/github-item-dialog-pr-tabs.tsx
+++ b/src/renderer/src/components/github-item-dialog/open-dialog/github-item-dialog-pr-tabs.tsx
@@ -1,3 +1,4 @@
+import { observeVisibleAnimation } from '@/lib/window-activity/offscreen-animation-pause'
import React from 'react'
import { FileText, ListChecks, LoaderCircle, MessageSquare, RefreshCw } from 'lucide-react'
import { Button } from '@/components/ui/button'
@@ -180,7 +181,10 @@ export function GitHubItemDialogPRTabs({
{(loading || !detailsLoaded) && files.length === 0 ? (
-
+
) : !canUseFilesRepoContext ? (
// Why: without a repo path or runtime host the viewer would call IPC with empty ids; diff loads and review comments both fail silently.
diff --git a/src/renderer/src/components/github-project/picker/ProjectPickerBrowse.tsx b/src/renderer/src/components/github-project/picker/ProjectPickerBrowse.tsx
index 65158c8f9e3d..97efb4314b20 100644
--- a/src/renderer/src/components/github-project/picker/ProjectPickerBrowse.tsx
+++ b/src/renderer/src/components/github-project/picker/ProjectPickerBrowse.tsx
@@ -1,3 +1,4 @@
+import { observeVisibleAnimation } from '@/lib/window-activity/offscreen-animation-pause'
import React from 'react'
import { Loader, Search } from 'lucide-react'
import { Button } from '@/components/ui/button'
@@ -126,7 +127,7 @@ function ProjectBrowseRows(props: Props): React.JSX.Element {
>
{props.browseLoading ? (
-
+
{t('auto.components.github.project.ProjectPicker.7b6d39627e', 'Loading…')}
) : null}
diff --git a/src/renderer/src/components/github-project/picker/ProjectPickerPanels.tsx b/src/renderer/src/components/github-project/picker/ProjectPickerPanels.tsx
index 535fb5bebd5e..d7bb79426e3e 100644
--- a/src/renderer/src/components/github-project/picker/ProjectPickerPanels.tsx
+++ b/src/renderer/src/components/github-project/picker/ProjectPickerPanels.tsx
@@ -1,3 +1,4 @@
+import { observeVisibleAnimation } from '@/lib/window-activity/offscreen-animation-pause'
import React from 'react'
import { AlertTriangle, Loader, Pin } from 'lucide-react'
import { GhAuthErrorHelp } from '../auth-errors/GhAuthErrorHelp'
@@ -108,7 +109,7 @@ export function ProjectViewPickStep({
{loading ? (
-
+
{t('auto.components.github.project.ProjectPicker.72a05c04a6', 'Loading views…')}
) : views.length === 0 ? (
diff --git a/src/renderer/src/components/github-project/slug-dialog/SlugDialogBody.tsx b/src/renderer/src/components/github-project/slug-dialog/SlugDialogBody.tsx
index 3af45e407de9..675c349855d3 100644
--- a/src/renderer/src/components/github-project/slug-dialog/SlugDialogBody.tsx
+++ b/src/renderer/src/components/github-project/slug-dialog/SlugDialogBody.tsx
@@ -1,3 +1,4 @@
+import { observeVisibleAnimation } from '@/lib/window-activity/offscreen-animation-pause'
import type { RuntimeClientTarget } from '../../../../../shared/remote-runtime/host-catalog/runtime-client-target'
import React, { useCallback, useEffect, useMemo, useRef, useState } from 'react'
import { CircleDot, ExternalLink, GitPullRequest, LoaderCircle, X } from 'lucide-react'
@@ -267,7 +268,7 @@ export function SlugDialogBody({
{loading && !details ? (
- {' '}
+ {' '}
{t('auto.components.github.project.slug.dialog.SlugDialogBody.e4ef8281e9', 'Loading…')}
) : error ? (
diff --git a/src/renderer/src/components/github-project/view/ProjectViewStates.tsx b/src/renderer/src/components/github-project/view/ProjectViewStates.tsx
index da0371da3ac8..97b129e333ec 100644
--- a/src/renderer/src/components/github-project/view/ProjectViewStates.tsx
+++ b/src/renderer/src/components/github-project/view/ProjectViewStates.tsx
@@ -1,3 +1,4 @@
+import { observeVisibleAnimation } from '@/lib/window-activity/offscreen-animation-pause'
import React from 'react'
import { ExternalLink, KanbanSquare, Map as MapIcon, Table as TableIcon } from 'lucide-react'
import { Button } from '@/components/ui/button'
@@ -210,18 +211,37 @@ export function ProjectTableSkeleton(): React.JSX.Element {
{Array.from({ length: 6 }).map((_, index) => (
-
+
))}
{Array.from({ length: 12 }).map((_, index) => (
))}
diff --git a/src/renderer/src/components/github-project/view/ProjectViewToolbar.tsx b/src/renderer/src/components/github-project/view/ProjectViewToolbar.tsx
index f6f0d0e05265..f7037901edd8 100644
--- a/src/renderer/src/components/github-project/view/ProjectViewToolbar.tsx
+++ b/src/renderer/src/components/github-project/view/ProjectViewToolbar.tsx
@@ -1,3 +1,4 @@
+import { observeVisibleAnimation } from '@/lib/window-activity/offscreen-animation-pause'
import React, { useEffect, useRef, useState } from 'react'
import { ExternalLink, RefreshCw, Search, X } from 'lucide-react'
import { Button } from '@/components/ui/button'
@@ -125,7 +126,10 @@ export function ProjectViewToolbar({ tableState }: { tableState: ProjectViewTabl
aria-label={refreshLabel}
title={refreshLabel}
>
-
+
>
) : null}
diff --git a/src/renderer/src/components/github/CommentCodeContext.tsx b/src/renderer/src/components/github/CommentCodeContext.tsx
index 73d203293efe..ead582641328 100644
--- a/src/renderer/src/components/github/CommentCodeContext.tsx
+++ b/src/renderer/src/components/github/CommentCodeContext.tsx
@@ -1,3 +1,4 @@
+import { observeVisibleAnimation } from '@/lib/window-activity/offscreen-animation-pause'
import React, { Suspense, useCallback, useEffect, useMemo, useState } from 'react'
import { lazyWithRetry as lazy } from '@/app-shell/startup/lazy-with-retry'
import { ArrowDown, ArrowUp, Braces, LoaderCircle, UndoDot } from 'lucide-react'
@@ -158,7 +159,7 @@ export function CommentCodeContext({
if (!contents) {
return (
-
+
{t('auto.components.GitHubItemDialog.db61d76cd5', 'Loading code context…')}
)
diff --git a/src/renderer/src/components/github/PRAssigneesPanel.tsx b/src/renderer/src/components/github/PRAssigneesPanel.tsx
index 84c629574571..92c1655b442c 100644
--- a/src/renderer/src/components/github/PRAssigneesPanel.tsx
+++ b/src/renderer/src/components/github/PRAssigneesPanel.tsx
@@ -1,3 +1,4 @@
+import { observeVisibleAnimation } from '@/lib/window-activity/offscreen-animation-pause'
import React, { useCallback, useMemo, useState } from 'react'
import { useShallow } from 'zustand/react/shallow'
import { LoaderCircle, Pencil } from 'lucide-react'
@@ -187,7 +188,10 @@ export function PRAssigneesPanel({
className="rounded p-0.5 text-muted-foreground transition hover:bg-accent hover:text-foreground disabled:opacity-50"
>
{isPending('assignees') ? (
-
+
) : (
)}
diff --git a/src/renderer/src/components/github/PRViewedCheckbox.tsx b/src/renderer/src/components/github/PRViewedCheckbox.tsx
index fa22bb97e4df..b39a57201bda 100644
--- a/src/renderer/src/components/github/PRViewedCheckbox.tsx
+++ b/src/renderer/src/components/github/PRViewedCheckbox.tsx
@@ -1,3 +1,4 @@
+import { observeVisibleAnimation } from '@/lib/window-activity/offscreen-animation-pause'
import React from 'react'
import { Check, LoaderCircle } from 'lucide-react'
import { Tooltip, TooltipContent, TooltipTrigger } from '@/components/ui/tooltip'
@@ -50,7 +51,10 @@ export function PRViewedCheckbox({
)}
>
{pending ? (
-
+
) : checked ? (
) : null}
diff --git a/src/renderer/src/components/github/github-rate-limit-display.tsx b/src/renderer/src/components/github/github-rate-limit-display.tsx
index c4171cee3477..63bd01bbe8e9 100644
--- a/src/renderer/src/components/github/github-rate-limit-display.tsx
+++ b/src/renderer/src/components/github/github-rate-limit-display.tsx
@@ -1,3 +1,4 @@
+import { observeVisibleAnimation } from '@/lib/window-activity/offscreen-animation-pause'
import React, { useCallback, useEffect, useRef, useState } from 'react'
import { Gauge, RefreshCw } from 'lucide-react'
import { cn } from '@/lib/class-names'
@@ -227,7 +228,10 @@ export function GitHubRateLimitPanel({
'Refresh GitHub API budget'
)}
>
-
+
{hasError ? (
diff --git a/src/renderer/src/components/gitlab-item-dialog/gitlab-conversation-tab.tsx b/src/renderer/src/components/gitlab-item-dialog/gitlab-conversation-tab.tsx
index 7af28cd149cb..fcb4ef56d19a 100644
--- a/src/renderer/src/components/gitlab-item-dialog/gitlab-conversation-tab.tsx
+++ b/src/renderer/src/components/gitlab-item-dialog/gitlab-conversation-tab.tsx
@@ -1,3 +1,4 @@
+import { observeVisibleAnimation } from '@/lib/window-activity/offscreen-animation-pause'
import { LoaderCircle } from 'lucide-react'
import { TabsContent } from '@/components/ui/tabs'
import { useTranslate } from '@/i18n/use-translate'
@@ -20,7 +21,10 @@ export function GitLabConversationTab({ item, state, reviewActions }: Props) {
{loading && !details ? (
-
+
) : details?.comments?.length ? (
details.comments.map((comment) => (
diff --git a/src/renderer/src/components/gitlab-item-dialog/gitlab-description-tab.tsx b/src/renderer/src/components/gitlab-item-dialog/gitlab-description-tab.tsx
index bc52c71a8031..a50082c2ef9f 100644
--- a/src/renderer/src/components/gitlab-item-dialog/gitlab-description-tab.tsx
+++ b/src/renderer/src/components/gitlab-item-dialog/gitlab-description-tab.tsx
@@ -1,3 +1,4 @@
+import { observeVisibleAnimation } from '@/lib/window-activity/offscreen-animation-pause'
import { Check, LoaderCircle, Pencil, X } from 'lucide-react'
import CommentMarkdown from '@/components/comment-markdown/CommentMarkdown'
import { Button } from '@/components/ui/button'
@@ -106,7 +107,12 @@ export function GitLabDescriptionTab({ item, state, detailsEditing, reviewAction
disabled={reviewerOptionsLoading}
onClick={() => void loadGitLabReviewerOptions()}
>
- {reviewerOptionsLoading ? : null}
+ {reviewerOptionsLoading ? (
+
+ ) : null}
{t('auto.components.GitLabItemDialog.cb55b0390f', 'Manage')}
@@ -175,7 +181,12 @@ export function GitLabDescriptionTab({ item, state, detailsEditing, reviewAction
}
}}
>
- {reviewerUpdating ? : null}
+ {reviewerUpdating ? (
+
+ ) : null}
{t('auto.components.GitLabItemDialog.7a2117129a', 'Add')}
@@ -203,7 +214,10 @@ export function GitLabDescriptionTab({ item, state, detailsEditing, reviewAction
) : null}
{loading && !details ? (
-
+
) : editingDetails ? (
@@ -245,7 +259,10 @@ export function GitLabDescriptionTab({ item, state, detailsEditing, reviewAction
{labelOptionsLoading ? (
-
+
{t('auto.components.GitLabItemDialog.717b706849', 'Loading labels')}
) : null}
@@ -292,7 +309,10 @@ export function GitLabDescriptionTab({ item, state, detailsEditing, reviewAction
onClick={() => void handleSaveDetails()}
>
{detailsSaving ? (
-
+
) : (
)}
diff --git a/src/renderer/src/components/gitlab-item-dialog/gitlab-files-tab.tsx b/src/renderer/src/components/gitlab-item-dialog/gitlab-files-tab.tsx
index 4c5b020e18c7..89889086e925 100644
--- a/src/renderer/src/components/gitlab-item-dialog/gitlab-files-tab.tsx
+++ b/src/renderer/src/components/gitlab-item-dialog/gitlab-files-tab.tsx
@@ -1,3 +1,4 @@
+import { observeVisibleAnimation } from '@/lib/window-activity/offscreen-animation-pause'
import { LoaderCircle, Send } from 'lucide-react'
import { Button } from '@/components/ui/button'
import { TabsContent } from '@/components/ui/tabs'
@@ -34,7 +35,10 @@ export function GitLabFilesTab({ item, state, reviewActions }: Props) {
{loading && !details ? (
-
+
) : details?.files?.length ? (
<>
@@ -80,7 +84,10 @@ export function GitLabFilesTab({ item, state, reviewActions }: Props) {
onClick={() => void reviewActions.handleSubmitInlineComment()}
>
{inlineCommentSubmitting ? (
-
+
) : (
)}
diff --git a/src/renderer/src/components/gitlab-item-dialog/gitlab-item-dialog-parts.tsx b/src/renderer/src/components/gitlab-item-dialog/gitlab-item-dialog-parts.tsx
index f408b992b6e1..5e819484d770 100644
--- a/src/renderer/src/components/gitlab-item-dialog/gitlab-item-dialog-parts.tsx
+++ b/src/renderer/src/components/gitlab-item-dialog/gitlab-item-dialog-parts.tsx
@@ -1,3 +1,4 @@
+import { observeVisibleAnimation } from '@/lib/window-activity/offscreen-animation-pause'
import React from 'react'
import { AlertTriangle, ExternalLink, LoaderCircle } from 'lucide-react'
import { toast } from 'sonner'
@@ -163,7 +164,12 @@ export function CommentCard({
onClick={() => onResolve(comment.threadId ?? '', !comment.isResolved)}
className="h-6"
>
- {resolving ? : null}
+ {resolving ? (
+
+ ) : null}
{comment.isResolved
? t('auto.components.GitLabItemDialog.65e784c1f1', 'Reopen')
: t('auto.components.GitLabItemDialog.4168eb2c51', 'Resolve')}
@@ -245,7 +251,12 @@ export function PipelineJobRow({
onClick={() => onRetry(job)}
className="h-6"
>
- {retrying ? : null}
+ {retrying ? (
+
+ ) : null}
{t('auto.components.GitLabItemDialog.fa3e042203', 'Retry')}
) : null}
@@ -272,7 +283,10 @@ export function PipelineJobRow({
{traceState?.loading ? (
-
+
{t('auto.components.GitLabItemDialog.d600c2619a', 'Loading log')}
) : traceState?.error ? (
diff --git a/src/renderer/src/components/gitlab-item-dialog/gitlab-item-dialog-view.tsx b/src/renderer/src/components/gitlab-item-dialog/gitlab-item-dialog-view.tsx
index 1280e87f4392..67ed267c142e 100644
--- a/src/renderer/src/components/gitlab-item-dialog/gitlab-item-dialog-view.tsx
+++ b/src/renderer/src/components/gitlab-item-dialog/gitlab-item-dialog-view.tsx
@@ -1,3 +1,4 @@
+import { observeVisibleAnimation } from '@/lib/window-activity/offscreen-animation-pause'
import { ImeTextarea } from '@/lib/text-input/ime/ime-text-field'
import { CircleDot, ExternalLink, GitMerge, LoaderCircle, RefreshCw, Send, X } from 'lucide-react'
import * as VisuallyHidden from 'radix-ui/visually-hidden'
@@ -126,7 +127,10 @@ export function GitLabItemDialogView({
className="size-7"
>
{loading ? (
-
+
) : (
)}
@@ -227,7 +231,10 @@ export function GitLabItemDialogView({
className="shrink-0 gap-1.5"
>
{commentSubmitting ? (
-
+
) : (
)}
@@ -258,7 +265,10 @@ export function GitLabItemDialogView({
onClick={() => void primaryActions.handleMerge()}
>
{actionInFlight === 'merge' ? (
-
+
) : null}
{t('auto.components.GitLabItemDialog.16b3412570', 'Merge')}
@@ -271,7 +281,10 @@ export function GitLabItemDialogView({
onClick={() => void primaryActions.handleClose()}
>
{actionInFlight === 'close' ? (
-
+
) : null}
{t('auto.components.GitLabItemDialog.a199eb364b', 'Close')}
@@ -284,7 +297,10 @@ export function GitLabItemDialogView({
onClick={() => void primaryActions.handleReopen()}
>
{actionInFlight === 'reopen' ? (
-
+
) : null}
{t('auto.components.GitLabItemDialog.65e784c1f1', 'Reopen')}
diff --git a/src/renderer/src/components/gitlab-item-dialog/gitlab-pipeline-tab.tsx b/src/renderer/src/components/gitlab-item-dialog/gitlab-pipeline-tab.tsx
index d358482a62da..02c379806253 100644
--- a/src/renderer/src/components/gitlab-item-dialog/gitlab-pipeline-tab.tsx
+++ b/src/renderer/src/components/gitlab-item-dialog/gitlab-pipeline-tab.tsx
@@ -1,3 +1,4 @@
+import { observeVisibleAnimation } from '@/lib/window-activity/offscreen-animation-pause'
import { CircleDashed, ExternalLink, LoaderCircle } from 'lucide-react'
import { TabsContent } from '@/components/ui/tabs'
import { useTranslate } from '@/i18n/use-translate'
@@ -36,7 +37,10 @@ export function GitLabPipelineTab({ item, state, pipelineActions }: Props) {
{loading && !details ? (
-
+
) : (
diff --git a/src/renderer/src/components/gitlab/gitlab-rate-limit-display.tsx b/src/renderer/src/components/gitlab/gitlab-rate-limit-display.tsx
index 2a4681134f46..7665f9bc7581 100644
--- a/src/renderer/src/components/gitlab/gitlab-rate-limit-display.tsx
+++ b/src/renderer/src/components/gitlab/gitlab-rate-limit-display.tsx
@@ -1,3 +1,4 @@
+import { observeVisibleAnimation } from '@/lib/window-activity/offscreen-animation-pause'
import React, { useCallback, useEffect, useRef, useState } from 'react'
import { Gauge, RefreshCw } from 'lucide-react'
import { Button } from '@/components/ui/button'
@@ -210,7 +211,10 @@ export function GitLabRateLimitPanel({
'Refresh GitLab API budget'
)}
>
-
+
{hasError ? (
diff --git a/src/renderer/src/components/integrations/presentation/integration-card-shell.tsx b/src/renderer/src/components/integrations/presentation/integration-card-shell.tsx
index ac2e5ada06df..fbe087a679a3 100644
--- a/src/renderer/src/components/integrations/presentation/integration-card-shell.tsx
+++ b/src/renderer/src/components/integrations/presentation/integration-card-shell.tsx
@@ -1,3 +1,4 @@
+import { observeVisibleAnimation } from '@/lib/window-activity/offscreen-animation-pause'
import { LoaderCircle } from 'lucide-react'
import { cn } from '@/lib/class-names'
import { useIntegrationCardShellClass } from './integration-card-presentation'
@@ -24,7 +25,10 @@ export function IntegrationCardShell(props: {
}): React.JSX.Element {
const shellClass = useIntegrationCardShellClass(props.className)
const status = props.checking ? (
-
+
) : (
{disconnecting ? (
-
+
) : (
)}
diff --git a/src/renderer/src/components/integrations/task-trackers/jira-connect-dialog.tsx b/src/renderer/src/components/integrations/task-trackers/jira-connect-dialog.tsx
index 98bcda574e98..3ab237d5020e 100644
--- a/src/renderer/src/components/integrations/task-trackers/jira-connect-dialog.tsx
+++ b/src/renderer/src/components/integrations/task-trackers/jira-connect-dialog.tsx
@@ -1,3 +1,4 @@
+import { observeVisibleAnimation } from '@/lib/window-activity/offscreen-animation-pause'
import { jiraCredentialStorageCopy } from './jira-credential-storage-copy'
import {
taskProviderErrorMessage,
@@ -377,7 +378,10 @@ export function JiraConnectDialog({
{connectState === 'connecting' ? (
<>
-
+
{t('auto.components.jira.connect.dialog.4a2ab52781', 'Verifying…')}
>
) : (
diff --git a/src/renderer/src/components/integrations/task-trackers/jira-integration-card.tsx b/src/renderer/src/components/integrations/task-trackers/jira-integration-card.tsx
index 07c46eb2c7bc..74a023825bfa 100644
--- a/src/renderer/src/components/integrations/task-trackers/jira-integration-card.tsx
+++ b/src/renderer/src/components/integrations/task-trackers/jira-integration-card.tsx
@@ -1,3 +1,4 @@
+import { observeVisibleAnimation } from '@/lib/window-activity/offscreen-animation-pause'
import { taskProviderErrorMessage } from '@/lib/work-items/task-provider-error-copy'
import { UnsealedCredentialNotice } from '../../provider-accounts/UnsealedCredentialNotice'
import { useState } from 'react'
@@ -189,7 +190,10 @@ export function JiraIntegrationCard(): React.JSX.Element {
>
{testing ? (
<>
-
+
{t(
'auto.components.settings.task.tracker.integration.cards.3e7c10d286',
'Testing...'
diff --git a/src/renderer/src/components/integrations/task-trackers/linear-api-key-dialog.tsx b/src/renderer/src/components/integrations/task-trackers/linear-api-key-dialog.tsx
index 816269304c09..d8880b5c7346 100644
--- a/src/renderer/src/components/integrations/task-trackers/linear-api-key-dialog.tsx
+++ b/src/renderer/src/components/integrations/task-trackers/linear-api-key-dialog.tsx
@@ -1,3 +1,4 @@
+import { observeVisibleAnimation } from '@/lib/window-activity/offscreen-animation-pause'
import {
taskProviderErrorMessage,
taskProviderErrorText
@@ -265,7 +266,10 @@ export function LinearApiKeyDialog({
>
{connectState === 'connecting' ? (
<>
-
+
{t('auto.components.linear.api.key.dialog.834a52c084', 'Verifying...')}
>
) : (
diff --git a/src/renderer/src/components/integrations/task-trackers/linear-integration-card.tsx b/src/renderer/src/components/integrations/task-trackers/linear-integration-card.tsx
index 1c2fbde6ce28..443f5b3cb275 100644
--- a/src/renderer/src/components/integrations/task-trackers/linear-integration-card.tsx
+++ b/src/renderer/src/components/integrations/task-trackers/linear-integration-card.tsx
@@ -1,3 +1,4 @@
+import { observeVisibleAnimation } from '@/lib/window-activity/offscreen-animation-pause'
import { taskProviderErrorMessage } from '@/lib/work-items/task-provider-error-copy'
import { UnsealedCredentialNotice } from '../../provider-accounts/UnsealedCredentialNotice'
import { useState } from 'react'
@@ -184,7 +185,10 @@ export function LinearIntegrationCard(): React.JSX.Element {
>
{testing ? (
<>
-
+
{t(
'auto.components.settings.task.tracker.integration.cards.3e7c10d286',
'Testing...'
diff --git a/src/renderer/src/components/languages/LanguagePackDiscoverySummary.tsx b/src/renderer/src/components/languages/LanguagePackDiscoverySummary.tsx
index 7fa24676de20..78ba3fc2b9f3 100644
--- a/src/renderer/src/components/languages/LanguagePackDiscoverySummary.tsx
+++ b/src/renderer/src/components/languages/LanguagePackDiscoverySummary.tsx
@@ -1,3 +1,4 @@
+import { observeVisibleAnimation } from '@/lib/window-activity/offscreen-animation-pause'
import { Trans } from 'react-i18next'
import { LoaderCircle } from 'lucide-react'
import { i18n } from '@/i18n/i18n'
@@ -84,7 +85,10 @@ export function LanguagePackDiscoverySummary({
if (pending) {
return (
-
+
diff --git a/src/renderer/src/components/languages/LanguagePackSuggestionToast.tsx b/src/renderer/src/components/languages/LanguagePackSuggestionToast.tsx
index 82bb009c33af..1827aab83270 100644
--- a/src/renderer/src/components/languages/LanguagePackSuggestionToast.tsx
+++ b/src/renderer/src/components/languages/LanguagePackSuggestionToast.tsx
@@ -1,3 +1,4 @@
+import { observeVisibleAnimation } from '@/lib/window-activity/offscreen-animation-pause'
import { useId } from 'react'
import { Trans } from 'react-i18next'
import { LoaderCircle, X } from 'lucide-react'
@@ -66,7 +67,10 @@ export function LanguagePackSuggestionToast({
aria-live="polite"
className="inline-flex min-h-9 items-center gap-2 text-[12.5px] text-muted-foreground"
>
-
+
diff --git a/src/renderer/src/components/maintenance/terminal-daemon/SeveredTerminalDaemonBanner.tsx b/src/renderer/src/components/maintenance/terminal-daemon/SeveredTerminalDaemonBanner.tsx
index 3e4445e8702f..a198e9517ed1 100644
--- a/src/renderer/src/components/maintenance/terminal-daemon/SeveredTerminalDaemonBanner.tsx
+++ b/src/renderer/src/components/maintenance/terminal-daemon/SeveredTerminalDaemonBanner.tsx
@@ -1,3 +1,4 @@
+import { observeVisibleAnimation } from '@/lib/window-activity/offscreen-animation-pause'
import React from 'react'
import { LoaderCircle, RotateCw, TriangleAlert, X } from 'lucide-react'
import { toast } from 'sonner'
@@ -203,7 +204,12 @@ export function SeveredTerminalDaemonBanner(): React.JSX.Element | null {
{t('terminal.severedDaemonBanner.cancel', 'Cancel')}
void restart()}>
- {restarting ? : null}
+ {restarting ? (
+
+ ) : null}
{t('terminal.severedDaemonBanner.confirm', 'Restart and end processes')}
diff --git a/src/renderer/src/components/maintenance/update-card/UpdateAvailableCardContent.tsx b/src/renderer/src/components/maintenance/update-card/UpdateAvailableCardContent.tsx
index bb2f402c5cce..7943860070be 100644
--- a/src/renderer/src/components/maintenance/update-card/UpdateAvailableCardContent.tsx
+++ b/src/renderer/src/components/maintenance/update-card/UpdateAvailableCardContent.tsx
@@ -1,3 +1,4 @@
+import { observeVisibleAnimation } from '@/lib/window-activity/offscreen-animation-pause'
import { X } from 'lucide-react'
import type { ChangelogData } from '../../../../../shared/updater/update-status-types'
import { Button } from '../../ui/button'
@@ -67,7 +68,8 @@ export function UpdateAvailableRichContent({
{!mediaLoaded && (
)}
diff --git a/src/renderer/src/components/maintenance/update-card/UpdateCardStateContent.tsx b/src/renderer/src/components/maintenance/update-card/UpdateCardStateContent.tsx
index e750e75821b3..3a126d5bdd0c 100644
--- a/src/renderer/src/components/maintenance/update-card/UpdateCardStateContent.tsx
+++ b/src/renderer/src/components/maintenance/update-card/UpdateCardStateContent.tsx
@@ -1,3 +1,4 @@
+import { observeVisibleAnimation } from '@/lib/window-activity/offscreen-animation-pause'
import { Loader2 } from 'lucide-react'
import type {
ChangelogData,
@@ -100,7 +101,10 @@ export function UpdateCardStateContent({
return (
-
+
{t('updates.installBlock.preparingTitle', 'Preparing your update')}
diff --git a/src/renderer/src/components/maintenance/update-card/UpdateCheckFeedback.tsx b/src/renderer/src/components/maintenance/update-card/UpdateCheckFeedback.tsx
index 514124d528df..767ba7678441 100644
--- a/src/renderer/src/components/maintenance/update-card/UpdateCheckFeedback.tsx
+++ b/src/renderer/src/components/maintenance/update-card/UpdateCheckFeedback.tsx
@@ -1,3 +1,4 @@
+import { observeVisibleAnimation } from '@/lib/window-activity/offscreen-animation-pause'
import { AlertCircle, Check, Loader2, X } from 'lucide-react'
import { Button } from '../../ui/button'
import { useTranslate } from '@/i18n/use-translate'
@@ -18,7 +19,9 @@ export function UpdateCheckFeedback({
return (
- {icon === 'spinner' &&
}
+ {icon === 'spinner' && (
+
+ )}
{icon === 'check' &&
}
{icon === 'error' &&
}
diff --git a/src/renderer/src/components/maintenance/update-card/UpdateDownloadCardContent.tsx b/src/renderer/src/components/maintenance/update-card/UpdateDownloadCardContent.tsx
index cd37bcff8ef7..114938016bcf 100644
--- a/src/renderer/src/components/maintenance/update-card/UpdateDownloadCardContent.tsx
+++ b/src/renderer/src/components/maintenance/update-card/UpdateDownloadCardContent.tsx
@@ -1,3 +1,4 @@
+import { observeVisibleAnimation } from '@/lib/window-activity/offscreen-animation-pause'
import { Minus } from 'lucide-react'
import type { ChangelogData } from '../../../../../shared/updater/update-status-types'
import { getReleaseNotesUrlForVersion } from '../../../../../shared/updater/release-channel'
@@ -64,7 +65,8 @@ export function UpdateDownloadingContent({
{!mediaLoaded && (
)}
diff --git a/src/renderer/src/components/maintenance/update-card/UpdateErrorCardContent.tsx b/src/renderer/src/components/maintenance/update-card/UpdateErrorCardContent.tsx
index d0c1640bc517..0797bd59446b 100644
--- a/src/renderer/src/components/maintenance/update-card/UpdateErrorCardContent.tsx
+++ b/src/renderer/src/components/maintenance/update-card/UpdateErrorCardContent.tsx
@@ -1,3 +1,4 @@
+import { observeVisibleAnimation } from '@/lib/window-activity/offscreen-animation-pause'
import { useId, useState } from 'react'
import {
AlertCircle,
@@ -62,7 +63,11 @@ function ActionButton({
// Explicitly dim aria-disabled because ui/button styles only native disabled.
className="flex-1 gap-1.5 aria-disabled:cursor-default aria-disabled:opacity-50"
>
- {action.isPending ?
: leadingIcon}
+ {action.isPending ? (
+
+ ) : (
+ leadingIcon
+ )}
{action.isPending && action.pendingLabel ? action.pendingLabel : action.label}
)
diff --git a/src/renderer/src/components/mobile/WindowsFirewallNotice.tsx b/src/renderer/src/components/mobile/WindowsFirewallNotice.tsx
index 9c43b7199870..d2b5d0ebbec5 100644
--- a/src/renderer/src/components/mobile/WindowsFirewallNotice.tsx
+++ b/src/renderer/src/components/mobile/WindowsFirewallNotice.tsx
@@ -1,3 +1,4 @@
+import { observeVisibleAnimation } from '@/lib/window-activity/offscreen-animation-pause'
import { useCallback, useEffect, useRef, useState } from 'react'
import { CircleAlert, Loader2, ShieldCheck } from 'lucide-react'
import { toast } from 'sonner'
@@ -199,7 +200,7 @@ export function WindowsFirewallNotice({
) : (
void repair()} disabled={repairing}>
{repairing ? (
-
+
) : (
)}
diff --git a/src/renderer/src/components/mobile/mobile-relay-mint-failure-notice.tsx b/src/renderer/src/components/mobile/mobile-relay-mint-failure-notice.tsx
index d6bf178c5799..b258af883553 100644
--- a/src/renderer/src/components/mobile/mobile-relay-mint-failure-notice.tsx
+++ b/src/renderer/src/components/mobile/mobile-relay-mint-failure-notice.tsx
@@ -1,3 +1,4 @@
+import { observeVisibleAnimation } from '@/lib/window-activity/offscreen-animation-pause'
import { useEffect, useState } from 'react'
import { CircleAlert, Loader2 } from 'lucide-react'
import { Button } from '../ui/button'
@@ -106,7 +107,11 @@ export function MobileRelayMintFailureNotice({
data-testid="relay-mint-failure-notice"
>
{visibleBusy ? (
-
+
) : (
)}
@@ -131,7 +136,9 @@ export function MobileRelayMintFailureNotice({
disabled={busy}
className="w-28"
>
- {visibleBusy ? : null}
+ {visibleBusy ? (
+
+ ) : null}
{visibleBusy
? t('auto.components.mobile.MobileRelayMintFailureNotice.retrying', 'Retrying…')
: t('auto.components.mobile.MobileRelayMintFailureNotice.retry', 'Retry Relay')}
diff --git a/src/renderer/src/components/native-chat-recovery/runs/NativeChatResumeRunPanel.tsx b/src/renderer/src/components/native-chat-recovery/runs/NativeChatResumeRunPanel.tsx
index b1080a734564..c20d590e6da5 100644
--- a/src/renderer/src/components/native-chat-recovery/runs/NativeChatResumeRunPanel.tsx
+++ b/src/renderer/src/components/native-chat-recovery/runs/NativeChatResumeRunPanel.tsx
@@ -1,3 +1,4 @@
+import { observeVisibleAnimation } from '@/lib/window-activity/offscreen-animation-pause'
import { useState } from 'react'
import { Loader2 } from 'lucide-react'
import { translate } from '@/i18n/i18n'
@@ -66,7 +67,10 @@ function runTitle(
}
return (
-
+
{t('auto.components.NativeChatResumeRunPanel.resumingCount', 'Resuming {{count}} chats', {
count: total,
defaultValue_one: 'Resuming {{count}} chat'
diff --git a/src/renderer/src/components/native-chat-recovery/runs/NativeChatResumeRunStatusIcon.tsx b/src/renderer/src/components/native-chat-recovery/runs/NativeChatResumeRunStatusIcon.tsx
index d24607e23d2e..f8e2b8e64115 100644
--- a/src/renderer/src/components/native-chat-recovery/runs/NativeChatResumeRunStatusIcon.tsx
+++ b/src/renderer/src/components/native-chat-recovery/runs/NativeChatResumeRunStatusIcon.tsx
@@ -1,3 +1,4 @@
+import { observeVisibleAnimation } from '@/lib/window-activity/offscreen-animation-pause'
import { AlertCircle, Check, Clock, Loader2 } from 'lucide-react'
import { Tooltip, TooltipContent, TooltipTrigger } from '../../ui/tooltip'
import { translate } from '@/i18n/i18n'
@@ -47,7 +48,12 @@ function statusText(
function StatusGlyph({ status }: { status: ResumeRunRowStatus }): React.JSX.Element {
switch (status.kind) {
case 'in-flight':
- return
+ return (
+
+ )
case 'resumed':
return
case 'unconfirmed':
diff --git a/src/renderer/src/components/native-chat/NativeChatAutomationCardDetails.tsx b/src/renderer/src/components/native-chat/NativeChatAutomationCardDetails.tsx
index fe64531f0d1d..6d008a3922f1 100644
--- a/src/renderer/src/components/native-chat/NativeChatAutomationCardDetails.tsx
+++ b/src/renderer/src/components/native-chat/NativeChatAutomationCardDetails.tsx
@@ -1,3 +1,4 @@
+import { observeVisibleAnimation } from '@/lib/window-activity/offscreen-animation-pause'
import { useState, type ReactNode } from 'react'
import { Loader2 } from 'lucide-react'
import { toast } from 'sonner'
@@ -232,7 +233,8 @@ export function NativeChatAutomationCardDetails({
{details.status === 'loading' ? (
) : details.status === 'deleted' ? (
diff --git a/src/renderer/src/components/native-chat/links/previews/NativeChatGitHubLinkPeek.tsx b/src/renderer/src/components/native-chat/links/previews/NativeChatGitHubLinkPeek.tsx
index f1a0d6314da4..fbeaed16835d 100644
--- a/src/renderer/src/components/native-chat/links/previews/NativeChatGitHubLinkPeek.tsx
+++ b/src/renderer/src/components/native-chat/links/previews/NativeChatGitHubLinkPeek.tsx
@@ -1,3 +1,4 @@
+import { observeVisibleAnimation } from '@/lib/window-activity/offscreen-animation-pause'
import { useMemo, useSyncExternalStore, type ReactNode } from 'react'
import { useAppStore } from '@/store/index'
import { Button } from '@/components/ui/button'
@@ -199,7 +200,11 @@ function GitHubPeekContent({
>
) : otherRepoFallback !== undefined ? null : state.status === 'loading' ? (
-
+
diff --git a/src/renderer/src/components/native-chat/links/previews/NativeChatWebLinkPeek.tsx b/src/renderer/src/components/native-chat/links/previews/NativeChatWebLinkPeek.tsx
index c2d7700269f7..6b07326315dc 100644
--- a/src/renderer/src/components/native-chat/links/previews/NativeChatWebLinkPeek.tsx
+++ b/src/renderer/src/components/native-chat/links/previews/NativeChatWebLinkPeek.tsx
@@ -1,3 +1,4 @@
+import { observeVisibleAnimation } from '@/lib/window-activity/offscreen-animation-pause'
import { Globe } from 'lucide-react'
import { useTranslate } from '@/i18n/use-translate'
import { loadWebLinkPreview, readCachedWebLinkPreview } from './native-chat-web-link-preview'
@@ -47,7 +48,11 @@ export function NativeChatWebPeekBody({
) : null}
>
) : state.status === 'loading' ? (
-
+
diff --git a/src/renderer/src/components/native-chat/messages/actions/NativeChatForkAction.tsx b/src/renderer/src/components/native-chat/messages/actions/NativeChatForkAction.tsx
index 7dfffd98b9f3..cb7128a185b4 100644
--- a/src/renderer/src/components/native-chat/messages/actions/NativeChatForkAction.tsx
+++ b/src/renderer/src/components/native-chat/messages/actions/NativeChatForkAction.tsx
@@ -1,3 +1,4 @@
+import { observeVisibleAnimation } from '@/lib/window-activity/offscreen-animation-pause'
import { GitFork, Loader2 } from 'lucide-react'
import { Tooltip, TooltipContent, TooltipTrigger } from '@/components/ui/tooltip'
import { useTranslate } from '@/i18n/use-translate'
@@ -35,7 +36,7 @@ export function NativeChatForkAction({
}}
>
{fork.pendingItemId === itemId ? (
-
+
) : (
)}
diff --git a/src/renderer/src/components/native-chat/prompts/NativeChatApprovalCard.tsx b/src/renderer/src/components/native-chat/prompts/NativeChatApprovalCard.tsx
index b95b148f1c2e..ef67e0166b4f 100644
--- a/src/renderer/src/components/native-chat/prompts/NativeChatApprovalCard.tsx
+++ b/src/renderer/src/components/native-chat/prompts/NativeChatApprovalCard.tsx
@@ -4,6 +4,7 @@ import { ChevronDown, Loader2, ShieldQuestion, X } from 'lucide-react'
import { NativeChatApprovalDetail } from './NativeChatApprovalDetail'
import { approvalDetailPreview } from '../../../../../shared/agent-session/requests/prompts/agent-session-approval-detail-preview'
import { cn } from '@/lib/class-names'
+import { observeVisibleAnimation } from '@/lib/window-activity/offscreen-animation-pause'
import { useTranslate } from '@/i18n/use-translate'
import { NativeChatMarkdown } from '../markdown/NativeChatMarkdown'
import { approvalBlockedPathToShow } from '../../../../../shared/agent-session/requests/prompts/agent-session-approval-blocked-path'
@@ -354,7 +355,11 @@ export function NativeChatApprovalCard({
>
{isSubmitting && opt.send === submittingOption ? (
-
+
{optionLabel(opt)}
) : (
diff --git a/src/renderer/src/components/native-chat/prompts/NativeChatAwaitingInputRow.tsx b/src/renderer/src/components/native-chat/prompts/NativeChatAwaitingInputRow.tsx
index 43e790b2f340..fab9980c612f 100644
--- a/src/renderer/src/components/native-chat/prompts/NativeChatAwaitingInputRow.tsx
+++ b/src/renderer/src/components/native-chat/prompts/NativeChatAwaitingInputRow.tsx
@@ -1,3 +1,4 @@
+import { observeVisibleAnimation } from '@/lib/window-activity/offscreen-animation-pause'
import { NativeChatQuestionText } from './NativeChatQuestionText'
import { ChevronRight } from 'lucide-react'
import { cn } from '@/lib/class-names'
@@ -60,7 +61,10 @@ export function NativeChatAwaitingInputRow({
iconName="message-square-more"
className="text-chat-foreground-faint"
/>
-
+
{label}
{question !== null && toggles && open ? null : (
diff --git a/src/renderer/src/components/native-chat/session/options/controls/NativeChatModelCliUpdateRow.tsx b/src/renderer/src/components/native-chat/session/options/controls/NativeChatModelCliUpdateRow.tsx
index a620daf8a5dd..058076728222 100644
--- a/src/renderer/src/components/native-chat/session/options/controls/NativeChatModelCliUpdateRow.tsx
+++ b/src/renderer/src/components/native-chat/session/options/controls/NativeChatModelCliUpdateRow.tsx
@@ -4,6 +4,7 @@ import { useTranslate } from '@/i18n/use-translate'
import { agentCliProductName } from '@/components/agent-cli-update/agent-cli-product-name'
import { AgentCliUpdateFailedChip } from '@/components/agent-cli-update/AgentCliUpdateFailedChip'
import type { SessionOptionsCliUpdate } from '../../../../../../../shared/native-chat/input/native-chat-session-options'
+import { observeVisibleAnimation } from '@/lib/window-activity/offscreen-animation-pause'
/** Only for the user's own CLI behind its latest release; Orca's own copy updates by itself. */
export function NativeChatModelCliUpdateRow({
@@ -35,7 +36,7 @@ export function NativeChatModelCliUpdateRow({
{running ? (
<>
{t('agentCliUpdate.updating', 'Updating…')}
-
+
>
) : update.phase === 'failed' ? (
diff --git a/src/renderer/src/components/native-chat/tools/runs/NativeChatToolRun.tsx b/src/renderer/src/components/native-chat/tools/runs/NativeChatToolRun.tsx
index 2e24ac915328..f972d4aee039 100644
--- a/src/renderer/src/components/native-chat/tools/runs/NativeChatToolRun.tsx
+++ b/src/renderer/src/components/native-chat/tools/runs/NativeChatToolRun.tsx
@@ -1,3 +1,4 @@
+import { observeVisibleAnimation } from '@/lib/window-activity/offscreen-animation-pause'
import { useMemo } from 'react'
import { useTranslation } from 'react-i18next'
import { NativeChatExpandable } from '../../messages/disclosure/NativeChatExpandable'
@@ -194,10 +195,11 @@ export function NativeChatToolRun({
) : null}
{/* Keep the collapsed header bounded; the tool detail carries the full command. */}
diff --git a/src/renderer/src/components/native-chat/usage/NativeChatAccountUsageCard.tsx b/src/renderer/src/components/native-chat/usage/NativeChatAccountUsageCard.tsx
index e9fbd7713dbf..fcac2742d56b 100644
--- a/src/renderer/src/components/native-chat/usage/NativeChatAccountUsageCard.tsx
+++ b/src/renderer/src/components/native-chat/usage/NativeChatAccountUsageCard.tsx
@@ -1,3 +1,4 @@
+import { observeVisibleAnimation } from '@/lib/window-activity/offscreen-animation-pause'
import { createNonSecureContextUuid as createBrowserUuid } from '../../../../../shared/identifiers/non-secure-context-uuid'
import { getManagedAccountInlineLabel } from '../../../../../shared/agent-accounts/managed-account-display-names'
import { useRef, useState } from 'react'
@@ -141,7 +142,7 @@ function LoadingUsageCard(): React.JSX.Element {
{getProviderDisplayName('codex')}
-
+
{t('components.native-chat.usage.loading', 'Loading Codex usage…')}
diff --git a/src/renderer/src/components/native-chat/usage/NativeChatUsageLimitRow.tsx b/src/renderer/src/components/native-chat/usage/NativeChatUsageLimitRow.tsx
index 19652735036d..6a4b8f29c59a 100644
--- a/src/renderer/src/components/native-chat/usage/NativeChatUsageLimitRow.tsx
+++ b/src/renderer/src/components/native-chat/usage/NativeChatUsageLimitRow.tsx
@@ -1,3 +1,4 @@
+import { observeVisibleAnimation } from '@/lib/window-activity/offscreen-animation-pause'
import { useLayoutEffect, useRef, useState } from 'react'
import { Check, Clock, Gauge, Loader2, MessageSquarePlus } from 'lucide-react'
import { toast } from 'sonner'
@@ -338,7 +339,10 @@ export function NativeChatUsageLimitRow({
onClick={actions.handOff}
>
{actions.preparing ? (
-
+
) : (
)}
diff --git a/src/renderer/src/components/native-chat/viewport/rail/NativeChatMessageRail.tsx b/src/renderer/src/components/native-chat/viewport/rail/NativeChatMessageRail.tsx
index 9ecb5df6d1c6..65931df1f95e 100644
--- a/src/renderer/src/components/native-chat/viewport/rail/NativeChatMessageRail.tsx
+++ b/src/renderer/src/components/native-chat/viewport/rail/NativeChatMessageRail.tsx
@@ -1,3 +1,4 @@
+import { observeVisibleAnimation } from '@/lib/window-activity/offscreen-animation-pause'
import { memo, useLayoutEffect, useRef, useState } from 'react'
import { HoverCard, HoverCardContent, HoverCardTrigger } from '@/components/ui/hover-card'
import { cn } from '@/lib/class-names'
@@ -196,12 +197,13 @@ export const NativeChatMessageRail = memo(function NativeChatMessageRail({
)}
>
diff --git a/src/renderer/src/components/network/CustomAddressDialog.tsx b/src/renderer/src/components/network/CustomAddressDialog.tsx
index 0a40b653d514..7e99acf2c166 100644
--- a/src/renderer/src/components/network/CustomAddressDialog.tsx
+++ b/src/renderer/src/components/network/CustomAddressDialog.tsx
@@ -1,3 +1,4 @@
+import { observeVisibleAnimation } from '@/lib/window-activity/offscreen-animation-pause'
import React, { useState } from 'react'
import {
Dialog,
@@ -136,7 +137,13 @@ export function CustomAddressDialog({
{copy.cancel}
void submit()}>
- {submitting ? : null}
+ {submitting ? (
+
+ ) : null}
{copy.confirm}
diff --git a/src/renderer/src/components/new-workspace/composer/NewWorkspaceComposerFooter.tsx b/src/renderer/src/components/new-workspace/composer/NewWorkspaceComposerFooter.tsx
index 6827de2c36a0..5e4dda2a3257 100644
--- a/src/renderer/src/components/new-workspace/composer/NewWorkspaceComposerFooter.tsx
+++ b/src/renderer/src/components/new-workspace/composer/NewWorkspaceComposerFooter.tsx
@@ -1,3 +1,4 @@
+import { observeVisibleAnimation } from '@/lib/window-activity/offscreen-animation-pause'
import React from 'react'
import { LoaderCircle } from 'lucide-react'
import { Button } from '@/components/ui/button'
@@ -80,7 +81,9 @@ export function NewWorkspaceComposerFooter({
// Why: the title already says what is created; the button keeps the full name for AT.
aria-label={primaryActionLabel}
>
- {creating ?
: null}
+ {creating ? (
+
+ ) : null}
{t('auto.components.NewWorkspaceComposerFooter.create', 'Create')}
diff --git a/src/renderer/src/components/new-workspace/composer/NewWorkspaceComposerProjectSection.tsx b/src/renderer/src/components/new-workspace/composer/NewWorkspaceComposerProjectSection.tsx
index b84320b08b67..26ad810b27a5 100644
--- a/src/renderer/src/components/new-workspace/composer/NewWorkspaceComposerProjectSection.tsx
+++ b/src/renderer/src/components/new-workspace/composer/NewWorkspaceComposerProjectSection.tsx
@@ -1,3 +1,4 @@
+import { observeVisibleAnimation } from '@/lib/window-activity/offscreen-animation-pause'
import React, { useMemo } from 'react'
import { FolderPlus, LoaderCircle, PlugZap } from 'lucide-react'
import type { AddRemoteHostMode } from '@/components/sidebar/host-admission/ssh/AddRemoteHostDialog'
@@ -260,7 +261,10 @@ export function NewWorkspaceComposerProjectSection({
className="shrink-0"
>
{selectedRepoConnectInProgress ? (
-
+
) : (
)}
diff --git a/src/renderer/src/components/new-workspace/name-field/smart-workspace-name-input-surface.tsx b/src/renderer/src/components/new-workspace/name-field/smart-workspace-name-input-surface.tsx
index 20faceabe684..f1e95ba218b0 100644
--- a/src/renderer/src/components/new-workspace/name-field/smart-workspace-name-input-surface.tsx
+++ b/src/renderer/src/components/new-workspace/name-field/smart-workspace-name-input-surface.tsx
@@ -1,3 +1,4 @@
+import { observeVisibleAnimation } from '@/lib/window-activity/offscreen-animation-pause'
import React from 'react'
import { ExternalLink, X } from 'lucide-react'
import { Button } from '@/components/ui/button'
@@ -174,9 +175,10 @@ export function renderSmartWorkspaceNameInput(
return (
<>
- {isSubmitting ?
: null}
+ {isSubmitting ? (
+
+ ) : null}
{isSubmitting
? t('auto.components.settings.RepositoryPane.settingUpHost', 'Importing...')
: t(
@@ -182,7 +185,9 @@ export function CloneForm({
}
onClick={onSubmit}
>
- {isSubmitting ?
: null}
+ {isSubmitting ? (
+
+ ) : null}
{isSubmitting
? t('auto.components.settings.RepositoryPane.cloningHost', 'Cloning...')
: t('auto.components.settings.RepositoryPane.cloneHost', 'Clone')}
diff --git a/src/renderer/src/components/new-workspace/run-target/RunTargetRowActions.tsx b/src/renderer/src/components/new-workspace/run-target/RunTargetRowActions.tsx
index f7ffc64d4eb4..df990f6c2755 100644
--- a/src/renderer/src/components/new-workspace/run-target/RunTargetRowActions.tsx
+++ b/src/renderer/src/components/new-workspace/run-target/RunTargetRowActions.tsx
@@ -1,3 +1,4 @@
+import { observeVisibleAnimation } from '@/lib/window-activity/offscreen-animation-pause'
import React from 'react'
import { AlertTriangle, LoaderCircle } from 'lucide-react'
import { Button } from '@/components/ui/button'
@@ -17,7 +18,12 @@ export function NeedsSetupHostIcon({
attention: boolean
}): React.JSX.Element {
if (connecting) {
- return
+ return (
+
+ )
}
if (attention) {
return
@@ -53,7 +59,7 @@ export function ConnectHostButton({
>
{connecting ? (
<>
-
+
{t('auto.components.NewWorkspaceComposerCard.connectingHost', 'Connecting…')}
>
) : (
diff --git a/src/renderer/src/components/new-workspace/source-search/SmartWorkspaceSourceResultList.tsx b/src/renderer/src/components/new-workspace/source-search/SmartWorkspaceSourceResultList.tsx
index a6eee0ab38f4..1d99aa7e86cb 100644
--- a/src/renderer/src/components/new-workspace/source-search/SmartWorkspaceSourceResultList.tsx
+++ b/src/renderer/src/components/new-workspace/source-search/SmartWorkspaceSourceResultList.tsx
@@ -1,3 +1,4 @@
+import { observeVisibleAnimation } from '@/lib/window-activity/offscreen-animation-pause'
import React from 'react'
import { isIntegrationCredentialDecryptionError } from '../../../../../shared/secure-storage/integration-credential-errors'
import { Button } from '@/components/ui/button'
@@ -139,10 +140,11 @@ export function SmartWorkspaceSourceResultList({
>
{[0, 1, 2].map((index) => (
))}
@@ -150,7 +152,11 @@ export function SmartWorkspaceSourceResultList({
) : loading && searchResultRows.length === 0 ? (
{[0, 1, 2].map((index) => (
-
+
))}
) : searchResultRows.length === 0 && !typedTextActionRow && !visibleLinearReadError ? (
diff --git a/src/renderer/src/components/onboarding/AgentStep.tsx b/src/renderer/src/components/onboarding/AgentStep.tsx
index 43e949fa581a..537273b13bdd 100644
--- a/src/renderer/src/components/onboarding/AgentStep.tsx
+++ b/src/renderer/src/components/onboarding/AgentStep.tsx
@@ -1,3 +1,4 @@
+import { observeVisibleAnimation } from '@/lib/window-activity/offscreen-animation-pause'
import { useState } from 'react'
import { ExternalLink } from 'lucide-react'
import { Trans } from 'react-i18next'
@@ -204,8 +205,9 @@ export function AgentStep({
{[0, 1, 2].map((key) => (
))}
diff --git a/src/renderer/src/components/onboarding/GhosttyDiscoveryRow.tsx b/src/renderer/src/components/onboarding/GhosttyDiscoveryRow.tsx
index 6a9513a15565..6c76e2032bda 100644
--- a/src/renderer/src/components/onboarding/GhosttyDiscoveryRow.tsx
+++ b/src/renderer/src/components/onboarding/GhosttyDiscoveryRow.tsx
@@ -1,3 +1,4 @@
+import { observeVisibleAnimation } from '@/lib/window-activity/offscreen-animation-pause'
import { Check } from 'lucide-react'
import type { TerminalConfigImportPreview } from '../../../../shared/terminal/appearance/terminal-config-import-preview'
import ghosttyIcon from '../../../../../resources/ghostty.svg'
@@ -24,7 +25,10 @@ export function GhosttyDiscoveryRow({
if (discovery.status === 'detecting') {
return (
-
+
{t('auto.components.onboarding.ThemeStep.2c3aa538f8', 'Looking for a Ghostty config…')}
)
diff --git a/src/renderer/src/components/onboarding/OnboardingFooter.tsx b/src/renderer/src/components/onboarding/OnboardingFooter.tsx
index 5eaaaef96b41..d00410d8bfec 100644
--- a/src/renderer/src/components/onboarding/OnboardingFooter.tsx
+++ b/src/renderer/src/components/onboarding/OnboardingFooter.tsx
@@ -1,3 +1,4 @@
+import { observeVisibleAnimation } from '@/lib/window-activity/offscreen-animation-pause'
import { ChevronLeft, CornerDownLeft, Loader2 } from 'lucide-react'
import { useTranslate } from '@/i18n/use-translate'
@@ -58,7 +59,9 @@ export function OnboardingFooter({
disabled={Boolean(busyLabel)}
onClick={onPrimary}
>
- {primaryBusy ?
: null}
+ {primaryBusy ? (
+
+ ) : null}
{primaryLabel}
{shortcutModifierLabel}
diff --git a/src/renderer/src/components/onboarding/OnboardingInlineCommandTerminal.tsx b/src/renderer/src/components/onboarding/OnboardingInlineCommandTerminal.tsx
index 315770d00906..78468bbba799 100644
--- a/src/renderer/src/components/onboarding/OnboardingInlineCommandTerminal.tsx
+++ b/src/renderer/src/components/onboarding/OnboardingInlineCommandTerminal.tsx
@@ -1,3 +1,4 @@
+import { observeVisibleAnimation } from '@/lib/window-activity/offscreen-animation-pause'
// COMPAT(wsl-bridge): removed when WSL runs as an orcad host.
import { useCallback, useEffect, useMemo, useRef, useState, type KeyboardEvent } from 'react'
import { Loader2 } from 'lucide-react'
@@ -329,7 +330,7 @@ export function OnboardingInlineCommandTerminal({
/>
) : (
-
+
{t(
'auto.components.onboarding.OnboardingInlineCommandTerminal.4123609efd',
'Starting terminal...'
diff --git a/src/renderer/src/components/orca-profiles/OrcaProfileSignOutConfirmDialog.tsx b/src/renderer/src/components/orca-profiles/OrcaProfileSignOutConfirmDialog.tsx
index 5174dac7f94b..b63384eaf804 100644
--- a/src/renderer/src/components/orca-profiles/OrcaProfileSignOutConfirmDialog.tsx
+++ b/src/renderer/src/components/orca-profiles/OrcaProfileSignOutConfirmDialog.tsx
@@ -1,3 +1,4 @@
+import { observeVisibleAnimation } from '@/lib/window-activity/offscreen-animation-pause'
import { Loader2 } from 'lucide-react'
import { Button } from '@/components/ui/button'
import {
@@ -47,7 +48,9 @@ export function OrcaProfileSignOutConfirmDialog({
{t('auto.components.orca.profiles.signout.confirm.cancel', 'Cancel')}
- {signingOut ? : null}
+ {signingOut ? (
+
+ ) : null}
{t('auto.components.orca.profiles.signout.confirm.action', 'Sign out')}
diff --git a/src/renderer/src/components/orca-profiles/OrcaSignInProgress.tsx b/src/renderer/src/components/orca-profiles/OrcaSignInProgress.tsx
index 861ebe5aa927..811a2afd2b99 100644
--- a/src/renderer/src/components/orca-profiles/OrcaSignInProgress.tsx
+++ b/src/renderer/src/components/orca-profiles/OrcaSignInProgress.tsx
@@ -1,3 +1,4 @@
+import { observeVisibleAnimation } from '@/lib/window-activity/offscreen-animation-pause'
import { Loader2 } from 'lucide-react'
import { toast } from 'sonner'
import { Button } from '../ui/button'
@@ -35,7 +36,7 @@ export function OrcaSignInButton({
>
{signingIn ? (
<>
-
+
{t('auto.components.OrcaSignInProgress.signingIn', 'Signing in…')}
>
) : (
diff --git a/src/renderer/src/components/plugins/catalog/PluginCardAction.tsx b/src/renderer/src/components/plugins/catalog/PluginCardAction.tsx
index a5499e2020be..79f133a2bbe0 100644
--- a/src/renderer/src/components/plugins/catalog/PluginCardAction.tsx
+++ b/src/renderer/src/components/plugins/catalog/PluginCardAction.tsx
@@ -1,3 +1,4 @@
+import { observeVisibleAnimation } from '@/lib/window-activity/offscreen-animation-pause'
import { Loader2 } from 'lucide-react'
import { translate } from '@/i18n/i18n'
import { useTranslate, type Translate } from '@/i18n/use-translate'
@@ -98,7 +99,7 @@ export function PluginCardAction({
if (phase?.kind === 'installing') {
return (
-
+
{installButtonLabel(phase, t)}
)
diff --git a/src/renderer/src/components/plugins/declarative/PluginDeclarativeContent.tsx b/src/renderer/src/components/plugins/declarative/PluginDeclarativeContent.tsx
index 305782025d1a..0be884836758 100644
--- a/src/renderer/src/components/plugins/declarative/PluginDeclarativeContent.tsx
+++ b/src/renderer/src/components/plugins/declarative/PluginDeclarativeContent.tsx
@@ -1,3 +1,4 @@
+import { observeVisibleAnimation } from '@/lib/window-activity/offscreen-animation-pause'
import { NativeChatHighlightedCode } from '@/components/native-chat/markdown/code/NativeChatHighlightedCode'
import { MarkdownGitHubCallout } from '@/components/comment-markdown/markdown-github-callout'
import { useTranslate } from '@/i18n/use-translate'
@@ -135,11 +136,12 @@ export function PluginDeclarativeSkeleton({
>
{Array.from({ length: lines }, (_, index) => (
1}
- className="block animate-pulse bg-muted motion-reduce:animate-none data-[last=true]:w-2/3 data-[shape=block]:h-24 data-[shape=block]:w-full data-[shape=block]:rounded-md data-[shape=circle]:size-8 data-[shape=circle]:rounded-full data-[shape=text]:h-3 data-[shape=text]:rounded"
+ className="block visible-animate-pulse bg-muted motion-reduce:animate-none data-[last=true]:w-2/3 data-[shape=block]:h-24 data-[shape=block]:w-full data-[shape=block]:rounded-md data-[shape=circle]:size-8 data-[shape=circle]:rounded-full data-[shape=text]:h-3 data-[shape=text]:rounded"
/>
))}
diff --git a/src/renderer/src/components/plugins/dialogs/PluginCatalogLinkDialog.tsx b/src/renderer/src/components/plugins/dialogs/PluginCatalogLinkDialog.tsx
index fc7ac548781a..6794941b5ee7 100644
--- a/src/renderer/src/components/plugins/dialogs/PluginCatalogLinkDialog.tsx
+++ b/src/renderer/src/components/plugins/dialogs/PluginCatalogLinkDialog.tsx
@@ -1,3 +1,4 @@
+import { observeVisibleAnimation } from '@/lib/window-activity/offscreen-animation-pause'
import { useRef, useState } from 'react'
import { Loader2 } from 'lucide-react'
import { gitRepositoryOwnerLabel } from '../../../../../shared/plugins/catalog/plugin-marketplace'
@@ -81,7 +82,9 @@ export function PluginCatalogLinkDialog({
{t('auto.components.plugins.PluginCatalogLinkDialog.cancel', 'Cancel')}
void add()}>
- {busy ? : null}
+ {busy ? (
+
+ ) : null}
{t('auto.components.plugins.PluginCatalogLinkDialog.add', 'Add catalog')}
diff --git a/src/renderer/src/components/plugins/dialogs/PluginDevelopmentDialog.tsx b/src/renderer/src/components/plugins/dialogs/PluginDevelopmentDialog.tsx
index 0d7493d4e9ac..a1913a957a1f 100644
--- a/src/renderer/src/components/plugins/dialogs/PluginDevelopmentDialog.tsx
+++ b/src/renderer/src/components/plugins/dialogs/PluginDevelopmentDialog.tsx
@@ -1,3 +1,4 @@
+import { observeVisibleAnimation } from '@/lib/window-activity/offscreen-animation-pause'
import { useState } from 'react'
import { Loader2 } from 'lucide-react'
import { translate } from '@/i18n/i18n'
@@ -139,7 +140,9 @@ export function PluginDevelopmentDialog({
aria-describedby={error ? 'plugin-development-path-error' : undefined}
/>
- {busy ? : null}
+ {busy ? (
+
+ ) : null}
{t('auto.components.settings.PluginDevelopmentSection.add', 'Add path')}
diff --git a/src/renderer/src/components/plugins/dialogs/PluginInstallDialog.tsx b/src/renderer/src/components/plugins/dialogs/PluginInstallDialog.tsx
index fbb5ce01d37c..813edc13d6c9 100644
--- a/src/renderer/src/components/plugins/dialogs/PluginInstallDialog.tsx
+++ b/src/renderer/src/components/plugins/dialogs/PluginInstallDialog.tsx
@@ -1,3 +1,4 @@
+import { observeVisibleAnimation } from '@/lib/window-activity/offscreen-animation-pause'
import { useRef, useState } from 'react'
import { Loader2 } from 'lucide-react'
import type { PluginHostInstallSource } from '../../../../../preload/api/plugins/plugin-host-api'
@@ -257,7 +258,9 @@ export function PluginInstallDialog({
{t('auto.components.settings.PluginInstallDialog.cancel', 'Cancel')}
- {busy ? : null}
+ {busy ? (
+
+ ) : null}
{submitLabel(busy, awaitingGitResolution, t)}
diff --git a/src/renderer/src/components/plugins/dialogs/PluginMarketplaceSourceDialog.tsx b/src/renderer/src/components/plugins/dialogs/PluginMarketplaceSourceDialog.tsx
index 81ce475a16cd..6628bf4151c7 100644
--- a/src/renderer/src/components/plugins/dialogs/PluginMarketplaceSourceDialog.tsx
+++ b/src/renderer/src/components/plugins/dialogs/PluginMarketplaceSourceDialog.tsx
@@ -1,3 +1,4 @@
+import { observeVisibleAnimation } from '@/lib/window-activity/offscreen-animation-pause'
import { useRef, useState } from 'react'
import { Loader2, RefreshCw, Trash2 } from 'lucide-react'
import type { PluginMarketplaceHostSourceState } from '../../../../../preload/api/plugins/plugin-host-api'
@@ -194,7 +195,9 @@ export function PluginMarketplaceSourceDialog({
disabled={Boolean(busyAction) || !url.trim() || !gitRef.trim()}
onClick={() => void add()}
>
- {busyAction === 'add' ? : null}
+ {busyAction === 'add' ? (
+
+ ) : null}
{busyAction === 'add'
? t('auto.components.settings.PluginMarketplaceSourceDialog.adding', 'Adding…')
: t('auto.components.settings.PluginMarketplaceSourceDialog.add', 'Add source')}
@@ -275,7 +278,10 @@ export function PluginMarketplaceSourceDialog({
)}
onClick={() => void refresh(source.id)}
>
-
+
{!source.official ? (
void remove(source.id)}
>
{removing ? (
-
+
) : (
)}
diff --git a/src/renderer/src/components/plugins/dialogs/PluginRemoveDialog.tsx b/src/renderer/src/components/plugins/dialogs/PluginRemoveDialog.tsx
index c3cc9e794885..109cc94b6a0b 100644
--- a/src/renderer/src/components/plugins/dialogs/PluginRemoveDialog.tsx
+++ b/src/renderer/src/components/plugins/dialogs/PluginRemoveDialog.tsx
@@ -1,3 +1,4 @@
+import { observeVisibleAnimation } from '@/lib/window-activity/offscreen-animation-pause'
import { useRef } from 'react'
import { Loader2 } from 'lucide-react'
import type { PluginHostListEntry } from '../../../../../shared/plugins/plugin-list-entry'
@@ -63,7 +64,9 @@ export function PluginRemoveDialog({
disabled={busy || !plugin}
onClick={() => plugin && onConfirm(plugin.pluginKey)}
>
- {busy ? : null}
+ {busy ? (
+
+ ) : null}
{t('auto.components.settings.PluginRemoveDialog.remove', 'Remove')}
diff --git a/src/renderer/src/components/plugins/dialogs/PluginRollbackDialog.tsx b/src/renderer/src/components/plugins/dialogs/PluginRollbackDialog.tsx
index 89e4b6075c89..1758220a62ac 100644
--- a/src/renderer/src/components/plugins/dialogs/PluginRollbackDialog.tsx
+++ b/src/renderer/src/components/plugins/dialogs/PluginRollbackDialog.tsx
@@ -1,3 +1,4 @@
+import { observeVisibleAnimation } from '@/lib/window-activity/offscreen-animation-pause'
import { useRef } from 'react'
import { Loader2 } from 'lucide-react'
import type { PluginHostListEntry } from '../../../../../shared/plugins/plugin-list-entry'
@@ -70,7 +71,9 @@ export function PluginRollbackDialog({
disabled={busy || !plugin}
onClick={() => plugin && onConfirm(plugin.pluginKey)}
>
- {busy ? : null}
+ {busy ? (
+
+ ) : null}
{t('auto.components.settings.PluginRollbackDialog.confirm', 'Roll back')}
diff --git a/src/renderer/src/components/plugins/dialogs/PluginUpdateAllDialog.tsx b/src/renderer/src/components/plugins/dialogs/PluginUpdateAllDialog.tsx
index 045c1dd9717c..32ad199cc0bb 100644
--- a/src/renderer/src/components/plugins/dialogs/PluginUpdateAllDialog.tsx
+++ b/src/renderer/src/components/plugins/dialogs/PluginUpdateAllDialog.tsx
@@ -1,3 +1,4 @@
+import { observeVisibleAnimation } from '@/lib/window-activity/offscreen-animation-pause'
import { useEffect, useLayoutEffect, useRef, useState } from 'react'
import { Loader2 } from 'lucide-react'
import { translate } from '@/i18n/i18n'
@@ -189,7 +190,10 @@ export function PluginUpdateAllDialog({
{title}
{candidates === null ? (
-
+
) : alone?.preview ? (
void update()}>
- {busy ? : null}
+ {busy ? (
+
+ ) : null}
{failure
? t('auto.components.settings.PluginUpdateAllDialog.retry', 'Try again')
: approving
diff --git a/src/renderer/src/components/plugins/list/PluginListEmptyStates.tsx b/src/renderer/src/components/plugins/list/PluginListEmptyStates.tsx
index 93402f34318c..32559783a321 100644
--- a/src/renderer/src/components/plugins/list/PluginListEmptyStates.tsx
+++ b/src/renderer/src/components/plugins/list/PluginListEmptyStates.tsx
@@ -1,3 +1,4 @@
+import { observeVisibleAnimation } from '@/lib/window-activity/offscreen-animation-pause'
import { Blocks, ChevronLeft, Loader2, PackageCheck, SearchX } from 'lucide-react'
import { useTranslate } from '@/i18n/use-translate'
import { Button } from '../../ui/button'
@@ -61,7 +62,10 @@ export function PluginPageMissing({
{t('auto.components.settings.PluginDetailPage.back', 'Plugins')}
{loading ? (
-
+
) : (
{t(
diff --git a/src/renderer/src/components/plugins/list/PluginListToolbar.tsx b/src/renderer/src/components/plugins/list/PluginListToolbar.tsx
index d8d566d33904..ba45514f0506 100644
--- a/src/renderer/src/components/plugins/list/PluginListToolbar.tsx
+++ b/src/renderer/src/components/plugins/list/PluginListToolbar.tsx
@@ -1,3 +1,4 @@
+import { observeVisibleAnimation } from '@/lib/window-activity/offscreen-animation-pause'
import { RefreshCw } from 'lucide-react'
import type { PluginMarketplaceHostSourceState } from '../../../../../preload/api/plugins/plugin-host-api'
import { useTranslate } from '@/i18n/use-translate'
@@ -46,7 +47,10 @@ export function PluginListToolbar({
aria-label={refreshLabel}
onClick={onRefresh}
>
-
+
diff --git a/src/renderer/src/components/plugins/list/PluginManagerRows.tsx b/src/renderer/src/components/plugins/list/PluginManagerRows.tsx
index 37a72874ef3b..7d3695290e95 100644
--- a/src/renderer/src/components/plugins/list/PluginManagerRows.tsx
+++ b/src/renderer/src/components/plugins/list/PluginManagerRows.tsx
@@ -1,3 +1,4 @@
+import { observeVisibleAnimation } from '@/lib/window-activity/offscreen-animation-pause'
import { ArrowUpCircle, Copy, FileText, Hash, Loader2, RotateCcw, Trash2 } from 'lucide-react'
import type { PluginHostListEntry } from '../../../../../shared/plugins/plugin-list-entry'
import { translate } from '@/i18n/i18n'
@@ -101,7 +102,13 @@ export function installedPluginControls(
let action: React.ReactNode = null
if (primary === 'busy') {
- action =
+ action = (
+
+ )
} else if (primary === 'remove') {
action = (
{trust === null ? (
}
+ icon={}
title={t(
'auto.components.settings.PluginDetailSections.accessLoading',
'Reading the plugin…'
@@ -150,7 +151,7 @@ export function PluginLogsSection({
>
{state?.loading ? (
-
+
{t('auto.components.settings.PluginSettingsRow.loadingLogs', 'Loading logs…')}
) : state?.error ? (
diff --git a/src/renderer/src/components/plugins/page/PluginPageAction.tsx b/src/renderer/src/components/plugins/page/PluginPageAction.tsx
index ff7a27a959bb..588896937358 100644
--- a/src/renderer/src/components/plugins/page/PluginPageAction.tsx
+++ b/src/renderer/src/components/plugins/page/PluginPageAction.tsx
@@ -1,3 +1,4 @@
+import { observeVisibleAnimation } from '@/lib/window-activity/offscreen-animation-pause'
import { useState } from 'react'
import { Loader2, ShieldCheck } from 'lucide-react'
import { useTranslate } from '@/i18n/use-translate'
@@ -103,7 +104,9 @@ export function usePluginPageAction({
aria-label={`${enableLabel}: ${name}`}
onClick={() => decide('approve')}
>
- {busy ? : null}
+ {busy ? (
+
+ ) : null}
{enableLabel}
>
@@ -169,7 +172,9 @@ export function usePluginPageAction({
)}
onClick={() => void install.install(listing, preview ? { preview } : undefined)}
>
- {installing ? : null}
+ {installing ? (
+
+ ) : null}
{installButtonLabel(phase, t)}
),
@@ -198,7 +203,9 @@ export function usePluginPageAction({
}
}}
>
- {installing ? : null}
+ {installing ? (
+
+ ) : null}
{installLabel}
),
diff --git a/src/renderer/src/components/plugins/review/PluginInstallConsent.tsx b/src/renderer/src/components/plugins/review/PluginInstallConsent.tsx
index 65b148f72a2f..a44fc40d061b 100644
--- a/src/renderer/src/components/plugins/review/PluginInstallConsent.tsx
+++ b/src/renderer/src/components/plugins/review/PluginInstallConsent.tsx
@@ -1,3 +1,4 @@
+import { observeVisibleAnimation } from '@/lib/window-activity/offscreen-animation-pause'
import { useId } from 'react'
import { AlertTriangle, Check, Loader2, ShieldAlert } from 'lucide-react'
import type { PluginHostListEntry } from '../../../../../shared/plugins/plugin-list-entry'
@@ -166,7 +167,11 @@ export function PluginInstallConsent({
{reading && !failed ? (
// Why no verdict yet: "no other access" must wait for the files the button waits for.
-
+
{t(
'auto.components.settings.PluginDetailSections.accessLoading',
'Reading the plugin…'
@@ -204,7 +209,11 @@ export function PluginInstallConsent({
) : (
-
+
{t(
'auto.components.settings.PluginDetailSections.accessLoading',
'Reading the plugin…'
diff --git a/src/renderer/src/components/plugins/review/PluginUpdateReviewToast.tsx b/src/renderer/src/components/plugins/review/PluginUpdateReviewToast.tsx
index e1a5da783e77..299877fee397 100644
--- a/src/renderer/src/components/plugins/review/PluginUpdateReviewToast.tsx
+++ b/src/renderer/src/components/plugins/review/PluginUpdateReviewToast.tsx
@@ -1,3 +1,4 @@
+import { observeVisibleAnimation } from '@/lib/window-activity/offscreen-animation-pause'
// @protected-copy
import { useEffect, useState } from 'react'
import { Loader2, X } from 'lucide-react'
@@ -209,7 +210,10 @@ export function PluginUpdateReviewToast({
{loaded === null ? (
-
+
) : (
{notices.slice(0, SHOWN_PLUGINS).map((notice) => (
@@ -242,7 +246,9 @@ export function PluginUpdateReviewToast({
{quick ? (
void update()}>
- {busy ? : null}
+ {busy ? (
+
+ ) : null}
{notices.length === 1
? t(
'auto.components.settings.PluginUpdateReviewToast.approveOne',
diff --git a/src/renderer/src/components/pull-request-page/actions/panel.tsx b/src/renderer/src/components/pull-request-page/actions/panel.tsx
index c8605a1ee0ba..80b9be7b841b 100644
--- a/src/renderer/src/components/pull-request-page/actions/panel.tsx
+++ b/src/renderer/src/components/pull-request-page/actions/panel.tsx
@@ -1,3 +1,4 @@
+import { observeVisibleAnimation } from '@/lib/window-activity/offscreen-animation-pause'
import React, { useCallback, useState } from 'react'
import { useShallow } from 'zustand/react/shallow'
import {
@@ -119,7 +120,10 @@ export function PRActionsPanel({
)}
>
{mergePending ? (
-
+
) : (
)}
@@ -227,7 +231,7 @@ export function PRActionsPanel({
}
>
{statePending ? (
-
+
) : nextState === 'closed' ? (
) : (
diff --git a/src/renderer/src/components/pull-request-page/checks/details.tsx b/src/renderer/src/components/pull-request-page/checks/details.tsx
index da111cb7efce..4e3700d4ef80 100644
--- a/src/renderer/src/components/pull-request-page/checks/details.tsx
+++ b/src/renderer/src/components/pull-request-page/checks/details.tsx
@@ -1,3 +1,4 @@
+import { observeVisibleAnimation } from '@/lib/window-activity/offscreen-animation-pause'
import React from 'react'
import { ExternalLink, LoaderCircle, RefreshCw } from 'lucide-react'
import { Button } from '@/components/ui/button'
@@ -56,7 +57,7 @@ export function CheckDetailsPanel({
{state?.loading && !state.error ? (
-
+
{t('auto.components.PullRequestPage.d8e82b7f15', 'Loading check details…')}
) : (
@@ -96,7 +97,10 @@ export function CheckDetailsPanel({
aria-busy={state.loading}
onClick={() => onRetry(check, getCheckDetailsKey(check))}
>
-
+
{state.loading
? t('githubChecks.retrying', 'Retrying…')
: t('auto.components.PullRequestPage.5df7c41d2a', 'Retry')}
diff --git a/src/renderer/src/components/pull-request-page/checks/layouts.tsx b/src/renderer/src/components/pull-request-page/checks/layouts.tsx
index 2098a9b579c6..153f38701e78 100644
--- a/src/renderer/src/components/pull-request-page/checks/layouts.tsx
+++ b/src/renderer/src/components/pull-request-page/checks/layouts.tsx
@@ -1,3 +1,5 @@
+import type { LucideIcon } from 'lucide-react'
+import { observeVisibleAnimation } from '@/lib/window-activity/offscreen-animation-pause'
import type { ProviderCheckSummary } from '../../../../../shared/github/pull-requests/pull-request-types'
import { PRCheckEmptyDetails } from '@/components/github/pr-check-empty-details'
import React from 'react'
@@ -32,7 +34,7 @@ export function ChecksTabLayouts({
variant: 'compact' | 'page'
compactHeader: React.JSX.Element
actions: React.JSX.Element
- SummaryIcon: React.ComponentType<{ className?: string }>
+ SummaryIcon: LucideIcon
summaryColor: string
summaryLabel: string
counts: ReturnType
@@ -46,7 +48,10 @@ export function ChecksTabLayouts({
<>
{variant === 'compact' ? compactHeader : null}
-
+
>
)
@@ -71,7 +76,12 @@ export function ChecksTabLayouts({
diff --git a/src/renderer/src/components/pull-request-page/checks/row.tsx b/src/renderer/src/components/pull-request-page/checks/row.tsx
index 748f68800367..84b1eaec4421 100644
--- a/src/renderer/src/components/pull-request-page/checks/row.tsx
+++ b/src/renderer/src/components/pull-request-page/checks/row.tsx
@@ -11,6 +11,10 @@ import type { CheckDetailsLoadState } from '@/components/github/github-checks-ta
import type { PRCheckDetail } from '../../../../../shared/github/checks/check-types'
import { CheckDetailsPanel } from './details'
import { useTranslate } from '@/i18n/use-translate'
+import {
+ observeOffscreenAnimation,
+ observeVisibleAnimation
+} from '@/lib/window-activity/offscreen-animation-pause'
export function CheckRow({
check,
@@ -34,7 +38,11 @@ export function CheckRow({
const statusLabel = getCheckStatusLabel(check, t)
const key = getCheckDetailsKey(check)
return (
-
+
onToggle(check)}
@@ -51,7 +59,12 @@ export function CheckRow({
)}
/>
{check.name}
{statusLabel}
diff --git a/src/renderer/src/components/pull-request-page/checks/toolbar.tsx b/src/renderer/src/components/pull-request-page/checks/toolbar.tsx
index 4f6f1c015d88..6361a107b3f0 100644
--- a/src/renderer/src/components/pull-request-page/checks/toolbar.tsx
+++ b/src/renderer/src/components/pull-request-page/checks/toolbar.tsx
@@ -1,3 +1,5 @@
+import type { LucideIcon } from 'lucide-react'
+import { observeVisibleAnimation } from '@/lib/window-activity/offscreen-animation-pause'
import React from 'react'
import { ChevronDown, LoaderCircle, RefreshCw, Wrench } from 'lucide-react'
import { Button } from '@/components/ui/button'
@@ -58,7 +60,10 @@ export function buildChecksToolbar(
onClick={onRefresh}
aria-label={t('auto.components.PullRequestPage.5d0f42766d', 'Refresh checks')}
>
-
+
@@ -79,7 +84,7 @@ export function buildChecksToolbar(
onClick={onFix}
>
{fixingChecks ? (
-
+
) : (
)}
@@ -108,7 +113,7 @@ export function buildChecksToolbar(
disabled={!canUseChecksRepoContext || rerunning || listLength === 0}
>
{rerunning ? (
-
+
) : (
)}
@@ -160,7 +165,7 @@ export function ChecksCompactHeader({
rerunAction,
secondaryActions
}: {
- SummaryIcon: React.ComponentType<{ className?: string }>
+ SummaryIcon: LucideIcon
summaryColor: string
summaryLabel: string
counts: { pending: number; failing: number }
@@ -176,10 +181,11 @@ export function ChecksCompactHeader({
0 && counts.failing === 0 && 'animate-spin'
+ counts.pending > 0 && counts.failing === 0 && 'visible-animate-spin'
)}
/>
diff --git a/src/renderer/src/components/pull-request-page/comments/composer.tsx b/src/renderer/src/components/pull-request-page/comments/composer.tsx
index 9e3563a51cb0..3eacd0df4ff0 100644
--- a/src/renderer/src/components/pull-request-page/comments/composer.tsx
+++ b/src/renderer/src/components/pull-request-page/comments/composer.tsx
@@ -1,3 +1,4 @@
+import { observeVisibleAnimation } from '@/lib/window-activity/offscreen-animation-pause'
import { useGitHubImagePending } from '@/components/github/use-github-image-uploads'
import { githubCommentImageUploadAddress } from '@/components/github/github-comment-image-upload-address'
import React, { useCallback, useRef, useState } from 'react'
@@ -182,7 +183,7 @@ export function GHCommentComposer({
aria-label={t('auto.components.PullRequestPage.161d91ef02', 'Send comment')}
>
{submitting ? (
-
+
) : (
)}
diff --git a/src/renderer/src/components/pull-request-page/conversation/description.tsx b/src/renderer/src/components/pull-request-page/conversation/description.tsx
index 95aa07bc575c..4d85ef799437 100644
--- a/src/renderer/src/components/pull-request-page/conversation/description.tsx
+++ b/src/renderer/src/components/pull-request-page/conversation/description.tsx
@@ -1,3 +1,4 @@
+import { observeVisibleAnimation } from '@/lib/window-activity/offscreen-animation-pause'
import { useGitHubImagePending } from '@/components/github/use-github-image-uploads'
import type { GitHubImageUploadAddress } from '@/components/github/github-image-upload'
import React from 'react'
@@ -91,7 +92,10 @@ export function ConversationDescription({
onClick={save}
>
{bodySaving ? (
-
+
) : (
)}
@@ -122,7 +126,10 @@ export function ConversationDescription({
{loading && !detailsLoaded ? (
-
+
) : bodyEditing ? (
+
) : (
)}
@@ -283,7 +287,10 @@ export function GHEditSection({
))
)}
{isPending('assignees') ? (
-
+
) : (
)}
diff --git a/src/renderer/src/components/pull-request-page/page/tabs-shell.tsx b/src/renderer/src/components/pull-request-page/page/tabs-shell.tsx
index 00042544c5f5..97c761311587 100644
--- a/src/renderer/src/components/pull-request-page/page/tabs-shell.tsx
+++ b/src/renderer/src/components/pull-request-page/page/tabs-shell.tsx
@@ -1,3 +1,4 @@
+import { observeVisibleAnimation } from '@/lib/window-activity/offscreen-animation-pause'
import React from 'react'
import { FileText, ListChecks, LoaderCircle, MessageSquare, RefreshCw } from 'lucide-react'
import { Button } from '@/components/ui/button'
@@ -186,7 +187,10 @@ export function PullRequestPageTabs({
{loading && files.length === 0 ? (
-
+
) : filesUnavailable && files.length === 0 ? (
// Why: fetch failed (rate limit/auth/unresolved remote); offer retry instead of implying the PR is empty.
diff --git a/src/renderer/src/components/pull-request-page/reviewers/picker.tsx b/src/renderer/src/components/pull-request-page/reviewers/picker.tsx
index 5c9e4c530845..77d214e6b791 100644
--- a/src/renderer/src/components/pull-request-page/reviewers/picker.tsx
+++ b/src/renderer/src/components/pull-request-page/reviewers/picker.tsx
@@ -1,3 +1,4 @@
+import { observeVisibleAnimation } from '@/lib/window-activity/offscreen-animation-pause'
import React, { useId } from 'react'
import { LoaderCircle, Pencil } from 'lucide-react'
import { Input } from '@/components/ui/input'
@@ -61,7 +62,7 @@ export function ReviewerPicker({
className="rounded p-0.5 text-muted-foreground transition hover:bg-accent hover:text-foreground disabled:opacity-50"
>
{submitting ? (
-
+
) : (
)}
diff --git a/src/renderer/src/components/pull-request-page/reviewers/requested-list.tsx b/src/renderer/src/components/pull-request-page/reviewers/requested-list.tsx
index 0bf33d4d4ed3..59f598011eba 100644
--- a/src/renderer/src/components/pull-request-page/reviewers/requested-list.tsx
+++ b/src/renderer/src/components/pull-request-page/reviewers/requested-list.tsx
@@ -1,3 +1,4 @@
+import { observeVisibleAnimation } from '@/lib/window-activity/offscreen-animation-pause'
import React from 'react'
import { LoaderCircle, X } from 'lucide-react'
import { Button } from '@/components/ui/button'
@@ -27,7 +28,7 @@ export function ReviewerRequestedList({
if (loading && !hasReviewerMetadata) {
return (
-
+
{t('auto.components.PullRequestPage.acbd110867', 'Loading reviewers')}
)
diff --git a/src/renderer/src/components/repo/toolchain/LocalGitToolchainScanBanner.tsx b/src/renderer/src/components/repo/toolchain/LocalGitToolchainScanBanner.tsx
index ee6bfe0e0edc..1c0dc5bd6c4d 100644
--- a/src/renderer/src/components/repo/toolchain/LocalGitToolchainScanBanner.tsx
+++ b/src/renderer/src/components/repo/toolchain/LocalGitToolchainScanBanner.tsx
@@ -1,3 +1,4 @@
+import { observeVisibleAnimation } from '@/lib/window-activity/offscreen-animation-pause'
import React from 'react'
import { Copy, RefreshCw, TriangleAlert } from 'lucide-react'
import { toast } from 'sonner'
@@ -152,7 +153,11 @@ export function LocalGitToolchainScanBanner(): React.JSX.Element | null {
disabled={pending}
onClick={() => void rescan()}
>
-
+
{t('auto.components.sidebar.LocalGitToolchainScanBanner.retry', 'Retry now')}
diff --git a/src/renderer/src/components/right-sidebar/ai-vault/panel/AiVaultPanelHeader.tsx b/src/renderer/src/components/right-sidebar/ai-vault/panel/AiVaultPanelHeader.tsx
index 4cb3ac02d498..004f63f80a28 100644
--- a/src/renderer/src/components/right-sidebar/ai-vault/panel/AiVaultPanelHeader.tsx
+++ b/src/renderer/src/components/right-sidebar/ai-vault/panel/AiVaultPanelHeader.tsx
@@ -1,3 +1,4 @@
+import { observeVisibleAnimation } from '@/lib/window-activity/offscreen-animation-pause'
import { ImeInput } from '@/lib/text-input/ime/ime-text-field'
import type { KeyboardEvent, ReactNode, Ref } from 'react'
import { LoaderCircle, RefreshCw, Search, X } from 'lucide-react'
@@ -133,7 +134,7 @@ export function AiVaultPanelHeader({
className="size-6"
>
{loading ? (
-
+
) : (
)}
@@ -176,7 +177,12 @@ export function AiVaultPanelHeader({
}}
spellCheck={false}
/>
- {loading ?
: null}
+ {loading ? (
+
+ ) : null}
{query ? (
{showLabel ? (
-
+
{t(
'auto.components.right.sidebar.AiVaultPanelControls.scanningSessions',
diff --git a/src/renderer/src/components/right-sidebar/ai-vault/session-list/ai-vault-first-prompt-card.tsx b/src/renderer/src/components/right-sidebar/ai-vault/session-list/ai-vault-first-prompt-card.tsx
index 76c7b3a76f23..41092bf90081 100644
--- a/src/renderer/src/components/right-sidebar/ai-vault/session-list/ai-vault-first-prompt-card.tsx
+++ b/src/renderer/src/components/right-sidebar/ai-vault/session-list/ai-vault-first-prompt-card.tsx
@@ -1,3 +1,4 @@
+import { observeVisibleAnimation } from '@/lib/window-activity/offscreen-animation-pause'
import type React from 'react'
import { useCallback, useEffect, useRef, useState } from 'react'
import { Check, Copy, LoaderCircle, TextCursorInput } from 'lucide-react'
@@ -165,7 +166,10 @@ export function FirstPromptCard({
{t('auto.components.right.sidebar.AiVaultSessionDetails.userRole', 'You')}
{loading || copying ? (
-
+
) : null}
{copyHidden ? null : (
diff --git a/src/renderer/src/components/right-sidebar/checks-panel/comments/comment-controls.tsx b/src/renderer/src/components/right-sidebar/checks-panel/comments/comment-controls.tsx
index afdc6ff08b5f..bb6b29507f36 100644
--- a/src/renderer/src/components/right-sidebar/checks-panel/comments/comment-controls.tsx
+++ b/src/renderer/src/components/right-sidebar/checks-panel/comments/comment-controls.tsx
@@ -1,3 +1,4 @@
+import { observeVisibleAnimation } from '@/lib/window-activity/offscreen-animation-pause'
import React, { useCallback, useRef, useState } from 'react'
import {
Bot,
@@ -137,7 +138,10 @@ export function ResolveButton({
return (
{loading || inFlight ? (
-
+
) : (
-
+
) : comments.length === 0 && commentsError ? (
diff --git a/src/renderer/src/components/right-sidebar/checks-panel/presentation/active-content.tsx b/src/renderer/src/components/right-sidebar/checks-panel/presentation/active-content.tsx
index 903b11374198..ea4fe77088b5 100644
--- a/src/renderer/src/components/right-sidebar/checks-panel/presentation/active-content.tsx
+++ b/src/renderer/src/components/right-sidebar/checks-panel/presentation/active-content.tsx
@@ -1,3 +1,4 @@
+import { observeVisibleAnimation } from '@/lib/window-activity/offscreen-animation-pause'
import {
forgeCredentialTarget,
forgeOwnerHostIdForWorkspace
@@ -167,7 +168,10 @@ export function ChecksPanelActiveContent({
disabled={titleSaving}
>
{titleSaving ? (
-
+
) : (
)}
diff --git a/src/renderer/src/components/right-sidebar/checks-panel/presentation/check-presentation.tsx b/src/renderer/src/components/right-sidebar/checks-panel/presentation/check-presentation.tsx
index d82cdd5f0272..654c63fc8f21 100644
--- a/src/renderer/src/components/right-sidebar/checks-panel/presentation/check-presentation.tsx
+++ b/src/renderer/src/components/right-sidebar/checks-panel/presentation/check-presentation.tsx
@@ -1,6 +1,6 @@
-import React from 'react'
import { getCheckConclusion } from '@/components/github/pr-check-counts'
import {
+ type LucideIcon,
AlertTriangle,
CircleCheck,
CircleX,
@@ -20,7 +20,7 @@ export function checkPresentationKey(check: PRCheckDetail): string {
: getCheckConclusion(check)
}
-export const CHECK_ICON: Record
> = {
+export const CHECK_ICON: Record = {
gitlabAllowedFailure: AlertTriangle,
success: CircleCheck,
failure: CircleX,
diff --git a/src/renderer/src/components/right-sidebar/checks-panel/presentation/check-run-details.tsx b/src/renderer/src/components/right-sidebar/checks-panel/presentation/check-run-details.tsx
index e18ae2c946f0..2f229355e393 100644
--- a/src/renderer/src/components/right-sidebar/checks-panel/presentation/check-run-details.tsx
+++ b/src/renderer/src/components/right-sidebar/checks-panel/presentation/check-run-details.tsx
@@ -1,3 +1,4 @@
+import { observeVisibleAnimation } from '@/lib/window-activity/offscreen-animation-pause'
import React from 'react'
import { LoaderCircle, PanelRight, RefreshCw } from 'lucide-react'
import { Button } from '@/components/ui/button'
@@ -118,7 +119,7 @@ export function CheckRunDetails({
{state?.loading && !state.error ? (
-
+
{t(
'auto.components.right.sidebar.checks.panel.content.1f2b980522',
'Loading check details…'
@@ -172,7 +173,10 @@ export function CheckRunDetails({
aria-busy={state.loading}
onClick={onRetry}
>
-
+
{state.loading
? t('githubChecks.retrying', 'Retrying…')
: t('auto.components.right.sidebar.checks.panel.content.dcb3c546fe', 'Retry')}
diff --git a/src/renderer/src/components/right-sidebar/checks-panel/presentation/checks-list.tsx b/src/renderer/src/components/right-sidebar/checks-panel/presentation/checks-list.tsx
index fa3d58e48573..62e82f72f273 100644
--- a/src/renderer/src/components/right-sidebar/checks-panel/presentation/checks-list.tsx
+++ b/src/renderer/src/components/right-sidebar/checks-panel/presentation/checks-list.tsx
@@ -11,7 +11,10 @@ import {
import { Button } from '@/components/ui/button'
import { Tooltip, TooltipContent, TooltipTrigger } from '@/components/ui/tooltip'
import { cn } from '@/lib/class-names'
-import { observeOffscreenAnimation } from '@/lib/window-activity/offscreen-animation-pause'
+import {
+ observeOffscreenAnimation,
+ observeVisibleAnimation
+} from '@/lib/window-activity/offscreen-animation-pause'
import { useTranslate } from '@/i18n/use-translate'
import { CHECK_COLOR, CHECK_ICON, checkPresentationKey } from './check-presentation'
import { CheckRunDetails } from './check-run-details'
@@ -117,7 +120,12 @@ export function ChecksList(props: ChecksListProps): React.JSX.Element {
)}
- {checksLoading &&
}
+ {checksLoading && (
+
+ )}
)}
@@ -126,7 +134,10 @@ export function ChecksList(props: ChecksListProps): React.JSX.Element {
checks.length === 0 &&
!pipelineCheck ? (
-
+
) : checks.length === 0 && checksError ? (
@@ -257,10 +268,11 @@ function CheckStatusIcon({ check }: { check: PRCheckDetail }): React.JSX.Element
diff --git a/src/renderer/src/components/right-sidebar/checks-panel/presentation/review-header.tsx b/src/renderer/src/components/right-sidebar/checks-panel/presentation/review-header.tsx
index 33759b81f8eb..e4dc001dc88f 100644
--- a/src/renderer/src/components/right-sidebar/checks-panel/presentation/review-header.tsx
+++ b/src/renderer/src/components/right-sidebar/checks-panel/presentation/review-header.tsx
@@ -1,3 +1,4 @@
+import { observeVisibleAnimation } from '@/lib/window-activity/offscreen-animation-pause'
import React from 'react'
import { Ellipsis, GitMerge, Link, RefreshCw } from 'lucide-react'
import { Button } from '@/components/ui/button'
@@ -86,7 +87,10 @@ export function ChecksPanelReviewHeader({
onClick={onRefresh}
disabled={isRefreshing}
>
-
+
diff --git a/src/renderer/src/components/right-sidebar/checks-panel/presentation/triage-strip.tsx b/src/renderer/src/components/right-sidebar/checks-panel/presentation/triage-strip.tsx
index e219cae76086..fd195d6012b5 100644
--- a/src/renderer/src/components/right-sidebar/checks-panel/presentation/triage-strip.tsx
+++ b/src/renderer/src/components/right-sidebar/checks-panel/presentation/triage-strip.tsx
@@ -1,3 +1,4 @@
+import { observeVisibleAnimation } from '@/lib/window-activity/offscreen-animation-pause'
import { isCompletePRCheckOwner } from '../../../../../../shared/github/checks/complete-pr-check-owner'
import React from 'react'
import {
@@ -153,7 +154,7 @@ export function PRTriageStrip({
onClick={onFixChecksWithAI}
>
{isFixingChecksWithAI ? (
-
+
) : (
)}
@@ -174,8 +175,9 @@ export function PRTriageStrip({
@@ -294,7 +296,7 @@ export function ConflictTriageStrip({
onClick={onResolveConflictsWithAI}
>
{isResolvingConflictsWithAI ? (
-
+
) : (
)}
diff --git a/src/renderer/src/components/right-sidebar/file-explorer/content-search/SearchQueryRow.tsx b/src/renderer/src/components/right-sidebar/file-explorer/content-search/SearchQueryRow.tsx
index 1c76f5e4e991..0c17e2284f8e 100644
--- a/src/renderer/src/components/right-sidebar/file-explorer/content-search/SearchQueryRow.tsx
+++ b/src/renderer/src/components/right-sidebar/file-explorer/content-search/SearchQueryRow.tsx
@@ -1,3 +1,4 @@
+import { observeVisibleAnimation } from '@/lib/window-activity/offscreen-animation-pause'
import { ImeInput } from '@/lib/text-input/ime/ime-text-field'
import React from 'react'
import { Search as SearchIcon, CaseSensitive, WholeWord, Regex, X, Loader2 } from 'lucide-react'
@@ -54,7 +55,12 @@ export function SearchQueryRow({
onKeyDown={onKeyDown}
spellCheck={false}
/>
- {loading ?
: null}
+ {loading ? (
+
+ ) : null}
{query ? (
onQueryChange(event.currentTarget.value)}
spellCheck={false}
/>
- {loading ? : null}
+ {loading ? (
+
+ ) : null}
{query ? (
{isLoading ? (
-
+
) : showLoadError ? (
) : (
diff --git a/src/renderer/src/components/right-sidebar/file-explorer/panel/FileExplorerToolbar.tsx b/src/renderer/src/components/right-sidebar/file-explorer/panel/FileExplorerToolbar.tsx
index 33d4324e7ef6..c7a0cc9d94eb 100644
--- a/src/renderer/src/components/right-sidebar/file-explorer/panel/FileExplorerToolbar.tsx
+++ b/src/renderer/src/components/right-sidebar/file-explorer/panel/FileExplorerToolbar.tsx
@@ -1,3 +1,4 @@
+import { observeVisibleAnimation } from '@/lib/window-activity/offscreen-animation-pause'
import React from 'react'
import { Ellipsis, ListCollapse, Loader2, RefreshCw } from 'lucide-react'
import { Button } from '@/components/ui/button'
@@ -128,7 +129,7 @@ export function FileExplorerToolbar({
}}
>
{refresh.showRefreshSpinner ? (
-
+
) : (
)}
diff --git a/src/renderer/src/components/right-sidebar/file-explorer/tree/FileExplorerTreeStatus.tsx b/src/renderer/src/components/right-sidebar/file-explorer/tree/FileExplorerTreeStatus.tsx
index b241eaa0dd16..ea55130c7d26 100644
--- a/src/renderer/src/components/right-sidebar/file-explorer/tree/FileExplorerTreeStatus.tsx
+++ b/src/renderer/src/components/right-sidebar/file-explorer/tree/FileExplorerTreeStatus.tsx
@@ -1,3 +1,4 @@
+import { observeVisibleAnimation } from '@/lib/window-activity/offscreen-animation-pause'
import React from 'react'
import { Loader2 } from 'lucide-react'
import { Button } from '@/components/ui/button'
@@ -38,7 +39,7 @@ export function FileExplorerTreeStatus({
if (isLoading) {
return (
-
+
)
}
diff --git a/src/renderer/src/components/right-sidebar/folder-workspaces/folder-workspace-empty-state.tsx b/src/renderer/src/components/right-sidebar/folder-workspaces/folder-workspace-empty-state.tsx
index 950639814cb7..8083b9a891de 100644
--- a/src/renderer/src/components/right-sidebar/folder-workspaces/folder-workspace-empty-state.tsx
+++ b/src/renderer/src/components/right-sidebar/folder-workspaces/folder-workspace-empty-state.tsx
@@ -1,3 +1,4 @@
+import { observeVisibleAnimation } from '@/lib/window-activity/offscreen-animation-pause'
import { memo, useMemo, useSyncExternalStore } from 'react'
import { FolderGit2, LoaderCircle } from 'lucide-react'
import { Button } from '@/components/ui/button'
@@ -86,7 +87,12 @@ export const FolderWorkspaceEmptyState = memo(function FolderWorkspaceEmptyState
disabled={creating}
onClick={() => void createFolderRepoWorktree(folder, repo)}
>
- {creating ? : null}
+ {creating ? (
+
+ ) : null}
{t(
'auto.components.rightSidebar.FolderWorkspaceEmptyState.createWorktree',
'Create worktree'
diff --git a/src/renderer/src/components/right-sidebar/hosted-review/creation/CreateHostedReviewComposer.tsx b/src/renderer/src/components/right-sidebar/hosted-review/creation/CreateHostedReviewComposer.tsx
index b67538774b2e..7f909e7be67b 100644
--- a/src/renderer/src/components/right-sidebar/hosted-review/creation/CreateHostedReviewComposer.tsx
+++ b/src/renderer/src/components/right-sidebar/hosted-review/creation/CreateHostedReviewComposer.tsx
@@ -1,3 +1,4 @@
+import { observeVisibleAnimation } from '@/lib/window-activity/offscreen-animation-pause'
import type { GitHubImageIntake } from '@/components/github/use-github-image-uploads'
import { useState } from 'react'
import {
@@ -203,7 +204,7 @@ export function CreateHostedReviewComposer({
className="text-[11px] text-muted-foreground hover:bg-destructive/10 hover:text-destructive"
aria-label={stopGeneratingDetailsLabel}
>
-
+
{t('auto.components.right.sidebar.SourceControl.e868cec4e1', 'Generating…')}
@@ -297,7 +298,7 @@ export function CreateHostedReviewComposer({
title={createDisabledReason ?? primaryAction.title}
>
{isCreating ? (
-
+
) : (
)}
diff --git a/src/renderer/src/components/right-sidebar/hosted-review/creation/CreateHostedReviewComposerFields.tsx b/src/renderer/src/components/right-sidebar/hosted-review/creation/CreateHostedReviewComposerFields.tsx
index bbb691e136cd..3459f44c1155 100644
--- a/src/renderer/src/components/right-sidebar/hosted-review/creation/CreateHostedReviewComposerFields.tsx
+++ b/src/renderer/src/components/right-sidebar/hosted-review/creation/CreateHostedReviewComposerFields.tsx
@@ -1,3 +1,4 @@
+import { observeVisibleAnimation } from '@/lib/window-activity/offscreen-animation-pause'
import { GitHubImageTextarea } from '@/components/github/GitHubImageTextarea'
import type { GitHubImageIntake } from '@/components/github/use-github-image-uploads'
import { CornerDownRight, GitPullRequestArrow, Sparkles } from 'lucide-react'
@@ -125,7 +126,10 @@ export function CreateHostedReviewComposerFields({
aria-hidden="true"
>
-
+
{t(
'auto.components.right.sidebar.SourceControl.9484270f45',
diff --git a/src/renderer/src/components/right-sidebar/hosted-review/folder-checks/FolderWorkspacePrChecksPanel.tsx b/src/renderer/src/components/right-sidebar/hosted-review/folder-checks/FolderWorkspacePrChecksPanel.tsx
index 5422b3f7ca2d..98dfae90cc87 100644
--- a/src/renderer/src/components/right-sidebar/hosted-review/folder-checks/FolderWorkspacePrChecksPanel.tsx
+++ b/src/renderer/src/components/right-sidebar/hosted-review/folder-checks/FolderWorkspacePrChecksPanel.tsx
@@ -1,3 +1,4 @@
+import { observeVisibleAnimation } from '@/lib/window-activity/offscreen-animation-pause'
import { useCallback, useEffect, useMemo, useRef, useState } from 'react'
import { RefreshCw } from 'lucide-react'
import { useAppStore } from '@/store/index'
@@ -224,7 +225,10 @@ export default function FolderWorkspacePrChecksPanel({
'Refresh PR checks'
)}
>
-
+
diff --git a/src/renderer/src/components/right-sidebar/hosted-review/folder-checks/FolderWorkspacePrChecksRow.tsx b/src/renderer/src/components/right-sidebar/hosted-review/folder-checks/FolderWorkspacePrChecksRow.tsx
index 813cdc8b2457..fca2a0bc4c47 100644
--- a/src/renderer/src/components/right-sidebar/hosted-review/folder-checks/FolderWorkspacePrChecksRow.tsx
+++ b/src/renderer/src/components/right-sidebar/hosted-review/folder-checks/FolderWorkspacePrChecksRow.tsx
@@ -1,7 +1,10 @@
import { ChevronRight, ExternalLink, GitMerge } from 'lucide-react'
import { Tooltip, TooltipContent, TooltipTrigger } from '@/components/ui/tooltip'
import { cn } from '@/lib/class-names'
-import { observeOffscreenAnimation } from '@/lib/window-activity/offscreen-animation-pause'
+import {
+ observeOffscreenAnimation,
+ observeVisibleAnimation
+} from '@/lib/window-activity/offscreen-animation-pause'
import { openAppHttpLink } from '@/lib/browser/navigation/app-http-link-open'
import { useTranslate } from '@/i18n/use-translate'
import type {
@@ -90,10 +93,11 @@ export function FolderWorkspacePrChecksRow({
>
{showStatusIcon ? (
) : null}
diff --git a/src/renderer/src/components/right-sidebar/hosted-review/provider-actions/HostedReviewActions.tsx b/src/renderer/src/components/right-sidebar/hosted-review/provider-actions/HostedReviewActions.tsx
index 27b576a6bc0d..2f8fa2f15c53 100644
--- a/src/renderer/src/components/right-sidebar/hosted-review/provider-actions/HostedReviewActions.tsx
+++ b/src/renderer/src/components/right-sidebar/hosted-review/provider-actions/HostedReviewActions.tsx
@@ -1,3 +1,4 @@
+import { observeVisibleAnimation } from '@/lib/window-activity/offscreen-animation-pause'
import React, { useCallback, useMemo } from 'react'
import { LoaderCircle, GitMerge, ChevronDown, GitPullRequestClosed } from 'lucide-react'
import { useAppStore } from '@/store/index'
@@ -224,7 +225,10 @@ export default function HostedReviewActions({
disabled={primaryMergeDisabled}
>
{merging ? (
-
+
) : (
)}
@@ -280,7 +284,10 @@ export default function HostedReviewActions({
)}
>
{stateUpdating === 'closed' ? (
-
+
) : (
)}
diff --git a/src/renderer/src/components/right-sidebar/hosted-review/provider-actions/HostedReviewStateActions.tsx b/src/renderer/src/components/right-sidebar/hosted-review/provider-actions/HostedReviewStateActions.tsx
index 2af016322ea5..62f4a920363f 100644
--- a/src/renderer/src/components/right-sidebar/hosted-review/provider-actions/HostedReviewStateActions.tsx
+++ b/src/renderer/src/components/right-sidebar/hosted-review/provider-actions/HostedReviewStateActions.tsx
@@ -1,3 +1,4 @@
+import { observeVisibleAnimation } from '@/lib/window-activity/offscreen-animation-pause'
import {
ChevronDown,
CircleDot,
@@ -61,7 +62,7 @@ export function DraftReviewActions({
disabled={disabled}
>
{readying ? (
-
+
) : (
)}
@@ -91,7 +92,10 @@ export function DraftReviewActions({
)}
>
{stateUpdating === 'closed' ? (
-
+
) : (
)}
@@ -137,7 +141,7 @@ export function ClosedReviewActions({
disabled={stateUpdating !== null}
>
{stateUpdating === 'open' ? (
-
+
) : (
)}
@@ -175,7 +179,7 @@ export function MergedReviewActions({
disabled={isDeletingWorktree}
>
{isDeletingWorktree ? (
-
+
) : (
)}
diff --git a/src/renderer/src/components/right-sidebar/ports/host-scoped-ports-panel.tsx b/src/renderer/src/components/right-sidebar/ports/host-scoped-ports-panel.tsx
index 1af9124fd6ec..93190c5f06c3 100644
--- a/src/renderer/src/components/right-sidebar/ports/host-scoped-ports-panel.tsx
+++ b/src/renderer/src/components/right-sidebar/ports/host-scoped-ports-panel.tsx
@@ -1,3 +1,4 @@
+import { observeVisibleAnimation } from '@/lib/window-activity/offscreen-animation-pause'
import React, { useCallback, useEffect, useMemo, useState } from 'react'
import { RefreshCw, Server } from 'lucide-react'
import { toast } from 'sonner'
@@ -134,7 +135,11 @@ export function HostScopedPortsPanel({
disabled={refreshing}
aria-label={t('auto.components.right.sidebar.PortsPanel.7822e3edc6', 'Refresh Ports')}
>
-
+
diff --git a/src/renderer/src/components/right-sidebar/ports/local-workspace-ports-panel.tsx b/src/renderer/src/components/right-sidebar/ports/local-workspace-ports-panel.tsx
index c307deb12e12..f9ab33e1b20c 100644
--- a/src/renderer/src/components/right-sidebar/ports/local-workspace-ports-panel.tsx
+++ b/src/renderer/src/components/right-sidebar/ports/local-workspace-ports-panel.tsx
@@ -1,3 +1,4 @@
+import { observeVisibleAnimation } from '@/lib/window-activity/offscreen-animation-pause'
import React, { useCallback, useEffect, useMemo, useRef, useState } from 'react'
import { RefreshCw, Server } from 'lucide-react'
import { toast } from 'sonner'
@@ -279,7 +280,11 @@ export function LocalWorkspacePortsPanel({
disabled={refreshing || !runtimeTarget}
aria-label={t('auto.components.right.sidebar.PortsPanel.7822e3edc6', 'Refresh Ports')}
>
-
+
diff --git a/src/renderer/src/components/right-sidebar/source-control/ai/SourceControlAgentActionDialogForm.tsx b/src/renderer/src/components/right-sidebar/source-control/ai/SourceControlAgentActionDialogForm.tsx
index d44b3ace1215..5c0d75b9ed1c 100644
--- a/src/renderer/src/components/right-sidebar/source-control/ai/SourceControlAgentActionDialogForm.tsx
+++ b/src/renderer/src/components/right-sidebar/source-control/ai/SourceControlAgentActionDialogForm.tsx
@@ -1,3 +1,4 @@
+import { observeVisibleAnimation } from '@/lib/window-activity/offscreen-animation-pause'
import type { AgentPickerEntry } from '../../../../../../shared/agent-launch/picker/agent-launch-picker'
import React, { useCallback, useLayoutEffect, useMemo, useRef } from 'react'
import {
@@ -394,7 +395,7 @@ export function SourceControlAgentActionDialogForm({
{isStarting ? (
-
+
) : (
)}
diff --git a/src/renderer/src/components/right-sidebar/source-control/ai/text-generation-dialog-form.tsx b/src/renderer/src/components/right-sidebar/source-control/ai/text-generation-dialog-form.tsx
index 59c7e585f1fc..683c93c80ff3 100644
--- a/src/renderer/src/components/right-sidebar/source-control/ai/text-generation-dialog-form.tsx
+++ b/src/renderer/src/components/right-sidebar/source-control/ai/text-generation-dialog-form.tsx
@@ -1,3 +1,4 @@
+import { observeVisibleAnimation } from '@/lib/window-activity/offscreen-animation-pause'
import { useAppStore } from '@/store/index'
import React, { useCallback, useMemo, useState } from 'react'
import { RefreshCw, Save, Sparkles, Terminal, TriangleAlert } from 'lucide-react'
@@ -390,7 +391,7 @@ export function SourceControlTextGenerationDialogForm({
onClick={() => void handleSaveDefaults(selectedSaveTarget)}
>
{savingTargetKey === saveTargetKey ? (
-
+
) : (
)}
diff --git a/src/renderer/src/components/right-sidebar/source-control/commit/bulk-action-bar.tsx b/src/renderer/src/components/right-sidebar/source-control/commit/bulk-action-bar.tsx
index 0af868355d5c..58e1f67806e9 100644
--- a/src/renderer/src/components/right-sidebar/source-control/commit/bulk-action-bar.tsx
+++ b/src/renderer/src/components/right-sidebar/source-control/commit/bulk-action-bar.tsx
@@ -1,3 +1,4 @@
+import { observeVisibleAnimation } from '@/lib/window-activity/offscreen-animation-pause'
import { Plus, Minus, X, Loader2 } from 'lucide-react'
import { Button } from '@/components/ui/button'
import { useTranslate } from '@/i18n/use-translate'
@@ -25,7 +26,10 @@ export function BulkActionBar({
{isExecuting ? (
-
+
) : (
{t(
diff --git a/src/renderer/src/components/right-sidebar/source-control/commit/commit-action-menu.tsx b/src/renderer/src/components/right-sidebar/source-control/commit/commit-action-menu.tsx
index 4cf5dc1f487f..8723a8478090 100644
--- a/src/renderer/src/components/right-sidebar/source-control/commit/commit-action-menu.tsx
+++ b/src/renderer/src/components/right-sidebar/source-control/commit/commit-action-menu.tsx
@@ -1,3 +1,4 @@
+import { observeVisibleAnimation } from '@/lib/window-activity/offscreen-animation-pause'
import React from 'react'
import { ChevronDown, Loader2 } from 'lucide-react'
import { Button } from '@/components/ui/button'
@@ -44,7 +45,7 @@ export function CommitActionMenu({
className="w-full rounded-r-none px-3 text-[11px]"
>
{showSpinner ? (
-
+
) : PrimaryIcon ? (
) : null}
@@ -68,7 +69,10 @@ export function CommitActionMenu({
aria-label={moreCommitAndRemoteActionsLabel}
>
{showChevronSpinner ? (
-
+
) : (
)}
diff --git a/src/renderer/src/components/right-sidebar/source-control/commit/commit-message-composer.tsx b/src/renderer/src/components/right-sidebar/source-control/commit/commit-message-composer.tsx
index 55195f6fd241..bf3f62f0a424 100644
--- a/src/renderer/src/components/right-sidebar/source-control/commit/commit-message-composer.tsx
+++ b/src/renderer/src/components/right-sidebar/source-control/commit/commit-message-composer.tsx
@@ -1,3 +1,4 @@
+import { observeVisibleAnimation } from '@/lib/window-activity/offscreen-animation-pause'
import React from 'react'
import { RefreshCw, Sparkles, Square } from 'lucide-react'
import { Tooltip, TooltipContent, TooltipTrigger } from '@/components/ui/tooltip'
@@ -59,7 +60,10 @@ export function CommitMessageComposer({
)}
className="group absolute right-1.5 top-1.5 inline-flex size-5 items-center justify-center rounded text-muted-foreground transition-colors hover:bg-destructive/10 hover:text-destructive focus-visible:bg-destructive/10 focus-visible:text-destructive focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-destructive/40"
>
-
+
diff --git a/src/renderer/src/components/right-sidebar/source-control/listing/conflict-status-cards.tsx b/src/renderer/src/components/right-sidebar/source-control/listing/conflict-status-cards.tsx
index 7129a3ec6d94..f0e61fe8ab6b 100644
--- a/src/renderer/src/components/right-sidebar/source-control/listing/conflict-status-cards.tsx
+++ b/src/renderer/src/components/right-sidebar/source-control/listing/conflict-status-cards.tsx
@@ -1,3 +1,4 @@
+import { observeVisibleAnimation } from '@/lib/window-activity/offscreen-animation-pause'
import React from 'react'
import { GitMerge, GitPullRequestArrow, RefreshCw, Sparkles, TriangleAlert } from 'lucide-react'
import { Button } from '@/components/ui/button'
@@ -103,7 +104,9 @@ export function ConflictSummaryCard({
disabled={isAbortingOperation}
onClick={() => onAbortOperation(conflictOperation)}
>
- {isAbortingOperation ? : null}
+ {isAbortingOperation ? (
+
+ ) : null}
{conflictOperation === 'rebase'
? t('auto.components.right.sidebar.SourceControl.425f138269', 'Abort rebase')
: t('auto.components.right.sidebar.SourceControl.540ca8f78c', 'Abort merge')}
@@ -181,7 +184,7 @@ export function OperationBanner({
onClick={onCompleteMerge}
>
{isCompletingMerge ? (
-
+
) : (
)}
@@ -213,7 +216,9 @@ export function OperationBanner({
disabled={isAbortingOperation || isCompletingMerge}
onClick={() => onAbortOperation(conflictOperation)}
>
- {isAbortingOperation ? : null}
+ {isAbortingOperation ? (
+
+ ) : null}
{conflictOperation === 'rebase'
? t('auto.components.right.sidebar.SourceControl.425f138269', 'Abort rebase')
: t('auto.components.right.sidebar.SourceControl.540ca8f78c', 'Abort merge')}
diff --git a/src/renderer/src/components/right-sidebar/source-control/listing/status-retry-button.tsx b/src/renderer/src/components/right-sidebar/source-control/listing/status-retry-button.tsx
index 3de414ca05c2..e4795ed921c4 100644
--- a/src/renderer/src/components/right-sidebar/source-control/listing/status-retry-button.tsx
+++ b/src/renderer/src/components/right-sidebar/source-control/listing/status-retry-button.tsx
@@ -1,3 +1,4 @@
+import { observeVisibleAnimation } from '@/lib/window-activity/offscreen-animation-pause'
import React, { useEffect, useRef, useState } from 'react'
import { Loader2 } from 'lucide-react'
import { toast } from 'sonner'
@@ -73,7 +74,9 @@ export function StatusRetryButton({
disabled={isRetrying}
onClick={() => void handleRetry()}
>
- {showSpinner ? : null}
+ {showSpinner ? (
+
+ ) : null}
{t('auto.components.right.sidebar.SourceControl.286dbda4d6', 'Retry')}
)
diff --git a/src/renderer/src/components/right-sidebar/source-control/listing/submodule-placeholder-row.tsx b/src/renderer/src/components/right-sidebar/source-control/listing/submodule-placeholder-row.tsx
index 984e744dc291..6b3618492ceb 100644
--- a/src/renderer/src/components/right-sidebar/source-control/listing/submodule-placeholder-row.tsx
+++ b/src/renderer/src/components/right-sidebar/source-control/listing/submodule-placeholder-row.tsx
@@ -1,3 +1,4 @@
+import { observeVisibleAnimation } from '@/lib/window-activity/offscreen-animation-pause'
import React from 'react'
import { Loader2 } from 'lucide-react'
import { cn } from '@/lib/class-names'
@@ -41,7 +42,9 @@ export function SubmodulePlaceholderRow({
paddingLeft: `${depth * SOURCE_CONTROL_TREE_INDENT_PX + SOURCE_CONTROL_TREE_FILE_PADDING_PX}px`
}}
>
- {state === 'loading' && }
+ {state === 'loading' && (
+
+ )}
{message ?? fallback}
)
diff --git a/src/renderer/src/components/right-sidebar/source-control/panel/branch-context-row.tsx b/src/renderer/src/components/right-sidebar/source-control/panel/branch-context-row.tsx
index 5ae7f917cb47..9e358ca466bd 100644
--- a/src/renderer/src/components/right-sidebar/source-control/panel/branch-context-row.tsx
+++ b/src/renderer/src/components/right-sidebar/source-control/panel/branch-context-row.tsx
@@ -1,3 +1,4 @@
+import { observeVisibleAnimation } from '@/lib/window-activity/offscreen-animation-pause'
import React from 'react'
import { ExternalLink, Loader2, RefreshCw } from 'lucide-react'
import type { GitBranchCompareSummary } from '../../../../../../shared/git/diff/git-diff-compare-types'
@@ -163,7 +164,13 @@ export function SourceControlBranchContextRow({
baseLabel={baseLabel}
onChangeBaseRef={onChangeBaseRef}
changeBaseTitle={changeBaseTitle}
- leading={
}
+ leading={
+
+ }
trailing={
<>
diff --git a/src/renderer/src/components/right-sidebar/source-control/panel/header-review-actions.tsx b/src/renderer/src/components/right-sidebar/source-control/panel/header-review-actions.tsx
index 532902121656..054adf5d24be 100644
--- a/src/renderer/src/components/right-sidebar/source-control/panel/header-review-actions.tsx
+++ b/src/renderer/src/components/right-sidebar/source-control/panel/header-review-actions.tsx
@@ -1,3 +1,4 @@
+import { observeVisibleAnimation } from '@/lib/window-activity/offscreen-animation-pause'
import type React from 'react'
import { GitPullRequestArrow, Loader2 } from 'lucide-react'
import type { HostedReviewInfo } from '../../../../../../shared/source-control/hosted-review/hosted-review-contracts'
@@ -55,7 +56,7 @@ export function CreatePrHeaderButton({
className="h-6 shrink-0 px-2 text-[11px]"
>
{isCreatePrIntentInFlight || isCreatingPr ? (
-
+
) : (
)}
diff --git a/src/renderer/src/components/right-sidebar/source-control/panel/source-control-fix-split-button.tsx b/src/renderer/src/components/right-sidebar/source-control/panel/source-control-fix-split-button.tsx
index 5748e7b10cb3..2c3c01fa78c9 100644
--- a/src/renderer/src/components/right-sidebar/source-control/panel/source-control-fix-split-button.tsx
+++ b/src/renderer/src/components/right-sidebar/source-control/panel/source-control-fix-split-button.tsx
@@ -1,3 +1,4 @@
+import { observeVisibleAnimation } from '@/lib/window-activity/offscreen-animation-pause'
import { useSourceControlScope, useSourceControlScopeOwner } from './worktree-scope'
import React, { useState } from 'react'
import { ChevronDown, RefreshCw, SlidersHorizontal, Sparkle } from 'lucide-react'
@@ -110,7 +111,10 @@ export function SourceControlFixSplitButton({
onClick={() => void onFixWithDefaultAgent()}
>
{isLaunching ? (
-
+
) : (
)}
diff --git a/src/renderer/src/components/right-sidebar/source-control/sync/compare-summary.tsx b/src/renderer/src/components/right-sidebar/source-control/sync/compare-summary.tsx
index 77e2f93da6e4..1dd0cce15f72 100644
--- a/src/renderer/src/components/right-sidebar/source-control/sync/compare-summary.tsx
+++ b/src/renderer/src/components/right-sidebar/source-control/sync/compare-summary.tsx
@@ -1,3 +1,4 @@
+import { observeVisibleAnimation } from '@/lib/window-activity/offscreen-animation-pause'
import React from 'react'
import { ArrowUp, RefreshCw, Settings2, type LucideIcon } from 'lucide-react'
import { Button } from '@/components/ui/button'
@@ -75,7 +76,7 @@ export function CompareSummary({
if (!summary || summary.status === 'loading') {
return (
-
+
{t(
'auto.components.right.sidebar.SourceControl.comparingAgainstRef',
diff --git a/src/renderer/src/components/right-sidebar/source-control/sync/git-history-panel.tsx b/src/renderer/src/components/right-sidebar/source-control/sync/git-history-panel.tsx
index 01f41f2234fb..fd091e0bbf0d 100644
--- a/src/renderer/src/components/right-sidebar/source-control/sync/git-history-panel.tsx
+++ b/src/renderer/src/components/right-sidebar/source-control/sync/git-history-panel.tsx
@@ -1,3 +1,4 @@
+import { observeVisibleAnimation } from '@/lib/window-activity/offscreen-animation-pause'
import { useVirtualizer } from '@tanstack/react-virtual'
import { GitGraphOpenButton } from './git-graph-open-button'
import { CommitsHeaderIconButton } from './commits-header-icon-button'
@@ -307,7 +308,10 @@ export function GitHistoryPanel({
'Refresh commits'
)}
>
-
+
diff --git a/src/renderer/src/components/runtime-access/RuntimeHostAccessForm.tsx b/src/renderer/src/components/runtime-access/RuntimeHostAccessForm.tsx
index 17e3d10af558..a769b3773f7b 100644
--- a/src/renderer/src/components/runtime-access/RuntimeHostAccessForm.tsx
+++ b/src/renderer/src/components/runtime-access/RuntimeHostAccessForm.tsx
@@ -1,3 +1,4 @@
+import { observeVisibleAnimation } from '@/lib/window-activity/offscreen-animation-pause'
import { Loader2, Plus } from 'lucide-react'
import { useMemo, useState } from 'react'
import { parseHostAccessLink } from '../../../../shared/remote-runtime/pairing/remote-pairing-address'
@@ -219,7 +220,11 @@ export function RuntimeHostAccessForm({
{t('auto.components.settings.RuntimeHostAccessForm.cancel', 'Cancel')}
- {busy ? : }
+ {busy ? (
+
+ ) : (
+
+ )}
{tunnelOverrideEnabled
? t(
'auto.components.settings.RuntimeHostAccessForm.addServerWithTunnel',
diff --git a/src/renderer/src/components/runtime-access/RuntimeRepairDialog.tsx b/src/renderer/src/components/runtime-access/RuntimeRepairDialog.tsx
index 7caa3e8ce1db..2a85d2215226 100644
--- a/src/renderer/src/components/runtime-access/RuntimeRepairDialog.tsx
+++ b/src/renderer/src/components/runtime-access/RuntimeRepairDialog.tsx
@@ -1,3 +1,4 @@
+import { observeVisibleAnimation } from '@/lib/window-activity/offscreen-animation-pause'
import { Loader2, Link2 } from 'lucide-react'
import { useMemo, useState } from 'react'
import { toast } from 'sonner'
@@ -180,7 +181,11 @@ function RuntimeRepairForm({
{t('auto.components.settings.RuntimeHostAccessForm.cancel', 'Cancel')}
- {busy ? : }
+ {busy ? (
+
+ ) : (
+
+ )}
{t('auto.components.settings.RuntimeRepairDialog.submit', 'Re-pair')}
diff --git a/src/renderer/src/components/settings/accounts/account-rename-button.tsx b/src/renderer/src/components/settings/accounts/account-rename-button.tsx
index 28b3e54805a9..c0b9860150a6 100644
--- a/src/renderer/src/components/settings/accounts/account-rename-button.tsx
+++ b/src/renderer/src/components/settings/accounts/account-rename-button.tsx
@@ -1,3 +1,4 @@
+import { observeVisibleAnimation } from '@/lib/window-activity/offscreen-animation-pause'
import { Loader2, Pencil } from 'lucide-react'
import { translate } from '@/i18n/i18n'
import type { Translate } from '@/i18n/use-translate'
@@ -43,7 +44,11 @@ export function AccountRenameButton({
disabled={disabled || pending}
className="h-6 px-2 text-muted-foreground hover:text-foreground"
>
- {pending ? : }
+ {pending ? (
+
+ ) : (
+
+ )}
{t('accounts.rename.action', 'Rename')}
)
diff --git a/src/renderer/src/components/settings/accounts/claude/accounts-pane-claude-account-row.tsx b/src/renderer/src/components/settings/accounts/claude/accounts-pane-claude-account-row.tsx
index b76294dc67db..ad4a6cb0b0fb 100644
--- a/src/renderer/src/components/settings/accounts/claude/accounts-pane-claude-account-row.tsx
+++ b/src/renderer/src/components/settings/accounts/claude/accounts-pane-claude-account-row.tsx
@@ -1,3 +1,4 @@
+import { observeVisibleAnimation } from '@/lib/window-activity/offscreen-animation-pause'
import { Loader2, RefreshCw, Trash2 } from 'lucide-react'
import type { ClaudeRateLimitAccountsState } from '../../../../../../shared/agent-accounts/managed-account-types'
import { getManagedAccountPrimaryLabel } from '../../../../../../shared/agent-accounts/managed-account-display-names'
@@ -154,7 +155,7 @@ export function renderClaudeAccountRow(
className="h-6 px-2 text-muted-foreground hover:text-foreground"
>
{isReauthing ? (
-
+
) : (
)}
diff --git a/src/renderer/src/components/settings/accounts/claude/accounts-pane-claude-section.tsx b/src/renderer/src/components/settings/accounts/claude/accounts-pane-claude-section.tsx
index c6a7f2a224f3..1101171899f2 100644
--- a/src/renderer/src/components/settings/accounts/claude/accounts-pane-claude-section.tsx
+++ b/src/renderer/src/components/settings/accounts/claude/accounts-pane-claude-section.tsx
@@ -1,3 +1,4 @@
+import { observeVisibleAnimation } from '@/lib/window-activity/offscreen-animation-pause'
import { Loader2, Plus, X } from 'lucide-react'
import { translate } from '@/i18n/i18n'
import type { Translate } from '@/i18n/use-translate'
@@ -126,7 +127,10 @@ export function renderClaudeAccountsSection(
className="gap-1.5"
>
{claudeAction === 'adding' ? (
-
+
) : (
)}
diff --git a/src/renderer/src/components/settings/accounts/codex/accounts-pane-codex-account-row.tsx b/src/renderer/src/components/settings/accounts/codex/accounts-pane-codex-account-row.tsx
index 7d7e7a7d1df5..de99bd589487 100644
--- a/src/renderer/src/components/settings/accounts/codex/accounts-pane-codex-account-row.tsx
+++ b/src/renderer/src/components/settings/accounts/codex/accounts-pane-codex-account-row.tsx
@@ -1,3 +1,4 @@
+import { observeVisibleAnimation } from '@/lib/window-activity/offscreen-animation-pause'
import { Loader2, RefreshCw, Trash2 } from 'lucide-react'
import type { CodexRateLimitAccountsState } from '../../../../../../shared/agent-accounts/managed-account-types'
import { translate } from '@/i18n/i18n'
@@ -191,7 +192,7 @@ export function renderCodexAccountRow(
className="h-6 px-2 text-muted-foreground hover:text-foreground"
>
{isReauthing ? (
-
+
) : (
)}
@@ -211,7 +212,7 @@ export function renderCodexAccountRow(
className="h-6 px-2 text-muted-foreground hover:text-destructive"
>
{isRemoving ? (
-
+
) : (
)}
diff --git a/src/renderer/src/components/settings/accounts/codex/accounts-pane-codex-section.tsx b/src/renderer/src/components/settings/accounts/codex/accounts-pane-codex-section.tsx
index 988690690a8b..21c9ca6786f7 100644
--- a/src/renderer/src/components/settings/accounts/codex/accounts-pane-codex-section.tsx
+++ b/src/renderer/src/components/settings/accounts/codex/accounts-pane-codex-section.tsx
@@ -1,3 +1,4 @@
+import { observeVisibleAnimation } from '@/lib/window-activity/offscreen-animation-pause'
import { AlertTriangle, Loader2, Plus, X } from 'lucide-react'
import { translate } from '@/i18n/i18n'
import type { Translate } from '@/i18n/use-translate'
@@ -185,7 +186,7 @@ export function renderCodexAccountsSection(
className="gap-1.5"
>
{codexAction === 'adding' ? (
-
+
) : (
)}
diff --git a/src/renderer/src/components/settings/accounts/providers/AntigravityAccountsSection.tsx b/src/renderer/src/components/settings/accounts/providers/AntigravityAccountsSection.tsx
index 182471573e02..6e4ea78e80ce 100644
--- a/src/renderer/src/components/settings/accounts/providers/AntigravityAccountsSection.tsx
+++ b/src/renderer/src/components/settings/accounts/providers/AntigravityAccountsSection.tsx
@@ -1,3 +1,4 @@
+import { observeVisibleAnimation } from '@/lib/window-activity/offscreen-animation-pause'
import { useEffect, useRef, useState } from 'react'
import { Loader2, RefreshCw } from 'lucide-react'
import { useTranslate } from '@/i18n/use-translate'
@@ -252,7 +253,10 @@ export function AntigravityAccountsSection({
onClick={() => void run('List')}
>
{busy ? (
-
+
) : (
)}
diff --git a/src/renderer/src/components/settings/accounts/providers/CursorAccountsSection.tsx b/src/renderer/src/components/settings/accounts/providers/CursorAccountsSection.tsx
index 3291c885effe..f11aaa7bbcae 100644
--- a/src/renderer/src/components/settings/accounts/providers/CursorAccountsSection.tsx
+++ b/src/renderer/src/components/settings/accounts/providers/CursorAccountsSection.tsx
@@ -1,3 +1,4 @@
+import { observeVisibleAnimation } from '@/lib/window-activity/offscreen-animation-pause'
import { useCallback, useEffect, useRef, useState } from 'react'
import { ExternalLink, Loader2, RefreshCw, ShieldCheck } from 'lucide-react'
import { AgentIcon } from '@/components/agent/icons/AgentIcon'
@@ -194,7 +195,7 @@ export function CursorAccountsSection(): React.JSX.Element {
className="shrink-0"
>
{refreshing ? (
-
+
) : (
)}
diff --git a/src/renderer/src/components/settings/accounts/providers/GrokAccountsSection.tsx b/src/renderer/src/components/settings/accounts/providers/GrokAccountsSection.tsx
index 9b05c9facf9b..0730bd4e416e 100644
--- a/src/renderer/src/components/settings/accounts/providers/GrokAccountsSection.tsx
+++ b/src/renderer/src/components/settings/accounts/providers/GrokAccountsSection.tsx
@@ -1,3 +1,4 @@
+import { observeVisibleAnimation } from '@/lib/window-activity/offscreen-animation-pause'
import { useCallback, useEffect, useState } from 'react'
import { ExternalLink, Loader2, RefreshCw, ShieldCheck } from 'lucide-react'
import { AgentIcon } from '@/components/agent/icons/AgentIcon'
@@ -147,7 +148,7 @@ export function GrokAccountsSection(): React.JSX.Element {
className="shrink-0 gap-1"
>
{refreshing ? (
-
+
) : (
)}
diff --git a/src/renderer/src/components/settings/accounts/usage/ZcodePlanAccountsSection.tsx b/src/renderer/src/components/settings/accounts/usage/ZcodePlanAccountsSection.tsx
index 50567151b37c..9acf0e898069 100644
--- a/src/renderer/src/components/settings/accounts/usage/ZcodePlanAccountsSection.tsx
+++ b/src/renderer/src/components/settings/accounts/usage/ZcodePlanAccountsSection.tsx
@@ -1,3 +1,4 @@
+import { observeVisibleAnimation } from '@/lib/window-activity/offscreen-animation-pause'
import { useState } from 'react'
import { isWebClientLocation } from '@/app-shell/platform/web-client-location'
import { ExternalLink, Loader2, Lock, LockOpen, RefreshCw, ShieldCheck } from 'lucide-react'
@@ -225,7 +226,7 @@ export function ZcodePlanAccountsSection({
className="shrink-0"
>
{refreshing ? (
-
+
) : (
)}
@@ -329,7 +330,9 @@ export function ZcodePlanAccountsSection({
disabled={credentialBusy || !keyEditable || !apiKeyDraft.trim()}
className="shrink-0"
>
- {credentialBusy ? : null}
+ {credentialBusy ? (
+
+ ) : null}
{apiKeyConfigured
? t('auto.components.settings.ZcodePlanAccountsSection.replace', 'Replace')
: t('auto.components.settings.ZcodePlanAccountsSection.save', 'Save')}
diff --git a/src/renderer/src/components/settings/accounts/usage/accounts-pane-minimax-credentials.tsx b/src/renderer/src/components/settings/accounts/usage/accounts-pane-minimax-credentials.tsx
index b15cd88900a6..418e06798da2 100644
--- a/src/renderer/src/components/settings/accounts/usage/accounts-pane-minimax-credentials.tsx
+++ b/src/renderer/src/components/settings/accounts/usage/accounts-pane-minimax-credentials.tsx
@@ -1,3 +1,4 @@
+import { observeVisibleAnimation } from '@/lib/window-activity/offscreen-animation-pause'
import { HelpCircle, Loader2, Lock, LockOpen } from 'lucide-react'
import { useNow } from '../../../../lib/window-activity/use-now'
import { translate } from '@/i18n/i18n'
@@ -212,7 +213,9 @@ export function MiniMaxCredentials({
disabled={miniMaxCredentialBusy || !cookieEditable || !miniMaxCookieDraft.trim()}
className="h-7 shrink-0 text-xs"
>
- {miniMaxCredentialBusy ? : null}
+ {miniMaxCredentialBusy ? (
+
+ ) : null}
{miniMaxConfigured
? t('auto.components.settings.AccountsPane.f38b9cc4bd', 'Replace')
: t('auto.components.settings.AccountsPane.590a3130f9', 'Save')}
@@ -323,7 +326,9 @@ export function MiniMaxCredentials({
disabled={apiKeyReplaceLocked || !miniMaxApiKeyDraft.trim()}
className="h-7 shrink-0 text-xs"
>
- {miniMaxCredentialBusy ? : null}
+ {miniMaxCredentialBusy ? (
+
+ ) : null}
{miniMaxApiKeyConfigured
? t('auto.components.settings.AccountsPane.f38b9cc4bd', 'Replace')
: t('auto.components.settings.AccountsPane.590a3130f9', 'Save')}
diff --git a/src/renderer/src/components/settings/advanced/AdvancedPane.tsx b/src/renderer/src/components/settings/advanced/AdvancedPane.tsx
index acf3b0f8823a..c81e3939053e 100644
--- a/src/renderer/src/components/settings/advanced/AdvancedPane.tsx
+++ b/src/renderer/src/components/settings/advanced/AdvancedPane.tsx
@@ -1,3 +1,4 @@
+import { observeVisibleAnimation } from '@/lib/window-activity/offscreen-animation-pause'
import { useRef, useState } from 'react'
import { Info, Loader2, RotateCw } from 'lucide-react'
import type { GlobalSettings } from '../../../../../shared/settings/global-settings-types'
@@ -122,7 +123,10 @@ export function AdvancedPane({ settings, updateSettings }: AdvancedPaneProps): R
className="shrink-0 gap-1.5"
>
{http1CompatibilityRelaunching ? (
-
+
) : (
)}
diff --git a/src/renderer/src/components/settings/advanced/uninstall/OrcaUninstallFooter.tsx b/src/renderer/src/components/settings/advanced/uninstall/OrcaUninstallFooter.tsx
index cdc48a4af2b6..e13c4b1f8fb8 100644
--- a/src/renderer/src/components/settings/advanced/uninstall/OrcaUninstallFooter.tsx
+++ b/src/renderer/src/components/settings/advanced/uninstall/OrcaUninstallFooter.tsx
@@ -1,3 +1,4 @@
+import { observeVisibleAnimation } from '@/lib/window-activity/offscreen-animation-pause'
import type React from 'react'
import { Check, Copy, Loader2 } from 'lucide-react'
import { Trans } from 'react-i18next'
@@ -203,7 +204,10 @@ export function OrcaUninstallFooter({
!running && 'invisible'
)}
>
-
+
{t('settings.uninstall.uninstalling', 'Uninstalling…')}
diff --git a/src/renderer/src/components/settings/advanced/uninstall/OrcaUninstallStatus.tsx b/src/renderer/src/components/settings/advanced/uninstall/OrcaUninstallStatus.tsx
index 6019780d8548..c4ec6c55960b 100644
--- a/src/renderer/src/components/settings/advanced/uninstall/OrcaUninstallStatus.tsx
+++ b/src/renderer/src/components/settings/advanced/uninstall/OrcaUninstallStatus.tsx
@@ -1,3 +1,4 @@
+import { observeVisibleAnimation } from '@/lib/window-activity/offscreen-animation-pause'
import type React from 'react'
import { Check, CircleAlert, CircleMinus, Loader2 } from 'lucide-react'
import type { OrcaUninstallEntryState } from '../../../../../../shared/uninstall/orca-uninstall-types'
@@ -43,8 +44,9 @@ export function OrcaUninstallStatusIcon({
if (kind === 'running') {
return (
)
}
diff --git a/src/renderer/src/components/settings/agents/launch/AgentDetectionCatalog.tsx b/src/renderer/src/components/settings/agents/launch/AgentDetectionCatalog.tsx
index 1d5664f7eec0..75d77fbfc3b6 100644
--- a/src/renderer/src/components/settings/agents/launch/AgentDetectionCatalog.tsx
+++ b/src/renderer/src/components/settings/agents/launch/AgentDetectionCatalog.tsx
@@ -1,3 +1,4 @@
+import { observeVisibleAnimation } from '@/lib/window-activity/offscreen-animation-pause'
import { useLayoutEffect, useRef, useState } from 'react'
import { AlertTriangle, RefreshCw } from 'lucide-react'
import type { AgentCatalogEntry } from '@/lib/agent-catalog/agent-catalog'
@@ -150,7 +151,10 @@ export function AgentDetectionCatalog({
}
className="h-7 gap-1.5 text-xs text-muted-foreground hover:text-foreground"
>
-
+
{isRefreshing
? t('auto.components.settings.AgentsPane.c9b33eb5c0', 'Refreshing…')
: t('auto.components.settings.AgentsPane.0d9e293a02', 'Refresh')}
@@ -225,7 +229,10 @@ function RefreshButton({
disabled={isRefreshing}
className="h-7 shrink-0 gap-1.5 text-xs"
>
-
+
{isRefreshing
? t('auto.components.settings.AgentsPane.c9b33eb5c0', 'Refreshing…')
: t('auto.components.settings.AgentsPane.0d9e293a02', 'Refresh')}
diff --git a/src/renderer/src/components/settings/appearance/WindowMaterialSetting.tsx b/src/renderer/src/components/settings/appearance/WindowMaterialSetting.tsx
index a7c6c0d70e56..988cb87b15ca 100644
--- a/src/renderer/src/components/settings/appearance/WindowMaterialSetting.tsx
+++ b/src/renderer/src/components/settings/appearance/WindowMaterialSetting.tsx
@@ -1,3 +1,4 @@
+import { observeVisibleAnimation } from '@/lib/window-activity/offscreen-animation-pause'
import { useState } from 'react'
import { RotateCw } from 'lucide-react'
import type { GlobalSettings } from '../../../../../shared/settings/global-settings-types'
@@ -119,7 +120,10 @@ function RestartBanner(): React.JSX.Element {
disabled={relaunching}
onClick={() => void relaunch()}
>
-
+
{relaunching
? t('auto.components.settings.TerminalWindowSection.907131d741', 'Restarting…')
: t('auto.components.settings.TerminalWindowSection.8abdab9f7c', 'Restart now')}
diff --git a/src/renderer/src/components/settings/appearance/themes/AppearanceThemeControl.tsx b/src/renderer/src/components/settings/appearance/themes/AppearanceThemeControl.tsx
index e503f31159ac..4ceacbc35966 100644
--- a/src/renderer/src/components/settings/appearance/themes/AppearanceThemeControl.tsx
+++ b/src/renderer/src/components/settings/appearance/themes/AppearanceThemeControl.tsx
@@ -1,3 +1,4 @@
+import { observeVisibleAnimation } from '@/lib/window-activity/offscreen-animation-pause'
import type React from 'react'
import { Loader2, Store, Zap } from 'lucide-react'
import type { GlobalSettings } from '../../../../../../shared/settings/global-settings-types'
@@ -250,7 +251,10 @@ export function AppearanceThemeSlotSelect({
status={
catalog.loading ? (
-
+
{t(
'auto.components.settings.AppearanceThemeControl.moreThemesLoading',
'Loading themes…'
@@ -262,7 +266,10 @@ export function AppearanceThemeSlotSelect({
/>
{catalog.installing ? (
-
+
{t(
'auto.components.settings.AppearanceThemeControl.installingTheme',
'Installing {{value0}}…',
diff --git a/src/renderer/src/components/settings/bots/BotSkillsSection.tsx b/src/renderer/src/components/settings/bots/BotSkillsSection.tsx
index 9e1083fa25f0..3154dea610c9 100644
--- a/src/renderer/src/components/settings/bots/BotSkillsSection.tsx
+++ b/src/renderer/src/components/settings/bots/BotSkillsSection.tsx
@@ -1,3 +1,4 @@
+import { observeVisibleAnimation } from '@/lib/window-activity/offscreen-animation-pause'
import React, { useMemo, useState } from 'react'
import { Folder, Info, LoaderCircle, Plus, Server, Trash2 } from 'lucide-react'
import { Button } from '@/components/ui/button'
@@ -115,7 +116,12 @@ function ProjectRow(props: {
icon={folderIcon}
name={name}
description={t('settings.bots.skills.reading', 'Reading its skills…')}
- trailing={}
+ trailing={
+
+ }
/>
)
}
diff --git a/src/renderer/src/components/settings/bots/BotSoulAndMemoryBodies.tsx b/src/renderer/src/components/settings/bots/BotSoulAndMemoryBodies.tsx
index 7eb2b7e3c649..eb2bbde0ddd7 100644
--- a/src/renderer/src/components/settings/bots/BotSoulAndMemoryBodies.tsx
+++ b/src/renderer/src/components/settings/bots/BotSoulAndMemoryBodies.tsx
@@ -1,3 +1,4 @@
+import { observeVisibleAnimation } from '@/lib/window-activity/offscreen-animation-pause'
// A bot's SOUL.md editor and MEMORY.md panel, read from its home on the computer that runs it.
import { Loader2 } from 'lucide-react'
import type { BotRef } from '@/lib/bot-hosts'
@@ -50,7 +51,7 @@ function BotHomeFileBody({
}
return (
-
+
{t('bots.settingsView.reading', 'Reading {{file}}…', { file: name })}
)
diff --git a/src/renderer/src/components/settings/browser/profiles/BrowserProfileRow.tsx b/src/renderer/src/components/settings/browser/profiles/BrowserProfileRow.tsx
index 402e5e650a73..5f0182dd126f 100644
--- a/src/renderer/src/components/settings/browser/profiles/BrowserProfileRow.tsx
+++ b/src/renderer/src/components/settings/browser/profiles/BrowserProfileRow.tsx
@@ -1,3 +1,4 @@
+import { observeVisibleAnimation } from '@/lib/window-activity/offscreen-animation-pause'
import { Import, Loader2, Trash2 } from 'lucide-react'
import { toast } from 'sonner'
import { emitBrowserCookieImportToast } from '@/lib/browser/cookies/browser-cookie-import-toast'
@@ -201,7 +202,7 @@ export function BrowserProfileRow({
disabled={isImporting}
>
{isImporting ? (
-
+
) : (
)}
diff --git a/src/renderer/src/components/settings/browser/use/BrowserUseCookieImportStep.tsx b/src/renderer/src/components/settings/browser/use/BrowserUseCookieImportStep.tsx
index e1702d0d7e25..8dca1bdeb597 100644
--- a/src/renderer/src/components/settings/browser/use/BrowserUseCookieImportStep.tsx
+++ b/src/renderer/src/components/settings/browser/use/BrowserUseCookieImportStep.tsx
@@ -1,3 +1,4 @@
+import { observeVisibleAnimation } from '@/lib/window-activity/offscreen-animation-pause'
import { Import, Loader2 } from 'lucide-react'
import { toast } from 'sonner'
import { emitBrowserCookieImportToast } from '@/lib/browser/cookies/browser-cookie-import-toast'
@@ -146,7 +147,7 @@ export function BrowserUseCookieImportStep({
className="gap-1.5"
>
{isImportingDefault ? (
-
+
) : (
)}
diff --git a/src/renderer/src/components/settings/computer-use/ComputerUsePane.tsx b/src/renderer/src/components/settings/computer-use/ComputerUsePane.tsx
index e800acdafa32..f1977c02bc6b 100644
--- a/src/renderer/src/components/settings/computer-use/ComputerUsePane.tsx
+++ b/src/renderer/src/components/settings/computer-use/ComputerUsePane.tsx
@@ -1,3 +1,4 @@
+import { observeVisibleAnimation } from '@/lib/window-activity/offscreen-animation-pause'
import { useCallback, useEffect, useMemo, useRef, useState, type ReactNode } from 'react'
import { Accessibility, Camera, ExternalLink, RefreshCw, ShieldCheck } from 'lucide-react'
import { toast } from 'sonner'
@@ -317,7 +318,10 @@ export function ComputerUsePane(): React.JSX.Element {
disabled={resetting}
onClick={() => void refresh()}
>
-
+
{t('auto.components.settings.ComputerUsePane.d95d1cfab8', 'Refresh')}
diff --git a/src/renderer/src/components/settings/developer-permissions/DeveloperPermissionsPane.tsx b/src/renderer/src/components/settings/developer-permissions/DeveloperPermissionsPane.tsx
index c20052ccbade..d8a040b037ce 100644
--- a/src/renderer/src/components/settings/developer-permissions/DeveloperPermissionsPane.tsx
+++ b/src/renderer/src/components/settings/developer-permissions/DeveloperPermissionsPane.tsx
@@ -1,3 +1,4 @@
+import { observeVisibleAnimation } from '@/lib/window-activity/offscreen-animation-pause'
import { useCallback, useEffect, useMemo, useRef, useState, type ReactNode } from 'react'
import {
Accessibility,
@@ -332,7 +333,10 @@ export function DeveloperPermissionsPane(): React.JSX.Element {
)}
action={
void refresh()}>
-
+
{t('auto.components.settings.DeveloperPermissionsPane.4c17304beb', 'Refresh')}
}
diff --git a/src/renderer/src/components/settings/general/GeneralSupportSection.tsx b/src/renderer/src/components/settings/general/GeneralSupportSection.tsx
index 621be4d1d2da..c33bc7196e5e 100644
--- a/src/renderer/src/components/settings/general/GeneralSupportSection.tsx
+++ b/src/renderer/src/components/settings/general/GeneralSupportSection.tsx
@@ -1,3 +1,4 @@
+import { observeVisibleAnimation } from '@/lib/window-activity/offscreen-animation-pause'
import type React from 'react'
import { useEffect, useState } from 'react'
import { ExternalLink, Loader2, Star } from 'lucide-react'
@@ -140,8 +141,14 @@ function SupportSection({
function SupportRowSkeleton(): React.JSX.Element {
return (
)
}
@@ -179,7 +186,7 @@ function SupportRow({
className="shrink-0 gap-1.5"
>
{state === 'starring' || state === 'opening-github' ? (
-
+
) : state === 'web-fallback' ? (
) : (
diff --git a/src/renderer/src/components/settings/mobile/emulator/MobileEmulatorSettingsPane.tsx b/src/renderer/src/components/settings/mobile/emulator/MobileEmulatorSettingsPane.tsx
index 73503ee5f673..a38b3bfd0655 100644
--- a/src/renderer/src/components/settings/mobile/emulator/MobileEmulatorSettingsPane.tsx
+++ b/src/renderer/src/components/settings/mobile/emulator/MobileEmulatorSettingsPane.tsx
@@ -1,3 +1,4 @@
+import { observeVisibleAnimation } from '@/lib/window-activity/offscreen-animation-pause'
import { useCallback, useEffect, useState } from 'react'
import { Loader2, RefreshCw } from 'lucide-react'
import type { GlobalSettings } from '../../../../../../shared/settings/global-settings-types'
@@ -190,7 +191,12 @@ export function MobileEmulatorSettingsPane({
variant="outline"
className={cn('text-[11px]', statusBadgeClassName(availability, enabled))}
>
- {refreshing ?
: null}
+ {refreshing ? (
+
+ ) : null}
{statusText(availability, enabled, t)}
{refreshing ? (
-
+
) : (
)}
diff --git a/src/renderer/src/components/settings/mobile/pairing/MobilePairingSetupSection.tsx b/src/renderer/src/components/settings/mobile/pairing/MobilePairingSetupSection.tsx
index 66f67e282426..f99678a7aca1 100644
--- a/src/renderer/src/components/settings/mobile/pairing/MobilePairingSetupSection.tsx
+++ b/src/renderer/src/components/settings/mobile/pairing/MobilePairingSetupSection.tsx
@@ -1,3 +1,4 @@
+import { observeVisibleAnimation } from '@/lib/window-activity/offscreen-animation-pause'
import { useState, type ReactNode } from 'react'
import { ChevronDown, Loader2, QrCode, RefreshCw } from 'lucide-react'
import { Button } from '../../../ui/button'
@@ -95,7 +96,10 @@ export function MobilePairingSetupSection({
)}
className="text-muted-foreground"
>
-
+
@@ -194,7 +198,7 @@ export function MobilePairingSetupSection({
{loading ? (
-
+
) : hasQrCode ? (
) : (
diff --git a/src/renderer/src/components/settings/privacy/PrivacyDiagnosticBundleControls.tsx b/src/renderer/src/components/settings/privacy/PrivacyDiagnosticBundleControls.tsx
index 90a1512e2e54..73c142d3245b 100644
--- a/src/renderer/src/components/settings/privacy/PrivacyDiagnosticBundleControls.tsx
+++ b/src/renderer/src/components/settings/privacy/PrivacyDiagnosticBundleControls.tsx
@@ -1,3 +1,4 @@
+import { observeVisibleAnimation } from '@/lib/window-activity/offscreen-animation-pause'
import { Check, Clipboard, Eye, FileText, Loader2, Trash2, UploadCloud, X } from 'lucide-react'
import type {
DiagnosticsBundlePayload,
@@ -179,7 +180,11 @@ export function getDiagnosticBundleDescription(
}
function ActionIcon({ busy, icon }: { readonly busy: boolean; readonly icon: React.ReactNode }) {
- return busy ? : icon
+ return busy ? (
+
+ ) : (
+ icon
+ )
}
function formatBytes(bytes: number): string {
diff --git a/src/renderer/src/components/settings/repository/hooks/RepositoryHookScriptSetting.tsx b/src/renderer/src/components/settings/repository/hooks/RepositoryHookScriptSetting.tsx
index acac3ece7f6b..cb5021b9e34e 100644
--- a/src/renderer/src/components/settings/repository/hooks/RepositoryHookScriptSetting.tsx
+++ b/src/renderer/src/components/settings/repository/hooks/RepositoryHookScriptSetting.tsx
@@ -1,3 +1,4 @@
+import { observeVisibleAnimation } from '@/lib/window-activity/offscreen-animation-pause'
import { useEffect, useRef, useState } from 'react'
import { AlertTriangle, Plus } from 'lucide-react'
import { Button } from '../../../ui/button'
@@ -70,7 +71,8 @@ function SaveIndicator({ status }: { status: 'idle' | 'saving' | 'saved' }) {
aria-live="polite"
>
{isSaving
? t('auto.components.settings.RepositoryHooksSection.81057d5f71', 'Saving...')
diff --git a/src/renderer/src/components/settings/repository/mcp/McpConfigSection.tsx b/src/renderer/src/components/settings/repository/mcp/McpConfigSection.tsx
index 337bde73418a..8b306dd41f76 100644
--- a/src/renderer/src/components/settings/repository/mcp/McpConfigSection.tsx
+++ b/src/renderer/src/components/settings/repository/mcp/McpConfigSection.tsx
@@ -1,3 +1,4 @@
+import { observeVisibleAnimation } from '@/lib/window-activity/offscreen-animation-pause'
import { useCallback, useEffect, useMemo, useRef, useState } from 'react'
import { AlertCircle, FileCode2, LoaderCircle, Plus, RefreshCw } from 'lucide-react'
import { toast } from 'sonner'
@@ -324,7 +325,10 @@ export function McpConfigSection({ repo }: McpConfigSectionProps): React.JSX.Ele
)}
>
{loading ? (
-
+
) : (
)}
@@ -350,7 +354,9 @@ export function McpConfigSection({ repo }: McpConfigSectionProps): React.JSX.Ele
className="flex items-center justify-between py-3 text-xs text-muted-foreground"
>
{formatMcpConfigSummary(configs, t)}
- {loading ? : null}
+ {loading ? (
+
+ ) : null}
{visibleConfigs.length === 0 ? (
-
+
{syncing
? t('auto.components.settings.RepositoryForkSyncSection.syncing', 'Syncing')
: t('auto.components.settings.RepositoryForkSyncSection.c64463b5fc', 'Sync now')}
diff --git a/src/renderer/src/components/settings/repository/source-control/RepositoryGitHubAccountSection.tsx b/src/renderer/src/components/settings/repository/source-control/RepositoryGitHubAccountSection.tsx
index 2eb40b7b463c..5d8228e703dd 100644
--- a/src/renderer/src/components/settings/repository/source-control/RepositoryGitHubAccountSection.tsx
+++ b/src/renderer/src/components/settings/repository/source-control/RepositoryGitHubAccountSection.tsx
@@ -1,3 +1,4 @@
+import { observeVisibleAnimation } from '@/lib/window-activity/offscreen-animation-pause'
import { useCallback, useEffect, useId, useMemo, useRef, useState } from 'react'
import { RefreshCw } from 'lucide-react'
import type { GhAccountBinding } from '../../../../../../shared/github/accounts/account-binding'
@@ -235,7 +236,10 @@ export function RepositoryGitHubAccountSection({
)}
className="size-6 shrink-0"
>
-
+
diff --git a/src/renderer/src/components/settings/runtime-environments/pairing/RuntimePairingGeneratorForm.tsx b/src/renderer/src/components/settings/runtime-environments/pairing/RuntimePairingGeneratorForm.tsx
index 7ad4f529104d..2fb0a12addce 100644
--- a/src/renderer/src/components/settings/runtime-environments/pairing/RuntimePairingGeneratorForm.tsx
+++ b/src/renderer/src/components/settings/runtime-environments/pairing/RuntimePairingGeneratorForm.tsx
@@ -1,3 +1,4 @@
+import { observeVisibleAnimation } from '@/lib/window-activity/offscreen-animation-pause'
import { Link2, Loader2, RefreshCw } from 'lucide-react'
import { Button } from '../../../ui/button'
import { Input } from '../../../ui/input'
@@ -264,7 +265,10 @@ export function RuntimePairingGeneratorForm({
)}
className="text-muted-foreground"
>
-
+
@@ -304,7 +308,11 @@ export function RuntimePairingGeneratorForm({
onClick={onGenerate}
disabled={isGeneratingPairing || !canGenerate}
>
- {isGeneratingPairing ? : }
+ {isGeneratingPairing ? (
+
+ ) : (
+
+ )}
{t('auto.components.settings.RuntimePairingUrlGenerator.createLink', 'Create link')}
diff --git a/src/renderer/src/components/settings/runtime-environments/ssh-access/RuntimeSshAccessControl.tsx b/src/renderer/src/components/settings/runtime-environments/ssh-access/RuntimeSshAccessControl.tsx
index dde77b0ffdac..9a3d5dfb2d0b 100644
--- a/src/renderer/src/components/settings/runtime-environments/ssh-access/RuntimeSshAccessControl.tsx
+++ b/src/renderer/src/components/settings/runtime-environments/ssh-access/RuntimeSshAccessControl.tsx
@@ -1,3 +1,4 @@
+import { observeVisibleAnimation } from '@/lib/window-activity/offscreen-animation-pause'
import { Loader2 } from 'lucide-react'
import { useId, useState } from 'react'
import { toast } from 'sonner'
@@ -139,7 +140,7 @@ export function RuntimeSshAccessControl({
disabled={busy}
onClick={() => void submit()}
>
- {busy ? : null}
+ {busy ? : null}
{t('auto.components.settings.managedServers.access.unlink', 'Stop using SSH')}
@@ -186,7 +187,7 @@ export function RuntimeSshAccessControl({
{footerStart}
- {busy ? : null}
+ {busy ? : null}
{busy
? t('auto.components.settings.managedServers.access.linking', 'Connecting…')
: t('auto.components.settings.managedServers.access.connect', 'Connect')}
diff --git a/src/renderer/src/components/settings/runtime-environments/updates/RemoteServerUpdateDialog.tsx b/src/renderer/src/components/settings/runtime-environments/updates/RemoteServerUpdateDialog.tsx
index ca00603d49b0..79d0e891fe60 100644
--- a/src/renderer/src/components/settings/runtime-environments/updates/RemoteServerUpdateDialog.tsx
+++ b/src/renderer/src/components/settings/runtime-environments/updates/RemoteServerUpdateDialog.tsx
@@ -1,3 +1,4 @@
+import { observeVisibleAnimation } from '@/lib/window-activity/offscreen-animation-pause'
import type React from 'react'
import { AlertTriangle, Loader2 } from 'lucide-react'
import { useEffect } from 'react'
@@ -179,7 +180,7 @@ export function RemoteServerUpdateDialog(): React.JSX.Element {
{checking ? (
-
+
{t(
'auto.components.settings.RemoteServerUpdateDialog.checking',
'Checking paired servers…'
@@ -208,7 +209,7 @@ export function RemoteServerUpdateDialog(): React.JSX.Element {
{checking ? (
-
+
{t(
'auto.components.settings.RemoteServerUpdateDialog.checking',
'Checking paired servers…'
diff --git a/src/renderer/src/components/settings/runtime-environments/updates/RemoteServerUpdateStatus.tsx b/src/renderer/src/components/settings/runtime-environments/updates/RemoteServerUpdateStatus.tsx
index b801742711e1..22c79458bd35 100644
--- a/src/renderer/src/components/settings/runtime-environments/updates/RemoteServerUpdateStatus.tsx
+++ b/src/renderer/src/components/settings/runtime-environments/updates/RemoteServerUpdateStatus.tsx
@@ -1,3 +1,4 @@
+import { observeVisibleAnimation } from '@/lib/window-activity/offscreen-animation-pause'
import type React from 'react'
import { AlertCircle, CheckCircle2, Download, Loader2, ServerOff, Wrench } from 'lucide-react'
import type {
@@ -47,7 +48,7 @@ function phaseIcon(phase: RemoteServerUpdatePhase): React.JSX.Element {
case 'queued':
case 'checking-update':
case 'restarting':
- return
+ return
case 'downloading':
return
case 'current':
diff --git a/src/renderer/src/components/settings/setup-guide/SetupStepBadge.tsx b/src/renderer/src/components/settings/setup-guide/SetupStepBadge.tsx
index 91edb50f2dc2..7c080ca3cf86 100644
--- a/src/renderer/src/components/settings/setup-guide/SetupStepBadge.tsx
+++ b/src/renderer/src/components/settings/setup-guide/SetupStepBadge.tsx
@@ -1,3 +1,4 @@
+import { observeVisibleAnimation } from '@/lib/window-activity/offscreen-animation-pause'
import { Check, Loader2 } from 'lucide-react'
export type StepState = 'pending' | 'done' | 'in-progress'
@@ -19,7 +20,7 @@ export function StepBadge({
if (state === 'in-progress') {
return (
-
+
)
}
diff --git a/src/renderer/src/components/settings/skills/linear/LinearAgentSkillGuide.tsx b/src/renderer/src/components/settings/skills/linear/LinearAgentSkillGuide.tsx
index 210fafc79ead..8dbd6dbb4828 100644
--- a/src/renderer/src/components/settings/skills/linear/LinearAgentSkillGuide.tsx
+++ b/src/renderer/src/components/settings/skills/linear/LinearAgentSkillGuide.tsx
@@ -1,3 +1,4 @@
+import { observeVisibleAnimation } from '@/lib/window-activity/offscreen-animation-pause'
import type { ReactNode } from 'react'
import { Check, Circle, TriangleAlert } from 'lucide-react'
import { Button } from '@/components/ui/button'
@@ -43,7 +44,10 @@ function SetupStatusIcon({
if (checking) {
return (
-
+
)
}
diff --git a/src/renderer/src/components/settings/ssh/SshPaneToolbar.tsx b/src/renderer/src/components/settings/ssh/SshPaneToolbar.tsx
index 85ad05f58c0e..a1477eabc290 100644
--- a/src/renderer/src/components/settings/ssh/SshPaneToolbar.tsx
+++ b/src/renderer/src/components/settings/ssh/SshPaneToolbar.tsx
@@ -1,3 +1,4 @@
+import { observeVisibleAnimation } from '@/lib/window-activity/offscreen-animation-pause'
import { useRef, useState } from 'react'
import {
Loader2,
@@ -70,7 +71,11 @@ export function SshHostsHeaderActions({
return (
<>
- {syncing ? : }
+ {syncing ? (
+
+ ) : (
+
+ )}
{t('auto.components.settings.SshPaneToolbar.sync', 'Sync ~/.ssh/config')}
@@ -169,7 +174,11 @@ export function SshHostsListToolbar(props: SshHostsListToolbarProps): React.JSX.
onClick={props.onTestSelected}
disabled={props.busy || props.testing}
>
- {props.testing ? : }
+ {props.testing ? (
+
+ ) : (
+
+ )}
{t('auto.components.settings.SshPaneToolbar.testSelected', 'Test')}
) : error ? null : (
-
+
)}
{error ? {error}
: null}
@@ -154,7 +158,9 @@ export function SshHostDeltaMoveDialog({
onClick={() => void move()}
disabled={running || !preview || preview.added.length === 0 || blocked}
>
- {running ? : null}
+ {running ? (
+
+ ) : null}
{t('auto.components.settings.deltaMove.confirm', 'Move the new projects')}
diff --git a/src/renderer/src/components/settings/ssh/server-actions/SshHostRecoverServerAction.tsx b/src/renderer/src/components/settings/ssh/server-actions/SshHostRecoverServerAction.tsx
index f0c61db325ec..ca51514c98fd 100644
--- a/src/renderer/src/components/settings/ssh/server-actions/SshHostRecoverServerAction.tsx
+++ b/src/renderer/src/components/settings/ssh/server-actions/SshHostRecoverServerAction.tsx
@@ -1,3 +1,4 @@
+import { observeVisibleAnimation } from '@/lib/window-activity/offscreen-animation-pause'
import { Loader2 } from 'lucide-react'
import { useEffect, useState } from 'react'
import type { OrcadManagedStaleLockReclaimResult } from '../../../../../../shared/remote-runtime/orcad-lifecycle/orcad-managed-runtime'
@@ -175,7 +176,7 @@ function OpenRecoverServerDialog({
{!check && !error ? (
-
+
{t('auto.components.settings.recoverServer.checking', 'Checking the lock…')}
) : null}
diff --git a/src/renderer/src/components/settings/ssh/targets/SshDestructiveActionDialog.tsx b/src/renderer/src/components/settings/ssh/targets/SshDestructiveActionDialog.tsx
index e33c972c2c17..00ee03483087 100644
--- a/src/renderer/src/components/settings/ssh/targets/SshDestructiveActionDialog.tsx
+++ b/src/renderer/src/components/settings/ssh/targets/SshDestructiveActionDialog.tsx
@@ -1,3 +1,4 @@
+import { observeVisibleAnimation } from '@/lib/window-activity/offscreen-animation-pause'
import { Info, Loader2 } from 'lucide-react'
import { Button } from '../../../ui/button'
import {
@@ -99,7 +100,9 @@ export function SshDestructiveActionDialog({
{t('auto.components.settings.SshDestructiveActionDialog.895b216267', 'Cancel')}
- {isBusy ? : null}
+ {isBusy ? (
+
+ ) : null}
{isBusy ? (busyLabel ?? actionLabel) : actionLabel}
diff --git a/src/renderer/src/components/settings/ssh/targets/SshRestoreRemovedHostsDialog.tsx b/src/renderer/src/components/settings/ssh/targets/SshRestoreRemovedHostsDialog.tsx
index dc1631d29a80..d55838c5ad63 100644
--- a/src/renderer/src/components/settings/ssh/targets/SshRestoreRemovedHostsDialog.tsx
+++ b/src/renderer/src/components/settings/ssh/targets/SshRestoreRemovedHostsDialog.tsx
@@ -1,3 +1,4 @@
+import { observeVisibleAnimation } from '@/lib/window-activity/offscreen-animation-pause'
import { useEffect, useState } from 'react'
import { Loader2 } from 'lucide-react'
import { useTranslate } from '@/i18n/use-translate'
@@ -81,7 +82,7 @@ export function SshRestoreRemovedHostsDialog({
{removed.status === 'unavailable' ? null : (
{removed.status === 'loading' ? (
-
+
) : aliases.length > 0 ? (
{aliases.join(', ')}
) : (
@@ -112,7 +113,9 @@ export function SshRestoreRemovedHostsDialog({
}
className="gap-1.5"
>
- {busy ? : null}
+ {busy ? (
+
+ ) : null}
{t('auto.components.settings.SshRestoreRemovedHosts.confirm', 'Restore')}
diff --git a/src/renderer/src/components/settings/ssh/targets/SshTargetCard.tsx b/src/renderer/src/components/settings/ssh/targets/SshTargetCard.tsx
index aa3ac07f3660..1b482ea12c63 100644
--- a/src/renderer/src/components/settings/ssh/targets/SshTargetCard.tsx
+++ b/src/renderer/src/components/settings/ssh/targets/SshTargetCard.tsx
@@ -1,3 +1,4 @@
+import { observeVisibleAnimation } from '@/lib/window-activity/offscreen-animation-pause'
import { useCallback, useRef, useState } from 'react'
import { Loader2, MoreHorizontal, Pencil, PlugZap, Trash2 } from 'lucide-react'
import type {
@@ -147,7 +148,7 @@ export function SshTargetCard({
if (removeInFlight || testing) {
return (
-
+
{removeInFlight
? t('auto.components.settings.SshTargetCard.removing', 'Removing…')
: t('auto.components.settings.SshTargetCard.testing', 'Testing…')}
@@ -183,7 +184,9 @@ export function SshTargetCard({
}
const button = (
- {actionInFlight === 'connect' ? : null}
+ {actionInFlight === 'connect' ? (
+
+ ) : null}
{t('auto.components.settings.SshTargetCard.ec6543cee9', 'Connect')}
)
diff --git a/src/renderer/src/components/settings/terminal/session-management/ManageSessionKillDialog.tsx b/src/renderer/src/components/settings/terminal/session-management/ManageSessionKillDialog.tsx
index d03959953d79..2e11cc9eb3a9 100644
--- a/src/renderer/src/components/settings/terminal/session-management/ManageSessionKillDialog.tsx
+++ b/src/renderer/src/components/settings/terminal/session-management/ManageSessionKillDialog.tsx
@@ -1,3 +1,4 @@
+import { observeVisibleAnimation } from '@/lib/window-activity/offscreen-animation-pause'
import { LoaderCircle } from 'lucide-react'
import type { PtyManagementSession } from '../../../../../../preload/api/terminal/pty-management-api'
import { Button } from '../../../ui/button'
@@ -76,7 +77,12 @@ export function ManageSessionKillDialog({
{t('auto.components.settings.ManageSessionKillDialog.6bf4627168', 'Cancel')}
- {isBusy ? : null}
+ {isBusy ? (
+
+ ) : null}
{isBusy
? t('auto.components.settings.ManageSessionKillDialog.d3dba51b15', 'Killing…')
: t(
diff --git a/src/renderer/src/components/settings/terminal/session-management/ManageSessionsTable.tsx b/src/renderer/src/components/settings/terminal/session-management/ManageSessionsTable.tsx
index 4977800e853c..cb4af03502d8 100644
--- a/src/renderer/src/components/settings/terminal/session-management/ManageSessionsTable.tsx
+++ b/src/renderer/src/components/settings/terminal/session-management/ManageSessionsTable.tsx
@@ -1,3 +1,4 @@
+import { observeVisibleAnimation } from '@/lib/window-activity/offscreen-animation-pause'
import type { PtyManagementSession } from '../../../../../../preload/api/terminal/pty-management-api'
import { LoaderCircle, RefreshCw, RotateCw, Trash2, X } from 'lucide-react'
import { Button } from '../../../ui/button'
@@ -51,7 +52,10 @@ export function ManageSessionsTable({
aria-label={t('auto.components.settings.ManageSessionsSection.b3b1cc5708', 'Refresh')}
className="text-muted-foreground"
>
-
+
@@ -69,7 +73,7 @@ export function ManageSessionsTable({
className="text-muted-foreground hover:text-destructive"
>
{daemonBusyKind === 'killAll' ? (
-
+
) : (
)}
@@ -93,7 +97,7 @@ export function ManageSessionsTable({
className="text-muted-foreground"
>
{daemonBusyKind === 'restart' ? (
-
+
) : (
)}
diff --git a/src/renderer/src/components/settings/terminal/themes/WarpThemeImportModal.tsx b/src/renderer/src/components/settings/terminal/themes/WarpThemeImportModal.tsx
index 7eb3f8b7473a..a383157015c5 100644
--- a/src/renderer/src/components/settings/terminal/themes/WarpThemeImportModal.tsx
+++ b/src/renderer/src/components/settings/terminal/themes/WarpThemeImportModal.tsx
@@ -1,3 +1,4 @@
+import { observeVisibleAnimation } from '@/lib/window-activity/offscreen-animation-pause'
import { FileUp, FolderOpen, Loader2 } from 'lucide-react'
import type { WarpThemeImportPreviewTheme } from '../../../../../../shared/terminal-themes/terminal-custom-themes'
import { Button } from '../../../ui/button'
@@ -125,7 +126,7 @@ export function WarpThemeImportModal({
{loading ? (
-
+
{t('auto.components.settings.WarpThemeImportModal.loading', 'Loading Warp themes...')}
) : preview == null ? null : preview.found ? (
diff --git a/src/renderer/src/components/settings/updates/GeneralRemoteServerUpdates.tsx b/src/renderer/src/components/settings/updates/GeneralRemoteServerUpdates.tsx
index c6c774f14a81..aecae834d10a 100644
--- a/src/renderer/src/components/settings/updates/GeneralRemoteServerUpdates.tsx
+++ b/src/renderer/src/components/settings/updates/GeneralRemoteServerUpdates.tsx
@@ -1,3 +1,4 @@
+import { observeVisibleAnimation } from '@/lib/window-activity/offscreen-animation-pause'
import type React from 'react'
import { Loader2, RefreshCw } from 'lucide-react'
import { Button } from '@/components/ui/button'
@@ -119,7 +120,7 @@ export function GeneralRemoteServerUpdates(): React.JSX.Element | null {
}}
>
{checking || running ? (
-
+
) : (
)}
diff --git a/src/renderer/src/components/settings/updates/GeneralUpdateSettingsSection.tsx b/src/renderer/src/components/settings/updates/GeneralUpdateSettingsSection.tsx
index 54ba43b63d5e..70d3e546f437 100644
--- a/src/renderer/src/components/settings/updates/GeneralUpdateSettingsSection.tsx
+++ b/src/renderer/src/components/settings/updates/GeneralUpdateSettingsSection.tsx
@@ -1,3 +1,4 @@
+import { observeVisibleAnimation } from '@/lib/window-activity/offscreen-animation-pause'
import { getUpdateInstallBlockGuidance } from '../../maintenance/update-card/update-install-block-guidance'
import type React from 'react'
import { useEffect, useRef, useState } from 'react'
@@ -105,7 +106,7 @@ export function GeneralUpdateSettingsSection({
className="gap-2"
>
{updateStatus.state === 'checking' ? (
-
+
) : (
)}
diff --git a/src/renderer/src/components/settings/updates/ReleaseChannelSection.tsx b/src/renderer/src/components/settings/updates/ReleaseChannelSection.tsx
index 869d0fddca96..71df3cdb0ee7 100644
--- a/src/renderer/src/components/settings/updates/ReleaseChannelSection.tsx
+++ b/src/renderer/src/components/settings/updates/ReleaseChannelSection.tsx
@@ -1,3 +1,4 @@
+import { observeVisibleAnimation } from '@/lib/window-activity/offscreen-animation-pause'
import type React from 'react'
import { useCallback, useEffect, useMemo, useRef, useState } from 'react'
import { AlertTriangle, Download, Loader2, RefreshCw } from 'lucide-react'
@@ -266,7 +267,7 @@ export function ReleaseChannelSection(): React.JSX.Element {
onClick={() => void loadBuilds(activeChannel, { force: true })}
>
{loading ? (
-
+
) : (
)}
@@ -289,7 +290,7 @@ export function ReleaseChannelSection(): React.JSX.Element {
}}
>
{busy ? (
-
+
) : needsManualInstall ? (
diff --git a/src/renderer/src/components/settings/updates/UpdateDelaySetting.tsx b/src/renderer/src/components/settings/updates/UpdateDelaySetting.tsx
index b769421f6786..08d7a20fe94a 100644
--- a/src/renderer/src/components/settings/updates/UpdateDelaySetting.tsx
+++ b/src/renderer/src/components/settings/updates/UpdateDelaySetting.tsx
@@ -1,3 +1,4 @@
+import { observeVisibleAnimation } from '@/lib/window-activity/offscreen-animation-pause'
import type React from 'react'
import { useId, useState } from 'react'
import { CircleCheck, Clock, Info, Loader2 } from 'lucide-react'
@@ -233,7 +234,9 @@ export function DelayedUpdatePanel({
'Check for this release now. Your delay setting stays the same.'
)}
>
- {checking ? : null}
+ {checking ? (
+
+ ) : null}
{t('settings.updateDelay.ee1d96f74a', 'Skip delay once')}
)}
diff --git a/src/renderer/src/components/settings/virtual-machines/recipes/EphemeralVmsPane.tsx b/src/renderer/src/components/settings/virtual-machines/recipes/EphemeralVmsPane.tsx
index 392607d693cf..337ff02084c5 100644
--- a/src/renderer/src/components/settings/virtual-machines/recipes/EphemeralVmsPane.tsx
+++ b/src/renderer/src/components/settings/virtual-machines/recipes/EphemeralVmsPane.tsx
@@ -1,3 +1,4 @@
+import { observeVisibleAnimation } from '@/lib/window-activity/offscreen-animation-pause'
import { ArrowRight, Bot, Check, Copy, Loader2, RefreshCw, Server } from 'lucide-react'
import type React from 'react'
import { useCallback, useEffect, useRef, useState } from 'react'
@@ -225,7 +226,11 @@ export function EphemeralVmsPane(): React.JSX.Element {
disabled={!setupRepo || agentLaunching}
onClick={setUpWithAgent}
>
- {agentLaunching ? : }
+ {agentLaunching ? (
+
+ ) : (
+
+ )}
{t('auto.components.settings.EphemeralVmsPane.setUpWithAgent', 'Set up with an agent')}
@@ -297,7 +302,11 @@ export function EphemeralVmsPane(): React.JSX.Element {
onClick={() => void refresh()}
disabled={isLoading}
>
- {isLoading ? : }
+ {isLoading ? (
+
+ ) : (
+
+ )}
diff --git a/src/renderer/src/components/settings/virtual-machines/runtimes/EphemeralVmCleanupStopDialog.tsx b/src/renderer/src/components/settings/virtual-machines/runtimes/EphemeralVmCleanupStopDialog.tsx
index 876f03c759ab..0e9ee93c3eb7 100644
--- a/src/renderer/src/components/settings/virtual-machines/runtimes/EphemeralVmCleanupStopDialog.tsx
+++ b/src/renderer/src/components/settings/virtual-machines/runtimes/EphemeralVmCleanupStopDialog.tsx
@@ -1,3 +1,4 @@
+import { observeVisibleAnimation } from '@/lib/window-activity/offscreen-animation-pause'
import { Loader2 } from 'lucide-react'
import type { EphemeralVmRuntimeRecord } from '../../../../../../shared/remote-runtime/ephemeral-vm-store/ephemeral-vm-runtimes'
import { useTranslate } from '@/i18n/use-translate'
@@ -56,7 +57,9 @@ export function EphemeralVmCleanupStopDialog({
{t('auto.components.settings.EphemeralVmCleanupStopDialog.cancel', 'Keep cleaning')}
- {isStopping ? : null}
+ {isStopping ? (
+
+ ) : null}
{isStopping
? t('auto.components.settings.EphemeralVmCleanupStopDialog.stopping', 'Stopping…')
: t('auto.components.settings.EphemeralVmCleanupStopDialog.confirm', 'Stop cleanup')}
diff --git a/src/renderer/src/components/settings/virtual-machines/runtimes/EphemeralVmRuntimeRow.tsx b/src/renderer/src/components/settings/virtual-machines/runtimes/EphemeralVmRuntimeRow.tsx
index a8dbc6610391..86aa9f6f1a29 100644
--- a/src/renderer/src/components/settings/virtual-machines/runtimes/EphemeralVmRuntimeRow.tsx
+++ b/src/renderer/src/components/settings/virtual-machines/runtimes/EphemeralVmRuntimeRow.tsx
@@ -1,3 +1,4 @@
+import { observeVisibleAnimation } from '@/lib/window-activity/offscreen-animation-pause'
import { AlertTriangle, Copy, Loader2, Square, Trash2, X } from 'lucide-react'
import type { EphemeralVmRuntimeRecord } from '../../../../../../shared/remote-runtime/ephemeral-vm-store/ephemeral-vm-runtimes'
import { getEphemeralVmRecipeResultProjectRoot } from '../../../../../../shared/remote-runtime/ephemeral-vm-recipes/ephemeral-vm-recipes'
@@ -112,7 +113,7 @@ export function EphemeralVmRuntimeRow({
disabled={disabled || isStopping}
>
{isStopping ? (
-
+
) : (
)}
diff --git a/src/renderer/src/components/settings/virtual-machines/runtimes/EphemeralVmRuntimesSection.tsx b/src/renderer/src/components/settings/virtual-machines/runtimes/EphemeralVmRuntimesSection.tsx
index 53d57d58dc6d..14a80a80e0f9 100644
--- a/src/renderer/src/components/settings/virtual-machines/runtimes/EphemeralVmRuntimesSection.tsx
+++ b/src/renderer/src/components/settings/virtual-machines/runtimes/EphemeralVmRuntimesSection.tsx
@@ -1,3 +1,4 @@
+import { observeVisibleAnimation } from '@/lib/window-activity/offscreen-animation-pause'
import { Loader2, RefreshCw } from 'lucide-react'
import type React from 'react'
import { useCallback, useEffect, useState } from 'react'
@@ -299,7 +300,11 @@ export function EphemeralVmRuntimesSection(): React.JSX.Element | null {
onClick={() => void refresh()}
disabled={isLoading || cleaningId !== null}
>
- {isLoading ? : }
+ {isLoading ? (
+
+ ) : (
+
+ )}
diff --git a/src/renderer/src/components/settings/voice/OpenAiCompatibleProviderDialog.tsx b/src/renderer/src/components/settings/voice/OpenAiCompatibleProviderDialog.tsx
index ba82a2d65d0f..d38b07432a60 100644
--- a/src/renderer/src/components/settings/voice/OpenAiCompatibleProviderDialog.tsx
+++ b/src/renderer/src/components/settings/voice/OpenAiCompatibleProviderDialog.tsx
@@ -1,3 +1,4 @@
+import { observeVisibleAnimation } from '@/lib/window-activity/offscreen-animation-pause'
import { useEffect, useState } from 'react'
import { Loader2, Lock } from 'lucide-react'
import { toast } from 'sonner'
@@ -157,7 +158,9 @@ export function OpenAiCompatibleProviderDialog({
- {pending ? : null}
+ {pending ? (
+
+ ) : null}
{t('components.settings.voice.openAiCompatible.save', 'Save')}
diff --git a/src/renderer/src/components/settings/voice/OpenAiTranscriptionKeyDialog.tsx b/src/renderer/src/components/settings/voice/OpenAiTranscriptionKeyDialog.tsx
index 9d6fd5526b6a..8baa69a8723d 100644
--- a/src/renderer/src/components/settings/voice/OpenAiTranscriptionKeyDialog.tsx
+++ b/src/renderer/src/components/settings/voice/OpenAiTranscriptionKeyDialog.tsx
@@ -1,3 +1,4 @@
+import { observeVisibleAnimation } from '@/lib/window-activity/offscreen-animation-pause'
import { Loader2, Lock } from 'lucide-react'
import { Button } from '../../ui/button'
import {
@@ -90,7 +91,9 @@ export function OpenAiTranscriptionKeyDialog({
)}
- {pending ? : null}
+ {pending ? (
+
+ ) : null}
{t('auto.components.settings.OpenAiTranscriptionKeyDialog.bce1b6d18a', 'Save key')}
diff --git a/src/renderer/src/components/settings/voice/VoiceCleanupTry.tsx b/src/renderer/src/components/settings/voice/VoiceCleanupTry.tsx
index 406581978224..7b0c1157d7e0 100644
--- a/src/renderer/src/components/settings/voice/VoiceCleanupTry.tsx
+++ b/src/renderer/src/components/settings/voice/VoiceCleanupTry.tsx
@@ -1,3 +1,4 @@
+import { observeVisibleAnimation } from '@/lib/window-activity/offscreen-animation-pause'
import { useState } from 'react'
import { Loader2 } from 'lucide-react'
import { useAppStore } from '@/store/index'
@@ -37,7 +38,10 @@ export function VoiceCleanupTry({ text }: { text: string }): React.JSX.Element |
onClick={() => void run()}
>
{result === 'running' ? (
-
+
) : null}
{result === 'running'
? t('components.settings.voice.micTest.cleaningUp', 'Cleaning up…')
diff --git a/src/renderer/src/components/settings/voice/VoiceMicrophoneTestPanel.tsx b/src/renderer/src/components/settings/voice/VoiceMicrophoneTestPanel.tsx
index db32d6e30fa0..c4d5742c1949 100644
--- a/src/renderer/src/components/settings/voice/VoiceMicrophoneTestPanel.tsx
+++ b/src/renderer/src/components/settings/voice/VoiceMicrophoneTestPanel.tsx
@@ -1,3 +1,4 @@
+import { observeVisibleAnimation } from '@/lib/window-activity/offscreen-animation-pause'
import { Check, CircleAlert, Loader2, Play, Square } from 'lucide-react'
import { DictationGrapes } from '@/components/dictation/DictationGrapes'
import { useTranslate } from '@/i18n/use-translate'
@@ -132,7 +133,10 @@ export function VoiceMicrophoneTestPanel({
if (heard?.kind === 'listening') {
heardLine = (
-
+
{t('components.settings.voice.micTest.listening', '{{model}} is listening too…', model)}
)
diff --git a/src/renderer/src/components/settings/voice/VoiceSpeechModelRow.tsx b/src/renderer/src/components/settings/voice/VoiceSpeechModelRow.tsx
index 0095941ec32a..d89799938268 100644
--- a/src/renderer/src/components/settings/voice/VoiceSpeechModelRow.tsx
+++ b/src/renderer/src/components/settings/voice/VoiceSpeechModelRow.tsx
@@ -1,3 +1,4 @@
+import { observeVisibleAnimation } from '@/lib/window-activity/offscreen-animation-pause'
import { Check, Loader2, Trash2 } from 'lucide-react'
import { useTranslate } from '@/i18n/use-translate'
import { cn } from '@/lib/class-names'
@@ -192,7 +193,11 @@ export function VoiceSpeechModelRow({
disabled={deletePending}
onClick={() => onDelete(manifest.id)}
>
- {deletePending ? : }
+ {deletePending ? (
+
+ ) : (
+
+ )}
) : null}
diff --git a/src/renderer/src/components/settings/workspace-cleanup/workspace-cleanup-automatic-section.tsx b/src/renderer/src/components/settings/workspace-cleanup/workspace-cleanup-automatic-section.tsx
index 375e3c638685..883150cdcc69 100644
--- a/src/renderer/src/components/settings/workspace-cleanup/workspace-cleanup-automatic-section.tsx
+++ b/src/renderer/src/components/settings/workspace-cleanup/workspace-cleanup-automatic-section.tsx
@@ -1,3 +1,4 @@
+import { observeVisibleAnimation } from '@/lib/window-activity/offscreen-animation-pause'
import { useState } from 'react'
import { Loader2 } from 'lucide-react'
import { useTranslate, type Translate } from '@/i18n/use-translate'
@@ -195,7 +196,10 @@ export function WorkspaceCleanupAutomaticSection({
{running ? (
<>
-
+
{t('components.settings.workspaceCleanup.automatic.runningButton', 'Running…')}
>
) : (
diff --git a/src/renderer/src/components/settings/workspace-cleanup/workspace-cleanup-rule-rows.tsx b/src/renderer/src/components/settings/workspace-cleanup/workspace-cleanup-rule-rows.tsx
index d3cc923b78c1..a09dd02c6a7b 100644
--- a/src/renderer/src/components/settings/workspace-cleanup/workspace-cleanup-rule-rows.tsx
+++ b/src/renderer/src/components/settings/workspace-cleanup/workspace-cleanup-rule-rows.tsx
@@ -1,3 +1,4 @@
+import { observeVisibleAnimation } from '@/lib/window-activity/offscreen-animation-pause'
import { useId, useState } from 'react'
import { Loader2 } from 'lucide-react'
import { useTranslate } from '@/i18n/use-translate'
@@ -131,7 +132,10 @@ export function WorkspaceCleanupRuleRows({
{description}
{phase === 'checking' ? (
-
+
{t(
'components.settings.workspaceCleanup.rules.checking',
'Checking which workspaces match…'
diff --git a/src/renderer/src/components/shared/MacFolderAccessFixDialog.tsx b/src/renderer/src/components/shared/MacFolderAccessFixDialog.tsx
index 51bc042c51fc..c1266258576e 100644
--- a/src/renderer/src/components/shared/MacFolderAccessFixDialog.tsx
+++ b/src/renderer/src/components/shared/MacFolderAccessFixDialog.tsx
@@ -1,3 +1,4 @@
+import { observeVisibleAnimation } from '@/lib/window-activity/offscreen-animation-pause'
import React, { useCallback, useState } from 'react'
import { CircleCheck, CircleDashed, LoaderCircle } from 'lucide-react'
import type { PtyManagementFolderAccessMismatch } from '../../../../preload/api/terminal/pty-management-api'
@@ -195,7 +196,9 @@ function FixFooter({
)}
- {resetState === 'busy' ? : null}
+ {resetState === 'busy' ? (
+
+ ) : null}
{resetState === 'busy'
? t('auto.components.shared.MacFolderAccessFixDialog.resetting', 'Resetting…')
: t('auto.components.shared.MacFolderAccessFixDialog.reset', 'Reset permission')}
@@ -228,7 +231,9 @@ function FixFooter({
)}
- {restartState === 'busy' ? : null}
+ {restartState === 'busy' ? (
+
+ ) : null}
{restartState === 'busy'
? t('auto.components.shared.MacFolderAccessFixDialog.restarting', 'Restarting…')
: t('auto.components.shared.MacFolderAccessFixDialog.restart', 'Restart')}
diff --git a/src/renderer/src/components/sidebar/chrome/SidebarSettingsHelpMenu.tsx b/src/renderer/src/components/sidebar/chrome/SidebarSettingsHelpMenu.tsx
index 214e802ad3fb..03ca4a86f9e9 100644
--- a/src/renderer/src/components/sidebar/chrome/SidebarSettingsHelpMenu.tsx
+++ b/src/renderer/src/components/sidebar/chrome/SidebarSettingsHelpMenu.tsx
@@ -1,3 +1,4 @@
+import { observeVisibleAnimation } from '@/lib/window-activity/offscreen-animation-pause'
import { DiscordIcon } from '../../icons/DiscordIcon'
import React, { useState } from 'react'
import {
@@ -302,7 +303,7 @@ export function SidebarSettingsHelpMenu(): React.JSX.Element {
title={updateCheckHint}
>
{updateStatus.state === 'checking' ? (
-
+
) : (
)}
diff --git a/src/renderer/src/components/sidebar/host-admission/ssh/SshTargetRow.tsx b/src/renderer/src/components/sidebar/host-admission/ssh/SshTargetRow.tsx
index 574f6b674f40..4d65d0aa5f5a 100644
--- a/src/renderer/src/components/sidebar/host-admission/ssh/SshTargetRow.tsx
+++ b/src/renderer/src/components/sidebar/host-admission/ssh/SshTargetRow.tsx
@@ -1,3 +1,4 @@
+import { observeVisibleAnimation } from '@/lib/window-activity/offscreen-animation-pause'
import React from 'react'
import { Loader2 } from 'lucide-react'
import type {
@@ -84,7 +85,7 @@ export function SshTargetRow({
>
{isBusy ? (
<>
-
+
{t('auto.components.sidebar.SshTargetRow.4677394048', 'Connecting…')}
>
) : (
diff --git a/src/renderer/src/components/sidebar/host-lifecycle/HostRemoveDialog.tsx b/src/renderer/src/components/sidebar/host-lifecycle/HostRemoveDialog.tsx
index bfe7c32b8b2e..4754dd9bcb81 100644
--- a/src/renderer/src/components/sidebar/host-lifecycle/HostRemoveDialog.tsx
+++ b/src/renderer/src/components/sidebar/host-lifecycle/HostRemoveDialog.tsx
@@ -1,3 +1,4 @@
+import { observeVisibleAnimation } from '@/lib/window-activity/offscreen-animation-pause'
import React, { useMemo, useState } from 'react'
import { ChevronDown, Loader2 } from 'lucide-react'
import { toast } from 'sonner'
@@ -283,7 +284,9 @@ function HostRemoveDialogBody({
disabled={busy || !open}
onClick={() => void runSshRemoval()}
>
- {busy ? : null}
+ {busy ? (
+
+ ) : null}
{t('auto.components.sidebar.HostRemoveDialog.8b9c0d1e2f', 'Remove host')}
)}
diff --git a/src/renderer/src/components/sidebar/host-path-browser/RemoteFileBrowser.tsx b/src/renderer/src/components/sidebar/host-path-browser/RemoteFileBrowser.tsx
index 4b258128f1d2..f96e0b71a0dd 100644
--- a/src/renderer/src/components/sidebar/host-path-browser/RemoteFileBrowser.tsx
+++ b/src/renderer/src/components/sidebar/host-path-browser/RemoteFileBrowser.tsx
@@ -1,3 +1,4 @@
+import { observeVisibleAnimation } from '@/lib/window-activity/offscreen-animation-pause'
import { ImeInput } from '@/lib/text-input/ime/ime-text-field'
import type React from 'react'
import { useCallback, useEffect, useId, useMemo, useRef, useState } from 'react'
@@ -313,7 +314,10 @@ export function RemoteFileBrowser({
)}
/>
{showPreviewLoading && (
-
+
)}
diff --git a/src/renderer/src/components/sidebar/host-path-browser/RemoteFileBrowserEntryList.tsx b/src/renderer/src/components/sidebar/host-path-browser/RemoteFileBrowserEntryList.tsx
index 781f4929e2e3..061b992ef29b 100644
--- a/src/renderer/src/components/sidebar/host-path-browser/RemoteFileBrowserEntryList.tsx
+++ b/src/renderer/src/components/sidebar/host-path-browser/RemoteFileBrowserEntryList.tsx
@@ -1,3 +1,4 @@
+import { observeVisibleAnimation } from '@/lib/window-activity/offscreen-animation-pause'
import type React from 'react'
import { useEffect, useRef, type RefObject } from 'react'
import { ChevronRight, LoaderCircle } from 'lucide-react'
@@ -71,7 +72,10 @@ export function RemoteFileBrowserEntryList({
>
{loading ? (
-
+
) : error ? (
diff --git a/src/renderer/src/components/sidebar/index.tsx b/src/renderer/src/components/sidebar/index.tsx
index babb9acdb5a0..c28e12cc8736 100644
--- a/src/renderer/src/components/sidebar/index.tsx
+++ b/src/renderer/src/components/sidebar/index.tsx
@@ -1,3 +1,4 @@
+import { observeVisibleAnimation } from '@/lib/window-activity/offscreen-animation-pause'
import React, { useEffect, useMemo } from 'react'
import { useAppStore } from '@/store/index'
import { TooltipProvider } from '@/components/ui/tooltip'
@@ -286,7 +287,10 @@ function Sidebar({
)}
>
{affordance.tone === 'busy' ? (
-
+
) : (
)}
diff --git a/src/renderer/src/components/sidebar/project-admission/dialog/AddProjectFromFolderDialog.tsx b/src/renderer/src/components/sidebar/project-admission/dialog/AddProjectFromFolderDialog.tsx
index 87bd20c42312..00861dfe9a5c 100644
--- a/src/renderer/src/components/sidebar/project-admission/dialog/AddProjectFromFolderDialog.tsx
+++ b/src/renderer/src/components/sidebar/project-admission/dialog/AddProjectFromFolderDialog.tsx
@@ -1,3 +1,4 @@
+import { observeVisibleAnimation } from '@/lib/window-activity/offscreen-animation-pause'
import React, { useCallback, useRef, useState } from 'react'
import { FolderPlus, Loader2 } from 'lucide-react'
import {
@@ -163,7 +164,7 @@ const AddProjectFromFolderDialog = React.memo(function AddProjectFromFolderDialo
{isAdding ? (
-
+
) : (
)}
diff --git a/src/renderer/src/components/sidebar/project-admission/dialog/AddRepoCreateStep.tsx b/src/renderer/src/components/sidebar/project-admission/dialog/AddRepoCreateStep.tsx
index 59ae5a30f4ee..9d8c0cd3b959 100644
--- a/src/renderer/src/components/sidebar/project-admission/dialog/AddRepoCreateStep.tsx
+++ b/src/renderer/src/components/sidebar/project-admission/dialog/AddRepoCreateStep.tsx
@@ -1,3 +1,4 @@
+import { observeVisibleAnimation } from '@/lib/window-activity/offscreen-animation-pause'
import React, { useMemo, useState, type ReactNode } from 'react'
import { ChevronDown, GitBranch, Loader2 } from 'lucide-react'
import { DialogHeader, DialogTitle, DialogDescription } from '@/components/ui/dialog'
@@ -178,7 +179,7 @@ export function CreateStep({
{showGitChecking ? (
-
+
{t(
'auto.components.sidebar.AddRepoCreateStep.2a762f3b19',
'Checking Git on this host...'
diff --git a/src/renderer/src/components/sidebar/project-admission/dialog/AddRepoServerStartStep.tsx b/src/renderer/src/components/sidebar/project-admission/dialog/AddRepoServerStartStep.tsx
index 6557e1956b00..4b74f365381e 100644
--- a/src/renderer/src/components/sidebar/project-admission/dialog/AddRepoServerStartStep.tsx
+++ b/src/renderer/src/components/sidebar/project-admission/dialog/AddRepoServerStartStep.tsx
@@ -1,3 +1,4 @@
+import { observeVisibleAnimation } from '@/lib/window-activity/offscreen-animation-pause'
import { useState, type ComponentType, type ReactNode } from 'react'
import { FolderOpen, Globe, Lightbulb, Loader2, Server } from 'lucide-react'
import { DialogDescription, DialogHeader, DialogTitle } from '@/components/ui/dialog'
@@ -242,7 +243,10 @@ export function AddRepoServerPathStartStep({
{isAddingServerPath && addProjectBusyLabel ? (
-
+
{addProjectBusyLabel}
) : null}
diff --git a/src/renderer/src/components/sidebar/project-admission/dialog/AddRepoStartSteps.tsx b/src/renderer/src/components/sidebar/project-admission/dialog/AddRepoStartSteps.tsx
index 773a40f1455b..d1066807426d 100644
--- a/src/renderer/src/components/sidebar/project-admission/dialog/AddRepoStartSteps.tsx
+++ b/src/renderer/src/components/sidebar/project-admission/dialog/AddRepoStartSteps.tsx
@@ -1,3 +1,4 @@
+import { observeVisibleAnimation } from '@/lib/window-activity/offscreen-animation-pause'
import { useEffect, useRef, useState, type ComponentType, type ReactNode, type Ref } from 'react'
import { CircleStop, Loader2 } from 'lucide-react'
import { DialogDescription, DialogHeader, DialogTitle } from '@/components/ui/dialog'
@@ -24,7 +25,7 @@ function AddRepoNestedScanProgressNotice({
const t = useTranslate()
return (
-
+
{busyLabel}
{nestedScanInProgress && nestedScanId ? (
@@ -38,7 +39,10 @@ function AddRepoNestedScanProgressNotice({
title={t('auto.components.sidebar.AddRepoStartSteps.69ea7f8dc4', 'Stop scanning')}
onClick={onStopNestedScan}
>
-
+
diff --git a/src/renderer/src/components/sidebar/project-admission/host-selection/AddRepoHostSelector.tsx b/src/renderer/src/components/sidebar/project-admission/host-selection/AddRepoHostSelector.tsx
index 39e0091ec4a8..329cad4d6355 100644
--- a/src/renderer/src/components/sidebar/project-admission/host-selection/AddRepoHostSelector.tsx
+++ b/src/renderer/src/components/sidebar/project-admission/host-selection/AddRepoHostSelector.tsx
@@ -1,3 +1,4 @@
+import { observeVisibleAnimation } from '@/lib/window-activity/offscreen-animation-pause'
import { useMemo, useState } from 'react'
import { Check, ChevronRight, ChevronsUpDown, Loader2, Plus } from 'lucide-react'
import { Button } from '@/components/ui/button'
@@ -296,7 +297,12 @@ export function AddRepoHostSelector({
onConnectHost?.(host.id)
}}
>
- {isConnecting ? : null}
+ {isConnecting ? (
+
+ ) : null}
{isConnecting
? t(
'auto.components.sidebar.AddRepoHostSelector.connecting',
diff --git a/src/renderer/src/components/sidebar/project-admission/menu/AddProjectHostSubmenu.tsx b/src/renderer/src/components/sidebar/project-admission/menu/AddProjectHostSubmenu.tsx
index 25d530a71a22..a33e54a7ffbe 100644
--- a/src/renderer/src/components/sidebar/project-admission/menu/AddProjectHostSubmenu.tsx
+++ b/src/renderer/src/components/sidebar/project-admission/menu/AddProjectHostSubmenu.tsx
@@ -1,3 +1,4 @@
+import { observeVisibleAnimation } from '@/lib/window-activity/offscreen-animation-pause'
import React, { useMemo, useState } from 'react'
import { ChevronRight, Circle, Loader2, Plus } from 'lucide-react'
import { Button } from '@/components/ui/button'
@@ -190,7 +191,12 @@ export function AddProjectHostSubmenu({
})
}}
>
- {isConnecting ? : null}
+ {isConnecting ? (
+
+ ) : null}
{isConnecting
? t('auto.components.sidebar.AddRepoHostSelector.connecting', 'Connecting')
: t('auto.components.sidebar.AddRepoHostSelector.connect', 'Connect')}
diff --git a/src/renderer/src/components/sidebar/project-admission/nested-import/AddRepoNestedImportStep.tsx b/src/renderer/src/components/sidebar/project-admission/nested-import/AddRepoNestedImportStep.tsx
index 04e5d1a0eb71..228080ff0726 100644
--- a/src/renderer/src/components/sidebar/project-admission/nested-import/AddRepoNestedImportStep.tsx
+++ b/src/renderer/src/components/sidebar/project-admission/nested-import/AddRepoNestedImportStep.tsx
@@ -1,3 +1,4 @@
+import { observeVisibleAnimation } from '@/lib/window-activity/offscreen-animation-pause'
import { useId, useState, type Dispatch, type SetStateAction } from 'react'
import { CircleStop, Loader2 } from 'lucide-react'
import { DialogDescription, DialogHeader, DialogTitle } from '@/components/ui/dialog'
@@ -155,7 +156,9 @@ export function AddRepoNestedImportStep({
disabled={isAdding || scanInProgress}
variant="secondary"
>
- {showOpenAsFolderSpinner ? : null}
+ {showOpenAsFolderSpinner ? (
+
+ ) : null}
{t('auto.components.sidebar.AddRepoNestedImportStep.e52454b7f6', 'Open as Folder')}
) : null}
@@ -164,7 +167,9 @@ export function AddRepoNestedImportStep({
disabled={isAdding || scanInProgress || noRepositoriesSelected}
variant="outline"
>
- {showSeparateSpinner ? : null}
+ {showSeparateSpinner ? (
+
+ ) : null}
{t(
'auto.components.sidebar.AddRepoNestedImportStep.aa0247680d',
'No, import separately'
@@ -174,7 +179,9 @@ export function AddRepoNestedImportStep({
onClick={() => handleImport('group')}
disabled={isAdding || scanInProgress || noRepositoriesSelected}
>
- {showGroupSpinner ? : null}
+ {showGroupSpinner ? (
+
+ ) : null}
{t(
'auto.components.sidebar.AddRepoNestedImportStep.a0bc4d1f8e',
'Yes, import as group'
@@ -204,7 +211,10 @@ function AddRepoNestedImportStopButton({
title={t('auto.components.sidebar.AddRepoNestedImportStep.a32bef9516', 'Stop scanning')}
onClick={onStopScan}
>
-
+
diff --git a/src/renderer/src/components/sidebar/setup-script-prompts/SetupScriptPromptCardViews.tsx b/src/renderer/src/components/sidebar/setup-script-prompts/SetupScriptPromptCardViews.tsx
index b88415293911..d01e2575d426 100644
--- a/src/renderer/src/components/sidebar/setup-script-prompts/SetupScriptPromptCardViews.tsx
+++ b/src/renderer/src/components/sidebar/setup-script-prompts/SetupScriptPromptCardViews.tsx
@@ -1,3 +1,4 @@
+import { observeVisibleAnimation } from '@/lib/window-activity/offscreen-animation-pause'
import React from 'react'
import { Check, LoaderCircle, PackageCheck, RefreshCw, ScrollText, Settings, X } from 'lucide-react'
import { Button } from '@/components/ui/button'
@@ -133,7 +134,7 @@ export function PackageManagerActions({
disabled={isSaving}
>
{isSaving ? (
-
+
) : (
)}
diff --git a/src/renderer/src/components/sidebar/setup-script-prompts/SetupScriptReviewDialog.tsx b/src/renderer/src/components/sidebar/setup-script-prompts/SetupScriptReviewDialog.tsx
index ede3eee73258..8264491711cf 100644
--- a/src/renderer/src/components/sidebar/setup-script-prompts/SetupScriptReviewDialog.tsx
+++ b/src/renderer/src/components/sidebar/setup-script-prompts/SetupScriptReviewDialog.tsx
@@ -1,3 +1,4 @@
+import { observeVisibleAnimation } from '@/lib/window-activity/offscreen-animation-pause'
import React from 'react'
import { Download, LoaderCircle } from 'lucide-react'
import { Trans } from 'react-i18next'
@@ -121,7 +122,10 @@ export function SetupScriptReviewDialog({
{isSaving ? (
-
+
) : (
)}
diff --git a/src/renderer/src/components/sidebar/workspace-actions/deletion/DeleteNestedWorktreesDialog.tsx b/src/renderer/src/components/sidebar/workspace-actions/deletion/DeleteNestedWorktreesDialog.tsx
index d1bd77032c24..8bad569bf6db 100644
--- a/src/renderer/src/components/sidebar/workspace-actions/deletion/DeleteNestedWorktreesDialog.tsx
+++ b/src/renderer/src/components/sidebar/workspace-actions/deletion/DeleteNestedWorktreesDialog.tsx
@@ -1,3 +1,4 @@
+import { observeVisibleAnimation } from '@/lib/window-activity/offscreen-animation-pause'
import { useMemo, useRef, useState } from 'react'
import { LoaderCircle } from 'lucide-react'
import { toast } from 'sonner'
@@ -154,7 +155,9 @@ export function DeleteNestedWorktreesDialog({
disabled={deleting}
onClick={() => void review()}
>
- {deleting ? : null}
+ {deleting ? (
+
+ ) : null}
{deleting
? t('worktree.nestedRemoval.deleting', 'Deleting…')
: t('worktree.nestedRemoval.review', 'Delete with nested worktrees…')}
@@ -202,7 +205,7 @@ export function DeleteNestedWorktreesDialog({
) : !error ? (
-
+
{t('worktree.nestedRemoval.loading', 'Checking nested worktrees…')}
) : null}
@@ -239,7 +242,12 @@ export function DeleteNestedWorktreesDialog({
disabled={!plan || deleting}
onClick={() => void remove()}
>
- {deleting ? : null}
+ {deleting ? (
+
+ ) : null}
{deleting
? t('worktree.nestedRemoval.deleting', 'Deleting…')
: t('common.delete', 'Delete')}
diff --git a/src/renderer/src/components/sidebar/workspace-actions/sleep/WorkspaceVmLifecycleMenuItems.tsx b/src/renderer/src/components/sidebar/workspace-actions/sleep/WorkspaceVmLifecycleMenuItems.tsx
index cd58b50d2301..8760a894f6f0 100644
--- a/src/renderer/src/components/sidebar/workspace-actions/sleep/WorkspaceVmLifecycleMenuItems.tsx
+++ b/src/renderer/src/components/sidebar/workspace-actions/sleep/WorkspaceVmLifecycleMenuItems.tsx
@@ -1,3 +1,4 @@
+import { observeVisibleAnimation } from '@/lib/window-activity/offscreen-animation-pause'
import React from 'react'
import { Loader2, Moon, Play } from 'lucide-react'
import { DropdownMenuItem } from '@/components/ui/dropdown-menu'
@@ -150,7 +151,7 @@ function VmLifecycleMenuItem({
if (action === 'waking') {
return (
-
+
{t('workspace.vm.menu.waking', 'Waking VM…')}
)
diff --git a/src/renderer/src/components/sidebar/workspace-card/host/WorktreeCardSshHostControl.tsx b/src/renderer/src/components/sidebar/workspace-card/host/WorktreeCardSshHostControl.tsx
index 863bcc5e6772..af402ce30212 100644
--- a/src/renderer/src/components/sidebar/workspace-card/host/WorktreeCardSshHostControl.tsx
+++ b/src/renderer/src/components/sidebar/workspace-card/host/WorktreeCardSshHostControl.tsx
@@ -1,3 +1,4 @@
+import { observeVisibleAnimation } from '@/lib/window-activity/offscreen-animation-pause'
import { useCallback } from 'react'
import { Loader2, Server, ServerOff } from 'lucide-react'
import { toastSshConnectFailure } from '@/ssh/ssh-connect-failure-toast'
@@ -247,7 +248,10 @@ export function WorktreeCardSshHostControl({
}}
>
{connecting ? (
-
+
) : (
iconOnly &&
)}
diff --git a/src/renderer/src/components/sidebar/workspace-card/identity/AutoRenameFailedDialog.tsx b/src/renderer/src/components/sidebar/workspace-card/identity/AutoRenameFailedDialog.tsx
index 53ff8b3cd2f3..ec14d9d68143 100644
--- a/src/renderer/src/components/sidebar/workspace-card/identity/AutoRenameFailedDialog.tsx
+++ b/src/renderer/src/components/sidebar/workspace-card/identity/AutoRenameFailedDialog.tsx
@@ -8,6 +8,7 @@ import { useAppStore } from '@/store/index'
import { toast } from 'sonner'
import type { ExecutionHostId } from '../../../../../../shared/execution-host/execution-host'
import { cn } from '@/lib/class-names'
+import { observeVisibleAnimation } from '@/lib/window-activity/offscreen-animation-pause'
import { recomputeOn } from '@/lib/recompute-on'
import { AgentCommandFailedDialog } from '@/components/agent-command-failure/AgentCommandFailedDialog'
import { useBranchAutoRenameRetry } from './use-branch-auto-rename-retry'
@@ -207,7 +208,13 @@ export function AutoRenameFailedDialog({
}
}}
>
- {retry.running ? : null}
+ {retry.running ? (
+
+ ) : null}
) : null}
diff --git a/src/renderer/src/components/sidebar/workspace-card/identity/WorktreeTitleInlineRename.tsx b/src/renderer/src/components/sidebar/workspace-card/identity/WorktreeTitleInlineRename.tsx
index ed75eaf64bad..d9eec00f0436 100644
--- a/src/renderer/src/components/sidebar/workspace-card/identity/WorktreeTitleInlineRename.tsx
+++ b/src/renderer/src/components/sidebar/workspace-card/identity/WorktreeTitleInlineRename.tsx
@@ -1,3 +1,4 @@
+import { observeVisibleAnimation } from '@/lib/window-activity/offscreen-animation-pause'
import React, { useCallback, useEffect, useRef, useState } from 'react'
import { LoaderCircle } from 'lucide-react'
import { toast } from 'sonner'
@@ -300,8 +301,9 @@ export function WorktreeTitleInlineRename({
/>
{saving ? (
diff --git a/src/renderer/src/components/sidebar/workspace-card/review/WorkspaceAttachmentSearch.tsx b/src/renderer/src/components/sidebar/workspace-card/review/WorkspaceAttachmentSearch.tsx
index c490573bfda3..61e7bbe65277 100644
--- a/src/renderer/src/components/sidebar/workspace-card/review/WorkspaceAttachmentSearch.tsx
+++ b/src/renderer/src/components/sidebar/workspace-card/review/WorkspaceAttachmentSearch.tsx
@@ -1,3 +1,4 @@
+import { observeVisibleAnimation } from '@/lib/window-activity/offscreen-animation-pause'
import React, { useCallback, useId, useMemo, useState } from 'react'
import { ChevronDown, Loader2, Plus, X } from 'lucide-react'
import { Button } from '@/components/ui/button'
@@ -191,7 +192,10 @@ export function WorkspaceAttachmentSearch({
trailing={
{controller.showSearchSpinner ? (
-
+
) : null}
{query ? (
)
diff --git a/src/renderer/src/components/sidebar/workspace-card/surface/worktree-card-surface.tsx b/src/renderer/src/components/sidebar/workspace-card/surface/worktree-card-surface.tsx
index 7fe6fc636c4f..edd1f59711e6 100644
--- a/src/renderer/src/components/sidebar/workspace-card/surface/worktree-card-surface.tsx
+++ b/src/renderer/src/components/sidebar/workspace-card/surface/worktree-card-surface.tsx
@@ -1,3 +1,4 @@
+import { observeVisibleAnimation } from '@/lib/window-activity/offscreen-animation-pause'
import React from 'react'
import { LoaderCircle } from 'lucide-react'
@@ -116,7 +117,10 @@ export function WorktreeCardSurface({ card }: { card: WorktreeCardController }):
{!isQueuedForDeletion ? (
-
+
) : null}
{deleteLabel}
diff --git a/src/renderer/src/components/sidebar/workspace-card/template/WorktreeCardsIntroNotice.tsx b/src/renderer/src/components/sidebar/workspace-card/template/WorktreeCardsIntroNotice.tsx
index 3a47b02b2a99..604d8908de04 100644
--- a/src/renderer/src/components/sidebar/workspace-card/template/WorktreeCardsIntroNotice.tsx
+++ b/src/renderer/src/components/sidebar/workspace-card/template/WorktreeCardsIntroNotice.tsx
@@ -1,3 +1,4 @@
+import { observeVisibleAnimation } from '@/lib/window-activity/offscreen-animation-pause'
import { useEffect } from 'react'
import { Check, LoaderCircle, RotateCcw, Sparkles, X } from 'lucide-react'
import { Trans } from 'react-i18next'
@@ -162,7 +163,10 @@ export function WorktreeCardsIntroNotice(): React.JSX.Element | null {
{saving ? (
-
+
) : null}
{t('sidebar.worktreeCardsIntroNotice.keep', 'Keep new')}
diff --git a/src/renderer/src/components/sidebar/worktree-list/rows/HostSectionHeader.tsx b/src/renderer/src/components/sidebar/worktree-list/rows/HostSectionHeader.tsx
index 8ddf3b40ba9c..125ce1777d6c 100644
--- a/src/renderer/src/components/sidebar/worktree-list/rows/HostSectionHeader.tsx
+++ b/src/renderer/src/components/sidebar/worktree-list/rows/HostSectionHeader.tsx
@@ -1,3 +1,4 @@
+import { observeVisibleAnimation } from '@/lib/window-activity/offscreen-animation-pause'
import React from 'react'
import { AlertTriangle, ChevronDown, Loader2, Server, ServerOff } from 'lucide-react'
import { Tooltip, TooltipContent, TooltipTrigger } from '@/components/ui/tooltip'
@@ -44,7 +45,12 @@ function HostHeaderHealthIcon({
}): React.JSX.Element | null {
// Why: only surface states needing attention; healthy is the silent default.
if (health === 'connecting') {
- return
+ return (
+
+ )
}
if (health === 'blocked' || health === 'error') {
return
diff --git a/src/renderer/src/components/sidebar/worktree-list/rows/HostSectionHeaderMenu.tsx b/src/renderer/src/components/sidebar/worktree-list/rows/HostSectionHeaderMenu.tsx
index 3c91d8682c5b..9fad57dc0e75 100644
--- a/src/renderer/src/components/sidebar/worktree-list/rows/HostSectionHeaderMenu.tsx
+++ b/src/renderer/src/components/sidebar/worktree-list/rows/HostSectionHeaderMenu.tsx
@@ -1,3 +1,4 @@
+import { observeVisibleAnimation } from '@/lib/window-activity/offscreen-animation-pause'
import React, { useCallback, useState } from 'react'
import {
AlertTriangle,
@@ -216,7 +217,7 @@ export function HostSectionHeaderMenu({ row }: { row: HostHeaderRow }): React.JS
onKeyDown={(event) => event.stopPropagation()}
>
{busy ? (
-
+
) : (
)}
diff --git a/src/renderer/src/components/sidebar/worktree-list/rows/PendingWorktreeRow.tsx b/src/renderer/src/components/sidebar/worktree-list/rows/PendingWorktreeRow.tsx
index 7648bb0afa0f..641ad0f742b3 100644
--- a/src/renderer/src/components/sidebar/worktree-list/rows/PendingWorktreeRow.tsx
+++ b/src/renderer/src/components/sidebar/worktree-list/rows/PendingWorktreeRow.tsx
@@ -1,3 +1,4 @@
+import { observeVisibleAnimation } from '@/lib/window-activity/offscreen-animation-pause'
import React from 'react'
import { AlertTriangle, Loader2, X } from 'lucide-react'
import { useAppStore } from '@/store/index'
@@ -25,7 +26,10 @@ function HostCreationRow({ repoName }: { repoName: string | null }): React.JSX.E
return (
-
+
@@ -76,7 +80,10 @@ export function PendingWorktreeRow({
{isError ? (
) : (
-
+
)}
diff --git a/src/renderer/src/components/skills/catalog/SkillsFilterToolbar.tsx b/src/renderer/src/components/skills/catalog/SkillsFilterToolbar.tsx
index dd2c562905c4..b7e8ac2ffcfe 100644
--- a/src/renderer/src/components/skills/catalog/SkillsFilterToolbar.tsx
+++ b/src/renderer/src/components/skills/catalog/SkillsFilterToolbar.tsx
@@ -1,3 +1,4 @@
+import { observeVisibleAnimation } from '@/lib/window-activity/offscreen-animation-pause'
import { RefreshCw, Search } from 'lucide-react'
import { Button } from '@/components/ui/button'
import { Input } from '@/components/ui/input'
@@ -113,7 +114,10 @@ export function SkillsFilterToolbar({
onClick={onRefresh}
aria-label={t('auto.components.skills.SkillsPage.cb142070b4', 'Refresh')}
>
-
+
diff --git a/src/renderer/src/components/skills/catalog/skills-page-states.tsx b/src/renderer/src/components/skills/catalog/skills-page-states.tsx
index decb51e6e856..26dcb261e435 100644
--- a/src/renderer/src/components/skills/catalog/skills-page-states.tsx
+++ b/src/renderer/src/components/skills/catalog/skills-page-states.tsx
@@ -1,3 +1,4 @@
+import { observeVisibleAnimation } from '@/lib/window-activity/offscreen-animation-pause'
import { BookOpen, Download, RefreshCw } from 'lucide-react'
import { Button } from '@/components/ui/button'
import { cn } from '@/lib/class-names'
@@ -15,10 +16,19 @@ export function SkillsListSkeleton(): React.JSX.Element {
{SKELETON_ROWS.map((row) => (
))}
diff --git a/src/renderer/src/components/skills/freshness/SkillFreshnessUpdateDialog.tsx b/src/renderer/src/components/skills/freshness/SkillFreshnessUpdateDialog.tsx
index 1a6978f86788..cb8c6d6bc40d 100644
--- a/src/renderer/src/components/skills/freshness/SkillFreshnessUpdateDialog.tsx
+++ b/src/renderer/src/components/skills/freshness/SkillFreshnessUpdateDialog.tsx
@@ -1,3 +1,4 @@
+import { observeVisibleAnimation } from '@/lib/window-activity/offscreen-animation-pause'
import { useState, useSyncExternalStore } from 'react'
import { AlertTriangle, CheckCircle2, Loader2, RefreshCw } from 'lucide-react'
import type {
@@ -42,7 +43,10 @@ function RunHeadline({ run }: { run: SkillUpdateRun }): React.JSX.Element | null
if (run.state === 'running') {
return (
-
+
{t('auto.components.skills.SkillFreshnessUpdateDialog.progressAria', 'Updating skills')}
)
@@ -182,7 +186,10 @@ function SkillUpdateFooter({
disabled={isRunning || checking}
onClick={onRecheck}
>
-
+
{t('auto.components.skills.SkillFreshnessUpdateDialog.checkNow', 'Re-check')}
)}
diff --git a/src/renderer/src/components/skills/freshness/skill-freshness-summary-headline.tsx b/src/renderer/src/components/skills/freshness/skill-freshness-summary-headline.tsx
index c033c820cf89..afbf46d5fbdd 100644
--- a/src/renderer/src/components/skills/freshness/skill-freshness-summary-headline.tsx
+++ b/src/renderer/src/components/skills/freshness/skill-freshness-summary-headline.tsx
@@ -1,3 +1,4 @@
+import { observeVisibleAnimation } from '@/lib/window-activity/offscreen-animation-pause'
import { AlertTriangle, CheckCircle2, Loader2 } from 'lucide-react'
import type { BundledSkillPlan } from '../../../../../shared/skills/bundled/bundled-skill-plan'
import { summarizeBundledSkillPlan } from '../../../../../shared/skills/bundled/bundled-skill-summary'
@@ -9,7 +10,7 @@ export function SummaryHeadline({ plan }: { plan: BundledSkillPlan | null }): Re
if (!plan) {
return (
-
+
{t(
'auto.components.skills.SkillFreshnessUpdateDialog.checking',
'Checking installed Orca skills…'
diff --git a/src/renderer/src/components/skills/installation/SkillBundleInstallFlow.tsx b/src/renderer/src/components/skills/installation/SkillBundleInstallFlow.tsx
index 60b0a61a2e3d..158d064d1f70 100644
--- a/src/renderer/src/components/skills/installation/SkillBundleInstallFlow.tsx
+++ b/src/renderer/src/components/skills/installation/SkillBundleInstallFlow.tsx
@@ -1,3 +1,4 @@
+import { observeVisibleAnimation } from '@/lib/window-activity/offscreen-animation-pause'
import { useMemo, useState } from 'react'
import { Download, Loader2 } from 'lucide-react'
import { Button } from '@/components/ui/button'
@@ -334,7 +335,11 @@ export function SkillBundleInstallFlow(props: {
onClick={() => void (result ? install(retryIds, false) : install())}
className="w-40"
>
- {busy ?
:
}
+ {busy ? (
+
+ ) : (
+
+ )}
{busy
? t('auto.components.skills.SkillBundleInstallFlow.01c5a13e03', 'Installing…')
: result
diff --git a/src/renderer/src/components/skills/installation/SkillInstallDialog.tsx b/src/renderer/src/components/skills/installation/SkillInstallDialog.tsx
index c7edbf9425c8..c9793ff0640d 100644
--- a/src/renderer/src/components/skills/installation/SkillInstallDialog.tsx
+++ b/src/renderer/src/components/skills/installation/SkillInstallDialog.tsx
@@ -1,3 +1,4 @@
+import { observeVisibleAnimation } from '@/lib/window-activity/offscreen-animation-pause'
import { useCallback, useEffect, useMemo, useRef, useState } from 'react'
import { Loader2 } from 'lucide-react'
import { Dialog, DialogContent, DialogHeader, DialogTitle } from '@/components/ui/dialog'
@@ -273,7 +274,7 @@ export function SkillInstallDialog({
{resolvingInitialLink ? (
// Avoid flashing the paste form while the supplied link’s review loads.
-
+
{t('auto.components.skills.SkillInstallDialog.opening', 'Opening this link…')}
) : !preview ? (
diff --git a/src/renderer/src/components/skills/installation/SkillInstallDialogFooter.tsx b/src/renderer/src/components/skills/installation/SkillInstallDialogFooter.tsx
index f00a86c2ff0e..713c666de1ca 100644
--- a/src/renderer/src/components/skills/installation/SkillInstallDialogFooter.tsx
+++ b/src/renderer/src/components/skills/installation/SkillInstallDialogFooter.tsx
@@ -1,3 +1,4 @@
+import { observeVisibleAnimation } from '@/lib/window-activity/offscreen-animation-pause'
import { Download, Loader2, ShieldCheck } from 'lucide-react'
import { Button } from '@/components/ui/button'
import { DialogFooter } from '@/components/ui/dialog'
@@ -47,7 +48,11 @@ export function SkillInstallDialogFooter({
{!hasPreview && !resolvingInitialLink ? (
- {busy ? : }
+ {busy ? (
+
+ ) : (
+
+ )}
{busy
? t('auto.components.skills.SkillInstallReviewContent.69236de8d6', 'Checking…')
: t('auto.components.skills.SkillInstallReviewContent.157de228b4', 'Inspect skill')}
@@ -66,7 +71,11 @@ export function SkillInstallDialogFooter({
onClick={() => onInstall()}
className="w-32"
>
- {busy ? : }
+ {busy ? (
+
+ ) : (
+
+ )}
{busy
? t('auto.components.skills.SkillInstallDialog.241e72f9d6', 'Installing…')
: result
diff --git a/src/renderer/src/components/skills/installation/SkillInstallManagementDialogContent.tsx b/src/renderer/src/components/skills/installation/SkillInstallManagementDialogContent.tsx
index 8e24b7078f5d..f3876521297c 100644
--- a/src/renderer/src/components/skills/installation/SkillInstallManagementDialogContent.tsx
+++ b/src/renderer/src/components/skills/installation/SkillInstallManagementDialogContent.tsx
@@ -1,3 +1,4 @@
+import { observeVisibleAnimation } from '@/lib/window-activity/offscreen-animation-pause'
import { Loader2 } from 'lucide-react'
import { Button } from '@/components/ui/button'
import {
@@ -95,7 +96,9 @@ export function SkillInstallManagementDialogContent({
localLabel={copy.localMachine}
environments={runtimeEnvironments}
/>
- {busy && installs.length === 0 ? : null}
+ {busy && installs.length === 0 ? (
+
+ ) : null}
{!busy && installs.length === 0 ? (
{copy.noInstalls}
diff --git a/src/renderer/src/components/skills/installation/SkillManagedInstallRow.tsx b/src/renderer/src/components/skills/installation/SkillManagedInstallRow.tsx
index 4d737cee8bd8..979350111c1f 100644
--- a/src/renderer/src/components/skills/installation/SkillManagedInstallRow.tsx
+++ b/src/renderer/src/components/skills/installation/SkillManagedInstallRow.tsx
@@ -1,3 +1,4 @@
+import { observeVisibleAnimation } from '@/lib/window-activity/offscreen-animation-pause'
import { ChevronRight, Loader2, MonitorUp, RotateCcw, Trash2 } from 'lucide-react'
import { Button } from '@/components/ui/button'
import { Collapsible, CollapsibleContent, CollapsibleTrigger } from '@/components/ui/collapsible'
@@ -138,7 +139,10 @@ export function SkillManagedInstallRow({
{details ? (
onInstall()}>
{busy ? (
-
+
) : (
)}
diff --git a/src/renderer/src/components/skills/setup/AgentSkillSetupPanel.tsx b/src/renderer/src/components/skills/setup/AgentSkillSetupPanel.tsx
index 80361c195259..159e77c4c8dc 100644
--- a/src/renderer/src/components/skills/setup/AgentSkillSetupPanel.tsx
+++ b/src/renderer/src/components/skills/setup/AgentSkillSetupPanel.tsx
@@ -1,3 +1,4 @@
+import { observeVisibleAnimation } from '@/lib/window-activity/offscreen-animation-pause'
import { skillPlanHasDetails } from '@/lib/skills/presentation/skill-freshness-display-status'
import { SkillSetupRow } from './SkillSetupRow'
import { bundledSkillSetupActionLabel } from './bundled-skill-setup-copy'
@@ -128,7 +129,7 @@ function BundledAgentSkillSetupPanel({
disabled={installDisabled || installing || !ready || action.kind === 'loading'}
>
{installing ? (
-
+
) : (
)}
@@ -159,7 +160,10 @@ function BundledAgentSkillSetupPanel({
}}
disabled={loading}
>
-
+
{t('auto.components.settings.AgentSkillSetupPanel.c689392435', 'Re-check')}
) : null}
diff --git a/src/renderer/src/components/skills/setup/WslAgentSkillSetupPanel.tsx b/src/renderer/src/components/skills/setup/WslAgentSkillSetupPanel.tsx
index 5fec99245a61..2cc245a44381 100644
--- a/src/renderer/src/components/skills/setup/WslAgentSkillSetupPanel.tsx
+++ b/src/renderer/src/components/skills/setup/WslAgentSkillSetupPanel.tsx
@@ -1,3 +1,4 @@
+import { observeVisibleAnimation } from '@/lib/window-activity/offscreen-animation-pause'
import { SkillSetupCommand } from './SkillSetupCommand'
import { SkillSetupRow } from './SkillSetupRow'
// COMPAT(wsl-bridge): removed when WSL runs as an orcad host.
@@ -240,7 +241,7 @@ export function WslAgentSkillSetupPanel({
disabled={terminalOpen || installDisabled || terminalOpening}
>
{terminalOpening ? (
-
+
) : (
)}
@@ -272,7 +273,10 @@ export function WslAgentSkillSetupPanel({
: loading
}
>
-
+
{setupCommandFailedCode !== null
? t('auto.components.settings.AgentSkillSetupPanel.retrySetup', 'Retry')
: t('auto.components.settings.AgentSkillSetupPanel.c689392435', 'Re-check')}
diff --git a/src/renderer/src/components/skills/setup/WslLinearAgentSkillInstallCta.tsx b/src/renderer/src/components/skills/setup/WslLinearAgentSkillInstallCta.tsx
index 7213fb3b4a3e..1ef9b288d24d 100644
--- a/src/renderer/src/components/skills/setup/WslLinearAgentSkillInstallCta.tsx
+++ b/src/renderer/src/components/skills/setup/WslLinearAgentSkillInstallCta.tsx
@@ -1,3 +1,4 @@
+import { observeVisibleAnimation } from '@/lib/window-activity/offscreen-animation-pause'
// COMPAT(wsl-bridge): removed when WSL runs as an orcad host.
import { useMemo } from 'react'
import { Copy, RefreshCw } from 'lucide-react'
@@ -121,7 +122,10 @@ export function WslLinearAgentSkillInstallCta({
onClick={() => void skill.refresh()}
disabled={skill.loading}
>
-
+
{t('auto.components.settings.linear.agent.skill.install.cta.recheck', 'Re-check')}
diff --git a/src/renderer/src/components/skills/setup/linear-agent-skill-install-cta.tsx b/src/renderer/src/components/skills/setup/linear-agent-skill-install-cta.tsx
index 1199ec236f93..0b941bed746c 100644
--- a/src/renderer/src/components/skills/setup/linear-agent-skill-install-cta.tsx
+++ b/src/renderer/src/components/skills/setup/linear-agent-skill-install-cta.tsx
@@ -1,3 +1,4 @@
+import { observeVisibleAnimation } from '@/lib/window-activity/offscreen-animation-pause'
import { bundledSkillSetupActionLabel } from './bundled-skill-setup-copy'
import { useActiveProjectSkillRuntime } from '@/hooks/skills/runtime/useActiveProjectSkillRuntime'
import { WslLinearAgentSkillInstallCta } from './WslLinearAgentSkillInstallCta'
@@ -112,7 +113,10 @@ function BundledLinearAgentSkillInstallCta({
onClick={() => void skill.refresh()}
disabled={skill.loading}
>
-
+
{t('auto.components.settings.linear.agent.skill.install.cta.recheck', 'Re-check')}
@@ -139,7 +143,7 @@ function BundledLinearAgentSkillInstallCta({
disabled={installing || !ready || action.kind === 'loading'}
>
{installing ? (
-
+
) : (
)}
diff --git a/src/renderer/src/components/skills/sharing/SkillShareDialog.tsx b/src/renderer/src/components/skills/sharing/SkillShareDialog.tsx
index a85e78f2e3cd..cfdeaafc9320 100644
--- a/src/renderer/src/components/skills/sharing/SkillShareDialog.tsx
+++ b/src/renderer/src/components/skills/sharing/SkillShareDialog.tsx
@@ -1,3 +1,4 @@
+import { observeVisibleAnimation } from '@/lib/window-activity/offscreen-animation-pause'
import { useEffect, useMemo, useRef, useState } from 'react'
import { Loader2, Share2 } from 'lucide-react'
import { toast } from 'sonner'
@@ -282,7 +283,7 @@ export function SkillShareDialog({
{preparing ? (
-
+
{t('auto.components.skills.SkillShareDialog.preparing', 'Preparing preview…')}
) : preview && !shareUrl ? (
diff --git a/src/renderer/src/components/skills/sharing/SkillSharedLinkRow.tsx b/src/renderer/src/components/skills/sharing/SkillSharedLinkRow.tsx
index ce5a0ce1fc36..313cc6ae7da7 100644
--- a/src/renderer/src/components/skills/sharing/SkillSharedLinkRow.tsx
+++ b/src/renderer/src/components/skills/sharing/SkillSharedLinkRow.tsx
@@ -1,3 +1,4 @@
+import { observeVisibleAnimation } from '@/lib/window-activity/offscreen-animation-pause'
import { useState } from 'react'
import { ChevronRight, Clipboard, Link2Off, Loader2, MoreHorizontal, Trash2 } from 'lucide-react'
import { toast } from 'sonner'
@@ -153,7 +154,9 @@ export function SkillSharedLinkRow({
disabled={busy || deleting}
onClick={() => (confirming === 'revoke' ? onRevoke() : void deletePackage())}
>
- {busy || deleting ?
: null}
+ {busy || deleting ? (
+
+ ) : null}
{confirming === 'revoke'
? t('auto.components.settings.shareSkills.confirmUnshare', 'Confirm unshare')
: t('common.delete', 'Delete')}
@@ -232,7 +235,7 @@ export function SkillSharedLinkRow({
) : (
-
+
{t('auto.components.skills.SkillSharedLinkRow.loading', 'Loading contents…')}
)}
diff --git a/src/renderer/src/components/sparse/SparseCheckoutPresetDraftForm.tsx b/src/renderer/src/components/sparse/SparseCheckoutPresetDraftForm.tsx
index 6565c5f9aac6..53e9eec06577 100644
--- a/src/renderer/src/components/sparse/SparseCheckoutPresetDraftForm.tsx
+++ b/src/renderer/src/components/sparse/SparseCheckoutPresetDraftForm.tsx
@@ -1,3 +1,4 @@
+import { observeVisibleAnimation } from '@/lib/window-activity/offscreen-animation-pause'
import { useId, useState } from 'react'
import { Loader2 } from 'lucide-react'
import { Button } from '@/components/ui/button'
@@ -154,7 +155,7 @@ export function SparseCheckoutPresetDraftForm({
{submitting ? (
-
+
) : null}
diff --git a/src/renderer/src/components/sparse/SparseCheckoutPresetSelect.tsx b/src/renderer/src/components/sparse/SparseCheckoutPresetSelect.tsx
index 70085deca83d..80d77265a045 100644
--- a/src/renderer/src/components/sparse/SparseCheckoutPresetSelect.tsx
+++ b/src/renderer/src/components/sparse/SparseCheckoutPresetSelect.tsx
@@ -1,3 +1,4 @@
+import { observeVisibleAnimation } from '@/lib/window-activity/offscreen-animation-pause'
import React, { useCallback, useEffect, useMemo, useRef, useState } from 'react'
import { ChevronsUpDown, LoaderCircle, RefreshCcw } from 'lucide-react'
import { Button } from '@/components/ui/button'
@@ -255,7 +256,10 @@ export default function SparseCheckoutPresetSelect({
>
{triggerLabel}
{isLoadingPresets ? (
-
+
) : hasPresetLoadError || !presetsLoaded ? (
) : (
diff --git a/src/renderer/src/components/sparse/SparseDirectoryPicker.tsx b/src/renderer/src/components/sparse/SparseDirectoryPicker.tsx
index 874e09ca6be8..d48ec4d5775f 100644
--- a/src/renderer/src/components/sparse/SparseDirectoryPicker.tsx
+++ b/src/renderer/src/components/sparse/SparseDirectoryPicker.tsx
@@ -1,3 +1,4 @@
+import { observeVisibleAnimation } from '@/lib/window-activity/offscreen-animation-pause'
import { useCallback, useEffect, useMemo, useState } from 'react'
import { ChevronRight, ChevronsUpDown, LoaderCircle, Plus } from 'lucide-react'
import { FolderIcon } from '@/components/icons/FileTypeIcon'
@@ -202,7 +203,10 @@ export function SparseDirectoryPicker({
) : null}
{state.status === 'loading' ? (
-
+
) : null}
{filtered.map((entry) => {
diff --git a/src/renderer/src/components/star-nag/StarNagToastHost.tsx b/src/renderer/src/components/star-nag/StarNagToastHost.tsx
index a0ce3595b73e..10ad612ef130 100644
--- a/src/renderer/src/components/star-nag/StarNagToastHost.tsx
+++ b/src/renderer/src/components/star-nag/StarNagToastHost.tsx
@@ -1,3 +1,4 @@
+import { observeVisibleAnimation } from '@/lib/window-activity/offscreen-animation-pause'
import { useEffect, useRef, useState } from 'react'
import { Check, ExternalLink, Loader2, Star, X } from 'lucide-react'
import { toast } from 'sonner'
@@ -148,7 +149,7 @@ function StarNagToast({
disabled={busy || status === 'starred' || status === 'opened'}
>
{busy ? (
-
+
) : mode === 'web' ? (
) : (
diff --git a/src/renderer/src/components/stats/ClaudeUsageLoadingState.tsx b/src/renderer/src/components/stats/ClaudeUsageLoadingState.tsx
index 99043dc2f36c..17fa4c4db753 100644
--- a/src/renderer/src/components/stats/ClaudeUsageLoadingState.tsx
+++ b/src/renderer/src/components/stats/ClaudeUsageLoadingState.tsx
@@ -1,3 +1,4 @@
+import { observeVisibleAnimation } from '@/lib/window-activity/offscreen-animation-pause'
import { RefreshCw } from 'lucide-react'
import { SwitchIndicator } from '../ui/switch'
import { useTranslate } from '@/i18n/use-translate'
@@ -22,10 +23,16 @@ export function ClaudeUsageLoadingState({
{title ??
t('auto.components.stats.ClaudeUsagePane.6afacbee37', 'Claude Usage Tracking')}
-
+
-
+
-
+
{Array.from({ length: summaryCardCount }, (_, index) => (
))}
{Array.from({ length: 10 }, (_, index) => (
))}
diff --git a/src/renderer/src/components/stats/GrokUsagePane.tsx b/src/renderer/src/components/stats/GrokUsagePane.tsx
index 5180eced8faf..1a928152b0c1 100644
--- a/src/renderer/src/components/stats/GrokUsagePane.tsx
+++ b/src/renderer/src/components/stats/GrokUsagePane.tsx
@@ -1,3 +1,4 @@
+import { observeVisibleAnimation } from '@/lib/window-activity/offscreen-animation-pause'
import { useState } from 'react'
import { CalendarClock, ExternalLink, RefreshCw, Sparkles } from 'lucide-react'
import { useIntlLocale, useTranslate } from '@/i18n/use-translate'
@@ -103,7 +104,10 @@ export function GrokUsagePane(): React.JSX.Element {
'Refresh Grok usage'
)}
>
-
+
diff --git a/src/renderer/src/components/stats/UsageOverviewPane.tsx b/src/renderer/src/components/stats/UsageOverviewPane.tsx
index 40e36ab17174..2e3080fafbb0 100644
--- a/src/renderer/src/components/stats/UsageOverviewPane.tsx
+++ b/src/renderer/src/components/stats/UsageOverviewPane.tsx
@@ -1,3 +1,4 @@
+import { observeVisibleAnimation } from '@/lib/window-activity/offscreen-animation-pause'
import { usageFailureMessage } from './usage-failure-message'
import { useUsageObservation } from '../../store/slices/usage/use-usage-observation'
import { useMemo } from 'react'
@@ -194,7 +195,10 @@ export function UsageOverviewPane(): React.JSX.Element {
'Refresh usage overview'
)}
>
-
+
diff --git a/src/renderer/src/components/stats/UsageTrackingPaneShell.tsx b/src/renderer/src/components/stats/UsageTrackingPaneShell.tsx
index fb4a68b20cd1..abdc23ab5032 100644
--- a/src/renderer/src/components/stats/UsageTrackingPaneShell.tsx
+++ b/src/renderer/src/components/stats/UsageTrackingPaneShell.tsx
@@ -1,3 +1,4 @@
+import { observeVisibleAnimation } from '@/lib/window-activity/offscreen-animation-pause'
import { Fragment, type ReactElement, type ReactNode } from 'react'
import { RefreshCw, SlidersHorizontal } from 'lucide-react'
import { Button } from '../ui/button'
@@ -151,7 +152,10 @@ export function UsageTrackingPaneShell(props: UsageTrackingPaneShellProps): Reac
disabled={props.isRefreshing}
aria-label={props.refreshAriaLabel}
>
-
+
diff --git a/src/renderer/src/components/status-bar/NativeChatResumeStatusSegment.tsx b/src/renderer/src/components/status-bar/NativeChatResumeStatusSegment.tsx
index 3634020821e9..42949ac95e27 100644
--- a/src/renderer/src/components/status-bar/NativeChatResumeStatusSegment.tsx
+++ b/src/renderer/src/components/status-bar/NativeChatResumeStatusSegment.tsx
@@ -1,3 +1,4 @@
+import { observeVisibleAnimation } from '@/lib/window-activity/offscreen-animation-pause'
import { AlertCircle, CheckCircle2, Loader2, RotateCcw } from 'lucide-react'
import { useLocalStructuredChatsInUse } from '../../runtime/native-chat/local-sessions/local-structured-chats'
import { Tooltip, TooltipContent, TooltipTrigger } from '@/components/ui/tooltip'
@@ -208,7 +209,12 @@ function NativeChatRuntimeResumeStatusSegment({
machineName={machineName}
iconOnly={iconOnly}
count={view?.counts.total ?? 0}
- icon={}
+ icon={
+
+ }
{...resumingText(view?.counts.done ?? 0, view?.counts.total ?? 0, t)}
/>
)}
diff --git a/src/renderer/src/components/status-bar/StatusBarSurface.tsx b/src/renderer/src/components/status-bar/StatusBarSurface.tsx
index f353bf405d78..1f0b86a04bac 100644
--- a/src/renderer/src/components/status-bar/StatusBarSurface.tsx
+++ b/src/renderer/src/components/status-bar/StatusBarSurface.tsx
@@ -1,3 +1,4 @@
+import { observeVisibleAnimation } from '@/lib/window-activity/offscreen-animation-pause'
import { PanelsTopLeft, RefreshCw } from 'lucide-react'
import React from 'react'
import { useTranslation } from 'react-i18next'
@@ -303,8 +304,9 @@ export function StatusBarSurface({
)}
>
diff --git a/src/renderer/src/components/status-bar/accounts/AccountUsageGauge.tsx b/src/renderer/src/components/status-bar/accounts/AccountUsageGauge.tsx
index eb5456731d0d..d1ef193088fd 100644
--- a/src/renderer/src/components/status-bar/accounts/AccountUsageGauge.tsx
+++ b/src/renderer/src/components/status-bar/accounts/AccountUsageGauge.tsx
@@ -1,3 +1,4 @@
+import { observeVisibleAnimation } from '@/lib/window-activity/offscreen-animation-pause'
import React from 'react'
import { useAppStore } from '../../../store'
import type { ProviderRateLimits } from '../../../../../shared/agent-usage/rate-limits/rate-limit-types'
@@ -69,9 +70,10 @@ export function AccountUsageGauge({
}
return (
{/* Why health: account rows only render inside a provider's details card. */}
- {isRedeemingReset ? : null}
+ {isRedeemingReset ? (
+
+ ) : null}
{isRedeemingReset
? t('auto.components.status.bar.StatusBar.25d8bbde69', 'Using reset…')
: t('auto.components.status.bar.StatusBar.e159fc1fd7', 'Reset now')}
@@ -115,7 +118,7 @@ export function CodexResetConfirmation({
void onConfirm()} disabled={isRedeemingReset}>
{isRedeemingReset ? (
-
+
) : (
)}
diff --git a/src/renderer/src/components/status-bar/host-connections/PortsStatusSegment.tsx b/src/renderer/src/components/status-bar/host-connections/PortsStatusSegment.tsx
index 4dd77f62f731..59e65a4ca85c 100644
--- a/src/renderer/src/components/status-bar/host-connections/PortsStatusSegment.tsx
+++ b/src/renderer/src/components/status-bar/host-connections/PortsStatusSegment.tsx
@@ -1,3 +1,4 @@
+import { observeVisibleAnimation } from '@/lib/window-activity/offscreen-animation-pause'
import React, { useCallback, useMemo, useState } from 'react'
import { Plug, ChevronDown, ChevronRight, LoaderCircle } from 'lucide-react'
import { Popover, PopoverContent, PopoverTrigger } from '@/components/ui/popover'
@@ -105,7 +106,10 @@ export function PortsStatusSegment({ iconOnly }: PortsStatusSegmentProps): React
)}
>
{refreshing ? (
-
+
) : (
)}
diff --git a/src/renderer/src/components/status-bar/host-connections/RuntimeHostStatusRow.tsx b/src/renderer/src/components/status-bar/host-connections/RuntimeHostStatusRow.tsx
index 625d9fb8ce7b..1034e820705e 100644
--- a/src/renderer/src/components/status-bar/host-connections/RuntimeHostStatusRow.tsx
+++ b/src/renderer/src/components/status-bar/host-connections/RuntimeHostStatusRow.tsx
@@ -1,3 +1,4 @@
+import { observeVisibleAnimation } from '@/lib/window-activity/offscreen-animation-pause'
import { useCallback, useRef, useState } from 'react'
import { Loader2 } from 'lucide-react'
import { translate } from '@/i18n/i18n'
@@ -242,7 +243,12 @@ export function RuntimeHostStatusRow({
·
- {showSpinner ? : null}
+ {showSpinner ? (
+
+ ) : null}
{blocked?.label ?? runtimeStatusLabel(state, t)}
@@ -251,7 +257,10 @@ export function RuntimeHostStatusRow({
)
const actionButton = busy ? (
-
+
) : actionLabel && action ? (
hasSubmenu ? (
- {busy ? : null}
+ {busy ? (
+
+ ) : null}
{actionLabel}
) : null}
diff --git a/src/renderer/src/components/status-bar/host-connections/SshTargetStatusRow.tsx b/src/renderer/src/components/status-bar/host-connections/SshTargetStatusRow.tsx
index 554f45234d83..ef7cdae10818 100644
--- a/src/renderer/src/components/status-bar/host-connections/SshTargetStatusRow.tsx
+++ b/src/renderer/src/components/status-bar/host-connections/SshTargetStatusRow.tsx
@@ -1,3 +1,4 @@
+import { observeVisibleAnimation } from '@/lib/window-activity/offscreen-animation-pause'
import { useCallback, useState } from 'react'
import { Loader2 } from 'lucide-react'
import { toast } from 'sonner'
@@ -94,7 +95,10 @@ export function SshTargetStatusRow({
{busy || connectInFlight ? (
-
+
) : canConnectSshStatus(status) ? (
void runKillConfirmed()} disabled={killing}>
- {killing ? : null}
+ {killing ? (
+
+ ) : null}
{killing
? t('auto.components.status.bar.ResourceUsageStatusSegment.41ae4fa725', 'Killing…')
: t(
diff --git a/src/renderer/src/components/status-bar/updates/AgentCliUpdateList.tsx b/src/renderer/src/components/status-bar/updates/AgentCliUpdateList.tsx
index 97971627e4a1..7c48f3c7172b 100644
--- a/src/renderer/src/components/status-bar/updates/AgentCliUpdateList.tsx
+++ b/src/renderer/src/components/status-bar/updates/AgentCliUpdateList.tsx
@@ -16,6 +16,7 @@ import {
type AgentCliUpdate,
type AgentCliUpdateAgent
} from '../../../../../shared/agent-launch/installation/agent-cli-update'
+import { observeVisibleAnimation } from '@/lib/window-activity/offscreen-animation-pause'
export type AgentCliUpdateRow = {
hostKey: string
@@ -75,7 +76,10 @@ function AgentCliUpdateListRow({
{t('agentCliUpdate.updating', 'Updating…')}
-
+
>
) : run?.phase === 'failed' ? (
<>
diff --git a/src/renderer/src/components/status-bar/updates/AgentCliUpdateStatusSegment.tsx b/src/renderer/src/components/status-bar/updates/AgentCliUpdateStatusSegment.tsx
index d6790dbbac72..99c8db7bae30 100644
--- a/src/renderer/src/components/status-bar/updates/AgentCliUpdateStatusSegment.tsx
+++ b/src/renderer/src/components/status-bar/updates/AgentCliUpdateStatusSegment.tsx
@@ -14,6 +14,7 @@ import {
type AgentCliUpdateGroup,
type AgentCliUpdateRow
} from './AgentCliUpdateList'
+import { observeVisibleAnimation } from '@/lib/window-activity/offscreen-animation-pause'
const LOCAL_TARGET = { kind: 'local' } as const
const NO_HOST_NAMES: Readonly> = Object.freeze({})
@@ -75,7 +76,12 @@ export function AgentCliUpdateStatusSegment({
const failed = rows.some((row) => row.run?.phase === 'failed')
const segment = busy
? {
- icon: ,
+ icon: (
+
+ ),
label: t('agentCliUpdate.statusUpdating', 'Updating CLIs'),
tooltip: t('agentCliUpdate.statusUpdatingTooltip', 'Agent CLI updates are running')
}
diff --git a/src/renderer/src/components/status-bar/updates/RemoteServerUpdateStatusSegment.tsx b/src/renderer/src/components/status-bar/updates/RemoteServerUpdateStatusSegment.tsx
index 9c87a6fdf947..80dc7201bce6 100644
--- a/src/renderer/src/components/status-bar/updates/RemoteServerUpdateStatusSegment.tsx
+++ b/src/renderer/src/components/status-bar/updates/RemoteServerUpdateStatusSegment.tsx
@@ -1,3 +1,4 @@
+import { observeVisibleAnimation } from '@/lib/window-activity/offscreen-animation-pause'
import type React from 'react'
import { AlertCircle, CheckCircle2, RefreshCw } from 'lucide-react'
import { Tooltip, TooltipContent, TooltipTrigger } from '@/components/ui/tooltip'
@@ -28,7 +29,12 @@ export function RemoteServerUpdateStatusSegment({
const segment = running
? {
- icon: ,
+ icon: (
+
+ ),
label: t(
'auto.components.status.bar.RemoteServerUpdateStatusSegment.updating',
'Updating {{value0}}/{{value1}}',
diff --git a/src/renderer/src/components/status-bar/updates/SkillUpdateStatusSegment.tsx b/src/renderer/src/components/status-bar/updates/SkillUpdateStatusSegment.tsx
index b496f8dd9052..58f71e26d77c 100644
--- a/src/renderer/src/components/status-bar/updates/SkillUpdateStatusSegment.tsx
+++ b/src/renderer/src/components/status-bar/updates/SkillUpdateStatusSegment.tsx
@@ -1,3 +1,4 @@
+import { observeVisibleAnimation } from '@/lib/window-activity/offscreen-animation-pause'
import { AlertCircle, CheckCircle2, Loader2 } from 'lucide-react'
import { Tooltip, TooltipContent, TooltipTrigger } from '@/components/ui/tooltip'
import { useTranslate } from '@/i18n/use-translate'
@@ -21,7 +22,12 @@ export function SkillUpdateStatusSegment({
const segment = (() => {
if (run.state === 'running') {
return {
- icon: ,
+ icon: (
+
+ ),
label: t(
'auto.components.status.bar.SkillUpdateStatusSegment.runningLabel',
'Updating skills'
diff --git a/src/renderer/src/components/status-bar/updates/UpdateStatusSegment.tsx b/src/renderer/src/components/status-bar/updates/UpdateStatusSegment.tsx
index fe15d1c4fd9a..6e63b6145e9c 100644
--- a/src/renderer/src/components/status-bar/updates/UpdateStatusSegment.tsx
+++ b/src/renderer/src/components/status-bar/updates/UpdateStatusSegment.tsx
@@ -1,3 +1,4 @@
+import { observeVisibleAnimation } from '@/lib/window-activity/offscreen-animation-pause'
import React from 'react'
import { AlertCircle, CheckCircle2, Clock3, Download, Loader2 } from 'lucide-react'
import { Tooltip, TooltipContent, TooltipTrigger } from '@/components/ui/tooltip'
@@ -56,7 +57,12 @@ export function UpdateStatusSegment({
}
if (status.state === 'downloaded' && status.installing) {
return {
- icon: ,
+ icon: (
+
+ ),
label: t('updates.installBlock.preparingLabel', 'Preparing update'),
tooltip: t(
'updates.installBlock.preparingSummary',
diff --git a/src/renderer/src/components/status-bar/usage/InlineProviderUsage.tsx b/src/renderer/src/components/status-bar/usage/InlineProviderUsage.tsx
index 766d5f8304b4..148fa783106b 100644
--- a/src/renderer/src/components/status-bar/usage/InlineProviderUsage.tsx
+++ b/src/renderer/src/components/status-bar/usage/InlineProviderUsage.tsx
@@ -1,3 +1,4 @@
+import { observeVisibleAnimation } from '@/lib/window-activity/offscreen-animation-pause'
import { Loader2 } from 'lucide-react'
import React from 'react'
import { Button } from '@/components/ui/button'
@@ -89,7 +90,8 @@ export function InlineUsageBars({
return (
{usageWindows.map((window) => {
const resetsAt =
@@ -183,7 +185,10 @@ export function InlineUsageSignInAction({
aria-label={`${t('auto.components.status.bar.StatusBar.c35af53b73', 'Sign in')}: ${accountLabel}`}
>
{isSigningIn ? (
-
+
) : null}
{t('auto.components.status.bar.StatusBar.c35af53b73', 'Sign in')}
@@ -193,7 +198,10 @@ export function InlineUsageSignInAction({
export function InlineUsageSkeleton(): React.JSX.Element {
return (
-
+
diff --git a/src/renderer/src/components/status-bar/usage/UsageRosterPanel.tsx b/src/renderer/src/components/status-bar/usage/UsageRosterPanel.tsx
index 79602c38f744..44203ae8302f 100644
--- a/src/renderer/src/components/status-bar/usage/UsageRosterPanel.tsx
+++ b/src/renderer/src/components/status-bar/usage/UsageRosterPanel.tsx
@@ -1,3 +1,4 @@
+import { observeVisibleAnimation } from '@/lib/window-activity/offscreen-animation-pause'
import React from 'react'
import { ChevronRight, RefreshCw } from 'lucide-react'
import { DropdownMenuItem } from '@/components/ui/dropdown-menu'
@@ -301,6 +302,7 @@ export function UsageRosterPanel({
const sorted = [...providers].sort(
(a, b) => providerPrimaryMaxUsed(b, t) - providerPrimaryMaxUsed(a, t)
)
+ const refreshAnimation = isRefreshing ? 'visible-animate-spin' : ''
return (
@@ -320,7 +322,7 @@ export function UsageRosterPanel({
aria-label={t('auto.components.status.bar.StatusBar.3325d996cb', 'Refresh rate limits')}
className="size-5 justify-center p-0"
>
-
+
diff --git a/src/renderer/src/components/status-bar/workspace-storage/WorkspaceSpaceCompactPanel.tsx b/src/renderer/src/components/status-bar/workspace-storage/WorkspaceSpaceCompactPanel.tsx
index b75e03cca8a5..d8a1b7bffef6 100644
--- a/src/renderer/src/components/status-bar/workspace-storage/WorkspaceSpaceCompactPanel.tsx
+++ b/src/renderer/src/components/status-bar/workspace-storage/WorkspaceSpaceCompactPanel.tsx
@@ -1,3 +1,4 @@
+import { observeVisibleAnimation } from '@/lib/window-activity/offscreen-animation-pause'
import { useCallback } from 'react'
import { AlertTriangle, HardDrive, Loader2, RefreshCw, X } from 'lucide-react'
import { useAppStore } from '../../../store/index'
@@ -102,7 +103,7 @@ export function WorkspaceSpaceCompactPanel({
>
{isScanning ? (
progress?.state === 'cancelling' ? (
-
+
) : (
)
diff --git a/src/renderer/src/components/status-bar/workspace-storage/decisions/workspace-space-status-badge.tsx b/src/renderer/src/components/status-bar/workspace-storage/decisions/workspace-space-status-badge.tsx
index a44f2648ab29..f5fcd96f7537 100644
--- a/src/renderer/src/components/status-bar/workspace-storage/decisions/workspace-space-status-badge.tsx
+++ b/src/renderer/src/components/status-bar/workspace-storage/decisions/workspace-space-status-badge.tsx
@@ -1,3 +1,4 @@
+import { observeVisibleAnimation } from '@/lib/window-activity/offscreen-animation-pause'
import { Loader2 } from 'lucide-react'
import type { WorkspaceSpaceWorktree } from '../../../../../../shared/workspace-disk-space/workspace-space-types'
import { Badge } from '../../../ui/badge'
@@ -19,7 +20,7 @@ export function WorkspaceSpaceStatusBadge({
if (deleteState?.isDeleting) {
return (
-
+
{t('auto.components.status.bar.WorkspaceSpaceManagerPanel.33653dbac2', 'Deleting')}
)
diff --git a/src/renderer/src/components/status-bar/workspace-storage/overview/workspace-space-breakdown-list.tsx b/src/renderer/src/components/status-bar/workspace-storage/overview/workspace-space-breakdown-list.tsx
index 03a86c4f77e5..38a952ee7b28 100644
--- a/src/renderer/src/components/status-bar/workspace-storage/overview/workspace-space-breakdown-list.tsx
+++ b/src/renderer/src/components/status-bar/workspace-storage/overview/workspace-space-breakdown-list.tsx
@@ -1,3 +1,4 @@
+import { observeVisibleAnimation } from '@/lib/window-activity/offscreen-animation-pause'
import { AlertTriangle, FolderSearch, Loader2 } from 'lucide-react'
import type {
WorkspaceSpaceItem,
@@ -49,7 +50,9 @@ export function WorkspaceSpaceBreakdownList({
return (
- {isScanning ? : null}
+ {isScanning ? (
+
+ ) : null}
{isScanning
? t(
'auto.components.status.bar.WorkspaceSpaceManagerPanel.c5135e7e4a',
diff --git a/src/renderer/src/components/status-bar/workspace-storage/overview/workspace-space-manager-overview.tsx b/src/renderer/src/components/status-bar/workspace-storage/overview/workspace-space-manager-overview.tsx
index dc9e0abf501b..dbde27e1cafc 100644
--- a/src/renderer/src/components/status-bar/workspace-storage/overview/workspace-space-manager-overview.tsx
+++ b/src/renderer/src/components/status-bar/workspace-storage/overview/workspace-space-manager-overview.tsx
@@ -1,3 +1,4 @@
+import { observeVisibleAnimation } from '@/lib/window-activity/offscreen-animation-pause'
import { AlertTriangle, HardDrive, Loader2, RefreshCw, X } from 'lucide-react'
import { Button } from '../../../ui/button'
import { Popover, PopoverContent, PopoverTrigger } from '../../../ui/popover'
@@ -95,7 +96,7 @@ export function WorkspaceSpaceManagerOverview({
>
{isScanning ? (
progress?.state === 'cancelling' ? (
-
+
) : (
)
@@ -114,7 +115,7 @@ export function WorkspaceSpaceManagerOverview({
{isScanning ? (
-
+
{analysis
? t(
diff --git a/src/renderer/src/components/status-bar/workspace-storage/overview/workspace-space-treemap.tsx b/src/renderer/src/components/status-bar/workspace-storage/overview/workspace-space-treemap.tsx
index f7e1dc7d254d..1fb8e5c23ab3 100644
--- a/src/renderer/src/components/status-bar/workspace-storage/overview/workspace-space-treemap.tsx
+++ b/src/renderer/src/components/status-bar/workspace-storage/overview/workspace-space-treemap.tsx
@@ -1,3 +1,4 @@
+import { observeVisibleAnimation } from '@/lib/window-activity/offscreen-animation-pause'
import { useMemo } from 'react'
import { Loader2, ZoomIn, ZoomOut } from 'lucide-react'
import type { WorkspaceSpaceWorktree } from '../../../../../../shared/workspace-disk-space/workspace-space-types'
@@ -87,7 +88,9 @@ export function WorkspaceSpaceTreemap({
) : null}
- {isScanning ? : null}
+ {isScanning ? (
+
+ ) : null}
{isScanning
? t(
'auto.components.status.bar.WorkspaceSpaceManagerPanel.c5135e7e4a',
diff --git a/src/renderer/src/components/status-bar/workspace-storage/table/workspace-space-manager-table.tsx b/src/renderer/src/components/status-bar/workspace-storage/table/workspace-space-manager-table.tsx
index 70dccd2ae7e3..80c5ab787ff1 100644
--- a/src/renderer/src/components/status-bar/workspace-storage/table/workspace-space-manager-table.tsx
+++ b/src/renderer/src/components/status-bar/workspace-storage/table/workspace-space-manager-table.tsx
@@ -1,3 +1,4 @@
+import { observeVisibleAnimation } from '@/lib/window-activity/offscreen-animation-pause'
import { useState } from 'react'
import { Loader2 } from 'lucide-react'
import { VirtualizedList } from '../../../ui/virtualized-list'
@@ -118,7 +119,7 @@ export function WorkspaceSpaceManagerTable({
{isInitialScan ? (
-
+
{t(
'auto.components.status.bar.WorkspaceSpaceManagerPanel.a02d84d2d2',
'Scanning workspaces. You can leave this page.'
diff --git a/src/renderer/src/components/tab-bar/browser-tabs/ClientHostedBrowserTab.tsx b/src/renderer/src/components/tab-bar/browser-tabs/ClientHostedBrowserTab.tsx
index cef640ecb89a..e9c9ba07e180 100644
--- a/src/renderer/src/components/tab-bar/browser-tabs/ClientHostedBrowserTab.tsx
+++ b/src/renderer/src/components/tab-bar/browser-tabs/ClientHostedBrowserTab.tsx
@@ -14,6 +14,7 @@ import {
import { preventMiddleButtonDefault } from '../strip/middle-button-default-guard'
import { TAB_LABEL_WIDTH_CLASSES } from '../strip/tab-width-rules'
import { useTabStripSlotProps } from '../strip/use-tab-strip-slot-props'
+import { observeVisibleAnimation } from '@/lib/window-activity/offscreen-animation-pause'
/** Paired-client pages have no unified tab: expose presence and close without persisted ordering, pinning or drag actions. */
export default function ClientHostedBrowserTab({
@@ -66,7 +67,8 @@ export default function ClientHostedBrowserTab({
>
{isActive &&
}
- {loading ? : null}
+ {loading ? (
+
+ ) : null}
{message}
)
@@ -153,7 +160,11 @@ export function EntryActionRow({
onPointerMove={setupEntry ? undefined : onHover}
>
{loading ? (
-
+
) : (
presentation.icon
)}
diff --git a/src/renderer/src/components/task-page/PaginationBar.tsx b/src/renderer/src/components/task-page/PaginationBar.tsx
index b655bee3bc8f..910943561e60 100644
--- a/src/renderer/src/components/task-page/PaginationBar.tsx
+++ b/src/renderer/src/components/task-page/PaginationBar.tsx
@@ -1,3 +1,4 @@
+import { observeVisibleAnimation } from '@/lib/window-activity/offscreen-animation-pause'
import React from 'react'
import { getPageNumbers } from '@/components/task-page/task-page-pagination-page-numbers'
import { cn } from '@/lib/class-names'
@@ -65,7 +66,10 @@ export function PaginationBar({
className={numClass(entry)}
>
{loadingTarget === entry ? (
-
+
) : (
entry + 1
)}
diff --git a/src/renderer/src/components/task-page/github/issue-creation/IssueDialog.tsx b/src/renderer/src/components/task-page/github/issue-creation/IssueDialog.tsx
index c4ea428958b3..e3df72b5d305 100644
--- a/src/renderer/src/components/task-page/github/issue-creation/IssueDialog.tsx
+++ b/src/renderer/src/components/task-page/github/issue-creation/IssueDialog.tsx
@@ -1,3 +1,4 @@
+import { observeVisibleAnimation } from '@/lib/window-activity/offscreen-animation-pause'
import type { TaskPageComposerActionsModel } from '../../use-task-page-composer-actions'
import { useRef, useState } from 'react'
import { getGitHubRuntimeRepoId } from '@/lib/work-items/github/github-source-runtime-context'
@@ -267,7 +268,10 @@ export function TaskPageGitHubIssueDialog({
>
{newIssueSubmitting ? (
<>
-
+
{t('auto.components.TaskPage.8ff6fdc368', 'Creating…')}
>
) : (
diff --git a/src/renderer/src/components/task-page/github/issue-creation/IssueSelectors.tsx b/src/renderer/src/components/task-page/github/issue-creation/IssueSelectors.tsx
index b3327c2fba56..184e807c39c2 100644
--- a/src/renderer/src/components/task-page/github/issue-creation/IssueSelectors.tsx
+++ b/src/renderer/src/components/task-page/github/issue-creation/IssueSelectors.tsx
@@ -1,3 +1,4 @@
+import { observeVisibleAnimation } from '@/lib/window-activity/offscreen-animation-pause'
import React, { useMemo, useCallback } from 'react'
import { useTranslate } from '@/i18n/use-translate'
import { Popover, PopoverTrigger, PopoverContent } from '@/components/ui/popover'
@@ -62,7 +63,12 @@ export function GitHubIssueLabelSelector({
))}
)}
- {loading ?
: null}
+ {loading ? (
+
+ ) : null}
@@ -159,7 +165,12 @@ export function GitHubIssueAssigneeSelector({
)}
- {loading ? : null}
+ {loading ? (
+
+ ) : null}
diff --git a/src/renderer/src/components/task-page/github/listing/AssigneesCell.tsx b/src/renderer/src/components/task-page/github/listing/AssigneesCell.tsx
index 203d7a599151..015019dc42d3 100644
--- a/src/renderer/src/components/task-page/github/listing/AssigneesCell.tsx
+++ b/src/renderer/src/components/task-page/github/listing/AssigneesCell.tsx
@@ -1,3 +1,4 @@
+import { observeVisibleAnimation } from '@/lib/window-activity/offscreen-animation-pause'
import type { GitHubWorkItem } from '../../../../../../shared/github/work-items/work-item-types'
import type { GitHubAssignableUser } from '../../../../../../shared/github/pull-requests/pull-request-types'
import type { Repo } from '../../../../../../shared/repository/repo-types'
@@ -211,7 +212,10 @@ export function GHAssigneesCell({
>
{triggerContent}
{pendingLogin ? (
-
+
) : assignees.length > 0 ? (
) : null}
@@ -258,7 +262,10 @@ export function GHAssigneesCell({
)}
>
{pending ? (
-
+
) : isOn ? (
) : null}
diff --git a/src/renderer/src/components/task-page/github/listing/Filters.tsx b/src/renderer/src/components/task-page/github/listing/Filters.tsx
index b64ff20fe0e8..30437daedfb0 100644
--- a/src/renderer/src/components/task-page/github/listing/Filters.tsx
+++ b/src/renderer/src/components/task-page/github/listing/Filters.tsx
@@ -1,3 +1,4 @@
+import { observeVisibleAnimation } from '@/lib/window-activity/offscreen-animation-pause'
import type { TaskPageComposerActionsModel } from '../../use-task-page-composer-actions'
import {
getGitHubPRStateChips,
@@ -272,7 +273,10 @@ export function TaskPageGitHubFilters({
className="size-8 cursor-pointer border-border/60 bg-background text-foreground shadow-xs hover:bg-muted/60 disabled:pointer-events-auto disabled:cursor-wait"
>
{githubTasksBusy ? (
-
+
) : (
)}
diff --git a/src/renderer/src/components/task-page/github/listing/List.tsx b/src/renderer/src/components/task-page/github/listing/List.tsx
index a4a1222f7fb3..0eb8d6887f62 100644
--- a/src/renderer/src/components/task-page/github/listing/List.tsx
+++ b/src/renderer/src/components/task-page/github/listing/List.tsx
@@ -1,3 +1,4 @@
+import { observeVisibleAnimation } from '@/lib/window-activity/offscreen-animation-pause'
import type { TaskPageComposerActionsModel } from '../../use-task-page-composer-actions'
import { useAppStore } from '@/store/index'
import { cn } from '@/lib/class-names'
@@ -178,7 +179,10 @@ export function TaskPageGitHubList({
>
{retryingSourceKeys.has(s.sourceKey) ? (
-
+
{t('auto.components.TaskPage.5b6b2af943', 'Retrying…')}
) : (
@@ -216,7 +220,10 @@ export function TaskPageGitHubList({
>
{retryingSourceKeys.has(r.sourceKey) ? (
-
+
{t('auto.components.TaskPage.5b6b2af943', 'Retrying…')}
) : (
@@ -234,39 +241,69 @@ export function TaskPageGitHubList({
}).map((_, i) => (
{!showPRManagementColumns ? (
) : null}
{showPRManagementColumns ? (
<>
>
) : (
)}
))}
diff --git a/src/renderer/src/components/task-page/github/pull-requests/MergeCell.tsx b/src/renderer/src/components/task-page/github/pull-requests/MergeCell.tsx
index 6a27469c25f0..aabde3802840 100644
--- a/src/renderer/src/components/task-page/github/pull-requests/MergeCell.tsx
+++ b/src/renderer/src/components/task-page/github/pull-requests/MergeCell.tsx
@@ -1,3 +1,4 @@
+import { observeVisibleAnimation } from '@/lib/window-activity/offscreen-animation-pause'
import type { GitHubWorkItem } from '../../../../../../shared/github/work-items/work-item-types'
import type { GitHubPRMergeMethod } from '../../../../../../shared/github/pull-requests/pull-request-types'
import type { Repo } from '../../../../../../shared/repository/repo-types'
@@ -206,7 +207,10 @@ export function PRMergeCell({
)}
>
{merging ? (
-
+
) : (
)}
diff --git a/src/renderer/src/components/task-page/gitlab/Filters.tsx b/src/renderer/src/components/task-page/gitlab/Filters.tsx
index fd037ce6669c..607ea922aacd 100644
--- a/src/renderer/src/components/task-page/gitlab/Filters.tsx
+++ b/src/renderer/src/components/task-page/gitlab/Filters.tsx
@@ -1,3 +1,4 @@
+import { observeVisibleAnimation } from '@/lib/window-activity/offscreen-animation-pause'
import type { TaskPageComposerActionsModel } from '../use-task-page-composer-actions'
import { cn } from '@/lib/class-names'
import TaskProjectSourceCombobox from '@/components/task-page/source-selection/task-project-source-combobox'
@@ -182,7 +183,10 @@ export function TaskPageGitLabFilters({
className="border-border/50 bg-transparent hover:bg-muted/50 backdrop-blur-md supports-[backdrop-filter]:bg-transparent"
>
{gitlabLoading || gitlabTodosLoading ? (
-
+
) : (
)}
diff --git a/src/renderer/src/components/task-page/gitlab/ItemList.tsx b/src/renderer/src/components/task-page/gitlab/ItemList.tsx
index 44755f846300..41ea1816bf52 100644
--- a/src/renderer/src/components/task-page/gitlab/ItemList.tsx
+++ b/src/renderer/src/components/task-page/gitlab/ItemList.tsx
@@ -1,3 +1,4 @@
+import { observeVisibleAnimation } from '@/lib/window-activity/offscreen-animation-pause'
import type { TaskPageComposerActionsModel } from '../use-task-page-composer-actions'
import { useIntlLocale, useTranslate } from '@/i18n/use-translate'
import { useAppStore } from '@/store'
@@ -51,12 +52,24 @@ export function TaskPageGitLabItemList({
key={i}
className="grid w-full gap-3 px-3 py-2 grid-cols-[80px_minmax(0,3fr)_120px_110px_50px]"
>
-
+
-
-
+
+
))}
diff --git a/src/renderer/src/components/task-page/gitlab/TodoList.tsx b/src/renderer/src/components/task-page/gitlab/TodoList.tsx
index a31edbedbb95..2d1dfe0a41a7 100644
--- a/src/renderer/src/components/task-page/gitlab/TodoList.tsx
+++ b/src/renderer/src/components/task-page/gitlab/TodoList.tsx
@@ -1,3 +1,4 @@
+import { observeVisibleAnimation } from '@/lib/window-activity/offscreen-animation-pause'
import type { TaskPageComposerActionsModel } from '../use-task-page-composer-actions'
import { useIntlLocale, useTranslate } from '@/i18n/use-translate'
import { ExternalLink } from 'lucide-react'
@@ -34,12 +35,24 @@ export function TaskPageGitLabTodoList({
key={i}
className="grid w-full gap-3 px-3 py-2 grid-cols-[110px_minmax(0,3fr)_minmax(120px,1.2fr)_110px_50px]"
>
-
+
-
-
+
+
))}
diff --git a/src/renderer/src/components/task-page/jira/Content.tsx b/src/renderer/src/components/task-page/jira/Content.tsx
index d0a26776ea95..09d5fca6e127 100644
--- a/src/renderer/src/components/task-page/jira/Content.tsx
+++ b/src/renderer/src/components/task-page/jira/Content.tsx
@@ -1,3 +1,4 @@
+import { observeVisibleAnimation } from '@/lib/window-activity/offscreen-animation-pause'
import { toast } from 'sonner'
import { activateAndRevealWorktree } from '@/lib/workspace/activation/worktree-activation'
import type { TaskPageComposerActionsModel } from '../use-task-page-composer-actions'
@@ -80,7 +81,10 @@ export function TaskPageJiraContent({
return taskSource === 'jira' ? (
!jiraStatusReady ? (
-
+
) : !jiraConnected ? (
@@ -169,8 +173,14 @@ export function TaskPageJiraContent({
length: 6
}).map((_, i) => (
))}
diff --git a/src/renderer/src/components/task-page/jira/Filters.tsx b/src/renderer/src/components/task-page/jira/Filters.tsx
index 0b5e3583c17a..673018959c05 100644
--- a/src/renderer/src/components/task-page/jira/Filters.tsx
+++ b/src/renderer/src/components/task-page/jira/Filters.tsx
@@ -1,3 +1,4 @@
+import { observeVisibleAnimation } from '@/lib/window-activity/offscreen-animation-pause'
import { TaskPageJiraStatusFilters } from './filters/TaskPageJiraStatusFilters'
import { TaskPageJiraSavedFilters } from './filters/TaskPageJiraSavedFilters'
import { TaskPageJiraFavouriteFilters } from './filters/TaskPageJiraFavouriteFilters'
@@ -162,7 +163,10 @@ export function TaskPageJiraFilters({
className="border-border/50 bg-transparent hover:bg-muted/50 backdrop-blur-md supports-[backdrop-filter]:bg-transparent"
>
{jiraProjectsLoading ? (
-
+
) : (
)}
@@ -183,7 +187,10 @@ export function TaskPageJiraFilters({
className="border-border/50 bg-transparent hover:bg-muted/50 backdrop-blur-md supports-[backdrop-filter]:bg-transparent"
>
{jiraLoading ? (
-
+
) : (
)}
diff --git a/src/renderer/src/components/task-page/jira/creation/IssueDialog.tsx b/src/renderer/src/components/task-page/jira/creation/IssueDialog.tsx
index 49cdd7101717..8151af36b0c0 100644
--- a/src/renderer/src/components/task-page/jira/creation/IssueDialog.tsx
+++ b/src/renderer/src/components/task-page/jira/creation/IssueDialog.tsx
@@ -1,3 +1,4 @@
+import { observeVisibleAnimation } from '@/lib/window-activity/offscreen-animation-pause'
import type { TaskPageComposerActionsModel } from '../../use-task-page-composer-actions'
import {
Dialog,
@@ -243,7 +244,10 @@ export function TaskPageJiraIssueDialog({
{jiraCreateFieldsLoading ? (
-
+
{t('auto.components.TaskPage.cbcdcbe244', 'Loading required Jira fields…')}
) : null}
@@ -367,7 +371,10 @@ export function TaskPageJiraIssueDialog({
>
{newJiraIssueSubmitting ? (
<>
-
+
{t('auto.components.TaskPage.8ff6fdc368', 'Creating…')}
>
) : (
diff --git a/src/renderer/src/components/task-page/jira/issue-workspace/jira-issue-transition-control.tsx b/src/renderer/src/components/task-page/jira/issue-workspace/jira-issue-transition-control.tsx
index 310511876b09..a39395738eb3 100644
--- a/src/renderer/src/components/task-page/jira/issue-workspace/jira-issue-transition-control.tsx
+++ b/src/renderer/src/components/task-page/jira/issue-workspace/jira-issue-transition-control.tsx
@@ -1,3 +1,4 @@
+import { observeVisibleAnimation } from '@/lib/window-activity/offscreen-animation-pause'
import {
taskProviderErrorMessage,
taskProviderErrorText
@@ -104,7 +105,10 @@ export function JiraIssueTransitionControl({
>
{issue.status.name}
{loading || pending ? (
-
+
) : error ? (
) : (
diff --git a/src/renderer/src/components/task-page/jira/issue-workspace/jira-issue-workspace-chrome.tsx b/src/renderer/src/components/task-page/jira/issue-workspace/jira-issue-workspace-chrome.tsx
index 14867d8af7a7..602bda0afc7b 100644
--- a/src/renderer/src/components/task-page/jira/issue-workspace/jira-issue-workspace-chrome.tsx
+++ b/src/renderer/src/components/task-page/jira/issue-workspace/jira-issue-workspace-chrome.tsx
@@ -1,3 +1,4 @@
+import { observeVisibleAnimation } from '@/lib/window-activity/offscreen-animation-pause'
import { ArrowRight, LoaderCircle, X } from 'lucide-react'
import { Button } from '@/components/ui/button'
import { Popover, PopoverContent, PopoverTrigger } from '@/components/ui/popover'
@@ -38,7 +39,9 @@ export function JiraIssueWorkspaceHeader({
{displayed.siteName ? {displayed.siteName} : null}
{displayed.project.key}
{formatUiRelativeTimeFromDate(displayed.updatedAt, undefined, intlLocale)}
- {issueLoading ? : null}
+ {issueLoading ? (
+
+ ) : null}
{displayed.title}
@@ -131,7 +134,10 @@ export function JiraIssueMetadataBar({
{displayed.priority?.name ??
t('auto.components.JiraIssueWorkspace.51bed73f88', 'No priority')}
{pendingField === 'priority' ? (
-
+
) : null}
diff --git a/src/renderer/src/components/task-page/jira/issue-workspace/jira-issue-workspace-content.tsx b/src/renderer/src/components/task-page/jira/issue-workspace/jira-issue-workspace-content.tsx
index 602cc4837c84..2a59269cb143 100644
--- a/src/renderer/src/components/task-page/jira/issue-workspace/jira-issue-workspace-content.tsx
+++ b/src/renderer/src/components/task-page/jira/issue-workspace/jira-issue-workspace-content.tsx
@@ -1,3 +1,4 @@
+import { observeVisibleAnimation } from '@/lib/window-activity/offscreen-animation-pause'
import type { LucideIcon } from 'lucide-react'
import { ArrowRight, LoaderCircle, RefreshCw, Save, Send } from 'lucide-react'
import { JiraIssueMarkdown } from './jira-issue-markdown'
@@ -78,7 +79,10 @@ export function JiraIssueWorkspaceContent({
disabled={pendingField === 'title'}
>
{pendingField === 'title' ? (
-
+
) : (
)}
@@ -101,7 +105,10 @@ export function JiraIssueWorkspaceContent({
disabled={pendingField === 'labels'}
>
{pendingField === 'labels' ? (
-
+
) : (
)}
@@ -152,7 +159,10 @@ export function JiraIssueWorkspaceContent({
className="gap-1"
>
{commentsLoading ? (
-
+
) : (
)}
@@ -166,7 +176,10 @@ export function JiraIssueWorkspaceContent({
) : commentsLoading && comments.length === 0 ? (
-
+
) : comments.length === 0 ? (
@@ -273,7 +286,7 @@ export function JiraIssueCommentComposer({
className="self-end gap-2"
>
{commentSubmitting ? (
-
+
) : (
)}
diff --git a/src/renderer/src/components/task-page/jira/issue-workspace/jira-user-picker.tsx b/src/renderer/src/components/task-page/jira/issue-workspace/jira-user-picker.tsx
index 933f80364772..55963ff97254 100644
--- a/src/renderer/src/components/task-page/jira/issue-workspace/jira-user-picker.tsx
+++ b/src/renderer/src/components/task-page/jira/issue-workspace/jira-user-picker.tsx
@@ -1,3 +1,4 @@
+import { observeVisibleAnimation } from '@/lib/window-activity/offscreen-animation-pause'
import React, { useEffect, useMemo, useState } from 'react'
import { LoaderCircle } from 'lucide-react'
@@ -132,7 +133,12 @@ export function JiraUserPicker({
{triggerLabel}
- {loading ? : null}
+ {loading ? (
+
+ ) : null}
diff --git a/src/renderer/src/components/task-page/linear/Content.tsx b/src/renderer/src/components/task-page/linear/Content.tsx
index cf7cf9bf0c72..3c2c0ccdc712 100644
--- a/src/renderer/src/components/task-page/linear/Content.tsx
+++ b/src/renderer/src/components/task-page/linear/Content.tsx
@@ -1,3 +1,4 @@
+import { observeVisibleAnimation } from '@/lib/window-activity/offscreen-animation-pause'
import type { TaskPageComposerActionsModel } from '../use-task-page-composer-actions'
import LinearIssueWorkspace from '@/components/task-page/linear/issue-workspace/LinearIssueWorkspace'
import { LoaderCircle } from 'lucide-react'
@@ -45,7 +46,10 @@ export function TaskPageLinearContent({
/>
) : !linearStatusReady ? (
-
+
) : !linearConnected ? (
diff --git a/src/renderer/src/components/task-page/linear/Filters.tsx b/src/renderer/src/components/task-page/linear/Filters.tsx
index fb06b2547232..e15616e6a40a 100644
--- a/src/renderer/src/components/task-page/linear/Filters.tsx
+++ b/src/renderer/src/components/task-page/linear/Filters.tsx
@@ -1,3 +1,4 @@
+import { observeVisibleAnimation } from '@/lib/window-activity/offscreen-animation-pause'
import type { TaskPageComposerActionsModel } from '../use-task-page-composer-actions'
import { useTranslate } from '@/i18n/use-translate'
import { cn } from '@/lib/class-names'
@@ -187,13 +188,22 @@ export function TaskPageLinearFilters({
className="size-8 border-border/50 bg-transparent hover:bg-muted/50 backdrop-blur-md supports-[backdrop-filter]:bg-transparent"
>
{(linearMode === 'issues' || linearMode === 'in-orca') && linearLoading ? (
-
+
) : linearMode === 'projects' &&
(linearProjectsLoading || linearProjectDetailLoading) ? (
-
+
) : linearMode === 'views' &&
(linearCustomViewsLoading || linearCustomViewContentsLoading) ? (
-
+
) : (
)}
diff --git a/src/renderer/src/components/task-page/linear/creation/IssueAttributes.tsx b/src/renderer/src/components/task-page/linear/creation/IssueAttributes.tsx
index 30b60ea95eb3..48aec9abf125 100644
--- a/src/renderer/src/components/task-page/linear/creation/IssueAttributes.tsx
+++ b/src/renderer/src/components/task-page/linear/creation/IssueAttributes.tsx
@@ -1,3 +1,4 @@
+import { observeVisibleAnimation } from '@/lib/window-activity/offscreen-animation-pause'
import type { TaskPageComposerActionsModel } from '../../use-task-page-composer-actions'
import { Popover, PopoverTrigger, PopoverContent } from '@/components/ui/popover'
import { useTranslate } from '@/i18n/use-translate'
@@ -62,7 +63,10 @@ export function TaskPageLinearIssueAttributes({
{newLinearStates.loading ? (
-
+
) : (
@@ -133,7 +137,10 @@ export function TaskPageLinearIssueAttributes({
{newLinearMembers.loading ? (
-
+
) : (
@@ -269,7 +276,10 @@ export function TaskPageLinearIssueAttributes({
{newLinearIssueProjectsLoading ? (
-
+
) : (
@@ -325,7 +335,10 @@ export function TaskPageLinearIssueAttributes({
{newLinearLabels.loading ? (
-
+
) : (
diff --git a/src/renderer/src/components/task-page/linear/creation/IssueDialog.tsx b/src/renderer/src/components/task-page/linear/creation/IssueDialog.tsx
index 638d92194279..81fa03dbfc97 100644
--- a/src/renderer/src/components/task-page/linear/creation/IssueDialog.tsx
+++ b/src/renderer/src/components/task-page/linear/creation/IssueDialog.tsx
@@ -1,3 +1,4 @@
+import { observeVisibleAnimation } from '@/lib/window-activity/offscreen-animation-pause'
import { ImeInput } from '@/lib/text-input/ime/ime-text-field'
import type { TaskPageComposerActionsModel } from '../../use-task-page-composer-actions'
import { Dialog, DialogContent } from '@/components/ui/dialog'
@@ -157,7 +158,10 @@ export function TaskPageLinearIssueDialog({
>
{newLinearIssueSubmitting ? (
<>
-
+
{t('auto.components.TaskPage.8ff6fdc368', 'Creating…')}
>
) : (
diff --git a/src/renderer/src/components/task-page/linear/creation/ProjectDialog.tsx b/src/renderer/src/components/task-page/linear/creation/ProjectDialog.tsx
index 027429d96681..b578004b9a11 100644
--- a/src/renderer/src/components/task-page/linear/creation/ProjectDialog.tsx
+++ b/src/renderer/src/components/task-page/linear/creation/ProjectDialog.tsx
@@ -1,3 +1,4 @@
+import { observeVisibleAnimation } from '@/lib/window-activity/offscreen-animation-pause'
import type { TaskPageComposerActionsModel } from '../../use-task-page-composer-actions'
import {
Dialog,
@@ -146,7 +147,10 @@ export function TaskPageLinearProjectDialog({
>
{newLinearProjectSubmitting ? (
<>
-
+
{t('auto.components.TaskPage.1b59a07674', 'Creating...')}
>
) : (
diff --git a/src/renderer/src/components/task-page/linear/creation/ProjectFields.tsx b/src/renderer/src/components/task-page/linear/creation/ProjectFields.tsx
index df1777f543e7..783d82f21272 100644
--- a/src/renderer/src/components/task-page/linear/creation/ProjectFields.tsx
+++ b/src/renderer/src/components/task-page/linear/creation/ProjectFields.tsx
@@ -1,3 +1,4 @@
+import { observeVisibleAnimation } from '@/lib/window-activity/offscreen-animation-pause'
import { ImeInput } from '@/lib/text-input/ime/ime-text-field'
import type { TaskPageComposerActionsModel } from '../../use-task-page-composer-actions'
import { useTranslate } from '@/i18n/use-translate'
@@ -125,7 +126,10 @@ export function TaskPageLinearProjectFields({
{newLinearProjectMembers.loading ? (
-
+
) : (
@@ -201,7 +205,10 @@ export function TaskPageLinearProjectFields({
{newLinearProjectMembers.loading ? (
-
+
) : (
@@ -266,7 +273,10 @@ export function TaskPageLinearProjectFields({
{newLinearProjectLabels.loading ? (
-
+
) : (
diff --git a/src/renderer/src/components/task-page/linear/issue-workspace/LinearIssueMarkdownDescriptionEditor.tsx b/src/renderer/src/components/task-page/linear/issue-workspace/LinearIssueMarkdownDescriptionEditor.tsx
index c06d228f33b1..20ab994f7c65 100644
--- a/src/renderer/src/components/task-page/linear/issue-workspace/LinearIssueMarkdownDescriptionEditor.tsx
+++ b/src/renderer/src/components/task-page/linear/issue-workspace/LinearIssueMarkdownDescriptionEditor.tsx
@@ -1,3 +1,4 @@
+import { observeVisibleAnimation } from '@/lib/window-activity/offscreen-animation-pause'
import React, { useEffect, useMemo, useRef } from 'react'
import { useTranslation } from 'react-i18next'
import { EditorContent, useEditor } from '@tiptap/react'
@@ -187,7 +188,10 @@ export function LinearIssueMarkdownDescriptionEditor({
{disabled ? (
-
+
) : null}
)
diff --git a/src/renderer/src/components/task-page/linear/issue-workspace/LinearIssueTextEditor.tsx b/src/renderer/src/components/task-page/linear/issue-workspace/LinearIssueTextEditor.tsx
index 991c13b8c194..1e1370d21d03 100644
--- a/src/renderer/src/components/task-page/linear/issue-workspace/LinearIssueTextEditor.tsx
+++ b/src/renderer/src/components/task-page/linear/issue-workspace/LinearIssueTextEditor.tsx
@@ -1,3 +1,4 @@
+import { observeVisibleAnimation } from '@/lib/window-activity/offscreen-animation-pause'
import { writeLinearIssue } from '@/lib/work-items/linear/linear-issue-write'
import { taskProviderErrorMessage } from '@/lib/work-items/task-provider-error-copy'
import { ImeTextarea } from '@/lib/text-input/ime/ime-text-field'
@@ -189,7 +190,10 @@ export function LinearIssueTextEditor({
{t('auto.components.LinearIssueTextEditor.947ba2d6f4', 'to save')}
{savingField === 'title' ? (
-
+
) : null}
) : null}
diff --git a/src/renderer/src/components/task-page/linear/issue-workspace/linear-issue-activity.tsx b/src/renderer/src/components/task-page/linear/issue-workspace/linear-issue-activity.tsx
index 08c4a38e88d0..b9042e222b75 100644
--- a/src/renderer/src/components/task-page/linear/issue-workspace/linear-issue-activity.tsx
+++ b/src/renderer/src/components/task-page/linear/issue-workspace/linear-issue-activity.tsx
@@ -1,3 +1,4 @@
+import { observeVisibleAnimation } from '@/lib/window-activity/offscreen-animation-pause'
import React from 'react'
import { LoaderCircle, RefreshCw } from 'lucide-react'
@@ -103,7 +104,7 @@ export function LinearIssueActivity({
className="gap-1"
>
{commentsLoading ? (
-
+
) : (
)}
@@ -114,7 +115,10 @@ export function LinearIssueActivity({
{commentsLoading && comments.length === 0 ? (
-
+
) : comments.length > 0 ? (
diff --git a/src/renderer/src/components/task-page/linear/issue-workspace/linear-issue-project-selector.tsx b/src/renderer/src/components/task-page/linear/issue-workspace/linear-issue-project-selector.tsx
index 92fdc0ceb4be..742688666bb9 100644
--- a/src/renderer/src/components/task-page/linear/issue-workspace/linear-issue-project-selector.tsx
+++ b/src/renderer/src/components/task-page/linear/issue-workspace/linear-issue-project-selector.tsx
@@ -1,3 +1,4 @@
+import { observeVisibleAnimation } from '@/lib/window-activity/offscreen-animation-pause'
import { getLinearSourceScope } from '@/store/slices/linear/linear-slice-scope'
import '@/store/slices/linear/linear-issue-read'
import { confirmLinearIssueWrite } from '@/store/slices/linear/linear-issue-write-publication'
@@ -155,7 +156,10 @@ export function LinearIssueProjectSelector({
{displayedLoading ? (
-
+
{t('auto.components.LinearIssueWorkspace.937ba6ad9a', 'Loading projects')}
) : displayedProjects.length > 0 ? (
@@ -173,7 +177,10 @@ export function LinearIssueProjectSelector({
/>
{project.name}
{savingProjectId === project.id ? (
-
+
) : issue.project?.id === project.id ? (
) : null}
diff --git a/src/renderer/src/components/task-page/linear/issue-workspace/linear-issue-sub-issues.tsx b/src/renderer/src/components/task-page/linear/issue-workspace/linear-issue-sub-issues.tsx
index a61cd93abcd9..2bbb57edba9f 100644
--- a/src/renderer/src/components/task-page/linear/issue-workspace/linear-issue-sub-issues.tsx
+++ b/src/renderer/src/components/task-page/linear/issue-workspace/linear-issue-sub-issues.tsx
@@ -1,3 +1,4 @@
+import { observeVisibleAnimation } from '@/lib/window-activity/offscreen-animation-pause'
import '@/store/slices/linear/linear-issue-read'
import { observeLinearIssueRead } from '@/store/slices/linear/linear-issue-read-lifecycle'
import {
@@ -207,7 +208,10 @@ export function LinearIssueSubIssues({
) : null}
{openingSubIssueId === subIssue.id ? (
-
+
) : (
)}
@@ -246,7 +250,12 @@ export function LinearIssueSubIssues({
onClick={() => void handleCreate()}
disabled={!title.trim() || submitting}
>
- {submitting ?
: null}
+ {submitting ? (
+
+ ) : null}
{t('auto.components.LinearIssueWorkspace.42589845bc', 'Create')}
diff --git a/src/renderer/src/components/task-page/linear/issue-workspace/linear-issue-workspace-header.tsx b/src/renderer/src/components/task-page/linear/issue-workspace/linear-issue-workspace-header.tsx
index 77f42aeb33d1..d6e08661492d 100644
--- a/src/renderer/src/components/task-page/linear/issue-workspace/linear-issue-workspace-header.tsx
+++ b/src/renderer/src/components/task-page/linear/issue-workspace/linear-issue-workspace-header.tsx
@@ -1,3 +1,4 @@
+import { observeVisibleAnimation } from '@/lib/window-activity/offscreen-animation-pause'
import React from 'react'
import {
ArrowRight,
@@ -74,7 +75,12 @@ export function LinearIssueWorkspaceHeader({
{issue.identifier}
{issue.title}
- {issueLoading ?
: null}
+ {issueLoading ? (
+
+ ) : null}
2 / 17
diff --git a/src/renderer/src/components/task-page/linear/issues/IssueBoard.tsx b/src/renderer/src/components/task-page/linear/issues/IssueBoard.tsx
index 01504c143379..78ddcbc59f61 100644
--- a/src/renderer/src/components/task-page/linear/issues/IssueBoard.tsx
+++ b/src/renderer/src/components/task-page/linear/issues/IssueBoard.tsx
@@ -1,3 +1,4 @@
+import { observeVisibleAnimation } from '@/lib/window-activity/offscreen-animation-pause'
import type { TaskPageComposerActionsModel } from '../../use-task-page-composer-actions'
import { useTranslate } from '@/i18n/use-translate'
import {
@@ -73,8 +74,14 @@ export function TaskPageLinearIssueBoard({
length: 12
}).map((_, i) => (
))}
diff --git a/src/renderer/src/components/task-page/linear/issues/task-page-linear-state-cell.tsx b/src/renderer/src/components/task-page/linear/issues/task-page-linear-state-cell.tsx
index d2ea289855ff..c1433de1afa7 100644
--- a/src/renderer/src/components/task-page/linear/issues/task-page-linear-state-cell.tsx
+++ b/src/renderer/src/components/task-page/linear/issues/task-page-linear-state-cell.tsx
@@ -1,3 +1,4 @@
+import { observeVisibleAnimation } from '@/lib/window-activity/offscreen-animation-pause'
import { getLinearSourceScope } from '../../../../store/slices/linear/linear-slice-scope'
import { writeLinearIssue } from '../../../../lib/work-items/linear/linear-issue-write'
import { taskProviderErrorMessage } from '../../../../lib/work-items/task-provider-error-copy'
@@ -115,7 +116,10 @@ export function LinearStateCell({
/>
{issue.state.name}
{pending || states.loading ? (
-
+
) : (
)}
@@ -130,7 +134,7 @@ export function LinearStateCell({
{states.error}
) : states.loading ? (
-
+
{t('auto.components.TaskPage.cc13109b5d', 'Loading states')}
) : states.data.length > 0 ? (
diff --git a/src/renderer/src/components/task-page/linear/item-drawer/linear-item-drawer-comment-footer.tsx b/src/renderer/src/components/task-page/linear/item-drawer/linear-item-drawer-comment-footer.tsx
index a1a776b3c403..adc391ba8d91 100644
--- a/src/renderer/src/components/task-page/linear/item-drawer/linear-item-drawer-comment-footer.tsx
+++ b/src/renderer/src/components/task-page/linear/item-drawer/linear-item-drawer-comment-footer.tsx
@@ -1,3 +1,4 @@
+import { observeVisibleAnimation } from '@/lib/window-activity/offscreen-animation-pause'
import { taskProviderErrorText } from '@/lib/work-items/task-provider-error-copy'
import { ImeTextarea } from '@/lib/text-input/ime/ime-text-field'
import React, { useCallback, useRef, useState } from 'react'
@@ -158,7 +159,10 @@ export function LinearIssueCommentFooter({
aria-label={t('auto.components.LinearItemDrawer.d369841269', 'Send comment')}
>
{submitting ? (
-
+
) : (
)}
@@ -193,7 +197,7 @@ export function LinearIssueCommentFooter({
aria-label={t('auto.components.LinearItemDrawer.d369841269', 'Send comment')}
>
{submitting ? (
-
+
) : (
)}
diff --git a/src/renderer/src/components/task-page/linear/item-drawer/linear-item-drawer-edit-chips-layout.tsx b/src/renderer/src/components/task-page/linear/item-drawer/linear-item-drawer-edit-chips-layout.tsx
index f636ba24baed..f141d0d6cd0f 100644
--- a/src/renderer/src/components/task-page/linear/item-drawer/linear-item-drawer-edit-chips-layout.tsx
+++ b/src/renderer/src/components/task-page/linear/item-drawer/linear-item-drawer-edit-chips-layout.tsx
@@ -1,3 +1,4 @@
+import { observeVisibleAnimation } from '@/lib/window-activity/offscreen-animation-pause'
import React from 'react'
import { LoaderCircle } from 'lucide-react'
@@ -84,7 +85,7 @@ export function renderLinearIssueChipsLayout(
{states.error}
) : states.loading ? (
-
+
{t('auto.components.LinearItemDrawer.59b6cd3706', 'Loading states')}
) : states.data.length > 0 ? (
@@ -203,7 +204,12 @@ export function renderLinearIssueChipsLayout(
onClick={handleEstimateSubmit}
disabled={estimatePending}
>
- {estimatePending ?
: null}
+ {estimatePending ? (
+
+ ) : null}
{t('auto.components.LinearItemDrawer.b5675b0694', 'Save')}
@@ -242,7 +248,10 @@ export function renderLinearIssueChipsLayout(
) : members.loading ? (
-
+
{t('auto.components.LinearItemDrawer.b2376d0179', 'Loading members')}
) : (
@@ -288,7 +297,7 @@ export function renderLinearIssueChipsLayout(
{labels.error}
) : labels.loading ? (
-
+
{t('auto.components.LinearItemDrawer.cddd9b04a7', 'Loading labels')}
) : labels.data.length > 0 ? (
diff --git a/src/renderer/src/components/task-page/linear/item-drawer/linear-item-drawer-edit-controls.tsx b/src/renderer/src/components/task-page/linear/item-drawer/linear-item-drawer-edit-controls.tsx
index 1f362d86b1c5..814ed14670f3 100644
--- a/src/renderer/src/components/task-page/linear/item-drawer/linear-item-drawer-edit-controls.tsx
+++ b/src/renderer/src/components/task-page/linear/item-drawer/linear-item-drawer-edit-controls.tsx
@@ -1,3 +1,4 @@
+import { observeVisibleAnimation } from '@/lib/window-activity/offscreen-animation-pause'
import React from 'react'
import { ChevronDown, LoaderCircle } from 'lucide-react'
import { translate } from '@/i18n/i18n'
@@ -37,7 +38,12 @@ export function LinearEditChipAdornment({
pending?: boolean
}): React.JSX.Element {
if (loading || pending) {
- return
+ return (
+
+ )
}
return
diff --git a/src/renderer/src/components/task-page/linear/item-drawer/linear-item-drawer-edit-properties-layout.tsx b/src/renderer/src/components/task-page/linear/item-drawer/linear-item-drawer-edit-properties-layout.tsx
index 9ebda4e1cc4a..fdc018874bb9 100644
--- a/src/renderer/src/components/task-page/linear/item-drawer/linear-item-drawer-edit-properties-layout.tsx
+++ b/src/renderer/src/components/task-page/linear/item-drawer/linear-item-drawer-edit-properties-layout.tsx
@@ -1,3 +1,4 @@
+import { observeVisibleAnimation } from '@/lib/window-activity/offscreen-animation-pause'
import React from 'react'
import { ChevronDown, Gauge, LoaderCircle, Tag, UserRound } from 'lucide-react'
@@ -94,7 +95,10 @@ export function renderLinearIssuePropertiesLayout(
) : states.loading ? (
-
+
{t('auto.components.LinearItemDrawer.59b6cd3706', 'Loading states')}
) : states.data.length > 0 ? (
@@ -199,7 +203,10 @@ export function renderLinearIssuePropertiesLayout(
) : members.loading ? (
-
+
{t('auto.components.LinearItemDrawer.b2376d0179', 'Loading members')}
) : (
@@ -281,7 +288,12 @@ export function renderLinearIssuePropertiesLayout(
onClick={handleEstimateSubmit}
disabled={estimatePending}
>
- {estimatePending ? : null}
+ {estimatePending ? (
+
+ ) : null}
{t('auto.components.LinearItemDrawer.b5675b0694', 'Save')}
@@ -331,7 +343,10 @@ export function renderLinearIssuePropertiesLayout(
) : labels.loading ? (
-
+
{t('auto.components.LinearItemDrawer.cddd9b04a7', 'Loading labels')}
) : labels.data.length > 0 ? (
diff --git a/src/renderer/src/components/task-page/linear/item-drawer/linear-item-drawer-sheet.tsx b/src/renderer/src/components/task-page/linear/item-drawer/linear-item-drawer-sheet.tsx
index 63dd8c985454..9779a46a6ff8 100644
--- a/src/renderer/src/components/task-page/linear/item-drawer/linear-item-drawer-sheet.tsx
+++ b/src/renderer/src/components/task-page/linear/item-drawer/linear-item-drawer-sheet.tsx
@@ -1,3 +1,4 @@
+import { observeVisibleAnimation } from '@/lib/window-activity/offscreen-animation-pause'
import React from 'react'
import {
ArrowRight,
@@ -200,7 +201,10 @@ export function renderLinearItemDrawerSheet(
{commentsLoading && comments.length === 0 ? (
-
+
) : comments.length === 0 ? (
diff --git a/src/renderer/src/components/task-page/linear/projects/linear-project-overview-content.tsx b/src/renderer/src/components/task-page/linear/projects/linear-project-overview-content.tsx
index 0a026ca5301d..b4f2882c12ee 100644
--- a/src/renderer/src/components/task-page/linear/projects/linear-project-overview-content.tsx
+++ b/src/renderer/src/components/task-page/linear/projects/linear-project-overview-content.tsx
@@ -1,3 +1,4 @@
+import { observeVisibleAnimation } from '@/lib/window-activity/offscreen-animation-pause'
import React from 'react'
import { CalendarDays, FileText, FolderKanban, RefreshCw, UserRound } from 'lucide-react'
@@ -58,9 +59,18 @@ export function LinearProjectOverviewContent({
) : null}
{loading && !project ? (
) : presentation ? (
diff --git a/src/renderer/src/components/task-page/linear/projects/linear-project-table-content.tsx b/src/renderer/src/components/task-page/linear/projects/linear-project-table-content.tsx
index 591cd9511e46..6bcd2a66d861 100644
--- a/src/renderer/src/components/task-page/linear/projects/linear-project-table-content.tsx
+++ b/src/renderer/src/components/task-page/linear/projects/linear-project-table-content.tsx
@@ -1,3 +1,4 @@
+import { observeVisibleAnimation } from '@/lib/window-activity/offscreen-animation-pause'
import React from 'react'
import { ArrowRight, ExternalLink } from 'lucide-react'
@@ -66,13 +67,34 @@ function LinearProjectTableSkeleton(): React.JSX.Element {
key={index}
className="grid gap-3 px-3 py-3 md:grid-cols-[minmax(180px,1.5fr)_110px_100px_90px_120px_110px_80px_70px]"
>
-
-
-
-
-
-
-
+
+
+
+
+
+
+
))}
diff --git a/src/renderer/src/components/task-page/linear/projects/linear-project-view-surfaces.tsx b/src/renderer/src/components/task-page/linear/projects/linear-project-view-surfaces.tsx
index cf53f11508ed..5d008b9a2d8c 100644
--- a/src/renderer/src/components/task-page/linear/projects/linear-project-view-surfaces.tsx
+++ b/src/renderer/src/components/task-page/linear/projects/linear-project-view-surfaces.tsx
@@ -1,3 +1,4 @@
+import { observeVisibleAnimation } from '@/lib/window-activity/offscreen-animation-pause'
import { linearIssueReadError } from '@/lib/work-items/linear/linear-read-error'
import { taskProviderErrorText } from '@/lib/work-items/task-provider-error-copy'
import React from 'react'
@@ -152,7 +153,10 @@ export function LinearCollectionNotice({
>
{loading ? (
<>
-
+
{t('auto.components.linear.project.view.surfaces.93e1f6bfca', 'Loading')}
>
) : (
@@ -237,7 +241,10 @@ export function LinearProjectOverview({
disabled={loading}
className="gap-1 border-border/50 bg-background/70"
>
-
+
{t('auto.components.linear.project.view.surfaces.a9785c7158', 'Refresh')}
{project ? (
diff --git a/src/renderer/src/components/task-page/linear/views/linear-custom-view-table-content.tsx b/src/renderer/src/components/task-page/linear/views/linear-custom-view-table-content.tsx
index 62f515f05adf..d42731f99c6f 100644
--- a/src/renderer/src/components/task-page/linear/views/linear-custom-view-table-content.tsx
+++ b/src/renderer/src/components/task-page/linear/views/linear-custom-view-table-content.tsx
@@ -1,3 +1,4 @@
+import { observeVisibleAnimation } from '@/lib/window-activity/offscreen-animation-pause'
import React from 'react'
import { ExternalLink, Layers3 } from 'lucide-react'
@@ -31,11 +32,26 @@ function LinearCustomViewTableSkeleton(): React.JSX.Element {
key={index}
className="grid gap-3 px-3 py-3 md:grid-cols-[minmax(220px,1.5fr)_120px_120px_120px_130px_60px]"
>
-
-
-
-
-
+
+
+
+
+
))}
diff --git a/src/renderer/src/components/terminal-pane/mobile-driver/MobileDriverOverlay.tsx b/src/renderer/src/components/terminal-pane/mobile-driver/MobileDriverOverlay.tsx
index 95027589483f..c91a507d3906 100644
--- a/src/renderer/src/components/terminal-pane/mobile-driver/MobileDriverOverlay.tsx
+++ b/src/renderer/src/components/terminal-pane/mobile-driver/MobileDriverOverlay.tsx
@@ -1,3 +1,4 @@
+import { observeVisibleAnimation } from '@/lib/window-activity/offscreen-animation-pause'
import type { RuntimeTerminalDriverState } from '../../../../../shared/remote-runtime/session-graph/runtime-session-contracts'
import { useCallback, useEffect, useId, useRef, useState, type ReactElement } from 'react'
import { Minimize2, Smartphone } from 'lucide-react'
@@ -226,8 +227,9 @@ function LoudOverlay({
{tone === 'driving' ? (
) : null}
diff --git a/src/renderer/src/components/terminal-pane/mounting/TerminalRestoringPlaceholder.tsx b/src/renderer/src/components/terminal-pane/mounting/TerminalRestoringPlaceholder.tsx
index 01e598f0db89..f74beeedc0b8 100644
--- a/src/renderer/src/components/terminal-pane/mounting/TerminalRestoringPlaceholder.tsx
+++ b/src/renderer/src/components/terminal-pane/mounting/TerminalRestoringPlaceholder.tsx
@@ -1,3 +1,4 @@
+import { observeVisibleAnimation } from '@/lib/window-activity/offscreen-animation-pause'
import { Loader2 } from 'lucide-react'
import { useTranslate } from '@/i18n/use-translate'
@@ -11,7 +12,7 @@ export function TerminalRestoringPlaceholder(): React.JSX.Element {
aria-live="polite"
data-terminal-restoring-placeholder=""
>
-
+
{t(
'auto.components.terminal.pane.TerminalRestoringPlaceholder.restoring',
'Restoring terminal…'
diff --git a/src/renderer/src/components/terminal-pane/pty-transport/recovery/ssh/TerminalSshReconnectOverlay.tsx b/src/renderer/src/components/terminal-pane/pty-transport/recovery/ssh/TerminalSshReconnectOverlay.tsx
index ae96fda48637..fe8cae7a826d 100644
--- a/src/renderer/src/components/terminal-pane/pty-transport/recovery/ssh/TerminalSshReconnectOverlay.tsx
+++ b/src/renderer/src/components/terminal-pane/pty-transport/recovery/ssh/TerminalSshReconnectOverlay.tsx
@@ -1,3 +1,4 @@
+import { observeVisibleAnimation } from '@/lib/window-activity/offscreen-animation-pause'
import { useCallback } from 'react'
import { Loader2, Server, ServerOff } from 'lucide-react'
import { toastSshConnectFailure } from '@/ssh/ssh-connect-failure-toast'
@@ -161,7 +162,7 @@ export function TerminalSshReconnectOverlay({
>
{isConnecting ? (
-
+
) : (
)}
@@ -249,7 +250,7 @@ export function TerminalSshReconnectOverlay({
>
{!showConnect || isConnecting ? (
<>
-
+
{sshConnectingLabel(t)}
>
) : (
diff --git a/src/renderer/src/components/terminal/workbench/TerminalLegacyTerminalPanes.tsx b/src/renderer/src/components/terminal/workbench/TerminalLegacyTerminalPanes.tsx
index 91be2536ecb2..b0ffb0dcc506 100644
--- a/src/renderer/src/components/terminal/workbench/TerminalLegacyTerminalPanes.tsx
+++ b/src/renderer/src/components/terminal/workbench/TerminalLegacyTerminalPanes.tsx
@@ -59,6 +59,7 @@ export function TerminalLegacyTerminalPanes({
: 'absolute inset-0 hidden'
}
aria-hidden={!isVisible}
+ data-retained-animation-paused={!isVisible ? '' : undefined}
>
{(tabsByWorktree[workspace.id] ?? []).map((tab) => {
const isActiveTerminalTab =
diff --git a/src/renderer/src/components/terminal/workbench/TerminalWorktreeSplitSurface.tsx b/src/renderer/src/components/terminal/workbench/TerminalWorktreeSplitSurface.tsx
index f1c5ba747f47..938a0cad432b 100644
--- a/src/renderer/src/components/terminal/workbench/TerminalWorktreeSplitSurface.tsx
+++ b/src/renderer/src/components/terminal/workbench/TerminalWorktreeSplitSurface.tsx
@@ -60,6 +60,7 @@ export const WorktreeSplitSurface = React.memo(function WorktreeSplitSurface({
}
inert={!isVisible}
aria-hidden={!isVisible}
+ data-retained-animation-paused={!isVisible ? '' : undefined}
data-workspace-surface-id={worktreeId}
>
-
+
>
)
diff --git a/src/renderer/src/components/ui/sonner.tsx b/src/renderer/src/components/ui/sonner.tsx
index 9e79ab8e3992..afef216eae8d 100644
--- a/src/renderer/src/components/ui/sonner.tsx
+++ b/src/renderer/src/components/ui/sonner.tsx
@@ -1,3 +1,4 @@
+import { observeVisibleAnimation } from '@/lib/window-activity/offscreen-animation-pause'
import {
CircleCheckIcon,
InfoIcon,
@@ -107,7 +108,9 @@ const Toaster = ({ ...props }: ToasterProps) => {
info: ,
warning: ,
error: ,
- loading:
+ loading: (
+
+ )
}}
style={TOASTER_STYLE}
{...props}
diff --git a/src/renderer/src/components/ui/switch.tsx b/src/renderer/src/components/ui/switch.tsx
index 3186daacd2df..75f303e60c5b 100644
--- a/src/renderer/src/components/ui/switch.tsx
+++ b/src/renderer/src/components/ui/switch.tsx
@@ -1,3 +1,4 @@
+import { observeVisibleAnimation } from '@/lib/window-activity/offscreen-animation-pause'
import * as React from 'react'
import * as SwitchPrimitive from 'radix-ui/switch'
import { Loader2 } from 'lucide-react'
@@ -54,9 +55,10 @@ function Switch({
>
{pending ? (
diff --git a/src/renderer/src/components/workspace-cleanup/browse/workspace-cleanup-filter-bar.tsx b/src/renderer/src/components/workspace-cleanup/browse/workspace-cleanup-filter-bar.tsx
index c908d9729d25..01cf4c9ff718 100644
--- a/src/renderer/src/components/workspace-cleanup/browse/workspace-cleanup-filter-bar.tsx
+++ b/src/renderer/src/components/workspace-cleanup/browse/workspace-cleanup-filter-bar.tsx
@@ -1,3 +1,4 @@
+import { observeVisibleAnimation } from '@/lib/window-activity/offscreen-animation-pause'
import React from 'react'
import { Loader2, RotateCcw, Search, SlidersHorizontal } from 'lucide-react'
import { Button } from '@/components/ui/button'
@@ -181,7 +182,11 @@ function SizeScanButton({
{/* Reserved spinner slot keeps the link from shifting when a scan starts. */}
{/* Stack the idle label under the live one so the link never changes width. */}
@@ -209,7 +214,7 @@ function GitCheckIndicator({ pendingCount }: { pendingCount: number }): React.JS
-
+
diff --git a/src/renderer/src/components/workspace-cleanup/candidate-list/workspace-cleanup-candidate-row.tsx b/src/renderer/src/components/workspace-cleanup/candidate-list/workspace-cleanup-candidate-row.tsx
index b4c9417531cc..ad04ec9056f3 100644
--- a/src/renderer/src/components/workspace-cleanup/candidate-list/workspace-cleanup-candidate-row.tsx
+++ b/src/renderer/src/components/workspace-cleanup/candidate-list/workspace-cleanup-candidate-row.tsx
@@ -1,3 +1,4 @@
+import { observeVisibleAnimation } from '@/lib/window-activity/offscreen-animation-pause'
import React from 'react'
import {
AlertTriangle,
@@ -180,7 +181,10 @@ export const CandidateRow = React.memo(function CandidateRow({
onCheckedChange={() => onToggleSelected(identity)}
/>
) : deleting ? (
-
+
) : !queueable ? (
@@ -249,7 +253,8 @@ export const CandidateRow = React.memo(function CandidateRow({
className="inline-flex h-5 shrink-0 items-center gap-1 text-xs text-muted-foreground"
>
{t('components.workspace.cleanup.browse.checkingGitRow', 'Checking git status')}
diff --git a/src/renderer/src/components/workspace-cleanup/dialog/workspace-cleanup-dialog-header.tsx b/src/renderer/src/components/workspace-cleanup/dialog/workspace-cleanup-dialog-header.tsx
index 9e37c3c3e1a2..8c08f190935d 100644
--- a/src/renderer/src/components/workspace-cleanup/dialog/workspace-cleanup-dialog-header.tsx
+++ b/src/renderer/src/components/workspace-cleanup/dialog/workspace-cleanup-dialog-header.tsx
@@ -1,3 +1,4 @@
+import { observeVisibleAnimation } from '@/lib/window-activity/offscreen-animation-pause'
import React from 'react'
import { RefreshCcw, X } from 'lucide-react'
import { Button } from '@/components/ui/button'
@@ -49,7 +50,10 @@ export function WorkspaceCleanupDialogHeader({
onClick={onRefresh}
disabled={loading}
>
-
+
diff --git a/src/renderer/src/components/workspace-cleanup/dialog/workspace-cleanup-dialog-notices.tsx b/src/renderer/src/components/workspace-cleanup/dialog/workspace-cleanup-dialog-notices.tsx
index eec4f02fade5..f5bacabb48e2 100644
--- a/src/renderer/src/components/workspace-cleanup/dialog/workspace-cleanup-dialog-notices.tsx
+++ b/src/renderer/src/components/workspace-cleanup/dialog/workspace-cleanup-dialog-notices.tsx
@@ -1,3 +1,4 @@
+import { observeVisibleAnimation } from '@/lib/window-activity/offscreen-animation-pause'
import React from 'react'
import { AlertTriangle, Loader2 } from 'lucide-react'
import { Button } from '@/components/ui/button'
@@ -27,7 +28,10 @@ export function WorkspaceCleanupInitialScanBanner({
return (
-
+
{title}
@@ -92,8 +96,9 @@ export function WorkspaceCleanupSkeletonRows(): React.JSX.Element {
{[0, 1, 2].map((index) => (
))}
diff --git a/src/renderer/src/components/workspace-cleanup/removal/workspace-cleanup-confirm-remove.tsx b/src/renderer/src/components/workspace-cleanup/removal/workspace-cleanup-confirm-remove.tsx
index 826ec78e3646..1407bc456ee3 100644
--- a/src/renderer/src/components/workspace-cleanup/removal/workspace-cleanup-confirm-remove.tsx
+++ b/src/renderer/src/components/workspace-cleanup/removal/workspace-cleanup-confirm-remove.tsx
@@ -1,3 +1,4 @@
+import { observeVisibleAnimation } from '@/lib/window-activity/offscreen-animation-pause'
import React from 'react'
import { Folder, Loader2, Monitor, Trash2, X } from 'lucide-react'
import { Button } from '@/components/ui/button'
@@ -136,7 +137,10 @@ export function WorkspaceCleanupConfirmRemove({
{progress ? (
-
+
{formatWorkspaceCleanupRemovalProgress(progress, t)}
diff --git a/src/renderer/src/components/worktree-creation/VmBuildSheet.tsx b/src/renderer/src/components/worktree-creation/VmBuildSheet.tsx
index 49e25cdc9ecf..0c67947dd663 100644
--- a/src/renderer/src/components/worktree-creation/VmBuildSheet.tsx
+++ b/src/renderer/src/components/worktree-creation/VmBuildSheet.tsx
@@ -1,3 +1,4 @@
+import { observeVisibleAnimation } from '@/lib/window-activity/offscreen-animation-pause'
import React from 'react'
import { AlertTriangle, Loader2 } from 'lucide-react'
import { cn } from '@/lib/class-names'
@@ -128,7 +129,10 @@ export function VmBuildSheet({
{building ? (
-
+
) : (
)}
diff --git a/src/renderer/src/components/worktree-creation/WorktreeCreationPanel.tsx b/src/renderer/src/components/worktree-creation/WorktreeCreationPanel.tsx
index f270318e37b9..290933d2f2b0 100644
--- a/src/renderer/src/components/worktree-creation/WorktreeCreationPanel.tsx
+++ b/src/renderer/src/components/worktree-creation/WorktreeCreationPanel.tsx
@@ -1,3 +1,4 @@
+import { observeVisibleAnimation } from '@/lib/window-activity/offscreen-animation-pause'
import React from 'react'
import { Loader2, RotateCcw } from 'lucide-react'
import { useAppStore } from '@/store'
@@ -109,7 +110,10 @@ export default function WorktreeCreationPanel({
) : (
-
+
{getCreationProgressLabel(entry, t)}
diff --git a/src/renderer/src/components/worktree-creation/WorktreeSetupSteps.tsx b/src/renderer/src/components/worktree-creation/WorktreeSetupSteps.tsx
index 1300eaafc8a8..a8ffed794884 100644
--- a/src/renderer/src/components/worktree-creation/WorktreeSetupSteps.tsx
+++ b/src/renderer/src/components/worktree-creation/WorktreeSetupSteps.tsx
@@ -1,3 +1,4 @@
+import { observeVisibleAnimation } from '@/lib/window-activity/offscreen-animation-pause'
import React from 'react'
import { Circle, CircleCheck, CircleX, Loader2, RotateCcw } from 'lucide-react'
import { Button } from '@/components/ui/button'
@@ -31,7 +32,11 @@ export function StepIcon({ state }: { state: WorktreeSetupStep['state'] }): Reac
switch (state) {
case 'running':
return (
-
+
)
case 'done':
return
diff --git a/src/renderer/src/components/worktree-jump/tasks/worktree-jump-palette-task-search-status.tsx b/src/renderer/src/components/worktree-jump/tasks/worktree-jump-palette-task-search-status.tsx
index d01091063db0..9e9e96adf160 100644
--- a/src/renderer/src/components/worktree-jump/tasks/worktree-jump-palette-task-search-status.tsx
+++ b/src/renderer/src/components/worktree-jump/tasks/worktree-jump-palette-task-search-status.tsx
@@ -1,3 +1,4 @@
+import { observeVisibleAnimation } from '@/lib/window-activity/offscreen-animation-pause'
import { Loader2 } from 'lucide-react'
import { Button } from '@/components/ui/button'
import { useTranslate } from '@/i18n/use-translate'
@@ -20,7 +21,8 @@ export function WorktreeJumpPaletteTaskSearchStatus({
{loading ? (
<>
{t('worktreeJumpPalette.taskSearchLoading', 'Searching tasks…')}
diff --git a/src/renderer/src/lib/window-activity/offscreen-animation-pause.ts b/src/renderer/src/lib/window-activity/offscreen-animation-pause.ts
index af5b4971d102..2c2fee8c5366 100644
--- a/src/renderer/src/lib/window-activity/offscreen-animation-pause.ts
+++ b/src/renderer/src/lib/window-activity/offscreen-animation-pause.ts
@@ -1,8 +1,30 @@
-// Running CSS animations make the compositor tick every refresh even when scrolled out of view or clipped.
+// Running CSS animations sample styles every frame, even when clipped or transparent.
export const OFFSCREEN_ANIMATION_ATTRIBUTE = 'data-animation-offscreen'
+const RUNNING_ANIMATION_ATTRIBUTE = 'data-animation-running'
+
+type AnimationObservation = {
+ intersecting: boolean
+ offscreen: number
+ visible: number
+}
let observer: IntersectionObserver | null = null
-let observedCount = 0
+const observations = new Map()
+
+function updateVisibleAnimation(element: Element, observation: AnimationObservation): void {
+ if (observation.visible > 0) {
+ element.toggleAttribute(
+ RUNNING_ANIMATION_ATTRIBUTE,
+ observation.intersecting && document.visibilityState === 'visible'
+ )
+ }
+}
+
+function updateDocumentVisibility(): void {
+ for (const [element, observation] of observations) {
+ updateVisibleAnimation(element, observation)
+ }
+}
function getObserver(): IntersectionObserver | null {
if (typeof IntersectionObserver !== 'function') {
@@ -10,27 +32,68 @@ function getObserver(): IntersectionObserver | null {
}
observer ??= new IntersectionObserver((entries) => {
for (const entry of entries) {
- entry.target.toggleAttribute(OFFSCREEN_ANIMATION_ATTRIBUTE, !entry.isIntersecting)
+ const observation = observations.get(entry.target)
+ if (!observation) {
+ continue
+ }
+ observation.intersecting = entry.isIntersecting
+ if (observation.offscreen > 0) {
+ entry.target.toggleAttribute(OFFSCREEN_ANIMATION_ATTRIBUTE, !entry.isIntersecting)
+ }
+ updateVisibleAnimation(entry.target, observation)
}
})
return observer
}
-/** Ref callback: marks the element while it is outside the viewport so CSS can stop its animation. */
-export function observeOffscreenAnimation(element: Element | null): () => void {
- const shared = getObserver()
- if (element === null || shared === null) {
+function observeAnimation(element: Element | null, mode: 'offscreen' | 'visible'): () => void {
+ if (element === null) {
return () => {}
}
- shared.observe(element)
- observedCount++
+ const shared = getObserver()
+ const attribute = mode === 'visible' ? RUNNING_ANIMATION_ATTRIBUTE : OFFSCREEN_ANIMATION_ATTRIBUTE
+ if (shared === null) {
+ if (mode === 'visible') {
+ element.setAttribute(attribute, '')
+ }
+ return () => element.removeAttribute(attribute)
+ }
+
+ let observation = observations.get(element)
+ if (!observation) {
+ if (observations.size === 0) {
+ document.addEventListener('visibilitychange', updateDocumentVisibility)
+ }
+ observation = { intersecting: false, offscreen: 0, visible: 0 }
+ observations.set(element, observation)
+ shared.observe(element)
+ }
+ observation[mode]++
+ updateVisibleAnimation(element, observation)
+
return () => {
- shared.unobserve(element)
- element.removeAttribute(OFFSCREEN_ANIMATION_ATTRIBUTE)
- observedCount--
- if (observedCount === 0) {
+ observation[mode]--
+ if (observation[mode] === 0) {
+ element.removeAttribute(attribute)
+ }
+ if (observation.offscreen + observation.visible === 0) {
+ shared.unobserve(element)
+ observations.delete(element)
+ }
+ if (observations.size === 0) {
shared.disconnect()
observer = null
+ document.removeEventListener('visibilitychange', updateDocumentVisibility)
}
}
}
+
+/** Ref callback: marks offscreen elements so existing subtree animation rules can pause them. */
+export function observeOffscreenAnimation(element: Element | null): () => void {
+ return observeAnimation(element, 'offscreen')
+}
+
+/** Ref callback: starts paused until the element intersects in a visible document. */
+export function observeVisibleAnimation(element: Element | null): () => void {
+ return observeAnimation(element, 'visible')
+}