Skip to content

Faster search#8028

Draft
AustinMroz wants to merge 5 commits intomainfrom
austin/faster-search
Draft

Faster search#8028
AustinMroz wants to merge 5 commits intomainfrom
austin/faster-search

Conversation

@AustinMroz
Copy link
Collaborator

@AustinMroz AustinMroz commented Jan 13, 2026

Removes primevue from the searchbox, reduces animation duration, and utilizes virtualList.

Currently causes some variation in design, but changes can be easily made since it moves away from primevue.

Before After
before after
before after

Performance is difficult to depict visually. I encourage checking out and trying the branch.

Known issues:

  • Refining search does not reset scroll state, allowing for scroll past the end of the list

┆Issue is synchronized with this Notion page by Unito

@coderabbitai
Copy link
Contributor

coderabbitai bot commented Jan 13, 2026

Important

Review skipped

Draft detected.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

📝 Walkthrough

Walkthrough

Removed a custom AutoComplete wrapper and refactored NodeSearchBox to a self-contained inline search with debounced input and virtualized results; also simplified popover transitions to opacity-only fades.

Changes

Cohort / File(s) Summary
AutoComplete component removal
src/components/primevueOverride/AutoCompletePlus.vue
Deleted custom AutoComplete wrapper that emitted focused-option-changed, tracked IME composition, and suppressed Enter during composition.
Search box UI rewrite
src/components/searchbox/NodeSearchBox.vue
Replaced Autocomplete-driven UI with inline search: added refDebounced (100ms, 400ms maxWait), virtualized results (useVirtualList + NodeSearchItem), filter chips (SearchFilterChip), input ref/focus handling, keyboard navigation, hoveredIndex/hoveredSuggestion, and changed onAddNode(nodeDef?: ComfyNodeDefImpl).
Dialog transition optimization
src/components/searchbox/NodeSearchBoxPopover.vue
Simplified Transition classes: removed scale from enter, reduced enter/leave durations (100ms → 20ms) to produce pure opacity fade.
Browser test selector updates
browser_tests/fixtures/components/ComfyNodeSearchBox.ts
Updated DOM selectors to match new markup (.p-autocomplete-list.comfy-autocomplete-list, item selector → .option-container).

Sequence Diagram(s)

sequenceDiagram
  actor User
  participant Input as NodeSearchBox Input
  participant Debouncer as refDebounced
  participant Provider as Suggestions Provider (filters/search)
  participant VirtualList as useVirtualList / NodeSearchItem
  participant Handler as onAddNode
  participant Telemetry

  User->>Input: type query
  Input->>Debouncer: update currentQuery
  Debouncer->>Provider: emit debouncedQuery
  Provider->>VirtualList: provide suggestions
  User->>VirtualList: navigate / hover / click item
  VirtualList->>Handler: select nodeDef (optional)
  Handler->>Telemetry: record last_query
Loading

Possibly related PRs

Suggested reviewers

  • shinshin86
  • PabloWiedemann
  • KarryCharon
  • viva-jinyi
  • Yorha4D

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

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

@github-actions
Copy link

github-actions bot commented Jan 13, 2026

🎭 Playwright Tests: 🕵🏻 No test results

📊 Browser Reports
  • chromium: ❌ Deployment failed
  • chromium-2x: ❌ Deployment failed
  • chromium-0.5x: ❌ Deployment failed
  • mobile-chrome: ❌ Deployment failed

@github-actions
Copy link

github-actions bot commented Jan 13, 2026

🎨 Storybook Build Status

Build failed!

⏰ Completed at: 01/17/2026, 09:23:20 PM UTC

🔗 Links


⚠️ Please check the workflow logs for error details.

@github-actions
Copy link

github-actions bot commented Jan 13, 2026

Bundle Size Report

Summary

  • Raw size: 19.7 MB baseline 19.7 MB — 🔴 +7.04 kB
  • Gzip: 4.01 MB baseline 4.01 MB — 🔴 +740 B
  • Brotli: 3.06 MB baseline 3.06 MB — 🔴 +934 B
  • Bundles: 99 current • 99 baseline • 52 added / 52 removed

Category Glance
Vendor & Third-Party 🔴 +6.71 kB (9.35 MB) · Graph Workspace 🔴 +327 B (1.15 MB) · Other ⚪ 0 B (5.25 MB) · App Entry Points ⚪ 0 B (3.34 MB) · Panels & Settings ⚪ 0 B (372 kB) · UI Components ⚪ 0 B (209 kB) · + 3 more

Per-category breakdown
App Entry Points — 3.34 MB (baseline 3.34 MB) • ⚪ 0 B

Main entry bundles and manifests

File Before After Δ Raw Δ Gzip Δ Brotli
assets/index-CMhaA1E2.js (new) 3.14 MB 🔴 +3.14 MB 🔴 +657 kB 🔴 +499 kB
assets/index-D5EI1yHB.js (removed) 3.14 MB 🟢 -3.14 MB 🟢 -657 kB 🟢 -499 kB
assets/index-BAezh8hG.js (new) 200 kB 🔴 +200 kB 🔴 +44 kB 🔴 +36.4 kB
assets/index-BwngPJX1.js (removed) 200 kB 🟢 -200 kB 🟢 -44.1 kB 🟢 -36.4 kB
assets/index-DehMACf-.js (removed) 345 B 🟢 -345 B 🟢 -246 B 🟢 -238 B
assets/index-KCrfs0da.js (new) 345 B 🔴 +345 B 🔴 +245 B 🔴 +240 B

Status: 3 added / 3 removed

Graph Workspace — 1.15 MB (baseline 1.15 MB) • 🔴 +327 B

Graph editor runtime, canvas, workflow orchestration

File Before After Δ Raw Δ Gzip Δ Brotli
assets/GraphView-gFi05cm0.js (new) 1.15 MB 🔴 +1.15 MB 🔴 +219 kB 🔴 +165 kB
assets/GraphView-D_WST5MN.js (removed) 1.15 MB 🟢 -1.15 MB 🟢 -219 kB 🟢 -165 kB

Status: 1 added / 1 removed

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

Top-level views, pages, and routed surfaces

File Before After Δ Raw Δ Gzip Δ Brotli
assets/UserSelectView-BPtOgeqi.js (removed) 6.66 kB 🟢 -6.66 kB 🟢 -2.16 kB 🟢 -1.91 kB
assets/UserSelectView-DyODTrJ1.js (new) 6.66 kB 🔴 +6.66 kB 🔴 +2.16 kB 🔴 +1.91 kB

Status: 1 added / 1 removed

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

Configuration panels, inspectors, and settings screens

File Before After Δ Raw Δ Gzip Δ Brotli
assets/LegacyCreditsPanel-Caw_vO0T.js (removed) 25.2 kB 🟢 -25.2 kB 🟢 -5.76 kB 🟢 -5.03 kB
assets/LegacyCreditsPanel-DFZOMG9u.js (new) 25.2 kB 🔴 +25.2 kB 🔴 +5.75 kB 🔴 +5.02 kB
assets/KeybindingPanel-B3MKkjV2.js (removed) 14.9 kB 🟢 -14.9 kB 🟢 -3.59 kB 🟢 -3.14 kB
assets/KeybindingPanel-sLAPY5A4.js (new) 14.9 kB 🔴 +14.9 kB 🔴 +3.59 kB 🔴 +3.14 kB
assets/ExtensionPanel-CXsKzBwd.js (new) 11.1 kB 🔴 +11.1 kB 🔴 +2.63 kB 🔴 +2.31 kB
assets/ExtensionPanel-DFPXdFO7.js (removed) 11.1 kB 🟢 -11.1 kB 🟢 -2.63 kB 🟢 -2.31 kB
assets/AboutPanel-BuZ1dpgb.js (new) 9.2 kB 🔴 +9.2 kB 🔴 +2.47 kB 🔴 +2.22 kB
assets/AboutPanel-CRooS6zx.js (removed) 9.2 kB 🟢 -9.2 kB 🟢 -2.48 kB 🟢 -2.22 kB
assets/ServerConfigPanel-CDZICuMJ.js (new) 7.55 kB 🔴 +7.55 kB 🔴 +2.06 kB 🔴 +1.83 kB
assets/ServerConfigPanel-D3oIfuMg.js (removed) 7.55 kB 🟢 -7.55 kB 🟢 -2.06 kB 🟢 -1.83 kB
assets/UserPanel-DC3qyQl1.js (removed) 6.92 kB 🟢 -6.92 kB 🟢 -1.81 kB 🟢 -1.58 kB
assets/UserPanel-mJDdFu0x.js (new) 6.92 kB 🔴 +6.92 kB 🔴 +1.8 kB 🔴 +1.58 kB
assets/settings-BGQfQzTx.js 25.6 kB 25.6 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/settings-BVE4KHTw.js 22.7 kB 22.7 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/settings-BVtpJmlU.js 30.9 kB 30.9 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/settings-C2aO00Dz.js 28.6 kB 28.6 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/settings-Cm3ieBXR.js 27.8 kB 27.8 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/settings-CzQKMdK3.js 26.2 kB 26.2 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/settings-CzYUIUnL.js 27.1 kB 27.1 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/settings-DwKpL7jw.js 26.3 kB 26.3 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/settings-DX8feV4n.js 25.3 kB 25.3 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/settings-mWzYycGc.js 22 kB 22 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/settings-U4AdZ8Rl.js 34.9 kB 34.9 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B

Status: 6 added / 6 removed

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

Reusable component library chunks

