Skip to content

Conversation

@simula-r
Copy link
Contributor

@simula-r simula-r commented Dec 4, 2025

Summary

Make the preview node match recent LGraphNode.vue look. Also add support to click from search.

Changes

  • What: NodeSearchBox.vue, LGraphNodePreview.vue, nodeDefStore.ts

Screenshots (if applicable)

Untitled.video.-.Made.with.Clipchamp.3.mp4

┆Issue is synchronized with this Notion page by Unito

@simula-r simula-r requested a review from a team as a code owner December 4, 2025 02:06
@dosubot dosubot bot added the size:M This PR changes 30-99 lines, ignoring generated files. label Dec 4, 2025
@coderabbitai
Copy link
Contributor

coderabbitai bot commented Dec 4, 2025

📝 Walkthrough

Walkthrough

NodeSearchBox now shows the preview container only when a suggestion is hovered and adds a mousedown handler to add nodes. LGraphNodePreview's template and rendering were restructured (removed custom-content branches, moved widgets/slots). System node defs for Note and MarkdownNote now require a multiline "text" input.

Changes

Cohort / File(s) Change Summary
Node preview and search interaction
src/components/searchbox/NodeSearchBox.vue
Preview container is rendered only when enableNodePreview and hoveredSuggestion are truthy; container gains z-50 and cursor-pointer classes; added on-mousedown handler that calls onAddNode(hoveredSuggestion) and stops propagation.
Preview component restructuring
src/renderer/extensions/vueNodes/components/LGraphNodePreview.vue
Reworked root container (added data-node-id and expanded classes); replaced inner header wrapper with a centered relative container; introduced a node body section (data-testid) and moved NodeSlots there; NodeWidgets moved into body with pointer-events-none, now rendered conditionally on nodeData.widgets.length; removed NodeContent, hasCustomContent, and node image URL scaffolding; simplified rendering branches.
System node definitions
src/stores/nodeDefStore.ts
SYSTEM_NODE_DEFS updated: Note and MarkdownNote now declare a required input text of type STRING with multiline: true (was previously empty required input).

Possibly related PRs

✨ Finishing touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch fix/vue-nodes-preview-node

Comment @coderabbitai help to get the list of available commands and usage tips.

@github-actions
Copy link

github-actions bot commented Dec 4, 2025

🎭 Playwright Test Results

⚠️ Tests passed with flaky tests

⏰ Completed at: 12/04/2025, 04:28:34 AM UTC

📈 Summary

  • Total Tests: 495
  • Passed: 482 ✅
  • Failed: 0
  • Flaky: 3 ⚠️
  • Skipped: 10 ⏭️

📊 Test Reports by Browser

  • chromium: View Report • ✅ 473 / ❌ 0 / ⚠️ 3 / ⏭️ 10
  • chromium-2x: View Report • ✅ 2 / ❌ 0 / ⚠️ 0 / ⏭️ 0
  • chromium-0.5x: View Report • ✅ 1 / ❌ 0 / ⚠️ 0 / ⏭️ 0
  • mobile-chrome: View Report • ✅ 6 / ❌ 0 / ⚠️ 0 / ⏭️ 0

🎉 Click on the links above to view detailed test results for each browser configuration.

@github-actions
Copy link

github-actions bot commented Dec 4, 2025

🎨 Storybook Build Status

Build completed successfully!

⏰ Completed at: 12/04/2025, 04:19:16 AM UTC

🔗 Links


🎉 Your Storybook is ready for review!

@github-actions
Copy link

github-actions bot commented Dec 4, 2025

Bundle Size Report

Summary

  • Raw size: 17 MB baseline 17 MB — 🟢 -78 B
  • Gzip: 3.38 MB baseline 3.38 MB — 🟢 -76 B
  • Brotli: 2.59 MB baseline 2.59 MB — 🟢 -97 B
  • Bundles: 97 current • 97 baseline • 52 added / 52 removed

Category Glance
Graph Workspace 🔴 +1.92 kB (974 kB) · App Entry Points 🟢 -1.66 kB (3.2 MB) · Vendor & Third-Party 🟢 -344 B (8.56 MB) · Other 🔴 +1 B (3.81 MB) · Panels & Settings ⚪ 0 B (298 kB) · UI Components ⚪ 0 B (173 kB) · + 3 more

Per-category breakdown
App Entry Points — 3.2 MB (baseline 3.2 MB) • 🟢 -1.66 kB

Main entry bundles and manifests

File Before After Δ Raw Δ Gzip Δ Brotli
assets/index-B-QjqsJ2.js (removed) 2.97 MB 🟢 -2.97 MB 🟢 -619 kB 🟢 -471 kB
assets/index-BF5WxZ-P.js (new) 2.97 MB 🔴 +2.97 MB 🔴 +619 kB 🔴 +470 kB
assets/index-Dtgewmbu.js (removed) 223 kB 🟢 -223 kB 🟢 -47.6 kB 🟢 -39.2 kB
assets/index-DvV6rLpC.js (new) 223 kB 🔴 +223 kB 🔴 +47.6 kB 🔴 +39.3 kB
assets/index-CMfpRLdS.js (new) 345 B 🔴 +345 B 🔴 +245 B 🔴 +234 B
assets/index-DUOz2Q2R.js (removed) 345 B 🟢 -345 B 🟢 -245 B 🟢 -234 B

Status: 3 added / 3 removed

Graph Workspace — 974 kB (baseline 972 kB) • 🔴 +1.92 kB

Graph editor runtime, canvas, workflow orchestration

File Before After Δ Raw Δ Gzip Δ Brotli
assets/GraphView-CF8-m6UR.js (new) 974 kB 🔴 +974 kB 🔴 +188 kB 🔴 +144 kB
assets/GraphView-DU-N5-BE.js (removed) 972 kB 🟢 -972 kB 🟢 -188 kB 🟢 -143 kB

Status: 1 added / 1 removed

Views & Navigation — 6.54 kB (baseline 6.54 kB) • ⚪ 0 B

Top-level views, pages, and routed surfaces

File Before After Δ Raw Δ Gzip Δ Brotli
assets/UserSelectView-0fuSrYlP.js (removed) 6.54 kB 🟢 -6.54 kB 🟢 -2.14 kB 🟢 -1.9 kB
assets/UserSelectView-Bzkws7CP.js (new) 6.54 kB 🔴 +6.54 kB 🔴 +2.14 kB 🔴 +1.9 kB

Status: 1 added / 1 removed

Panels & Settings — 298 kB (baseline 298 kB) • ⚪ 0 B

Configuration panels, inspectors, and settings screens

