diff --git a/browser_tests/nodeSearchBox.spec.ts b/browser_tests/nodeSearchBox.spec.ts index b761d4a8f..70833aabe 100644 --- a/browser_tests/nodeSearchBox.spec.ts +++ b/browser_tests/nodeSearchBox.spec.ts @@ -82,10 +82,14 @@ test.describe('Node search box', () => { test('Has correct aria-labels on search results', async ({ comfyPage }) => { const node = 'Load Checkpoint' await comfyPage.doubleClickCanvas() - await comfyPage.searchBox.fillAndSelectFirstNode(node) - const firstResult = comfyPage.page - .locator('li.p-autocomplete-option') - .first() + await comfyPage.searchBox.input.waitFor({ state: 'visible' }) + await comfyPage.searchBox.input.fill(node) + await comfyPage.searchBox.dropdown.waitFor({ state: 'visible' }) + // Wait for some time for the auto complete list to update. + // The auto complete list is debounced and may take some time to update. + await comfyPage.page.waitForTimeout(500) + + const firstResult = comfyPage.searchBox.dropdown.locator('li').first() await expect(firstResult).toHaveAttribute('aria-label', node) }) diff --git a/package-lock.json b/package-lock.json index bec56b5c0..921f6e2cc 100644 --- a/package-lock.json +++ b/package-lock.json @@ -12,7 +12,7 @@ "@atlaskit/pragmatic-drag-and-drop": "^1.3.1", "@comfyorg/comfyui-electron-types": "^0.4.11", "@comfyorg/litegraph": "^0.8.61", - "@primevue/themes": "^4.0.5", + "@primevue/themes": "^4.2.5", "@sentry/vue": "^8.48.0", "@tiptap/core": "^2.10.4", "@tiptap/extension-link": "^2.10.4", @@ -32,7 +32,7 @@ "loglevel": "^1.9.2", "pinia": "^2.1.7", "primeicons": "^7.0.0", - "primevue": "^4.0.5", + "primevue": "^4.2.5", "three": "^0.170.0", "tiptap-markdown": "^0.8.10", "vue": "^3.4.31", @@ -3962,62 +3962,62 @@ } }, "node_modules/@primeuix/styled": { - "version": "0.0.5", - "resolved": "https://registry.npmjs.org/@primeuix/styled/-/styled-0.0.5.tgz", - "integrity": "sha512-pVoGn/uPkVm/DyF3TR3EmH/pL/dP4nR42FcYbVduFq9VfO3KVeOEqvcCULHXos66RZO9MCbCFUoLy6ctf9GUGQ==", + "version": "0.3.2", + "resolved": "https://registry.npmjs.org/@primeuix/styled/-/styled-0.3.2.tgz", + "integrity": "sha512-ColZes0+/WKqH4ob2x8DyNYf1NENpe5ZguOvx5yCLxaP8EIMVhLjWLO/3umJiDnQU4XXMLkn2mMHHw+fhTX/mw==", "license": "MIT", "dependencies": { - "@primeuix/utils": "^0.0.5" + "@primeuix/utils": "^0.3.2" }, "engines": { "node": ">=12.11.0" } }, "node_modules/@primeuix/utils": { - "version": "0.0.5", - "resolved": "https://registry.npmjs.org/@primeuix/utils/-/utils-0.0.5.tgz", - "integrity": "sha512-ntUiUgtRtkF8KuaxHffzhYxQxoXk6LAPHm7CVlFjdqS8Rx8xRkLkZVyo84E+pO2hcNFkOGVP/GxHhQ2s94O8zA==", + "version": "0.3.2", + "resolved": "https://registry.npmjs.org/@primeuix/utils/-/utils-0.3.2.tgz", + "integrity": "sha512-B+nphqTQeq+i6JuICLdVWnDMjONome2sNz0xI65qIOyeB4EF12CoKRiCsxuZ5uKAkHi/0d1LqlQ9mIWRSdkavw==", "license": "MIT", "engines": { "node": ">=12.11.0" } }, "node_modules/@primevue/core": { - "version": "4.0.5", - "resolved": "https://registry.npmjs.org/@primevue/core/-/core-4.0.5.tgz", - "integrity": "sha512-DUCslDA93eUOVW0A1I3yoZgRLI4zmI2++loZQXbUF5jaXCwKiAza14+iyUU+cWH27VSq+jQnCEP9QJtPZiJJ0w==", + "version": "4.2.5", + "resolved": "https://registry.npmjs.org/@primevue/core/-/core-4.2.5.tgz", + "integrity": "sha512-+oWBIQs5dLd2Ini4KEVOlvPILk989EHAskiFS3R/dz3jeOllJDMZFcSp8V9ddV0R3yDaPdLVkfHm2Q5t42kU2Q==", "license": "MIT", "dependencies": { - "@primeuix/styled": "^0.0.5", - "@primeuix/utils": "^0.0.5" + "@primeuix/styled": "^0.3.2", + "@primeuix/utils": "^0.3.2" }, "engines": { "node": ">=12.11.0" }, "peerDependencies": { - "vue": "^3.0.0" + "vue": "^3.3.0" } }, "node_modules/@primevue/icons": { - "version": "4.0.5", - "resolved": "https://registry.npmjs.org/@primevue/icons/-/icons-4.0.5.tgz", - "integrity": "sha512-ZxR9W1wlAE2fTtUhrHyeMx5t0jNyAgxDcHPm0cNXpX8q1XF95rSM/qb48QKXIBDBrJ/xs57BcyCNADP/VDPY4g==", + "version": "4.2.5", + "resolved": "https://registry.npmjs.org/@primevue/icons/-/icons-4.2.5.tgz", + "integrity": "sha512-WFbUMZhQkXf/KmwcytkjGVeJ9aGEDXjP3uweOjQZMmRdEIxFnqYYpd90wE90JE1teZn3+TVnT4ZT7ejGyEXnFQ==", "license": "MIT", "dependencies": { - "@primeuix/utils": "^0.0.5", - "@primevue/core": "4.0.5" + "@primeuix/utils": "^0.3.2", + "@primevue/core": "4.2.5" }, "engines": { "node": ">=12.11.0" } }, "node_modules/@primevue/themes": { - "version": "4.0.5", - "resolved": "https://registry.npmjs.org/@primevue/themes/-/themes-4.0.5.tgz", - "integrity": "sha512-cRrAhOapOT8eFCTDwNdB/acg2ZEEkn7y6h6p188PYSjJsWnYK+D8eI1Js1ZB5HwWo4sWs3oR3Sy8bPwejnGbAw==", + "version": "4.2.5", + "resolved": "https://registry.npmjs.org/@primevue/themes/-/themes-4.2.5.tgz", + "integrity": "sha512-8F7yA36xYIKtNuAuyBdZZEks/bKDwlhH5WjpqGGB0FdwfAEoBYsynQ5sdqcT2Lb/NsajHmS5lc++Ttlvr1g1Lw==", "license": "MIT", "dependencies": { - "@primeuix/styled": "^0.0.5" + "@primeuix/styled": "^0.3.2" }, "engines": { "node": ">=12.11.0" @@ -15528,15 +15528,15 @@ "integrity": "sha512-jK3Et9UzwzTsd6tzl2RmwrVY/b8raJ3QZLzoDACj+oTJ0oX7L9Hy+XnVwgo4QVKlKpnP/Ur13SXV/pVh4LzaDw==" }, "node_modules/primevue": { - "version": "4.0.5", - "resolved": "https://registry.npmjs.org/primevue/-/primevue-4.0.5.tgz", - "integrity": "sha512-MALszGIZ5SnEQy1XeZLBFhpMXQ1OS7D1U7H+l/JAX5U46RQ1vufo7NAiWbbV5/ADjPGw4uLplqMQxujkksNY2g==", + "version": "4.2.5", + "resolved": "https://registry.npmjs.org/primevue/-/primevue-4.2.5.tgz", + "integrity": "sha512-7UMOIJvdFz4jQyhC76yhNdSlHtXvVpmE2JSo2ndUTBWjWJOkYyT562rQ4ayO+bMdJLtzBGqgY64I9ZfEvNd7vQ==", "license": "MIT", "dependencies": { - "@primeuix/styled": "^0.0.5", - "@primeuix/utils": "^0.0.5", - "@primevue/core": "4.0.5", - "@primevue/icons": "4.0.5" + "@primeuix/styled": "^0.3.2", + "@primeuix/utils": "^0.3.2", + "@primevue/core": "4.2.5", + "@primevue/icons": "4.2.5" }, "engines": { "node": ">=12.11.0" diff --git a/package.json b/package.json index 48988abd5..bd6a84884 100644 --- a/package.json +++ b/package.json @@ -85,7 +85,7 @@ "@atlaskit/pragmatic-drag-and-drop": "^1.3.1", "@comfyorg/comfyui-electron-types": "^0.4.11", "@comfyorg/litegraph": "^0.8.61", - "@primevue/themes": "^4.0.5", + "@primevue/themes": "^4.2.5", "@sentry/vue": "^8.48.0", "@tiptap/core": "^2.10.4", "@tiptap/extension-link": "^2.10.4", @@ -105,7 +105,7 @@ "loglevel": "^1.9.2", "pinia": "^2.1.7", "primeicons": "^7.0.0", - "primevue": "^4.0.5", + "primevue": "^4.2.5", "three": "^0.170.0", "tiptap-markdown": "^0.8.10", "vue": "^3.4.31", diff --git a/src/App.vue b/src/App.vue index 2a8bae885..40da2e2a8 100644 --- a/src/App.vue +++ b/src/App.vue @@ -18,7 +18,7 @@ import GlobalDialog from '@/components/dialog/GlobalDialog.vue' import config from '@/config' import { useWorkspaceStore } from '@/stores/workspaceStore' -import { isElectron, showNativeMenu } from './utils/envUtil' +import { electronAPI, isElectron } from './utils/envUtil' const workspaceStore = useWorkspaceStore() const isLoading = computed(() => workspaceStore.spinner) @@ -34,7 +34,7 @@ const showContextMenu = (event: PointerEvent) => { case target instanceof HTMLTextAreaElement: case target instanceof HTMLInputElement && target.type === 'text': // TODO: Context input menu explicitly for text input - showNativeMenu({ type: 'text' }) + electronAPI()?.showContextMenu({ type: 'text' }) return } } diff --git a/src/components/actionbar/ComfyQueueButton.vue b/src/components/actionbar/ComfyQueueButton.vue index 415559781..aa00114e6 100644 --- a/src/components/actionbar/ComfyQueueButton.vue +++ b/src/components/actionbar/ComfyQueueButton.vue @@ -22,7 +22,7 @@