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

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
This commit is contained in:
hermes-seaeye[bot] 2026-07-28 03:43:07 +00:00 committed by GitHub
parent ef26701134
commit 9f4a6fdf4a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
9 changed files with 37 additions and 48 deletions

View file

@ -19,13 +19,7 @@ import { Button } from '@/components/ui/button'
import { Codicon } from '@/components/ui/codicon'
import { ColorSwatches } from '@/components/ui/color-swatches'
import { CopyButton } from '@/components/ui/copy-button'
import {
Dialog,
DialogContent,
DialogFooter,
DialogHeader,
DialogTitle
} from '@/components/ui/dialog'
import { Dialog, DialogContent, DialogFooter, DialogHeader, DialogTitle } from '@/components/ui/dialog'
import { Input } from '@/components/ui/input'
import { renameSession } from '@/hermes'
import { useI18n } from '@/i18n'
@ -389,12 +383,7 @@ interface SessionActionsMenuProps
children: React.ReactNode
}
export function SessionActionsMenu({
children,
align = 'end',
sideOffset = 6,
...actions
}: SessionActionsMenuProps) {
export function SessionActionsMenu({ children, align = 'end', sideOffset = 6, ...actions }: SessionActionsMenuProps) {
const { t } = useI18n()
const { renameDialog, renderItems } = useSessionActions(actions)
@ -424,11 +413,7 @@ export function SessionContextMenu({ children, ...actions }: SessionContextMenuP
return (
<>
<ActionsContextMenu
ariaLabel={t.sidebar.row.sessionActions}
contentClassName="w-40"
items={renderItems}
>
<ActionsContextMenu ariaLabel={t.sidebar.row.sessionActions} contentClassName="w-40" items={renderItems}>
{children}
</ActionsContextMenu>
{renameDialog}

View file

@ -214,7 +214,12 @@ export function PanelListRow({
// Right-click parity: same items as the kebab. `disabled` (no actionable
// items) renders the row bare.
return menuItems ? (
<ActionsContextMenu ariaLabel={menuLabel} contentClassName="w-40" disabled={menuItems.length === 0} items={renderPanelMenuItems(menuItems)}>
<ActionsContextMenu
ariaLabel={menuLabel}
contentClassName="w-40"
disabled={menuItems.length === 0}
items={renderPanelMenuItems(menuItems)}
>
{row}
</ActionsContextMenu>
) : (

View file

@ -135,13 +135,7 @@ export function EnvVarActionsMenu({ align = 'end', children, sideOffset = 6, ...
const items = useEnvVarItems(actions)
return (
<ActionsMenu
align={align}
ariaLabel={copy.actions}
contentClassName="w-44"
items={items}
sideOffset={sideOffset}
>
<ActionsMenu align={align} ariaLabel={copy.actions} contentClassName="w-44" items={items} sideOffset={sideOffset}>
{children}
</ActionsMenu>
)

View file

@ -101,5 +101,4 @@ describe('DialogContent close button', () => {
preventCloseButtonAutoFocus(event)
expect(event.defaultPrevented).toBe(true)
})
})

View file

@ -194,7 +194,7 @@ export const en: Translations = {
search: 'Search',
searchTitle: 'Search sessions, views, and actions',
swapSidebarSides: 'Swap sidebar sides',
hideRightSidebar: 'Hide right sidebar',
hideRightSidebar: 'Hide right sidebar',
showRightSidebar: 'Show right sidebar',
muteHaptics: 'Mute haptics',
unmuteHaptics: 'Unmute haptics',
@ -349,8 +349,7 @@ export const en: Translations = {
},
plugins: {
title: 'Desktop plugins',
blurb:
'Bundled or dropped into the desktop-plugins folder. Disable to unload live.',
blurb: 'Bundled or dropped into the desktop-plugins folder. Disable to unload live.',
count: n => `${n} installed`,
openFolder: 'Open plugins folder',
rescan: 'Rescan',
@ -363,8 +362,7 @@ export const en: Translations = {
},
notifications: {
title: 'Notifications',
intro:
'OS notifications (not in-app toasts). Per device.',
intro: 'OS notifications (not in-app toasts). Per device.',
enableAll: 'Enable notifications',
enableAllDesc: 'Off silences every notification below.',
focusedHint: 'Completion alerts only fire while Hermes is in the background.',
@ -428,8 +426,7 @@ export const en: Translations = {
},
appearance: {
title: 'Appearance',
intro:
'Desktop-only. Mode is brightness; theme is palette and chat chrome.',
intro: 'Desktop-only. Mode is brightness; theme is palette and chat chrome.',
colorMode: 'Color Mode',
colorModeDesc: 'Pick a fixed mode or let Hermes follow your system setting.',
toolViewTitle: 'Tool Call Display',
@ -2444,7 +2441,7 @@ export const en: Translations = {
starmap: 'Memory Graph',
openStarmap: 'Open memory graph',
turnRunning: 'Running',
contextUsage: 'Context usage',
contextUsage: 'Context usage',
contextUsagePanel: {
categories: {
conversation: 'Conversation',
@ -2462,8 +2459,8 @@ export const en: Translations = {
title: 'Context Usage',
tokenSummary: (used, max) => `${used} / ${max} Tokens`
},
session: 'Session',
yoloOn: 'YOLO on — auto-approving dangerous commands. Shift+click toggles globally.',
session: 'Session',
yoloOn: 'YOLO on — auto-approving dangerous commands. Shift+click toggles globally.',
yoloOff: 'YOLO off. Shift+click toggles globally.',
modelNone: 'none',
noModel: 'no model',

View file

@ -195,7 +195,7 @@ export const ja = defineLocale({
search: '検索',
searchTitle: 'セッション、ビュー、アクションを検索',
swapSidebarSides: 'サイドバーの向きを切り替え',
hideRightSidebar: '右サイドバーを非表示',
hideRightSidebar: '右サイドバーを非表示',
showRightSidebar: '右サイドバーを表示',
muteHaptics: '触覚フィードバックをオフ',
unmuteHaptics: '触覚フィードバックをオン',
@ -2298,7 +2298,7 @@ export const ja = defineLocale({
starmap: 'メモリグラフ',
openStarmap: 'メモリグラフを開く',
turnRunning: '実行中',
contextUsage: 'コンテキスト使用状況',
contextUsage: 'コンテキスト使用状況',
contextUsagePanel: {
categories: {
conversation: '会話',
@ -2316,8 +2316,8 @@ export const ja = defineLocale({
title: 'コンテキスト使用状況',
tokenSummary: (used, max) => `${used} / ${max} Tokens`
},
session: 'セッション',
yoloOn: 'YOLO オン — 危険なコマンドを自動承認中。Shift+クリックで全体に切り替え。',
session: 'セッション',
yoloOn: 'YOLO オン — 危険なコマンドを自動承認中。Shift+クリックで全体に切り替え。',
yoloOff: 'YOLO オフ。Shift+クリックで全体に切り替え。',
modelNone: 'なし',
noModel: 'モデルなし',

View file

@ -236,7 +236,7 @@ export interface Translations {
search: string
searchTitle: string
swapSidebarSides: string
hideRightSidebar: string
hideRightSidebar: string
showRightSidebar: string
muteHaptics: string
unmuteHaptics: string
@ -2049,7 +2049,7 @@ export interface Translations {
starmap: string
openStarmap: string
turnRunning: string
contextUsage: string
contextUsage: string
contextUsagePanel: {
categories: {
conversation: string
@ -2067,8 +2067,8 @@ export interface Translations {
title: string
tokenSummary: (used: string, max: string) => string
}
session: string
yoloOn: string
session: string
yoloOn: string
yoloOff: string
modelNone: string
noModel: string

View file

@ -406,7 +406,10 @@ const BRAND_ICONS: Record<string, BrandIcon> = {
// a subdomain entry like `docs.google.com` beats the `google.com` fallback. The
// bare TLD is never tested.
export function resolveBrandIcon(hostname: string): BrandIcon | null {
const host = hostname.trim().toLowerCase().replace(/^www\./, '')
const host = hostname
.trim()
.toLowerCase()
.replace(/^www\./, '')
if (!host.includes('.')) {
return null

View file

@ -88,8 +88,14 @@ export default defineConfig(({ command }) => ({
// One chunk per heavyweight, lazy-only library family.
// @streamdown/code lives WITH shiki because it statically imports
// the full shiki bundle.
{ name: 'mermaid', test: /node_modules[\\/](mermaid|cytoscape|dagre|khroma|elkjs|d3|d3-[^\\/]+|@mermaid-js)[\\/]/ },
{ name: 'shiki', test: /node_modules[\\/](shiki|@shikijs|react-shiki|@streamdown[\\/]code|oniguruma-to-es|oniguruma-parser|regex(-[^\\/]+)?)[\\/]/ },
{
name: 'mermaid',
test: /node_modules[\\/](mermaid|cytoscape|dagre|khroma|elkjs|d3|d3-[^\\/]+|@mermaid-js)[\\/]/
},
{
name: 'shiki',
test: /node_modules[\\/](shiki|@shikijs|react-shiki|@streamdown[\\/]code|oniguruma-to-es|oniguruma-parser|regex(-[^\\/]+)?)[\\/]/
},
{ name: 'katex', test: /node_modules[\\/]katex[\\/]/ }
]
}