File Before After Δ Raw Δ Gzip Δ Brotli
assets/CreditsPanel-D5248SiH.js (removed) 21.4 kB 🟢 -21.4 kB 🟢 -5.15 kB 🟢 -4.49 kB
assets/CreditsPanel-DFIlT70K.js (new) 21.4 kB 🔴 +21.4 kB 🔴 +5.15 kB 🔴 +4.5 kB
assets/KeybindingPanel-C_nFEeUa.js (removed) 13.6 kB 🟢 -13.6 kB 🟢 -3.42 kB 🟢 -3.01 kB
assets/KeybindingPanel-C0Rn1QDE.js (new) 13.6 kB 🔴 +13.6 kB 🔴 +3.42 kB 🔴 +3.01 kB
assets/ExtensionPanel-BE7qtNEu.js (new) 10.8 kB 🔴 +10.8 kB 🔴 +2.58 kB 🔴 +2.26 kB
assets/ExtensionPanel-COjkJfow.js (removed) 10.8 kB 🟢 -10.8 kB 🟢 -2.58 kB 🟢 -2.26 kB
assets/AboutPanel-0rpvkfK0.js (new) 9.16 kB 🔴 +9.16 kB 🔴 +2.46 kB 🔴 +2.21 kB
assets/AboutPanel-C1LjDJ-y.js (removed) 9.16 kB 🟢 -9.16 kB 🟢 -2.46 kB 🟢 -2.21 kB
assets/ServerConfigPanel-DtrgsEst.js (removed) 6.56 kB 🟢 -6.56 kB 🟢 -1.83 kB 🟢 -1.63 kB
assets/ServerConfigPanel-hQodXHbs.js (new) 6.56 kB 🔴 +6.56 kB 🔴 +1.83 kB 🔴 +1.63 kB
assets/UserPanel-CftaagIe.js (new) 6.23 kB 🔴 +6.23 kB 🔴 +1.72 kB 🔴 +1.51 kB
assets/UserPanel-DihyjM6e.js (removed) 6.23 kB 🟢 -6.23 kB 🟢 -1.72 kB 🟢 -1.51 kB
assets/settings-BhbWhsRg.js 101 B 101 B ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/settings-BXTtSH4O.js 33.3 kB 33.3 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/settings-C9Pzn-NG.js 25.2 kB 25.2 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/settings-CCy2fA_h.js 27.3 kB 27.3 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/settings-CQpqEFfl.js 26.6 kB 26.6 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/settings-DHcnxypw.js 21.7 kB 21.7 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/settings-DhFTK9fY.js 25.1 kB 25.1 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/settings-DlT4t_ui.js 25.9 kB 25.9 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/settings-DRgSrIdD.js 24.2 kB 24.2 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/settings-tjkeqiZq.js 21.1 kB 21.1 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B

Status: 6 added / 6 removed

UI Components — 173 kB (baseline 173 kB) • ⚪ 0 B

Reusable component library chunks

File Before After Δ Raw Δ Gzip Δ Brotli
assets/Load3D.vue_vue_type_script_setup_true_lang-CSPWe6Vp.js (removed) 53.9 kB 🟢 -53.9 kB 🟢 -8.52 kB 🟢 -7.31 kB
assets/Load3D.vue_vue_type_script_setup_true_lang-DVDBtB80.js (new) 53.9 kB 🔴 +53.9 kB 🔴 +8.52 kB 🔴 +7.32 kB
assets/WidgetSelect.vue_vue_type_script_setup_true_lang-BQnnuPS0.js (removed) 47.6 kB 🟢 -47.6 kB 🟢 -10.3 kB 🟢 -8.91 kB
assets/WidgetSelect.vue_vue_type_script_setup_true_lang-DAG03vBg.js (new) 47.6 kB 🔴 +47.6 kB 🔴 +10.3 kB 🔴 +8.91 kB
assets/LazyImage.vue_vue_type_script_setup_true_lang-1GueiLT-.js (new) 43.3 kB 🔴 +43.3 kB 🔴 +9.68 kB 🔴 +8.46 kB
assets/LazyImage.vue_vue_type_script_setup_true_lang-CPOY96Dh.js (removed) 43.3 kB 🟢 -43.3 kB 🟢 -9.68 kB 🟢 -8.47 kB
assets/WidgetInputNumber.vue_vue_type_script_setup_true_lang-BhTDshxp.js (new) 12.9 kB 🔴 +12.9 kB 🔴 +3.37 kB 🔴 +2.98 kB
assets/WidgetInputNumber.vue_vue_type_script_setup_true_lang-D5LsDLgz.js (removed) 12.9 kB 🟢 -12.9 kB 🟢 -3.37 kB 🟢 -2.96 kB
assets/ComfyQueueButton-Csm34ph8.js (removed) 8.44 kB 🟢 -8.44 kB 🟢 -2.47 kB 🟢 -2.21 kB
assets/ComfyQueueButton-CwYNUD4_.js (new) 8.44 kB 🔴 +8.44 kB 🔴 +2.47 kB 🔴 +2.21 kB
assets/WidgetLayoutField.vue_vue_type_script_setup_true_lang-BcNJd_Tq.js (new) 2.16 kB 🔴 +2.16 kB 🔴 +819 B 🔴 +717 B
assets/WidgetLayoutField.vue_vue_type_script_setup_true_lang-VhqMWCTd.js (removed) 2.16 kB 🟢 -2.16 kB 🟢 -818 B 🟢 -716 B
assets/WidgetButton-CbZj9xHx.js (new) 2.04 kB 🔴 +2.04 kB 🔴 +930 B 🔴 +812 B
assets/WidgetButton-DBkWxjh1.js (removed) 2.04 kB 🟢 -2.04 kB 🟢 -927 B 🟢 -810 B
assets/UserAvatar.vue_vue_type_script_setup_true_lang-CDkUGVOA.js (new) 1.34 kB 🔴 +1.34 kB 🔴 +687 B 🔴 +591 B
assets/UserAvatar.vue_vue_type_script_setup_true_lang-DRxvgpU7.js (removed) 1.34 kB 🟢 -1.34 kB 🟢 -686 B 🟢 -597 B
assets/MediaTitle.vue_vue_type_script_setup_true_lang-BAV4xT3b.js (removed) 897 B 🟢 -897 B 🟢 -503 B 🟢 -430 B
assets/MediaTitle.vue_vue_type_script_setup_true_lang-BPvcTAvd.js (new) 897 B 🔴 +897 B 🔴 +503 B 🔴 +434 B

Status: 9 added / 9 removed