File Before After Δ Raw Δ Gzip Δ Brotli
assets/LazyImage.vue_vue_type_script_setup_true_lang-40Q7jtB2.js (removed) 69.6 kB 🟢 -69.6 kB 🟢 -14.2 kB 🟢 -12.3 kB
assets/LazyImage.vue_vue_type_script_setup_true_lang-hjWQg1re.js (new) 69.6 kB 🔴 +69.6 kB 🔴 +14.2 kB 🔴 +12.3 kB
assets/Load3D.vue_vue_type_script_setup_true_lang-1FxFGXb7.js (removed) 56.4 kB 🟢 -56.4 kB 🟢 -8.78 kB 🟢 -7.53 kB
assets/Load3D.vue_vue_type_script_setup_true_lang-pXSkhENJ.js (new) 56.4 kB 🔴 +56.4 kB 🔴 +8.78 kB 🔴 +7.54 kB
assets/WidgetSelect.vue_vue_type_script_setup_true_lang-CJtb8Bg4.js (new) 48.1 kB 🔴 +48.1 kB 🔴 +10.4 kB 🔴 +8.99 kB
assets/WidgetSelect.vue_vue_type_script_setup_true_lang-CvTQEUHX.js (removed) 48.1 kB 🟢 -48.1 kB 🟢 -10.4 kB 🟢 -8.99 kB
assets/WidgetInputNumber.vue_vue_type_script_setup_true_lang-CV9-22Fu.js (new) 16.4 kB 🔴 +16.4 kB 🔴 +4.11 kB 🔴 +3.64 kB
assets/WidgetInputNumber.vue_vue_type_script_setup_true_lang-Dhpdcvm3.js (removed) 16.4 kB 🟢 -16.4 kB 🟢 -4.11 kB 🟢 -3.64 kB
assets/ComfyQueueButton-9RgKXCsk.js (removed) 8.87 kB 🟢 -8.87 kB 🟢 -2.6 kB 🟢 -2.31 kB
assets/ComfyQueueButton-VtPEv9hK.js (new) 8.87 kB 🔴 +8.87 kB 🔴 +2.59 kB 🔴 +2.31 kB
assets/WidgetWithControl.vue_vue_type_script_setup_true_lang-C-n2_DL3.js (new) 3.75 kB 🔴 +3.75 kB 🔴 +1.47 kB 🔴 +1.33 kB
assets/WidgetWithControl.vue_vue_type_script_setup_true_lang-CuxwGFUs.js (removed) 3.75 kB 🟢 -3.75 kB 🟢 -1.47 kB 🟢 -1.33 kB
assets/WidgetButton-DZWSoWC3.js (removed) 2.25 kB 🟢 -2.25 kB 🟢 -1.01 kB 🟢 -910 B
assets/WidgetButton-DZZoxJWY.js (new) 2.25 kB 🔴 +2.25 kB 🔴 +1.01 kB 🔴 +908 B
assets/WidgetLayoutField.vue_vue_type_script_setup_true_lang-BaRYkl3P.js (removed) 2.14 kB 🟢 -2.14 kB 🟢 -891 B 🟢 -771 B
assets/WidgetLayoutField.vue_vue_type_script_setup_true_lang-Cp-p9766.js (new) 2.14 kB 🔴 +2.14 kB 🔴 +891 B 🔴 +766 B
assets/UserAvatar.vue_vue_type_script_setup_true_lang-DOwOCbdq.js (new) 1.34 kB 🔴 +1.34 kB 🔴 +687 B 🔴 +594 B
assets/UserAvatar.vue_vue_type_script_setup_true_lang-IJTLOeU1.js (removed) 1.34 kB 🟢 -1.34 kB 🟢 -688 B 🟢 -596 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-8GH4Ssx-.js (removed) 7.51 kB 🟢 -7.51 kB 🟢 -1.83 kB 🟢 -1.58 kB
assets/keybindingService-BT5DHPZb.js (new) 7.51 kB 🔴 +7.51 kB 🔴 +1.83 kB 🔴 +1.57 kB
assets/serverConfigStore-DyIvWaGz.js (removed) 2.83 kB 🟢 -2.83 kB 🟢 -909 B 🟢 -789 B
assets/serverConfigStore-OUmaHQYP.js (new) 2.83 kB 🔴 +2.83 kB 🔴 +907 B 🔴 +789 B
assets/audioService-CwKUyCdi.js (new) 2.2 kB 🔴 +2.2 kB 🔴 +960 B 🔴 +823 B
assets/audioService-nCOpZ4Ck.js (removed) 2.2 kB 🟢 -2.2 kB 🟢 -964 B 🟢 -828 B

Status: 3 added / 3 removed

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

Helpers, composables, and utility bundles

File Before After Δ Raw Δ Gzip Δ Brotli
assets/audioUtils-BXv0YjYV.js (removed) 1.41 kB 🟢 -1.41 kB 🟢 -653 B 🟢 -543 B
assets/audioUtils-CIp4GHeI.js (new) 1.41 kB 🔴 +1.41 kB 🔴 +650 B 🔴 +547 B

Status: 1 added / 1 removed

Vendor & Third-Party — 9.35 MB (baseline 9.34 MB) • 🔴 +6.71 kB

External libraries and shared vendor chunks

File Before After Δ Raw Δ Gzip Δ Brotli
assets/vendor-other-C6BbQL_O.js (new) 3.94 MB 🔴 +3.94 MB 🔴 +856 kB 🔴 +686 kB
assets/vendor-other-C9GFBFnP.js (removed) 3.93 MB 🟢 -3.93 MB 🟢 -855 kB 🟢 -685 kB
assets/vendor-three-Bz1zdJb0.js (removed) 2.08 MB 🟢 -2.08 MB 🟢 -430 kB 🟢 -308 kB
assets/vendor-three-DCr6eSNs.js (new) 2.08 MB 🔴 +2.08 MB 🔴 +430 kB 🔴 +308 kB
assets/vendor-primevue-NX-4NPlN.js (removed) 1.95 MB 🟢 -1.95 MB 🟢 -333 kB 🟢 -201 kB
assets/vendor-primevue-ZT-nDaUt.js (new) 1.95 MB 🔴 +1.95 MB 🔴 +333 kB 🔴 +201 kB
assets/vendor-chart-CjKcE1LT.js (new) 452 kB 🔴 +452 kB 🔴 +99 kB 🔴 +81 kB
assets/vendor-chart-DZdD68iT.js (removed) 452 kB 🟢 -452 kB 🟢 -99 kB 🟢 -81 kB
assets/vendor-tiptap-D3vdntxj.js (new) 232 kB 🔴 +232 kB 🔴 +45.7 kB 🔴 +37.7 kB
assets/vendor-tiptap-DFkXpum7.js (removed) 232 kB 🟢 -232 kB 🟢 -45.7 kB 🟢 -37.7 kB
assets/vendor-vue-DdfHg-Fv.js (new) 165 kB 🔴 +165 kB 🔴 +38.3 kB 🔴 +32.4 kB
assets/vendor-vue-DMH2Ziq4.js (removed) 165 kB 🟢 -165 kB 🟢 -38.3 kB 🟢 -32.4 kB
assets/vendor-reka-ui-7Sidv1he.js (removed) 111 kB 🟢 -111 kB 🟢 -20.4 kB 🟢 -17.7 kB
assets/vendor-reka-ui-DoSKDsy1.js (new) 111 kB 🔴 +111 kB 🔴 +20.4 kB 🔴 +17.7 kB
assets/vendor-xterm-BF8peZ5_.js 420 kB 420 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B

Status: 7 added / 7 removed

Other — 5.25 MB (baseline 5.25 MB) • ⚪ 0 B

Bundles that do not match a named category

