diff --git a/apps/desktop/src/app/chat/composer/queue-panel.tsx b/apps/desktop/src/app/chat/composer/queue-panel.tsx index 3d55f8f4a57..6bb04ec23c4 100644 --- a/apps/desktop/src/app/chat/composer/queue-panel.tsx +++ b/apps/desktop/src/app/chat/composer/queue-panel.tsx @@ -24,7 +24,16 @@ interface QueuePanelProps { const entryPreview = (entry: QueuedPromptEntry, c: Translations['composer']) => entry.text.trim() || (entry.attachments.length > 0 ? c.attachmentOnly : c.emptyTurn) -export function QueuePanel({ busy, editingId, entries, onDelete, onEdit, onResume, onSendNow, parked }: QueuePanelProps) { +export function QueuePanel({ + busy, + editingId, + entries, + onDelete, + onEdit, + onResume, + onSendNow, + parked +}: QueuePanelProps) { const { t } = useI18n() const c = t.composer @@ -54,13 +63,7 @@ export function QueuePanel({ busy, editingId, entries, onDelete, onEdit, onResum ) : undefined } defaultCollapsed={!parked} - icon={ - - } + icon={} key={parked ? 'parked' : 'flowing'} label={parked ? c.queuedPaused(entries.length) : c.queued(entries.length)} > diff --git a/apps/desktop/src/app/chat/sidebar/session-actions-menu.test.tsx b/apps/desktop/src/app/chat/sidebar/session-actions-menu.test.tsx index ef989a4d643..ae4d7b6db4e 100644 --- a/apps/desktop/src/app/chat/sidebar/session-actions-menu.test.tsx +++ b/apps/desktop/src/app/chat/sidebar/session-actions-menu.test.tsx @@ -1,5 +1,5 @@ -import { atom } from 'nanostores' import { cleanup, fireEvent, render, screen } from '@testing-library/react' +import { atom } from 'nanostores' import { afterEach, describe, expect, it, vi } from 'vitest' import { SessionActionsMenu } from './session-actions-menu' diff --git a/apps/desktop/src/app/chat/sidebar/session-row.test.tsx b/apps/desktop/src/app/chat/sidebar/session-row.test.tsx index 6901ebc22b2..96ddec80914 100644 --- a/apps/desktop/src/app/chat/sidebar/session-row.test.tsx +++ b/apps/desktop/src/app/chat/sidebar/session-row.test.tsx @@ -1,7 +1,6 @@ -import type * as React from 'react' - -import { atom } from 'nanostores' import { cleanup, render, screen } from '@testing-library/react' +import { atom } from 'nanostores' +import type * as React from 'react' import { afterEach, describe, expect, it, vi } from 'vitest' import type { SessionInfo } from '@/hermes' diff --git a/apps/desktop/src/app/settings/billing/use-billing-state.ts b/apps/desktop/src/app/settings/billing/use-billing-state.ts index 0e9f1a23988..8fbc481b1b8 100644 --- a/apps/desktop/src/app/settings/billing/use-billing-state.ts +++ b/apps/desktop/src/app/settings/billing/use-billing-state.ts @@ -534,7 +534,6 @@ function topupCreditsValue(billing: BillingStateResponse, usage?: UsageModelData ) } - function buyCreditsDisabledReason(billing: BillingStateResponse): null | string { if (!billing.is_admin) { return resolveRefusal({ kind: 'role_required', message: '' }).message