Data & Services — 12.5 kB (baseline 12.5 kB) • ⚪ 0 B

Stores, services, APIs, and repositories

File Before After Δ Raw Δ Gzip Δ Brotli
assets/keybindingService-C1qtP8ih.js (new) 7.51 kB 🔴 +7.51 kB 🔴 +1.84 kB 🔴 +1.58 kB
assets/keybindingService-Cwi__K-u.js (removed) 7.51 kB 🟢 -7.51 kB 🟢 -1.83 kB 🟢 -1.58 kB
assets/serverConfigStore-BIb40oOr.js (removed) 2.83 kB 🟢 -2.83 kB 🟢 -907 B 🟢 -799 B
assets/serverConfigStore-uprby_D3.js (new) 2.83 kB 🔴 +2.83 kB 🔴 +905 B 🔴 +791 B
assets/audioService-B8KX-GDi.js (removed) 2.2 kB 🟢 -2.2 kB 🟢 -962 B 🟢 -825 B
assets/audioService-CBIdnh5_.js (new) 2.2 kB 🔴 +2.2 kB 🔴 +962 B 🔴 +821 B

Status: 3 added / 3 removed

Utilities & Hooks — 2.94 kB (baseline 2.94 kB) • ⚪ 0 B

Helpers, composables, and utility bundles

File Before After Δ Raw Δ Gzip Δ Brotli
assets/audioUtils-CGJSTwbQ.js (removed) 1.41 kB 🟢 -1.41 kB 🟢 -651 B 🟢 -547 B
assets/audioUtils-CKf0qU8N.js (new) 1.41 kB 🔴 +1.41 kB 🔴 +652 B 🔴 +548 B
assets/mathUtil-CTARWQ-l.js 1.07 kB 1.07 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/nodeFilterUtil-CXKCRJ-m.js 460 B 460 B ⚪ 0 B ⚪ 0 B ⚪ 0 B

Status: 1 added / 1 removed

Vendor & Third-Party — 8.56 MB (baseline 8.56 MB) • 🟢 -344 B

External libraries and shared vendor chunks

File Before After Δ Raw Δ Gzip Δ Brotli
assets/vendor-other-BZzgsWym.js (removed) 3.98 MB 🟢 -3.98 MB 🟢 -843 kB 🟢 -673 kB
assets/vendor-other-Djvsb6Yg.js (new) 3.98 MB 🔴 +3.98 MB 🔴 +843 kB 🔴 +673 kB
assets/vendor-primevue-3gHexYD_.js (removed) 1.96 MB 🟢 -1.96 MB 🟢 -336 kB 🟢 -202 kB
assets/vendor-primevue-vP_q3PtU.js (new) 1.96 MB 🔴 +1.96 MB 🔴 +336 kB 🔴 +202 kB
assets/vendor-chart-BhMrpT7H.js (new) 452 kB 🔴 +452 kB 🔴 +99.1 kB 🔴 +81 kB
assets/vendor-chart-DWRkrNy1.js (removed) 452 kB 🟢 -452 kB 🟢 -99.1 kB 🟢 -81 kB
assets/vendor-tiptap-abEQAgz5.js (new) 232 kB 🔴 +232 kB 🔴 +45.7 kB 🔴 +37.7 kB
assets/vendor-tiptap-Dw558Ulu.js (removed) 232 kB 🟢 -232 kB 🟢 -45.7 kB 🟢 -37.7 kB
assets/vendor-vue-abso1wrr.js (new) 160 kB 🔴 +160 kB 🔴 +37.3 kB 🔴 +31.5 kB
assets/vendor-vue-CoO6TOrn.js (removed) 160 kB 🟢 -160 kB 🟢 -37.3 kB 🟢 -31.6 kB
assets/vendor-three-aR6ntw5X.js 1.37 MB 1.37 MB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/vendor-xterm-BZLod3g9.js 407 kB 407 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B

Status: 5 added / 5 removed

Other — 3.81 MB (baseline 3.81 MB) • 🔴 +1 B

Bundles that do not match a named category