File Before After Δ Raw Δ Gzip Δ Brotli
assets/SubscriptionRequiredDialogContent-BvbvWynK.js (removed) 29.4 kB 🟢 -29.4 kB 🟢 -6.52 kB 🟢 -5.67 kB
assets/SubscriptionRequiredDialogContent-CZEMip6K.js (new) 29.4 kB 🔴 +29.4 kB 🔴 +6.52 kB 🔴 +5.66 kB
assets/WidgetRecordAudio-D3ctsdUL.js (removed) 20.5 kB 🟢 -20.5 kB 🟢 -5.25 kB 🟢 -4.65 kB
assets/WidgetRecordAudio-DCdfAZOu.js (new) 20.5 kB 🔴 +20.5 kB 🔴 +5.25 kB 🔴 +4.65 kB
assets/AudioPreviewPlayer--jpgfdfy.js (removed) 13.4 kB 🟢 -13.4 kB 🟢 -3.36 kB 🟢 -3.02 kB
assets/AudioPreviewPlayer-CwDCC3dW.js (new) 13.4 kB 🔴 +13.4 kB 🔴 +3.36 kB 🔴 +3.01 kB
assets/ValueControlPopover-DfiQL_Ec.js (removed) 5.53 kB 🟢 -5.53 kB 🟢 -1.72 kB 🟢 -1.53 kB
assets/ValueControlPopover-Dk046e7e.js (new) 5.53 kB 🔴 +5.53 kB 🔴 +1.72 kB 🔴 +1.53 kB
assets/WidgetGalleria-COWeMCgW.js (removed) 4.14 kB 🟢 -4.14 kB 🟢 -1.46 kB 🟢 -1.32 kB
assets/WidgetGalleria-u8z8JpeW.js (new) 4.14 kB 🔴 +4.14 kB 🔴 +1.46 kB 🔴 +1.32 kB
assets/WidgetColorPicker-DGX-Lcm1.js (new) 3.44 kB 🔴 +3.44 kB 🔴 +1.39 kB 🔴 +1.25 kB
assets/WidgetColorPicker-DRdtabWC.js (removed) 3.44 kB 🟢 -3.44 kB 🟢 -1.4 kB 🟢 -1.25 kB
assets/WidgetImageCompare-BAyqYPiH.js (removed) 3.21 kB 🟢 -3.21 kB 🟢 -1.1 kB 🟢 -978 B
assets/WidgetImageCompare-BqMqfHCp.js (new) 3.21 kB 🔴 +3.21 kB 🔴 +1.1 kB 🔴 +955 B
assets/WidgetTextarea-BazhZ5sg.js (new) 3.12 kB 🔴 +3.12 kB 🔴 +1.22 kB 🔴 +1.1 kB
assets/WidgetTextarea-DHhQ3Cdi.js (removed) 3.12 kB 🟢 -3.12 kB 🟢 -1.23 kB 🟢 -1.11 kB
assets/WidgetMarkdown-B83r4lp_.js (removed) 3.12 kB 🟢 -3.12 kB 🟢 -1.29 kB 🟢 -1.14 kB
assets/WidgetMarkdown-KyqYr3G1.js (new) 3.12 kB 🔴 +3.12 kB 🔴 +1.29 kB 🔴 +1.13 kB
assets/WidgetAudioUI-86iGAAZp.js (new) 2.93 kB 🔴 +2.93 kB 🔴 +1.18 kB 🔴 +1.07 kB
assets/WidgetAudioUI-B-rfMLTB.js (removed) 2.93 kB 🟢 -2.93 kB 🟢 -1.18 kB 🟢 -1.07 kB
assets/WidgetToggleSwitch-B_PgioSV.js (new) 2.7 kB 🔴 +2.7 kB 🔴 +1.14 kB 🔴 +1.04 kB
assets/WidgetToggleSwitch-CORfp_aB.js (removed) 2.7 kB 🟢 -2.7 kB 🟢 -1.14 kB 🟢 -1.03 kB
assets/MediaVideoTop-BrNs2ijx.js (removed) 2.65 kB 🟢 -2.65 kB 🟢 -1.01 kB 🟢 -868 B
assets/MediaVideoTop-CPde8gdX.js (new) 2.65 kB 🔴 +2.65 kB 🔴 +1.01 kB 🔴 +868 B
assets/WidgetChart-B_PoC3q5.js (new) 2.48 kB 🔴 +2.48 kB 🔴 +930 B 🔴 +814 B
assets/WidgetChart-CTa5K4p_.js (removed) 2.48 kB 🟢 -2.48 kB 🟢 -931 B 🟢 -814 B
assets/WidgetInputText-BRtrn1kn.js (new) 2.03 kB 🔴 +2.03 kB 🔴 +932 B 🔴 +839 B
assets/WidgetInputText-BusEilc1.js (removed) 2.03 kB 🟢 -2.03 kB 🟢 -935 B 🟢 -872 B
assets/MediaImageTop-bDoNEAep.js (removed) 1.75 kB 🟢 -1.75 kB 🟢 -842 B 🟢 -727 B
assets/MediaImageTop-gnqitPRj.js (new) 1.75 kB 🔴 +1.75 kB 🔴 +842 B 🔴 +718 B
assets/Media3DTop-C_Xesf-B.js (removed) 1.53 kB 🟢 -1.53 kB 🟢 -778 B 🟢 -666 B
assets/Media3DTop-CpBf6tl1.js (new) 1.53 kB 🔴 +1.53 kB 🔴 +774 B 🔴 +666 B
assets/MediaAudioTop-D83ByhbS.js (new) 1.46 kB 🔴 +1.46 kB 🔴 +736 B 🔴 +621 B
assets/MediaAudioTop-DUiRGHAk.js (removed) 1.46 kB 🟢 -1.46 kB 🟢 -738 B 🟢 -620 B
assets/WidgetSelect-BDf0uC_c.js (new) 772 B 🔴 +772 B 🔴 +375 B 🔴 +338 B
assets/WidgetSelect-Dcr_vrvl.js (removed) 772 B 🟢 -772 B 🟢 -376 B 🟢 -343 B
assets/WidgetInputNumber-C08l32Rw.js (new) 712 B 🔴 +712 B 🔴 +359 B 🔴 +302 B
assets/WidgetInputNumber-DqJoZ6Kk.js (removed) 712 B 🟢 -712 B 🟢 -363 B 🟢 -327 B
assets/Load3D-Dep3RcfE.js (removed) 463 B 🟢 -463 B 🟢 -283 B 🟢 -238 B
assets/Load3D-pQugPmVu.js (new) 463 B 🔴 +463 B 🔴 +280 B 🔴 +239 B
assets/WidgetLegacy-9FFRAnmT.js (new) 403 B 🔴 +403 B 🔴 +250 B 🔴 +211 B
assets/WidgetLegacy-Duz4cnZB.js (removed) 403 B 🟢 -403 B 🟢 -251 B 🟢 -212 B
assets/commands-B32ZbeYu.js 16.5 kB 16.5 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/commands-B7wQT83I.js 17 kB 17 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/commands-BK3JVjMG.js 15.7 kB 15.7 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/commands-C6twMpaZ.js 15.5 kB 15.5 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/commands-CDUWpEwM.js 18.3 kB 18.3 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/commands-CfZ6FPZ-.js 15.7 kB 15.7 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/commands-COIPP_pv.js 17 kB 17 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/commands-CoPn_77e.js 14.7 kB 14.7 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/commands-CuRNS4XD.js 14.9 kB 14.9 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/commands-DBHjCSPA.js 16.2 kB 16.2 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/commands-DZJaRLKH.js 15.7 kB 15.7 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/main-8eC7XcBf.js 95 kB 95 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/main-BpcYE6Bq.js 109 kB 109 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/main-BRhbiQsB.js 129 kB 129 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/main-BrWdnTiG.js 113 kB 113 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/main-C-cUNbuc.js 123 kB 123 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/main-CGe0e9vH.js 106 kB 106 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/main-Cv9Dlj-b.js 107 kB 107 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/main-CzsdJqwO.js 94.3 kB 94.3 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/main-Dbu4m_fl.js 133 kB 133 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/main-DwAX_AEJ.js 149 kB 149 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/main-kiVYDd2_.js 110 kB 110 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/nodeDefs-B-XzzBeS.js 317 kB 317 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/nodeDefs-BGwoeek4.js 329 kB 329 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/nodeDefs-C6xl5-mL.js 358 kB 358 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/nodeDefs-CRZGOJB7.js 310 kB 310 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/nodeDefs-D8-Yzlzh.js 289 kB 289 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/nodeDefs-Du8VrAwA.js 320 kB 320 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/nodeDefs-jjlLVrIs.js 317 kB 317 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/nodeDefs-JQwk1kgy.js 292 kB 292 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/nodeDefs-JuuXdMpv.js 391 kB 391 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/nodeDefs-l2Y20bod.js 314 kB 314 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/nodeDefs-VLMdhOwo.js 357 kB 357 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/OBJLoader2WorkerModule-DTMpvldF.js 109 kB 109 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/widgetPropFilter-BIbGSUAt.js 1.28 kB 1.28 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B

Status: 21 added / 21 removed

@AustinMroz AustinMroz marked this pull request as ready for review January 13, 2026 23:03
@AustinMroz AustinMroz requested a review from a team as a code owner January 13, 2026 23:03
@dosubot dosubot bot added the size:L This PR changes 100-499 lines, ignoring generated files. label Jan 13, 2026
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: 4

Caution

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

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

8-8: Unnecessary non-null assertion.

The v-if="enableNodePreview && hoveredSuggestion" already guarantees hoveredSuggestion is defined. The ! assertion is redundant and violates the guideline to avoid type assertions. Simply pass hoveredSuggestion directly since onAddNode already guards against undefined.

Suggested fix
-      @mousedown.stop="onAddNode(hoveredSuggestion!)"
+      @mousedown.stop="onAddNode(hoveredSuggestion)"

191-198: Potential out-of-bounds array access.

suggestions.value[index] has no bounds check. If index >= suggestions.value.length, this will set hoveredSuggestion to undefined silently. While not a crash, it could cause unexpected behavior if the virtual list passes an invalid index.

