fmt(js): npm run fix on merge (#68867)

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
This commit is contained in:
hermes-seaeye[bot] 2026-07-21 19:13:24 +00:00 • committed by GitHub
parent 0c33db0564
commit 0008868422
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 14 additions and 13 deletions

View file

@ -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={
<Codicon
className="text-muted-foreground/70"
name={parked ? 'debug-pause' : 'layers'}
size="0.8rem"
/>
}
icon={<Codicon className="text-muted-foreground/70" name={parked ? 'debug-pause' : 'layers'} size="0.8rem" />}
key={parked ? 'parked' : 'flowing'}
label={parked ? c.queuedPaused(entries.length) : c.queued(entries.length)}
>

View file

@ -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'

View file

@ -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'

View file

@ -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