File Before After Δ Raw Δ Gzip Δ Brotli
assets/WidgetRecordAudio-B2WWeCzn.js (new) 20.4 kB 🔴 +20.4 kB 🔴 +5.24 kB 🔴 +4.64 kB
assets/WidgetRecordAudio-C2X_5Y3Z.js (removed) 20.4 kB 🟢 -20.4 kB 🟢 -5.24 kB 🟢 -4.63 kB
assets/AudioPreviewPlayer-DTvcll85.js (new) 13.5 kB 🔴 +13.5 kB 🔴 +3.4 kB 🔴 +3.04 kB
assets/AudioPreviewPlayer-4mjw4Oav.js (removed) 13.5 kB 🟢 -13.5 kB 🟢 -3.4 kB 🟢 -3.04 kB
assets/WidgetGalleria-Cih0xIve.js (removed) 4.1 kB 🟢 -4.1 kB 🟢 -1.44 kB 🟢 -1.31 kB
assets/WidgetGalleria-DvRN-ebD.js (new) 4.1 kB 🔴 +4.1 kB 🔴 +1.44 kB 🔴 +1.31 kB
assets/WidgetColorPicker-B1WLuS1l.js (new) 3.41 kB 🔴 +3.41 kB 🔴 +1.38 kB 🔴 +1.23 kB
assets/WidgetColorPicker-DjNlDsVK.js (removed) 3.41 kB 🟢 -3.41 kB 🟢 -1.38 kB 🟢 -1.23 kB
assets/WidgetMarkdown-Bz-_5jWM.js (new) 3.08 kB 🔴 +3.08 kB 🔴 +1.28 kB 🔴 +1.12 kB
assets/WidgetMarkdown-C70dBhXr.js (removed) 3.08 kB 🟢 -3.08 kB 🟢 -1.28 kB 🟢 -1.12 kB
assets/WidgetAudioUI-BPht5If6.js (new) 2.82 kB 🔴 +2.82 kB 🔴 +1.12 kB 🔴 +1.02 kB
assets/WidgetAudioUI-DfJntt1T.js (removed) 2.82 kB 🟢 -2.82 kB 🟢 -1.12 kB 🟢 -1.02 kB
assets/WidgetTextarea-DltKDTZH.js (removed) 2.79 kB 🟢 -2.79 kB 🟢 -1.1 kB 🟢 -1 kB
assets/WidgetTextarea-GHCGRpG4.js (new) 2.79 kB 🔴 +2.79 kB 🔴 +1.09 kB 🔴 +1.01 kB
assets/MediaVideoTop-59yKN05c.js (new) 2.76 kB 🔴 +2.76 kB 🔴 +1.05 kB 🔴 +900 B
assets/MediaVideoTop-BpvqEylZ.js (removed) 2.76 kB 🟢 -2.76 kB 🟢 -1.05 kB 🟢 -900 B
assets/WidgetChart-Beblk1io.js (new) 2.48 kB 🔴 +2.48 kB 🔴 +930 B 🔴 +814 B
assets/WidgetChart-DsbKXC7D.js (removed) 2.48 kB 🟢 -2.48 kB 🟢 -933 B 🟢 -816 B
assets/WidgetImageCompare-CMMfeF2r.js (new) 2.21 kB 🔴 +2.21 kB 🔴 +748 B 🔴 +660 B
assets/WidgetImageCompare-nVNi67CU.js (removed) 2.21 kB 🟢 -2.21 kB 🟢 -749 B 🟢 -662 B
assets/WidgetInputText-4bviKDcX.js (new) 1.99 kB 🔴 +1.99 kB 🔴 +916 B 🔴 +844 B
assets/WidgetInputText-C841JFb_.js (removed) 1.99 kB 🟢 -1.99 kB 🟢 -918 B 🟢 -847 B
assets/MediaImageTop-BN0aEMtg.js (removed) 1.75 kB 🟢 -1.75 kB 🟢 -842 B 🟢 -719 B
assets/MediaImageTop-Du4uz2Wm.js (new) 1.75 kB 🔴 +1.75 kB 🔴 +842 B 🔴 +719 B
assets/WidgetToggleSwitch-DkvdXJVp.js (removed) 1.58 kB 🟢 -1.58 kB 🟢 -759 B 🟢 -671 B
assets/WidgetToggleSwitch-f1NwndIH.js (new) 1.58 kB 🔴 +1.58 kB 🔴 +759 B 🔴 +669 B
assets/MediaImageBottom-_TEt5l-5.js (new) 1.57 kB 🔴 +1.57 kB 🔴 +741 B 🔴 +645 B
assets/MediaImageBottom-Cun1KShn.js (removed) 1.57 kB 🟢 -1.57 kB 🟢 -743 B 🟢 -645 B
assets/MediaAudioBottom-DwPzl9UC.js (removed) 1.52 kB 🟢 -1.52 kB 🟢 -741 B 🟢 -658 B
assets/MediaAudioBottom-DyYiLCGE.js (new) 1.52 kB 🔴 +1.52 kB 🔴 +740 B 🔴 +657 B
assets/MediaVideoBottom-BHAafbog.js (new) 1.52 kB 🔴 +1.52 kB 🔴 +737 B 🔴 +653 B
assets/MediaVideoBottom-BKmycZVZ.js (removed) 1.52 kB 🟢 -1.52 kB 🟢 -739 B 🟢 -656 B
assets/Media3DBottom-D5YJSgTJ.js (removed) 1.5 kB 🟢 -1.5 kB 🟢 -734 B 🟢 -650 B
assets/Media3DBottom-DuZkeI3y.js (new) 1.5 kB 🔴 +1.5 kB 🔴 +732 B 🔴 +652 B
assets/Media3DTop-BoK_M7Yu.js (new) 1.49 kB 🔴 +1.49 kB 🔴 +763 B 🔴 +651 B
assets/Media3DTop-DlgOI0O6.js (removed) 1.49 kB 🟢 -1.49 kB 🟢 -765 B 🟢 -647 B
assets/MediaAudioTop-DCIZ2mdC.js (new) 1.46 kB 🔴 +1.46 kB 🔴 +739 B 🔴 +617 B
assets/MediaAudioTop-DX0t5RN3.js (removed) 1.46 kB 🟢 -1.46 kB 🟢 -738 B 🟢 -618 B
assets/WidgetSelect-BRv3HPww.js (removed) 655 B 🟢 -655 B 🟢 -344 B 🟢 -289 B
assets/WidgetSelect-NGPEyJuT.js (new) 655 B 🔴 +655 B 🔴 +344 B 🔴 +311 B
assets/WidgetInputNumber-BvI7XU9h.js (removed) 595 B 🟢 -595 B 🟢 -331 B 🟢 -274 B
assets/WidgetInputNumber-CUkxjLRa.js (new) 595 B 🔴 +595 B 🔴 +328 B 🔴 +276 B
assets/Load3D-CN6XN8SE.js (removed) 424 B 🟢 -424 B 🟢 -268 B 🟢 -225 B
assets/Load3D-DE6UM6cy.js (new) 424 B 🔴 +424 B 🔴 +266 B 🔴 +225 B
assets/WidgetLegacy-CB0zvrAT.js (new) 364 B 🔴 +364 B 🔴 +237 B 🔴 +194 B
assets/WidgetLegacy-CsjB0JYz.js (removed) 364 B 🟢 -364 B 🟢 -237 B 🟢 -228 B
assets/commands-_s-RvhJR.js 13.6 kB 13.6 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/commands-BuUILW6P.js 13 kB 13 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/commands-BV4R6fLx.js 14.9 kB 14.9 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/commands-BWp4HdfU.js 101 B 101 B ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/commands-CLwPdnT6.js 14.2 kB 14.2 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/commands-CWMchBmd.js 15.9 kB 15.9 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/commands-DazTQhtc.js 12.9 kB 12.9 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/commands-DmWrOe93.js 13.7 kB 13.7 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/commands-DwiH7Kr6.js 13.8 kB 13.8 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/commands-mS3LCNPn.js 14.5 kB 14.5 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/main-B1JflQcI.js 72.2 kB 72.2 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/main-B2lyXe48.js 114 kB 114 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/main-B9XEQ-pc.js 94 kB 94 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/main-BErKFzc-.js 73.1 kB 73.1 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/main-Bf7Tze-u.js 83.4 kB 83.4 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/main-BhGMcO4Q.js 84.3 kB 84.3 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/main-CPZUloNQ.js 99 kB 99 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/main-Cw9RZWRY.js 89 B 89 B ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/main-Dva0z-T2.js 86.5 kB 86.5 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/main-un0K9wDS.js 81.8 kB 81.8 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/nodeDefs-8e6QYQW0.js 283 kB 283 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/nodeDefs-A_9dx4yn.js 304 kB 304 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/nodeDefs-BbD3HDi7.js 307 kB 307 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/nodeDefs-BOJhIPft.js 369 kB 369 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/nodeDefs-Bw_Jitw_.js 101 B 101 B ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/nodeDefs-C-Pw33mW.js 317 kB 317 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/nodeDefs-ChLyG0UJ.js 285 kB 285 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/nodeDefs-CUVPxA4l.js 342 kB 342 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/nodeDefs-Dx5Y4xrW.js 310 kB 310 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/nodeDefs-JqO5mNmW.js 306 kB 306 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/widgetPropFilter-BIbGSUAt.js 1.28 kB 1.28 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B