Optional defensive fix
 const setHoverSuggestion = (index: number) => {
-  if (index === -1) {
+  if (index === -1 || index >= suggestions.value.length) {
     hoveredSuggestion.value = undefined
     return
   }
   const value = suggestions.value[index]
   hoveredSuggestion.value = value
 }
🤖 Fix all issues with AI agents
In @src/components/searchbox/NodeSearchBox.vue:
- Around line 142-156: The computed property suggestions currently calls
debouncedTrackSearch(query), creating a side effect inside suggestions; remove
that call so suggestions (the computed defined in NodeSearchBox.vue) only
returns either nodeFrequencyStore.topNodeDefs or the result of
nodeDefStore.nodeSearchService.searchNode(debouncedQuery.value, filters, {
limit: searchLimit }); instead, add a watcher (watch or watchEffect) on
debouncedQuery (and include filters if telemetry should depend on it) that
invokes debouncedTrackSearch(debouncedQuery.value) for telemetry; ensure the
watcher is created alongside the suggestions computed and that no other side
effects remain inside suggestions.
- Around line 158-162: The virtual list uses a hardcoded itemHeight
(useVirtualList(..., { itemHeight: 40 })) but NodeSearchItem has variable
height; update the implementation to measure the first rendered item's actual
height (pattern used in VirtualGrid.vue) and pass that measured height into
useVirtualList (or alternatively enforce a fixed 40px height via CSS on
NodeSearchItem if you choose a fixed-size approach). Concretely: render the
first suggestion into a ref, read its offsetHeight (or use ResizeObserver) to
compute itemHeight, update the reactive value used in the call to useVirtualList
(virtualList/containerProps/wrapperProps) so the virtual scroller gets the
correct dynamic itemHeight and prevents overscroll.
- Around line 60-67: Add keyboard navigation handlers to the search input: wire
@keydown.arrow-down and @keydown.arrow-up to new methods (e.g., onArrowDown and
onArrowUp) that move the hovered suggestion index through the suggestions array
and set hoveredSuggestion accordingly (use current hoveredSuggestion to
determine the current index, clamp or wrap at bounds). Update or create helper
logic in the component to compute the next/previous suggestion and ensure
onAddNode still works with hoveredSuggestion; use the same refs/props: inputRef,
currentQuery, hoveredSuggestion, suggestions, and onAddNode to locate where to
implement the change.

In @src/components/searchbox/NodeSearchBoxPopover.vue:
- Around line 14-18: The inline comment claiming "100ms is the duration of the
transition in the dialog component" is stale relative to the transition classes
used (enterActiveClass: 'transition-all duration-20 ease-out' and
leaveActiveClass: 'transition-all duration-20 ease-in'); either update that
comment to state 20ms (or remove the comment entirely) next to these transition
class definitions (enterActiveClass/leaveActiveClass/leaveToClass) so the
comment matches the actual duration.
📜 Review details

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 6f3855f and 56df4c5.

📒 Files selected for processing (3)
  • src/components/primevueOverride/AutoCompletePlus.vue
  • src/components/searchbox/NodeSearchBox.vue
  • src/components/searchbox/NodeSearchBoxPopover.vue
💤 Files with no reviewable changes (1)
  • src/components/primevueOverride/AutoCompletePlus.vue
🧰 Additional context used
📓 Path-based instructions (10)
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

src/**/*.vue: Use Vue 3 Single File Components (SFCs) with Composition API only
Use <script setup lang="ts"> for component logic in Vue SFCs
Avoid <style> blocks in Vue components - use Tailwind 4 styling instead
Use vue-i18n for all string literals in Vue components - place translation entries in src/locales/en/main.json
Use Tailwind utility classes instead of dark: variant - use semantic values from style.css theme (e.g., bg-node-component-surface)
Use cn() utility from @/utils/tailwindUtil for merging Tailwind class names instead of :class="[]" or hardcoding
Never use !important or ! Tailwind prefix - fix interfering classes instead
Use Tailwind fraction utilities instead of arbitrary percentage values (e.g., w-4/5 instead of w-[80%])
Use TypeScript Vue 3.5 style default prop declaration with reactive props destructuring - avoid withDefaults or runtime props
Prefer defineModel over separately defining a prop and emit for v-model bindings
Define slots via template usage, not via defineSlots
Use same-name shorthand for slot prop bindings (e.g., :isExpanded instead of :is-expanded="isExpanded")
Do not import Vue macros unnecessarily
Avoid new usage of PrimeVue components
Use Tailwind's plurals system via i18n instead of hardcoding ...

Files:

  • src/components/searchbox/NodeSearchBoxPopover.vue
  • src/components/searchbox/NodeSearchBox.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/NodeSearchBoxPopover.vue
  • src/components/searchbox/NodeSearchBox.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

src/**/*.{ts,tsx,vue}: Use separate import type statements instead of inline type in mixed imports
Apply Prettier formatting with 2-space indentation, single quotes, no trailing semicolons, 80-character width
Sort and group imports by plugin, run pnpm format before committing
Never use any type - use proper TypeScript types
Never use as any type assertions - fix the underlying type issue
Write code that is expressive and self-documenting - avoid unnecessary comments
Do not add or retain redundant comments - clean as you go
Avoid mutable state - prefer immutability and assignment at point of declaration
Watch out for Code Smells and refactor to avoid them

Files:

  • src/components/searchbox/NodeSearchBoxPopover.vue
  • src/components/searchbox/NodeSearchBox.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/NodeSearchBoxPopover.vue
  • src/components/searchbox/NodeSearchBox.vue
src/**/*.{vue,ts,tsx}

📄 CodeRabbit inference engine (src/CLAUDE.md)

Follow Vue 3 composition API style guide

Files:

  • src/components/searchbox/NodeSearchBoxPopover.vue
  • src/components/searchbox/NodeSearchBox.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/NodeSearchBoxPopover.vue
  • src/components/searchbox/NodeSearchBox.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

Name Vue components in PascalCase (e.g., MenuHamburger.vue)

Files:

  • src/components/searchbox/NodeSearchBoxPopover.vue
  • 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/NodeSearchBoxPopover.vue
  • 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/NodeSearchBoxPopover.vue
  • src/components/searchbox/NodeSearchBox.vue
src/**/*.{ts,vue}

📄 CodeRabbit inference engine (AGENTS.md)

src/**/*.{ts,vue}: Use ref for reactive state, computed() for derived values, and watch/watchEffect for side effects in Composition API
Avoid using ref with watch if a computed would suffice - minimize refs and derived state
Use provide/inject for dependency injection only when simpler alternatives (Store or shared composable) won't work
Leverage VueUse functions for performance-enhancing composables
Use VueUse function for useI18n in composition API for string literals

Files:

  • src/components/searchbox/NodeSearchBoxPopover.vue
  • src/components/searchbox/NodeSearchBox.vue
🧠 Learnings (17)
📓 Common learnings
Learnt from: CR
Repo: Comfy-Org/ComfyUI_frontend PR: 0
File: src/components/CLAUDE.md:0-0
Timestamp: 2025-11-24T19:47:45.616Z
Learning: Applies to src/components/**/*.vue : Replace PrimeVue Chips component with AutoComplete with multiple enabled
📚 Learning: 2025-11-24T19:47:45.616Z
Learnt from: CR
Repo: Comfy-Org/ComfyUI_frontend PR: 0
File: src/components/CLAUDE.md:0-0
Timestamp: 2025-11-24T19:47:45.616Z
Learning: Applies to src/components/**/*.vue : Replace PrimeVue OverlayPanel component with Popover

Applied to files:

  • src/components/searchbox/NodeSearchBoxPopover.vue
📚 Learning: 2025-11-24T19:47:45.616Z
Learnt from: CR
Repo: Comfy-Org/ComfyUI_frontend PR: 0
File: src/components/CLAUDE.md:0-0
Timestamp: 2025-11-24T19:47:45.616Z
Learning: Applies to src/components/**/*.vue : Replace PrimeVue InputSwitch component with ToggleSwitch

Applied to files:

  • src/components/searchbox/NodeSearchBoxPopover.vue
  • src/components/searchbox/NodeSearchBox.vue
📚 Learning: 2025-11-24T19:47:45.616Z
Learnt from: CR
Repo: Comfy-Org/ComfyUI_frontend PR: 0
File: src/components/CLAUDE.md:0-0
Timestamp: 2025-11-24T19:47:45.616Z
Learning: Applies to src/components/**/*.vue : Replace PrimeVue Dropdown component with Select

Applied to files:

  • src/components/searchbox/NodeSearchBoxPopover.vue
📚 Learning: 2025-12-09T03:49:52.828Z
Learnt from: christian-byrne
Repo: Comfy-Org/ComfyUI_frontend PR: 6300
File: src/platform/updates/components/WhatsNewPopup.vue:5-13
Timestamp: 2025-12-09T03:49:52.828Z
Learning: In Vue files across the ComfyUI_frontend repo, when a button is needed, prefer the repo's common button components from src/components/button/ (IconButton.vue, TextButton.vue, IconTextButton.vue) over plain HTML <button> elements. These components wrap PrimeVue with the project’s design system styling. Use only the common button components for consistency and theming, and import them from src/components/button/ as needed.

Applied to files:

  • src/components/searchbox/NodeSearchBoxPopover.vue
  • src/components/searchbox/NodeSearchBox.vue
📚 Learning: 2025-12-09T21:40:12.361Z
Learnt from: benceruleanlu
Repo: Comfy-Org/ComfyUI_frontend PR: 7297
File: src/components/actionbar/ComfyActionbar.vue:33-43
Timestamp: 2025-12-09T21:40:12.361Z
Learning: In Vue single-file components, allow inline Tailwind CSS class strings for static classes and avoid extracting them into computed properties solely for readability. Prefer keeping static class names inline for simplicity and performance. For dynamic or conditional classes, use Vue bindings (e.g., :class) to compose classes.

Applies to all Vue files in the repository (e.g., src/**/*.vue) where Tailwind utilities are used for static styling.

Applied to files:

  • src/components/searchbox/NodeSearchBoxPopover.vue
  • src/components/searchbox/NodeSearchBox.vue
📚 Learning: 2025-12-16T22:26:49.463Z
Learnt from: DrJKL
Repo: Comfy-Org/ComfyUI_frontend PR: 7537
File: src/components/ui/button/Button.vue:17-17
Timestamp: 2025-12-16T22:26:49.463Z
Learning: In Vue 3.5+ with <script setup>, when using defineProps<Props>() with partial destructuring (e.g., const { as = 'button', class: customClass = '' } = defineProps<Props>() ), props that are not destructured (e.g., variant, size) stay accessible by name in the template scope. This pattern is valid: you can destructure only a subset of props for convenience while referencing the remaining props directly in template expressions. Apply this guideline to Vue components across the codebase (all .vue files).

Applied to files:

  • src/components/searchbox/NodeSearchBoxPopover.vue
  • src/components/searchbox/NodeSearchBox.vue
📚 Learning: 2025-12-22T21:36:08.369Z
Learnt from: DrJKL
Repo: Comfy-Org/ComfyUI_frontend PR: 7649
File: src/platform/cloud/subscription/components/PricingTable.vue:185-201
Timestamp: 2025-12-22T21:36:08.369Z
Learning: In Vue components, avoid creating single-use variants for common UI components (e.g., Button and other shared components). Aim for reusable variants that cover multiple use cases. It’s acceptable to temporarily mix variant props with inline Tailwind classes when a styling need is unique to one place, but plan and consolidate into shared, reusable variants as patterns emerge across the codebase.

Applied to files:

  • src/components/searchbox/NodeSearchBoxPopover.vue
  • src/components/searchbox/NodeSearchBox.vue
📚 Learning: 2026-01-08T02:26:18.357Z
Learnt from: DrJKL
Repo: Comfy-Org/ComfyUI_frontend PR: 7893
File: src/components/button/IconGroup.vue:5-6
Timestamp: 2026-01-08T02:26:18.357Z
Learning: In components that use the cn utility from '@/utils/tailwindUtil' with tailwind-merge, rely on the behavior that conflicting Tailwind classes are resolved by keeping the last one. For example, cn('base-classes bg-default', propClass) will have any conflicting background class from propClass override bg-default. This additive pattern is intentional and aligns with the shadcn-ui convention; ensure you document or review expectations accordingly in Vue components.

Applied to files:

  • src/components/searchbox/NodeSearchBoxPopover.vue
  • src/components/searchbox/NodeSearchBox.vue
📚 Learning: 2025-12-11T12:25:15.470Z
Learnt from: christian-byrne
Repo: Comfy-Org/ComfyUI_frontend PR: 7358
File: src/components/dialog/content/signin/SignUpForm.vue:45-54
Timestamp: 2025-12-11T12:25:15.470Z
Learning: This repository uses CI automation to format code (pnpm format). Do not include manual formatting suggestions in code reviews for Comfy-Org/ComfyUI_frontend. If formatting issues are detected, rely on the CI formatter or re-run pnpm format. Focus reviews on correctness, readability, performance, accessibility, and maintainability rather than style formatting.

Applied to files:

  • src/components/searchbox/NodeSearchBoxPopover.vue
  • src/components/searchbox/NodeSearchBox.vue
📚 Learning: 2025-12-18T02:07:38.870Z
Learnt from: DrJKL
Repo: Comfy-Org/ComfyUI_frontend PR: 7598
File: src/components/sidebar/tabs/AssetsSidebarTab.vue:131-131
Timestamp: 2025-12-18T02:07:38.870Z
Learning: Tailwind CSS v4 safe utilities (e.g., items-center-safe, justify-*-safe, place-*-safe) are allowed in Vue components under src/ and in story files. Do not flag these specific safe variants as invalid when reviewing code in src/**/*.vue or related stories.

Applied to files:

  • src/components/searchbox/NodeSearchBoxPopover.vue
  • src/components/searchbox/NodeSearchBox.vue
📚 Learning: 2025-12-18T21:15:46.862Z
Learnt from: DrJKL
Repo: Comfy-Org/ComfyUI_frontend PR: 7603
File: src/components/queue/QueueOverlayHeader.vue:49-59
Timestamp: 2025-12-18T21:15:46.862Z
Learning: In the ComfyUI_frontend repository, for Vue components, do not add aria-label to buttons that have visible text content (e.g., buttons containing <span> text). The visible text provides the accessible name. Use aria-label only for elements without visible labels (e.g., icon-only buttons). If a button has no visible label, provide a clear aria-label or associate with an aria-labelledby describing its action.

Applied to files:

  • src/components/searchbox/NodeSearchBoxPopover.vue
  • src/components/searchbox/NodeSearchBox.vue
📚 Learning: 2025-12-21T01:06:02.786Z
Learnt from: DrJKL
Repo: Comfy-Org/ComfyUI_frontend PR: 7649
File: src/components/graph/selectionToolbox/ColorPickerButton.vue:15-18
Timestamp: 2025-12-21T01:06:02.786Z
Learning: In Comfy-Org/ComfyUI_frontend, in Vue component files, when a filled icon is required (e.g., 'pi pi-circle-fill'), you may mix PrimeIcons with Lucide icons since Lucide lacks filled variants. This mixed usage is acceptable when one icon library does not provide an equivalent filled icon. Apply consistently across Vue components in the src directory where icons are used, and document the rationale when a mixed approach is chosen.

Applied to files:

  • src/components/searchbox/NodeSearchBoxPopover.vue
  • src/components/searchbox/NodeSearchBox.vue
📚 Learning: 2025-12-18T16:03:02.066Z
Learnt from: henrikvilhelmberglund
Repo: Comfy-Org/ComfyUI_frontend PR: 7617
File: src/components/actionbar/ComfyActionbar.vue:301-308
Timestamp: 2025-12-18T16:03:02.066Z
Learning: In the ComfyUI frontend queue system, useQueuePendingTaskCountStore().count indicates the number of tasks in the queue, where count = 1 means a single active/running task and count > 1 means there are pending tasks in addition to the active task. Therefore, in src/components/actionbar/ComfyActionbar.vue, enable the 'Clear Pending Tasks' button only when count > 1 to avoid clearing the currently running task. The active task should be canceled using the 'Cancel current run' button instead. This rule should be enforced via a conditional check on the queue count, with appropriate disabled/aria-disabled states for accessibility, and tests should verify behavior for count = 1 and count > 1.

Applied to files:

  • src/components/searchbox/NodeSearchBoxPopover.vue
  • src/components/searchbox/NodeSearchBox.vue
📚 Learning: 2026-01-12T17:39:27.738Z
Learnt from: DrJKL
Repo: Comfy-Org/ComfyUI_frontend PR: 7906
File: src/components/sidebar/tabs/AssetsSidebarTab.vue:545-552
Timestamp: 2026-01-12T17:39:27.738Z
Learning: In Vue/TypeScript files (src/**/*.{ts,tsx,vue}), prefer if/else statements over ternary operators when performing side effects or actions (e.g., mutating state, calling methods with side effects). Ternaries should be reserved for computing and returning values.

Applied to files:

  • src/components/searchbox/NodeSearchBoxPopover.vue
  • src/components/searchbox/NodeSearchBox.vue
📚 Learning: 2025-11-24T19:47:45.616Z
Learnt from: CR
Repo: Comfy-Org/ComfyUI_frontend PR: 0
File: src/components/CLAUDE.md:0-0
Timestamp: 2025-11-24T19:47:45.616Z
Learning: Applies to src/components/**/*.vue : Replace PrimeVue Chips component with AutoComplete with multiple enabled

Applied to files:

  • src/components/searchbox/NodeSearchBox.vue
📚 Learning: 2025-12-11T03:55:57.926Z
Learnt from: simula-r
Repo: Comfy-Org/ComfyUI_frontend PR: 7252
File: src/renderer/extensions/vueNodes/components/ImagePreview.vue:151-158
Timestamp: 2025-12-11T03:55:57.926Z
Learning: In src/renderer/extensions/vueNodes/components/ImagePreview.vue and LGraphNode.vue, keyboard navigation for image galleries should respond to node-level focus (via keyEvent injection from LGraphNode), not require focus within the image preview wrapper itself. This allows users to navigate the gallery with arrow keys immediately when the node is focused/selected.

Applied to files:

  • src/components/searchbox/NodeSearchBox.vue
🔇 Additional comments (3)
src/components/searchbox/NodeSearchBox.vue (3)

69-89: LGTM!

The virtual list implementation with useVirtualList is a good performance improvement. The empty state handling and i18n usage are correct.


167-174: LGTM!

The optional parameter with early return guard is good defensive coding. Using debouncedQuery.value for telemetry tracking is appropriate.


35-42: LGTM!

The filter button has proper accessibility with aria-label. Using PrimeIcons (pi pi-filter) is acceptable per project conventions when Lucide lacks an equivalent icon.

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: 2

Caution

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

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

6-9: Avoid non-null assertion; rely on guard in onAddNode.

The ! assertion on hoveredSuggestion bypasses TypeScript safety. Since onAddNode already guards against undefined, pass the value directly and let the function handle it.

♻️ Proposed fix
-      @mousedown.stop="onAddNode(hoveredSuggestion!)"
+      @mousedown.stop="onAddNode(hoveredSuggestion)"
browser_tests/fixtures/components/ComfyNodeSearchBox.ts (1)

74-82: Update selector to match Chip component classes.

The filterChips locator uses .p-autocomplete-chip-item, but SearchFilterChip renders PrimeVue's <Chip> component (from primevue/chip), which does not produce this class. The selector will not match the current DOM. Update to target the actual classes rendered by the Chip component (e.g., .p-chip), or refactor SearchFilterChip to use AutoComplete with multiple enabled, which would produce .p-autocomplete-chip-item elements.

🤖 Fix all issues with AI agents
In @src/components/searchbox/NodeSearchBox.vue:
- Around line 72-76: The container div in NodeSearchBox.vue that binds
containerProps uses max-h-150 but lacks overflow handling, so make it scrollable
by adding an overflow class (e.g., overflow-auto or overflow-y-auto) to the
class list on the div with v-bind="containerProps" (the element that currently
has "bg-comfy-menu-bg p-1 rounded-lg border-border-subtle border max-h-150") so
the virtual list inside wrapperProps can scroll when content exceeds the max
height.
- Around line 195-204: The hover selection has two off-by-one bugs: change the
computed hoveredSuggestion to check for an explicit index (e.g.,
hoveredIndex.value !== undefined) instead of a truthy check so index 0 is valid,
and update updateIndexBy to clamp against suggestions.value.length - 1 (not
length) and ensure you handle empty suggestions (e.g., if length is 0 set
hoveredIndex.value = undefined or clamp to -1/undefined). Specifically update
hoveredSuggestion and updateIndexBy (the functions/refs named hoveredIndex,
hoveredSuggestion, updateIndexBy, and suggestions) to use an explicit undefined
check and to use Math.min(..., suggestions.value.length - 1) with proper
empty-array handling.
📜 Review details

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 56df4c5 and 9b198df.

📒 Files selected for processing (3)
  • browser_tests/fixtures/components/ComfyNodeSearchBox.ts
  • src/components/searchbox/NodeSearchBox.vue
  • src/components/searchbox/NodeSearchBoxPopover.vue
🧰 Additional context used
📓 Path-based instructions (10)
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

src/**/*.vue: Use Vue 3 Single File Components (SFCs) with Composition API only
Use <script setup lang="ts"> for component logic in Vue SFCs
Avoid <style> blocks in Vue components - use Tailwind 4 styling instead
Use vue-i18n for all string literals in Vue components - place translation entries in src/locales/en/main.json
Use Tailwind utility classes instead of dark: variant - use semantic values from style.css theme (e.g., bg-node-component-surface)
Use cn() utility from @/utils/tailwindUtil for merging Tailwind class names instead of :class="[]" or hardcoding
Never use !important or ! Tailwind prefix - fix interfering classes instead
Use Tailwind fraction utilities instead of arbitrary percentage values (e.g., w-4/5 instead of w-[80%])
Use TypeScript Vue 3.5 style default prop declaration with reactive props destructuring - avoid withDefaults or runtime props
Prefer defineModel over separately defining a prop and emit for v-model bindings
Define slots via template usage, not via defineSlots
Use same-name shorthand for slot prop bindings (e.g., :isExpanded instead of :is-expanded="isExpanded")
Do not import Vue macros unnecessarily
Avoid new usage of PrimeVue components
Use Tailwind's plurals system via i18n instead of hardcoding ...

Files:

  • src/components/searchbox/NodeSearchBox.vue
  • src/components/searchbox/NodeSearchBoxPopover.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/components/searchbox/NodeSearchBoxPopover.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

src/**/*.{ts,tsx,vue}: Use separate import type statements instead of inline type in mixed imports
Apply Prettier formatting with 2-space indentation, single quotes, no trailing semicolons, 80-character width
Sort and group imports by plugin, run pnpm format before committing
Never use any type - use proper TypeScript types
Never use as any type assertions - fix the underlying type issue
Write code that is expressive and self-documenting - avoid unnecessary comments
Do not add or retain redundant comments - clean as you go
Avoid mutable state - prefer immutability and assignment at point of declaration
Watch out for Code Smells and refactor to avoid them

Files:

  • src/components/searchbox/NodeSearchBox.vue
  • src/components/searchbox/NodeSearchBoxPopover.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/components/searchbox/NodeSearchBoxPopover.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/components/searchbox/NodeSearchBoxPopover.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/components/searchbox/NodeSearchBoxPopover.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

Name Vue components in PascalCase (e.g., MenuHamburger.vue)

Files:

  • src/components/searchbox/NodeSearchBox.vue
  • src/components/searchbox/NodeSearchBoxPopover.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/searchbox/NodeSearchBoxPopover.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
  • src/components/searchbox/NodeSearchBoxPopover.vue
src/**/*.{ts,vue}

📄 CodeRabbit inference engine (AGENTS.md)

src/**/*.{ts,vue}: Use ref for reactive state, computed() for derived values, and watch/watchEffect for side effects in Composition API
Avoid using ref with watch if a computed would suffice - minimize refs and derived state
Use provide/inject for dependency injection only when simpler alternatives (Store or shared composable) won't work
Leverage VueUse functions for performance-enhancing composables
Use VueUse function for useI18n in composition API for string literals

Files:

  • src/components/searchbox/NodeSearchBox.vue
  • src/components/searchbox/NodeSearchBoxPopover.vue
🧠 Learnings (35)
📓 Common learnings
Learnt from: CR
Repo: Comfy-Org/ComfyUI_frontend PR: 0
File: src/components/CLAUDE.md:0-0
Timestamp: 2025-11-24T19:47:45.616Z
Learning: Applies to src/components/**/*.vue : Replace PrimeVue Chips component with AutoComplete with multiple enabled
📚 Learning: 2025-11-24T19:47:45.616Z
Learnt from: CR
Repo: Comfy-Org/ComfyUI_frontend PR: 0
File: src/components/CLAUDE.md:0-0
Timestamp: 2025-11-24T19:47:45.616Z
Learning: Applies to src/components/**/*.vue : Replace PrimeVue Chips component with AutoComplete with multiple enabled

Applied to files:

  • src/components/searchbox/NodeSearchBox.vue
📚 Learning: 2025-11-24T19:47:45.616Z
Learnt from: CR
Repo: Comfy-Org/ComfyUI_frontend PR: 0
File: src/components/CLAUDE.md:0-0
Timestamp: 2025-11-24T19:47:45.616Z
Learning: Applies to src/components/**/*.vue : Replace PrimeVue InputSwitch component with ToggleSwitch

Applied to files:

  • src/components/searchbox/NodeSearchBox.vue
  • src/components/searchbox/NodeSearchBoxPopover.vue
📚 Learning: 2025-12-11T03:55:57.926Z
Learnt from: simula-r
Repo: Comfy-Org/ComfyUI_frontend PR: 7252
File: src/renderer/extensions/vueNodes/components/ImagePreview.vue:151-158
Timestamp: 2025-12-11T03:55:57.926Z
Learning: In src/renderer/extensions/vueNodes/components/ImagePreview.vue and LGraphNode.vue, keyboard navigation for image galleries should respond to node-level focus (via keyEvent injection from LGraphNode), not require focus within the image preview wrapper itself. This allows users to navigate the gallery with arrow keys immediately when the node is focused/selected.

Applied to files:

  • src/components/searchbox/NodeSearchBox.vue
📚 Learning: 2026-01-10T00:24:17.695Z
Learnt from: CR
Repo: Comfy-Org/ComfyUI_frontend PR: 0
File: AGENTS.md:0-0
Timestamp: 2026-01-10T00:24:17.695Z
Learning: Applies to src/**/*.{ts,vue} : Avoid using `ref` with `watch` if a `computed` would suffice - minimize refs and derived state

Applied to files:

  • src/components/searchbox/NodeSearchBox.vue
📚 Learning: 2026-01-10T00:24:17.695Z
Learnt from: CR
Repo: Comfy-Org/ComfyUI_frontend PR: 0
File: AGENTS.md:0-0
Timestamp: 2026-01-10T00:24:17.695Z
Learning: Applies to src/**/*.{ts,vue} : Use `ref` for reactive state, `computed()` for derived values, and `watch`/`watchEffect` for side effects in Composition API

Applied to files:

  • src/components/searchbox/NodeSearchBox.vue
📚 Learning: 2025-11-24T19:47:02.860Z
Learnt from: CR
Repo: Comfy-Org/ComfyUI_frontend PR: 0
File: .github/copilot-instructions.md:0-0
Timestamp: 2025-11-24T19:47:02.860Z
Learning: Applies to src/**/*.vue : Use watch and watchEffect for side effects

Applied to files:

  • src/components/searchbox/NodeSearchBox.vue
📚 Learning: 2025-11-24T19:47:02.860Z
Learnt from: CR
Repo: Comfy-Org/ComfyUI_frontend PR: 0
File: .github/copilot-instructions.md:0-0
Timestamp: 2025-11-24T19:47:02.860Z
Learning: Applies to src/**/*.vue : Implement computed properties with computed()

Applied to files:

  • src/components/searchbox/NodeSearchBox.vue
📚 Learning: 2025-11-24T19:47:45.616Z
Learnt from: CR
Repo: Comfy-Org/ComfyUI_frontend PR: 0
File: src/components/CLAUDE.md:0-0
Timestamp: 2025-11-24T19:47:45.616Z
Learning: Applies to src/components/**/*.vue : Implement computed() for derived state in Vue 3 Composition API

Applied to files:

  • src/components/searchbox/NodeSearchBox.vue
📚 Learning: 2026-01-10T00:24:17.695Z
Learnt from: CR
Repo: Comfy-Org/ComfyUI_frontend PR: 0
File: AGENTS.md:0-0
Timestamp: 2026-01-10T00:24:17.695Z
Learning: Applies to src/**/*.{ts,tsx,vue} : Watch out for Code Smells and refactor to avoid them

Applied to files:

  • src/components/searchbox/NodeSearchBox.vue
📚 Learning: 2026-01-10T00:24:17.695Z
Learnt from: CR
Repo: Comfy-Org/ComfyUI_frontend PR: 0
File: AGENTS.md:0-0
Timestamp: 2026-01-10T00:24:17.695Z
Learning: Applies to src/**/*.vue : Use `cn()` utility from `@/utils/tailwindUtil` for merging Tailwind class names instead of `:class="[]"` or hardcoding

Applied to files:

  • src/components/searchbox/NodeSearchBox.vue
📚 Learning: 2026-01-10T00:24:17.695Z
Learnt from: CR
Repo: Comfy-Org/ComfyUI_frontend PR: 0
File: AGENTS.md:0-0
Timestamp: 2026-01-10T00:24:17.695Z
Learning: Applies to src/**/*.{ts,vue} : Leverage VueUse functions for performance-enhancing composables

Applied to files:

  • src/components/searchbox/NodeSearchBox.vue
📚 Learning: 2025-12-09T03:49:52.828Z
Learnt from: christian-byrne
Repo: Comfy-Org/ComfyUI_frontend PR: 6300
File: src/platform/updates/components/WhatsNewPopup.vue:5-13
Timestamp: 2025-12-09T03:49:52.828Z
Learning: In Vue files across the ComfyUI_frontend repo, when a button is needed, prefer the repo's common button components from src/components/button/ (IconButton.vue, TextButton.vue, IconTextButton.vue) over plain HTML <button> elements. These components wrap PrimeVue with the project’s design system styling. Use only the common button components for consistency and theming, and import them from src/components/button/ as needed.

Applied to files:

  • src/components/searchbox/NodeSearchBox.vue
  • src/components/searchbox/NodeSearchBoxPopover.vue
📚 Learning: 2025-12-09T21:40:12.361Z
Learnt from: benceruleanlu
Repo: Comfy-Org/ComfyUI_frontend PR: 7297
File: src/components/actionbar/ComfyActionbar.vue:33-43
Timestamp: 2025-12-09T21:40:12.361Z
Learning: In Vue single-file components, allow inline Tailwind CSS class strings for static classes and avoid extracting them into computed properties solely for readability. Prefer keeping static class names inline for simplicity and performance. For dynamic or conditional classes, use Vue bindings (e.g., :class) to compose classes.

Applies to all Vue files in the repository (e.g., src/**/*.vue) where Tailwind utilities are used for static styling.

Applied to files:

  • src/components/searchbox/NodeSearchBox.vue
  • src/components/searchbox/NodeSearchBoxPopover.vue
📚 Learning: 2025-12-16T22:26:49.463Z
Learnt from: DrJKL
Repo: Comfy-Org/ComfyUI_frontend PR: 7537
File: src/components/ui/button/Button.vue:17-17
Timestamp: 2025-12-16T22:26:49.463Z
Learning: In Vue 3.5+ with <script setup>, when using defineProps<Props>() with partial destructuring (e.g., const { as = 'button', class: customClass = '' } = defineProps<Props>() ), props that are not destructured (e.g., variant, size) stay accessible by name in the template scope. This pattern is valid: you can destructure only a subset of props for convenience while referencing the remaining props directly in template expressions. Apply this guideline to Vue components across the codebase (all .vue files).

Applied to files:

  • src/components/searchbox/NodeSearchBox.vue
  • src/components/searchbox/NodeSearchBoxPopover.vue
📚 Learning: 2025-12-22T21:36:08.369Z
Learnt from: DrJKL
Repo: Comfy-Org/ComfyUI_frontend PR: 7649
File: src/platform/cloud/subscription/components/PricingTable.vue:185-201
Timestamp: 2025-12-22T21:36:08.369Z
Learning: In Vue components, avoid creating single-use variants for common UI components (e.g., Button and other shared components). Aim for reusable variants that cover multiple use cases. It’s acceptable to temporarily mix variant props with inline Tailwind classes when a styling need is unique to one place, but plan and consolidate into shared, reusable variants as patterns emerge across the codebase.

Applied to files:

  • src/components/searchbox/NodeSearchBox.vue
  • src/components/searchbox/NodeSearchBoxPopover.vue
📚 Learning: 2026-01-08T02:26:18.357Z
Learnt from: DrJKL
Repo: Comfy-Org/ComfyUI_frontend PR: 7893
File: src/components/button/IconGroup.vue:5-6
Timestamp: 2026-01-08T02:26:18.357Z
Learning: In components that use the cn utility from '@/utils/tailwindUtil' with tailwind-merge, rely on the behavior that conflicting Tailwind classes are resolved by keeping the last one. For example, cn('base-classes bg-default', propClass) will have any conflicting background class from propClass override bg-default. This additive pattern is intentional and aligns with the shadcn-ui convention; ensure you document or review expectations accordingly in Vue components.

Applied to files:

  • src/components/searchbox/NodeSearchBox.vue
  • src/components/searchbox/NodeSearchBoxPopover.vue
📚 Learning: 2025-12-11T12:25:15.470Z
Learnt from: christian-byrne
Repo: Comfy-Org/ComfyUI_frontend PR: 7358
File: src/components/dialog/content/signin/SignUpForm.vue:45-54
Timestamp: 2025-12-11T12:25:15.470Z
Learning: This repository uses CI automation to format code (pnpm format). Do not include manual formatting suggestions in code reviews for Comfy-Org/ComfyUI_frontend. If formatting issues are detected, rely on the CI formatter or re-run pnpm format. Focus reviews on correctness, readability, performance, accessibility, and maintainability rather than style formatting.

Applied to files:

  • src/components/searchbox/NodeSearchBox.vue
  • src/components/searchbox/NodeSearchBoxPopover.vue
  • browser_tests/fixtures/components/ComfyNodeSearchBox.ts
📚 Learning: 2025-12-18T02:07:38.870Z
Learnt from: DrJKL
Repo: Comfy-Org/ComfyUI_frontend PR: 7598
File: src/components/sidebar/tabs/AssetsSidebarTab.vue:131-131
Timestamp: 2025-12-18T02:07:38.870Z
Learning: Tailwind CSS v4 safe utilities (e.g., items-center-safe, justify-*-safe, place-*-safe) are allowed in Vue components under src/ and in story files. Do not flag these specific safe variants as invalid when reviewing code in src/**/*.vue or related stories.

Applied to files:

  • src/components/searchbox/NodeSearchBox.vue
  • src/components/searchbox/NodeSearchBoxPopover.vue
📚 Learning: 2025-12-18T21:15:46.862Z
Learnt from: DrJKL
Repo: Comfy-Org/ComfyUI_frontend PR: 7603
File: src/components/queue/QueueOverlayHeader.vue:49-59
Timestamp: 2025-12-18T21:15:46.862Z
Learning: In the ComfyUI_frontend repository, for Vue components, do not add aria-label to buttons that have visible text content (e.g., buttons containing <span> text). The visible text provides the accessible name. Use aria-label only for elements without visible labels (e.g., icon-only buttons). If a button has no visible label, provide a clear aria-label or associate with an aria-labelledby describing its action.

Applied to files:

  • src/components/searchbox/NodeSearchBox.vue
  • src/components/searchbox/NodeSearchBoxPopover.vue
📚 Learning: 2025-12-21T01:06:02.786Z
Learnt from: DrJKL
Repo: Comfy-Org/ComfyUI_frontend PR: 7649
File: src/components/graph/selectionToolbox/ColorPickerButton.vue:15-18
Timestamp: 2025-12-21T01:06:02.786Z
Learning: In Comfy-Org/ComfyUI_frontend, in Vue component files, when a filled icon is required (e.g., 'pi pi-circle-fill'), you may mix PrimeIcons with Lucide icons since Lucide lacks filled variants. This mixed usage is acceptable when one icon library does not provide an equivalent filled icon. Apply consistently across Vue components in the src directory where icons are used, and document the rationale when a mixed approach is chosen.

Applied to files:

  • src/components/searchbox/NodeSearchBox.vue
  • src/components/searchbox/NodeSearchBoxPopover.vue
📚 Learning: 2025-12-18T16:03:02.066Z
Learnt from: henrikvilhelmberglund
Repo: Comfy-Org/ComfyUI_frontend PR: 7617
File: src/components/actionbar/ComfyActionbar.vue:301-308
Timestamp: 2025-12-18T16:03:02.066Z
Learning: In the ComfyUI frontend queue system, useQueuePendingTaskCountStore().count indicates the number of tasks in the queue, where count = 1 means a single active/running task and count > 1 means there are pending tasks in addition to the active task. Therefore, in src/components/actionbar/ComfyActionbar.vue, enable the 'Clear Pending Tasks' button only when count > 1 to avoid clearing the currently running task. The active task should be canceled using the 'Cancel current run' button instead. This rule should be enforced via a conditional check on the queue count, with appropriate disabled/aria-disabled states for accessibility, and tests should verify behavior for count = 1 and count > 1.

Applied to files:

  • src/components/searchbox/NodeSearchBox.vue
  • src/components/searchbox/NodeSearchBoxPopover.vue
📚 Learning: 2026-01-12T17:39:27.738Z
Learnt from: DrJKL
Repo: Comfy-Org/ComfyUI_frontend PR: 7906
File: src/components/sidebar/tabs/AssetsSidebarTab.vue:545-552
Timestamp: 2026-01-12T17:39:27.738Z
Learning: In Vue/TypeScript files (src/**/*.{ts,tsx,vue}), prefer if/else statements over ternary operators when performing side effects or actions (e.g., mutating state, calling methods with side effects). Ternaries should be reserved for computing and returning values.

Applied to files:

  • src/components/searchbox/NodeSearchBox.vue
  • src/components/searchbox/NodeSearchBoxPopover.vue
📚 Learning: 2025-11-24T19:47:45.616Z
Learnt from: CR
Repo: Comfy-Org/ComfyUI_frontend PR: 0
File: src/components/CLAUDE.md:0-0
Timestamp: 2025-11-24T19:47:45.616Z
Learning: Applies to src/components/**/*.vue : Replace PrimeVue OverlayPanel component with Popover

Applied to files:

  • src/components/searchbox/NodeSearchBoxPopover.vue
📚 Learning: 2025-11-24T19:47:45.616Z
Learnt from: CR
Repo: Comfy-Org/ComfyUI_frontend PR: 0
File: src/components/CLAUDE.md:0-0
Timestamp: 2025-11-24T19:47:45.616Z
Learning: Applies to src/components/**/*.vue : Replace PrimeVue Dropdown component with Select

Applied to files:

  • src/components/searchbox/NodeSearchBoxPopover.vue
📚 Learning: 2026-01-10T00:24:17.695Z
Learnt from: CR
Repo: Comfy-Org/ComfyUI_frontend PR: 0
File: AGENTS.md:0-0
Timestamp: 2026-01-10T00:24:17.695Z
Learning: Applies to src/**/*.vue : Use Tailwind utility classes instead of `dark:` variant - use semantic values from `style.css` theme (e.g., `bg-node-component-surface`)

Applied to files:

  • src/components/searchbox/NodeSearchBoxPopover.vue
📚 Learning: 2026-01-08T02:40:22.621Z
Learnt from: DrJKL
Repo: Comfy-Org/ComfyUI_frontend PR: 7894
File: src/renderer/extensions/vueNodes/widgets/components/WidgetToggleSwitch.test.ts:11-14
Timestamp: 2026-01-08T02:40:22.621Z
Learning: In the Comfy-Org/ComfyUI_frontend repository test files: When testing components, import the real type definitions from the component files instead of duplicating interface definitions in the test files. This prevents type drift and maintains consistency.

Applied to files:

  • browser_tests/fixtures/components/ComfyNodeSearchBox.ts
📚 Learning: 2025-12-22T21:36:46.909Z
Learnt from: DrJKL
Repo: Comfy-Org/ComfyUI_frontend PR: 7649
File: tests-ui/tests/platform/cloud/subscription/components/SubscriptionPanel.test.ts:189-194
Timestamp: 2025-12-22T21:36:46.909Z
Learning: In the Comfy-Org/ComfyUI_frontend repository test files: Do not stub primitive UI components or customized primitive components (e.g., Button). Instead, import and register the real components in test setup. This ensures tests accurately reflect production behavior and component API usage.

Applied to files:

  • browser_tests/fixtures/components/ComfyNodeSearchBox.ts
📚 Learning: 2025-12-10T03:09:19.636Z
Learnt from: DrJKL
Repo: Comfy-Org/ComfyUI_frontend PR: 7303
File: src/components/topbar/CurrentUserPopover.test.ts:199-205
Timestamp: 2025-12-10T03:09:19.636Z
Learning: For test files in the Comfy-Org/ComfyUI_frontend repository: When writing tests, prefer selecting elements by accessible properties (text content, aria-label, role, accessible name) over data-testid attributes. This ensures tests verify actual user-facing behavior and accessibility compliance.

Applied to files:

  • browser_tests/fixtures/components/ComfyNodeSearchBox.ts
📚 Learning: 2025-11-24T19:47:22.909Z
Learnt from: CR
Repo: Comfy-Org/ComfyUI_frontend PR: 0
File: browser_tests/CLAUDE.md:0-0
Timestamp: 2025-11-24T19:47:22.909Z
Learning: Applies to browser_tests/**/*.{e2e,spec}.{ts,tsx,js,jsx} : Prefer specific selectors in browser tests

Applied to files:

  • browser_tests/fixtures/components/ComfyNodeSearchBox.ts
📚 Learning: 2026-01-10T00:24:17.695Z
Learnt from: CR
Repo: Comfy-Org/ComfyUI_frontend PR: 0
File: AGENTS.md:0-0
Timestamp: 2026-01-10T00:24:17.695Z
Learning: Applies to +(tests-ui|src)/**/*.test.ts : Write tests for all changes, especially bug fixes to catch future regressions

Applied to files:

  • browser_tests/fixtures/components/ComfyNodeSearchBox.ts
📚 Learning: 2025-12-09T03:39:54.501Z
Learnt from: DrJKL
Repo: Comfy-Org/ComfyUI_frontend PR: 7169
File: src/platform/remote/comfyui/jobs/jobTypes.ts:1-107
Timestamp: 2025-12-09T03:39:54.501Z
Learning: In the ComfyUI_frontend project, Zod is on v3.x. Do not suggest Zod v4 standalone validators (z.uuid, z.ulid, z.cuid2, z.nanoid) until an upgrade to Zod 4 is performed. When reviewing TypeScript files (e.g., src/platform/remote/comfyui/jobs/jobTypes.ts) validate against Zod 3 capabilities and avoid introducing v4-specific features; flag any proposal to upgrade or incorporate v4-only validators and propose staying with compatible 3.x patterns.

Applied to files:

  • browser_tests/fixtures/components/ComfyNodeSearchBox.ts
📚 Learning: 2025-12-13T11:03:11.264Z
Learnt from: christian-byrne
Repo: Comfy-Org/ComfyUI_frontend PR: 7416
File: src/stores/imagePreviewStore.ts:5-7
Timestamp: 2025-12-13T11:03:11.264Z
Learning: In the ComfyUI_frontend repository, lint rules require keeping 'import type' statements separate from non-type imports, even if importing from the same module. Do not suggest consolidating them into a single import statement. Ensure type imports remain on their own line (import type { ... } from 'module') and regular imports stay on separate lines.

Applied to files:

  • browser_tests/fixtures/components/ComfyNodeSearchBox.ts
📚 Learning: 2025-12-17T00:40:09.635Z
Learnt from: DrJKL
Repo: Comfy-Org/ComfyUI_frontend PR: 7537
File: src/components/ui/button/Button.stories.ts:45-55
Timestamp: 2025-12-17T00:40:09.635Z
Learning: Prefer pure function declarations over function expressions (e.g., use function foo() { ... } instead of const foo = () => { ... }) for pure functions in the repository. Function declarations are more functional-leaning, offer better hoisting clarity, and can improve readability and tooling consistency. Apply this guideline across TypeScript files in Comfy-Org/ComfyUI_frontend, including story and UI component code, except where a function expression is semantically required (e.g., callbacks, higher-order functions with closures).

Applied to files:

  • browser_tests/fixtures/components/ComfyNodeSearchBox.ts
📚 Learning: 2025-12-30T22:22:33.836Z
Learnt from: kaili-yang
Repo: Comfy-Org/ComfyUI_frontend PR: 7805
File: src/composables/useCoreCommands.ts:439-439
Timestamp: 2025-12-30T22:22:33.836Z
Learning: When accessing reactive properties from Pinia stores in TypeScript files, avoid using .value on direct property access (e.g., useStore().isOverlayExpanded). Pinia auto-wraps refs when accessed directly, returning the primitive value. The .value accessor is only needed when destructuring store properties or when using storeToRefs().

Applied to files:

  • browser_tests/fixtures/components/ComfyNodeSearchBox.ts
⏰ 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: lint-and-format
  • GitHub Check: collect
  • GitHub Check: test
🔇 Additional comments (6)
src/components/searchbox/NodeSearchBoxPopover.vue (1)

13-18: LGTM - Animation simplified for faster search box appearance.

The transition changes reduce animation duration from 100ms to 20ms and remove the scale transform from the enter animation, making the search box appear more instantly. Note that the enter/leave animations are now asymmetric (opacity-only enter vs opacity+scale leave), which appears intentional for UX.

browser_tests/fixtures/components/ComfyNodeSearchBox.ts (2)

46-48: LGTM - Selector updated to match new DOM structure.


63-66: LGTM - Item selector updated for virtualized list.

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

149-166: Known issue: Scroll state not reset when refining search.

Per the PR description, refining a search doesn't reset scroll state, potentially allowing users to scroll past the end of results. Consider resetting hoveredIndex and scroll position when debouncedQuery or filters change.

♻️ Potential fix approach
// Add a watcher to reset state on query/filter changes
watch([debouncedQuery, () => filters], () => {
  hoveredIndex.value = undefined
  containerProps.ref.value?.scrollTo({ top: 0 })
})

31-70: LGTM - Clean inline search implementation.

Good use of cn() for class merging, proper useTemplateRef for input focus management, and keyboard navigation handlers. The debounced query pattern with telemetry tracking is appropriate.


102-117: LGTM - Imports align with coding guidelines.

Appropriate use of VueUse composables (refDebounced, useVirtualList, useTemplateRef) and cn() utility per project guidelines.

Comment on lines +195 to 204
const hoveredIndex = ref<number>()
const hoveredSuggestion = computed(() =>
hoveredIndex.value ? suggestions.value[hoveredIndex.value] : undefined
)
function updateIndexBy(delta: number) {
hoveredIndex.value = Math.max(
0,
Math.min(suggestions.value.length, (hoveredIndex.value ?? 0) + delta)
)
}
Copy link
Contributor

Choose a reason for hiding this comment

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

⚠️ Potential issue | 🔴 Critical

Critical: Off-by-one errors in hover selection logic.

Two issues:

  1. Line 197: hoveredIndex.value ? uses a truthy check, which returns undefined when index is 0 (first item). Users cannot select the first suggestion via keyboard or hover.

  2. Line 202: Upper bound should be suggestions.value.length - 1, not length. Current code allows index to equal array length, resulting in undefined on access.

🐛 Proposed fix
-const hoveredSuggestion = computed(() =>
-  hoveredIndex.value ? suggestions.value[hoveredIndex.value] : undefined
-)
+const hoveredSuggestion = computed(() =>
+  hoveredIndex.value !== undefined
+    ? suggestions.value[hoveredIndex.value]
+    : undefined
+)
 function updateIndexBy(delta: number) {
   hoveredIndex.value = Math.max(
     0,
-    Math.min(suggestions.value.length, (hoveredIndex.value ?? 0) + delta)
+    Math.min(suggestions.value.length - 1, (hoveredIndex.value ?? 0) + delta)
   )
 }
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
const hoveredIndex = ref<number>()
const hoveredSuggestion = computed(() =>
hoveredIndex.value ? suggestions.value[hoveredIndex.value] : undefined
)
function updateIndexBy(delta: number) {
hoveredIndex.value = Math.max(
0,
Math.min(suggestions.value.length, (hoveredIndex.value ?? 0) + delta)
)
}
const hoveredIndex = ref<number>()
const hoveredSuggestion = computed(() =>
hoveredIndex.value !== undefined
? suggestions.value[hoveredIndex.value]
: undefined
)
function updateIndexBy(delta: number) {
hoveredIndex.value = Math.max(
0,
Math.min(suggestions.value.length - 1, (hoveredIndex.value ?? 0) + delta)
)
}
🤖 Prompt for AI Agents
In @src/components/searchbox/NodeSearchBox.vue around lines 195 - 204, The hover
selection has two off-by-one bugs: change the computed hoveredSuggestion to
check for an explicit index (e.g., hoveredIndex.value !== undefined) instead of
a truthy check so index 0 is valid, and update updateIndexBy to clamp against
suggestions.value.length - 1 (not length) and ensure you handle empty
suggestions (e.g., if length is 0 set hoveredIndex.value = undefined or clamp to
-1/undefined). Specifically update hoveredSuggestion and updateIndexBy (the
functions/refs named hoveredIndex, hoveredSuggestion, updateIndexBy, and
suggestions) to use an explicit undefined check and to use Math.min(...,
suggestions.value.length - 1) with proper empty-array handling.

@DrJKL DrJKL self-assigned this Jan 13, 2026
@AustinMroz AustinMroz marked this pull request as draft January 14, 2026 03:23
@DrJKL DrJKL assigned AustinMroz and unassigned DrJKL Jan 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:L This PR changes 100-499 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants