initialize Electron desktop app and remove unused files
Build / build (push) Canceled after 0s
Playwright / browser (push) Canceled after 0s

This commit is contained in:
2026-10-25 01:09:01 +08:00
commit 01d9e301fc
877 changed files with 262513 additions and 0 deletions
+17
View File
@@ -0,0 +1,17 @@
import { readFileSync } from 'fs'
import { describe, expect, it } from 'vitest'
describe('ChatPanel tool drawer resizing support', () => {
it('persists and clamps the live chat tool panel width while keeping mobile full width', () => {
const source = readFileSync('packages/client/src/components/hermes/chat/ChatPanel.vue', 'utf8')
expect(source).toContain('class="chat-tool-panel"')
expect(source).toContain('const TOOL_PANEL_STORAGE_KEY = "hermes.chat.toolPanelWidth"')
expect(source).toContain('function clampToolPanelWidth')
expect(source).toContain('Math.floor(available * 0.88)')
expect(source).toContain('window.localStorage.setItem(TOOL_PANEL_STORAGE_KEY')
expect(source).toContain('window.addEventListener("resize", handleToolPanelViewportResize)')
expect(source).toContain('watch(showToolPanel')
expect(source).toContain('width: 100% !important;')
})
})