Status: 23 added / 23 removed

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

Caution

Some comments are outside the diff and can’t be posted inline due to platform limitations.

⚠️ Outside diff range comments (1)
src/components/searchbox/NodeSearchBox.vue (1)

6-14: Type safety: Use non-null assertion for hoveredSuggestion.

The v-if condition on line 6 ensures hoveredSuggestion is truthy when the mousedown handler executes, but TypeScript may still flag it as potentially null in the handler on line 8. Use the non-null assertion operator to satisfy the type checker.

Apply this diff:

-      @mousedown.stop="onAddNode(hoveredSuggestion)"
+      @mousedown.stop="onAddNode(hoveredSuggestion!)"
📜 Review details

Configuration used: CodeRabbit UI

Review profile: ASSERTIVE

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 8b5e43d and 24368aa.

📒 Files selected for processing (3)
  • src/components/searchbox/NodeSearchBox.vue (1 hunks)
  • src/renderer/extensions/vueNodes/components/LGraphNodePreview.vue (3 hunks)
  • src/stores/nodeDefStore.ts (2 hunks)
🧰 Additional context used
📓 Path-based instructions (21)
**/*.{vue,ts,tsx}

📄 CodeRabbit inference engine (.cursorrules)

**/*.{vue,ts,tsx}: Leverage VueUse functions for performance-enhancing utilities
Use vue-i18n in Composition API for any string literals and place new translation entries in src/locales/en/main.json

Files:

  • src/stores/nodeDefStore.ts
  • src/components/searchbox/NodeSearchBox.vue
  • src/renderer/extensions/vueNodes/components/LGraphNodePreview.vue
**/*.{ts,tsx,js}

📄 CodeRabbit inference engine (.cursorrules)

Use es-toolkit for utility functions

Files:

  • src/stores/nodeDefStore.ts
**/*.{ts,tsx}

📄 CodeRabbit inference engine (.cursorrules)

Use TypeScript for type safety

**/*.{ts,tsx}: Never use any type - use proper TypeScript types
Never use as any type assertions - fix the underlying type issue

Files:

  • src/stores/nodeDefStore.ts
**/*.{ts,tsx,js,vue}

📄 CodeRabbit inference engine (.cursorrules)

Implement proper error handling in components and services

**/*.{ts,tsx,js,vue}: Use 2-space indentation, single quotes, no semicolons, and maintain 80-character line width as configured in .prettierrc
Organize imports by sorting and grouping by plugin, and run pnpm format before committing

Files:

  • src/stores/nodeDefStore.ts
  • src/components/searchbox/NodeSearchBox.vue
  • src/renderer/extensions/vueNodes/components/LGraphNodePreview.vue
src/**/*.{vue,ts}

📄 CodeRabbit inference engine (.github/copilot-instructions.md)

src/**/*.{vue,ts}: Leverage VueUse functions for performance-enhancing styles
Implement proper error handling
Use vue-i18n in composition API for any string literals. Place new translation entries in src/locales/en/main.json

Files:

  • src/stores/nodeDefStore.ts
  • src/components/searchbox/NodeSearchBox.vue
  • src/renderer/extensions/vueNodes/components/LGraphNodePreview.vue
src/**/*.ts

📄 CodeRabbit inference engine (.github/copilot-instructions.md)

src/**/*.ts: Use es-toolkit for utility functions
Use TypeScript for type safety

Files:

  • src/stores/nodeDefStore.ts
**/*.{ts,tsx,js,jsx,vue}

📄 CodeRabbit inference engine (CLAUDE.md)

Use camelCase for variable and setting names in TypeScript/Vue files

Files:

  • src/stores/nodeDefStore.ts
  • src/components/searchbox/NodeSearchBox.vue
  • src/renderer/extensions/vueNodes/components/LGraphNodePreview.vue
**/*.{ts,tsx,vue}

📄 CodeRabbit inference engine (CLAUDE.md)

**/*.{ts,tsx,vue}: Use const settingStore = useSettingStore() and settingStore.get('Comfy.SomeSetting') to retrieve settings in TypeScript/Vue files
Use await settingStore.set('Comfy.SomeSetting', newValue) to update settings in TypeScript/Vue files
Check server capabilities using api.serverSupportsFeature('feature_name') before using enhanced features
Use api.getServerFeature('config_name', defaultValue) to retrieve server feature configuration

Enforce ESLint rules for Vue + TypeScript including: no floating promises, no unused imports, and i18n raw text restrictions in templates

Files:

  • src/stores/nodeDefStore.ts
  • src/components/searchbox/NodeSearchBox.vue
  • src/renderer/extensions/vueNodes/components/LGraphNodePreview.vue
**/*.ts

📄 CodeRabbit inference engine (CLAUDE.md)

**/*.ts: Define dynamic setting defaults using runtime context with functions in settings configuration
Use defaultsByInstallVersion property for gradual feature rollout based on version in settings configuration

Files:

  • src/stores/nodeDefStore.ts
src/**/*.{ts,tsx,vue}

📄 CodeRabbit inference engine (src/CLAUDE.md)

src/**/*.{ts,tsx,vue}: Sanitize HTML with DOMPurify to prevent XSS attacks
Avoid using @ts-expect-error; use proper TypeScript types instead
Use es-toolkit for utility functions instead of other utility libraries
Implement proper TypeScript types throughout the codebase

Files:

  • src/stores/nodeDefStore.ts
  • src/components/searchbox/NodeSearchBox.vue
  • src/renderer/extensions/vueNodes/components/LGraphNodePreview.vue
src/**/stores/**/*.{ts,tsx}

📄 CodeRabbit inference engine (src/CLAUDE.md)

src/**/stores/**/*.{ts,tsx}: Maintain clear public interfaces and restrict extension access in stores
Use TypeScript for type safety in state management stores

Files:

  • src/stores/nodeDefStore.ts
src/**/*.{vue,ts,tsx}

📄 CodeRabbit inference engine (src/CLAUDE.md)

Follow Vue 3 composition API style guide

Files:

  • src/stores/nodeDefStore.ts
  • src/components/searchbox/NodeSearchBox.vue
  • src/renderer/extensions/vueNodes/components/LGraphNodePreview.vue
**/stores/*Store.ts

📄 CodeRabbit inference engine (AGENTS.md)

Name Pinia stores with the *Store.ts suffix

Files:

  • src/stores/nodeDefStore.ts
**/*.vue

📄 CodeRabbit inference engine (.cursorrules)

**/*.vue: Use setup() function for component logic in Vue 3 Composition API
Utilize ref and reactive for reactive state in Vue 3
Implement computed properties with computed() function
Use watch and watchEffect for side effects in Vue 3
Implement lifecycle hooks with onMounted, onUpdated, etc.
Utilize provide/inject for dependency injection in Vue 3
Use Vue 3.5 style of default prop declaration with defineProps()
Organize Vue components in <script> <style> order
Use Tailwind CSS for styling Vue components
Implement responsive design with Tailwind CSS
Do not use deprecated PrimeVue components (Dropdown, OverlayPanel, Calendar, InputSwitch, Sidebar, Chips, TabMenu, Steps, InlineMessage). Use replacements: Select, Popover, DatePicker, ToggleSwitch, Drawer, AutoComplete, Tabs, Stepper, Message respectively
Implement proper props and emits definitions in Vue components
Utilize Vue 3's Teleport component when needed
Use Suspense for async components in Vue 3
Follow Vue 3 style guide and naming conventions
Never use deprecated PrimeVue components (Dropdown, OverlayPanel, Calendar, InputSwitch, Sidebar, Chips, TabMenu, Steps, InlineMessage)

Never use :class="[]" to merge class names - always use import { cn } from '@/utils/tailwindUtil' for class merging in Vue templates

**/*.vue: Use TypeScript with Vue 3 Single File Components (.vue files)
Name Vue components in PascalCase (e.g., MenuHamburger.vue)

Files:

  • src/components/searchbox/NodeSearchBox.vue
  • src/renderer/extensions/vueNodes/components/LGraphNodePreview.vue
src/**/*.vue

📄 CodeRabbit inference engine (.github/copilot-instructions.md)

src/**/*.vue: Use the Vue 3 Composition API instead of the Options API when writing Vue components (exception: when overriding or extending PrimeVue components for compatibility)
Use setup() function for component logic
Utilize ref and reactive for reactive state
Implement computed properties with computed()
Use watch and watchEffect for side effects
Implement lifecycle hooks with onMounted, onUpdated, etc.
Utilize provide/inject for dependency injection
Use vue 3.5 style of default prop declaration
Use Tailwind CSS for styling
Implement proper props and emits definitions
Utilize Vue 3's Teleport component when needed
Use Suspense for async components
Follow Vue 3 style guide and naming conventions

Files:

  • src/components/searchbox/NodeSearchBox.vue
  • src/renderer/extensions/vueNodes/components/LGraphNodePreview.vue
**/*.{vue,html}

📄 CodeRabbit inference engine (CLAUDE.md)

Never use dark: or dark-theme: Tailwind variants - instead use semantic values from style.css theme, e.g. bg-node-component-surface

Files:

  • src/components/searchbox/NodeSearchBox.vue
  • src/renderer/extensions/vueNodes/components/LGraphNodePreview.vue
src/**/{composables,components}/**/*.{ts,tsx,vue}

📄 CodeRabbit inference engine (src/CLAUDE.md)

Clean up subscriptions in state management to prevent memory leaks

Files:

  • src/components/searchbox/NodeSearchBox.vue
  • src/renderer/extensions/vueNodes/components/LGraphNodePreview.vue
src/**/{components,composables}/**/*.{ts,tsx,vue}

📄 CodeRabbit inference engine (src/CLAUDE.md)

Use vue-i18n for ALL user-facing strings by adding them to src/locales/en/main.json

Files:

  • src/components/searchbox/NodeSearchBox.vue
  • src/renderer/extensions/vueNodes/components/LGraphNodePreview.vue
src/components/**/*.vue

📄 CodeRabbit inference engine (src/components/CLAUDE.md)

src/components/**/*.vue: Use setup() function in Vue 3 Composition API
Destructure props using Vue 3.5 style in Vue components
Use ref/reactive for state management in Vue 3 Composition API
Implement computed() for derived state in Vue 3 Composition API
Use provide/inject for dependency injection in Vue components
Prefer emit/@event-name for state changes over other communication patterns
Use defineExpose only for imperative operations (such as form.validate(), modal.open())
Replace PrimeVue Dropdown component with Select
Replace PrimeVue OverlayPanel component with Popover
Replace PrimeVue Calendar component with DatePicker
Replace PrimeVue InputSwitch component with ToggleSwitch
Replace PrimeVue Sidebar component with Drawer
Replace PrimeVue Chips component with AutoComplete with multiple enabled
Replace PrimeVue TabMenu component with Tabs without panels
Replace PrimeVue Steps component with Stepper without panels
Replace PrimeVue InlineMessage component with Message
Extract complex conditionals to computed properties
Implement cleanup for async operations in Vue components
Use lifecycle hooks: onMounted, onUpdated in Vue 3 Composition API
Use Teleport/Suspense when needed for component rendering
Define proper props and emits definitions in Vue components

Files:

  • src/components/searchbox/NodeSearchBox.vue
src/components/**/*.{vue,css}

📄 CodeRabbit inference engine (src/components/CLAUDE.md)

src/components/**/*.{vue,css}: Use Tailwind CSS only for styling (no custom CSS)
Use the correct tokens from style.css in the design system package

Files:

  • src/components/searchbox/NodeSearchBox.vue
src/components/**/*.{vue,ts,js}

📄 CodeRabbit inference engine (src/components/CLAUDE.md)

src/components/**/*.{vue,ts,js}: Use existing VueUse composables (such as useElementHover) instead of manually managing event listeners
Use useIntersectionObserver for visibility detection instead of custom scroll handlers
Use vue-i18n for ALL UI strings

Files:

  • src/components/searchbox/NodeSearchBox.vue
🧠 Learnings (1)
📚 Learning: 2025-11-24T19:47:14.779Z
Learnt from: CR
Repo: Comfy-Org/ComfyUI_frontend PR: 0
File: CLAUDE.md:0-0
Timestamp: 2025-11-24T19:47:14.779Z
Learning: Applies to **/*.{vue,html} : Never use `dark:` or `dark-theme:` Tailwind variants - instead use semantic values from `style.css` theme, e.g. `bg-node-component-surface`

Applied to files:

  • src/renderer/extensions/vueNodes/components/LGraphNodePreview.vue
🪛 ESLint
src/renderer/extensions/vueNodes/components/LGraphNodePreview.vue

[error] 45-45: Unable to resolve path to module '@/stores/workspace/colorPaletteStore'.

(import-x/no-unresolved)


[error] 47-47: Unable to resolve path to module '../utils/nodeStyleUtils'.

(import-x/no-unresolved)

⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (5)
  • GitHub Check: deploy-and-comment
  • GitHub Check: setup
  • GitHub Check: lint-and-format
  • GitHub Check: collect
  • GitHub Check: test
🔇 Additional comments (5)
src/renderer/extensions/vueNodes/components/LGraphNodePreview.vue (2)

11-27: LGTM - Preview interaction and layout.

The use of pointer-events-none throughout is appropriate for a preview component. The conditional rendering of NodeWidgets with optional chaining safely handles cases where widgets may not exist.


45-47: > Likely an incorrect or invalid review comment.

src/components/searchbox/NodeSearchBox.vue (1)

6-14: Good enhancement: Click-to-add node functionality.

The changes successfully implement click-to-add behavior for the node preview. The conditional rendering ensures the preview only appears when both enabled and a suggestion is hovered, which provides a clean user experience.

src/stores/nodeDefStore.ts (2)

216-219: Verify backward compatibility for existing MarkdownNote nodes.

Adding a required text input is a breaking change. Existing workflows containing MarkdownNote nodes without this field may fail to load or behave unexpectedly. Confirm whether:

  • Existing workflows with MarkdownNote nodes are expected to load without a text field
  • Migration or default value handling is needed for backward compatibility
  • The text input should initially be optional with a migration path

201-204: This change does not introduce a backward compatibility issue for existing Note nodes.

The nodeDefStore.ts file defines the client-side schema for nodes, and the actual NoteNode implementation in src/extensions/core/noteNode.ts already handles defaults robustly. Both NoteNode and MarkdownNoteNode initialize the text property with an empty string if missing (lines 25 and 63), and use default: this.properties.text to preserve any stored workflow data. Existing workflows will deserialize correctly and continue to work without issues.

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

Caution

Some comments are outside the diff and can’t be posted inline due to platform limitations.

⚠️ Outside diff range comments (1)
src/renderer/extensions/vueNodes/components/LGraphNodePreview.vue (1)

95-109: The previous bgcolor concern is no longer applicable.

The past review comment about missing bgcolor in nodeData is no longer relevant since the template no longer uses nodeBodyBackgroundColor. The empty line at 105 appears to be a remnant that could be removed for cleanliness.

     outputs,
-
     flags: {
📜 Review details

Configuration used: CodeRabbit UI

Review profile: ASSERTIVE

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 24368aa and 893089e.

📒 Files selected for processing (2)
  • src/components/searchbox/NodeSearchBox.vue (1 hunks)
  • src/renderer/extensions/vueNodes/components/LGraphNodePreview.vue (2 hunks)
🧰 Additional context used
📓 Path-based instructions (15)
**/*.vue

📄 CodeRabbit inference engine (.cursorrules)

**/*.vue: Use setup() function for component logic in Vue 3 Composition API
Utilize ref and reactive for reactive state in Vue 3
Implement computed properties with computed() function
Use watch and watchEffect for side effects in Vue 3
Implement lifecycle hooks with onMounted, onUpdated, etc.
Utilize provide/inject for dependency injection in Vue 3
Use Vue 3.5 style of default prop declaration with defineProps()
Organize Vue components in <script> <style> order
Use Tailwind CSS for styling Vue components
Implement responsive design with Tailwind CSS
Do not use deprecated PrimeVue components (Dropdown, OverlayPanel, Calendar, InputSwitch, Sidebar, Chips, TabMenu, Steps, InlineMessage). Use replacements: Select, Popover, DatePicker, ToggleSwitch, Drawer, AutoComplete, Tabs, Stepper, Message respectively
Implement proper props and emits definitions in Vue components
Utilize Vue 3's Teleport component when needed
Use Suspense for async components in Vue 3
Follow Vue 3 style guide and naming conventions
Never use deprecated PrimeVue components (Dropdown, OverlayPanel, Calendar, InputSwitch, Sidebar, Chips, TabMenu, Steps, InlineMessage)

Never use :class="[]" to merge class names - always use import { cn } from '@/utils/tailwindUtil' for class merging in Vue templates

**/*.vue: Use TypeScript with Vue 3 Single File Components (.vue files)
Name Vue components in PascalCase (e.g., MenuHamburger.vue)

Files:

  • src/components/searchbox/NodeSearchBox.vue
  • src/renderer/extensions/vueNodes/components/LGraphNodePreview.vue
**/*.{vue,ts,tsx}

📄 CodeRabbit inference engine (.cursorrules)

**/*.{vue,ts,tsx}: Leverage VueUse functions for performance-enhancing utilities
Use vue-i18n in Composition API for any string literals and place new translation entries in src/locales/en/main.json

Files:

  • src/components/searchbox/NodeSearchBox.vue
  • src/renderer/extensions/vueNodes/components/LGraphNodePreview.vue
**/*.{ts,tsx,js,vue}

📄 CodeRabbit inference engine (.cursorrules)

Implement proper error handling in components and services

**/*.{ts,tsx,js,vue}: Use 2-space indentation, single quotes, no semicolons, and maintain 80-character line width as configured in .prettierrc
Organize imports by sorting and grouping by plugin, and run pnpm format before committing

Files:

  • src/components/searchbox/NodeSearchBox.vue
  • src/renderer/extensions/vueNodes/components/LGraphNodePreview.vue
src/**/*.vue

📄 CodeRabbit inference engine (.github/copilot-instructions.md)

src/**/*.vue: Use the Vue 3 Composition API instead of the Options API when writing Vue components (exception: when overriding or extending PrimeVue components for compatibility)
Use setup() function for component logic
Utilize ref and reactive for reactive state
Implement computed properties with computed()
Use watch and watchEffect for side effects
Implement lifecycle hooks with onMounted, onUpdated, etc.
Utilize provide/inject for dependency injection
Use vue 3.5 style of default prop declaration
Use Tailwind CSS for styling
Implement proper props and emits definitions
Utilize Vue 3's Teleport component when needed
Use Suspense for async components
Follow Vue 3 style guide and naming conventions

Files:

  • src/components/searchbox/NodeSearchBox.vue
  • src/renderer/extensions/vueNodes/components/LGraphNodePreview.vue
src/**/*.{vue,ts}

📄 CodeRabbit inference engine (.github/copilot-instructions.md)

src/**/*.{vue,ts}: Leverage VueUse functions for performance-enhancing styles
Implement proper error handling
Use vue-i18n in composition API for any string literals. Place new translation entries in src/locales/en/main.json

Files:

  • src/components/searchbox/NodeSearchBox.vue
  • src/renderer/extensions/vueNodes/components/LGraphNodePreview.vue
**/*.{ts,tsx,js,jsx,vue}

📄 CodeRabbit inference engine (CLAUDE.md)

Use camelCase for variable and setting names in TypeScript/Vue files

Files:

  • src/components/searchbox/NodeSearchBox.vue
  • src/renderer/extensions/vueNodes/components/LGraphNodePreview.vue
**/*.{vue,html}

📄 CodeRabbit inference engine (CLAUDE.md)

Never use dark: or dark-theme: Tailwind variants - instead use semantic values from style.css theme, e.g. bg-node-component-surface

Files:

  • src/components/searchbox/NodeSearchBox.vue
  • src/renderer/extensions/vueNodes/components/LGraphNodePreview.vue
**/*.{ts,tsx,vue}

📄 CodeRabbit inference engine (CLAUDE.md)

**/*.{ts,tsx,vue}: Use const settingStore = useSettingStore() and settingStore.get('Comfy.SomeSetting') to retrieve settings in TypeScript/Vue files
Use await settingStore.set('Comfy.SomeSetting', newValue) to update settings in TypeScript/Vue files
Check server capabilities using api.serverSupportsFeature('feature_name') before using enhanced features
Use api.getServerFeature('config_name', defaultValue) to retrieve server feature configuration

Enforce ESLint rules for Vue + TypeScript including: no floating promises, no unused imports, and i18n raw text restrictions in templates

Files:

  • src/components/searchbox/NodeSearchBox.vue
  • src/renderer/extensions/vueNodes/components/LGraphNodePreview.vue
src/**/*.{ts,tsx,vue}

📄 CodeRabbit inference engine (src/CLAUDE.md)

src/**/*.{ts,tsx,vue}: Sanitize HTML with DOMPurify to prevent XSS attacks
Avoid using @ts-expect-error; use proper TypeScript types instead
Use es-toolkit for utility functions instead of other utility libraries
Implement proper TypeScript types throughout the codebase

Files:

  • src/components/searchbox/NodeSearchBox.vue
  • src/renderer/extensions/vueNodes/components/LGraphNodePreview.vue
src/**/{composables,components}/**/*.{ts,tsx,vue}

📄 CodeRabbit inference engine (src/CLAUDE.md)

Clean up subscriptions in state management to prevent memory leaks

Files:

  • src/components/searchbox/NodeSearchBox.vue
  • src/renderer/extensions/vueNodes/components/LGraphNodePreview.vue
src/**/*.{vue,ts,tsx}

📄 CodeRabbit inference engine (src/CLAUDE.md)

Follow Vue 3 composition API style guide

Files:

  • src/components/searchbox/NodeSearchBox.vue
  • src/renderer/extensions/vueNodes/components/LGraphNodePreview.vue
src/**/{components,composables}/**/*.{ts,tsx,vue}

📄 CodeRabbit inference engine (src/CLAUDE.md)

Use vue-i18n for ALL user-facing strings by adding them to src/locales/en/main.json

Files:

  • src/components/searchbox/NodeSearchBox.vue
  • src/renderer/extensions/vueNodes/components/LGraphNodePreview.vue
src/components/**/*.vue

📄 CodeRabbit inference engine (src/components/CLAUDE.md)

src/components/**/*.vue: Use setup() function in Vue 3 Composition API
Destructure props using Vue 3.5 style in Vue components
Use ref/reactive for state management in Vue 3 Composition API
Implement computed() for derived state in Vue 3 Composition API
Use provide/inject for dependency injection in Vue components
Prefer emit/@event-name for state changes over other communication patterns
Use defineExpose only for imperative operations (such as form.validate(), modal.open())
Replace PrimeVue Dropdown component with Select
Replace PrimeVue OverlayPanel component with Popover
Replace PrimeVue Calendar component with DatePicker
Replace PrimeVue InputSwitch component with ToggleSwitch
Replace PrimeVue Sidebar component with Drawer
Replace PrimeVue Chips component with AutoComplete with multiple enabled
Replace PrimeVue TabMenu component with Tabs without panels
Replace PrimeVue Steps component with Stepper without panels
Replace PrimeVue InlineMessage component with Message
Extract complex conditionals to computed properties
Implement cleanup for async operations in Vue components
Use lifecycle hooks: onMounted, onUpdated in Vue 3 Composition API
Use Teleport/Suspense when needed for component rendering
Define proper props and emits definitions in Vue components

Files:

  • src/components/searchbox/NodeSearchBox.vue
src/components/**/*.{vue,css}

📄 CodeRabbit inference engine (src/components/CLAUDE.md)

src/components/**/*.{vue,css}: Use Tailwind CSS only for styling (no custom CSS)
Use the correct tokens from style.css in the design system package

Files:

  • src/components/searchbox/NodeSearchBox.vue
src/components/**/*.{vue,ts,js}

📄 CodeRabbit inference engine (src/components/CLAUDE.md)

src/components/**/*.{vue,ts,js}: Use existing VueUse composables (such as useElementHover) instead of manually managing event listeners
Use useIntersectionObserver for visibility detection instead of custom scroll handlers
Use vue-i18n for ALL UI strings

Files:

  • src/components/searchbox/NodeSearchBox.vue
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (3)
  • GitHub Check: setup
  • GitHub Check: test
  • GitHub Check: lint-and-format
🔇 Additional comments (2)
src/components/searchbox/NodeSearchBox.vue (1)

6-13: LGTM! Clean implementation of click-to-add behavior.

The conditional rendering now correctly gates on both enableNodePreview and hoveredSuggestion, and the non-null assertion on line 8 is safe since the v-if guarantees hoveredSuggestion is truthy when the handler executes. Using @mousedown.stop appropriately prevents event propagation that could close the search dropdown.

src/renderer/extensions/vueNodes/components/LGraphNodePreview.vue (1)

2-5: Good structural improvements with proper containment.

The use of contain-style contain-layout provides good CSS containment for the preview node, isolating layout calculations. The fixed width w-[350px] appropriately matches the preview container positioning in NodeSearchBox.vue.

Copy link
Collaborator

@AustinMroz AustinMroz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@simula-r simula-r merged commit ab777bc into main Dec 4, 2025
27 checks passed
@simula-r simula-r deleted the fix/vue-nodes-preview-node branch December 4, 2025 23:31
@dosubot dosubot bot mentioned this pull request Dec 5, 2025
1 task
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:M This PR changes 30-99 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants