Skip to content

Conversation

@pythongosssss
Copy link
Member

@pythongosssss pythongosssss commented Jan 6, 2026

Summary

When editing a node title via the LiteGraph node with the right panel open, the title is not reactively updated in the panel UI.

Changes

  • Used useVueNodeLifecycle to allow reactive access to the title

┆Issue is synchronized with this Notion page by Unito

- Used `useVueNodeLifecycle` to allow reactive access to the title
@coderabbitai
Copy link
Contributor

coderabbitai bot commented Jan 6, 2026

📝 Walkthrough

Walkthrough

A test file is added for the RightSidePanel component to verify title reactivity and multi-selection messaging. The component is enhanced to integrate Vue node lifecycle data, using a new derived value to resolve the selected node's title with fallback logic to the node's own title or type.

Changes

Cohort / File(s) Summary
Test Coverage
src/components/rightSidePanel/RightSidePanel.test.ts
New unit tests for RightSidePanel.vue covering title reactivity when node titles change and multi-selection messaging when multiple nodes are selected. Mocks graph node lifecycle, layout mutations, Pinia store, and i18n.
Node Lifecycle Integration
src/components/rightSidePanel/RightSidePanel.vue
Introduces useVueNodeLifecycle integration to derive dynamic node titles. Adds selectedNodeTitle computed value that resolves from nodeData.title with fallback to node's title or type. Only affects single-node selection title resolution.

Possibly related PRs

  • ComfyUI_frontend#7302: Both PRs interact with vueNodeData from useGraphNodeManager; this PR reads vueNodeData.title for rendering while the related PR extends vueNodeData.shape reactivity and emits shape change events.
✨ Finishing touches
  • 📝 Generate docstrings

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 6, 2026

🎨 Storybook Build Status

Build completed successfully!

⏰ Completed at: 01/07/2026, 10:17:28 AM UTC

🔗 Links


🎉 Your Storybook is ready for review!

@github-actions
Copy link

github-actions bot commented Jan 6, 2026

🎭 Playwright Test Results

⚠️ Tests passed with flaky tests

⏰ Completed at: 01/07/2026, 10:22:41 AM UTC

📈 Summary

  • Total Tests: 510
  • Passed: 498 ✅
  • Failed: 0
  • Flaky: 4 ⚠️
  • Skipped: 8 ⏭️

📊 Test Reports by Browser

  • chromium: View Report • ✅ 488 / ❌ 0 / ⚠️ 3 / ⏭️ 8
  • chromium-2x: View Report • ✅ 2 / ❌ 0 / ⚠️ 0 / ⏭️ 0
  • chromium-0.5x: View Report • ✅ 1 / ❌ 0 / ⚠️ 0 / ⏭️ 0
  • mobile-chrome: View Report • ✅ 7 / ❌ 0 / ⚠️ 1 / ⏭️ 0

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

@github-actions
Copy link

github-actions bot commented Jan 6, 2026

Bundle Size Report

Summary

  • Raw size: 17.5 MB baseline 17.5 MB — 🔴 +326 B
  • Gzip: 3.58 MB baseline 3.58 MB — 🔴 +93 B
  • Brotli: 2.72 MB baseline 2.72 MB — 🔴 +131 B
  • Bundles: 99 current • 99 baseline • 43 added / 43 removed

Category Glance
Graph Workspace 🔴 +326 B (1.01 MB) · Vendor & Third-Party ⚪ 0 B (9.19 MB) · Other ⚪ 0 B (3.5 MB) · App Entry Points ⚪ 0 B (3.25 MB) · Panels & Settings ⚪ 0 B (300 kB) · UI Components ⚪ 0 B (198 kB) · + 3 more

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

Main entry bundles and manifests

File Before After Δ Raw Δ Gzip Δ Brotli
assets/index-CU_Njn8V.js (new) 3.05 MB 🔴 +3.05 MB 🔴 +641 kB 🔴 +487 kB
assets/index-DGprfyJZ.js (removed) 3.05 MB 🟢 -3.05 MB 🟢 -641 kB 🟢 -487 kB
assets/index-6gTUAQXK.js (removed) 194 kB 🟢 -194 kB 🟢 -42.3 kB 🟢 -35.2 kB
assets/index-D-t6JD0y.js (new) 194 kB 🔴 +194 kB 🔴 +42.3 kB 🔴 +35.2 kB
assets/index-D93Jxbat.js (removed) 345 B 🟢 -345 B 🟢 -244 B 🟢 -229 B
assets/index-Dj3NowcB.js (new) 345 B 🔴 +345 B 🔴 +245 B 🔴 +234 B

Status: 3 added / 3 removed

Graph Workspace — 1.01 MB (baseline 1.01 MB) • 🔴 +326 B

Graph editor runtime, canvas, workflow orchestration

File Before After Δ Raw Δ Gzip Δ Brotli
assets/GraphView-Bub83SXA.js (new) 1.01 MB 🔴 +1.01 MB 🔴 +196 kB 🔴 +149 kB
assets/GraphView-DWlH1xZZ.js (removed) 1.01 MB 🟢 -1.01 MB 🟢 -196 kB 🟢 -149 kB

Status: 1 added / 1 removed

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

Top-level views, pages, and routed surfaces

File Before After Δ Raw Δ Gzip Δ Brotli
assets/UserSelectView-CYHe1n4p.js (new) 6.63 kB 🔴 +6.63 kB 🔴 +2.15 kB 🔴 +1.9 kB
assets/UserSelectView-CzkoD7QV.js (removed) 6.63 kB 🟢 -6.63 kB 🟢 -2.15 kB 🟢 -1.9 kB

Status: 1 added / 1 removed

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

Configuration panels, inspectors, and settings screens

File Before After Δ Raw Δ Gzip Δ Brotli
assets/LegacyCreditsPanel-C_EQhyDn.js (new) 22.7 kB 🔴 +22.7 kB 🔴 +5.26 kB 🔴 +4.6 kB
assets/LegacyCreditsPanel-D1DaWtRu.js (removed) 22.7 kB 🟢 -22.7 kB 🟢 -5.26 kB 🟢 -4.6 kB
assets/KeybindingPanel-BhhajOg8.js (removed) 14.8 kB 🟢 -14.8 kB 🟢 -3.57 kB 🟢 -3.12 kB
assets/KeybindingPanel-RKtdocbH.js (new) 14.8 kB 🔴 +14.8 kB 🔴 +3.57 kB 🔴 +3.12 kB
assets/ExtensionPanel-C_JMjNH3.js (new) 11.1 kB 🔴 +11.1 kB 🔴 +2.62 kB 🔴 +2.29 kB
assets/ExtensionPanel-CalASrdR.js (removed) 11.1 kB 🟢 -11.1 kB 🟢 -2.62 kB 🟢 -2.29 kB
assets/AboutPanel-CYTG0mBX.js (new) 9.16 kB 🔴 +9.16 kB 🔴 +2.46 kB 🔴 +2.21 kB
assets/AboutPanel-zRYJQds4.js (removed) 9.16 kB 🟢 -9.16 kB 🟢 -2.46 kB 🟢 -2.21 kB
assets/ServerConfigPanel-D3OGvt11.js (removed) 7.51 kB 🟢 -7.51 kB 🟢 -2.04 kB 🟢 -1.8 kB
assets/ServerConfigPanel-hN3eKPLv.js (new) 7.51 kB 🔴 +7.51 kB 🔴 +2.04 kB 🔴 +1.8 kB
assets/UserPanel-B0gy0g6u.js (removed) 6.88 kB 🟢 -6.88 kB 🟢 -1.79 kB 🟢 -1.57 kB
assets/UserPanel-JLeAXdDg.js (new) 6.88 kB 🔴 +6.88 kB 🔴 +1.79 kB 🔴 +1.57 kB
assets/settings-BhbWhsRg.js 101 B 101 B ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/settings-BIdKi-OT.js 26.2 kB 26.2 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/settings-Bu3OR-lX.js 24.6 kB 24.6 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/settings-ByL6gy5c.js 25.4 kB 25.4 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/settings-CjlRFMdL.js 32.8 kB 32.8 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/settings-DkGwvylK.js 26.9 kB 26.9 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/settings-Dyd027Dx.js 24.7 kB 24.7 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/settings-MzsBgiwB.js 21.7 kB 21.7 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/settings-wwBxqLH5.js 21.3 kB 21.3 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/settings-xx2Yb6R2.js 23.8 kB 23.8 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B

Status: 6 added / 6 removed

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

Reusable component library chunks

File Before After Δ Raw Δ Gzip Δ Brotli
assets/LazyImage.vue_vue_type_script_setup_true_lang-DUXcZppD.js (new) 62.9 kB 🔴 +62.9 kB 🔴 +12.9 kB 🔴 +11.2 kB
assets/LazyImage.vue_vue_type_script_setup_true_lang-DzediK2H.js (removed) 62.9 kB 🟢 -62.9 kB 🟢 -12.9 kB 🟢 -11.2 kB
assets/Load3D.vue_vue_type_script_setup_true_lang-B1fk9jMs.js (new) 56 kB 🔴 +56 kB 🔴 +8.75 kB 🔴 +7.51 kB
assets/Load3D.vue_vue_type_script_setup_true_lang-hxz97aPG.js (removed) 56 kB 🟢 -56 kB 🟢 -8.75 kB 🟢 -7.52 kB
assets/WidgetSelect.vue_vue_type_script_setup_true_lang-BgZX9z3n.js (new) 49 kB 🔴 +49 kB 🔴 +10.5 kB 🔴 +9.13 kB
assets/WidgetSelect.vue_vue_type_script_setup_true_lang-CjDPUhjH.js (removed) 49 kB 🟢 -49 kB 🟢 -10.5 kB 🟢 -9.13 kB
assets/WidgetInputNumber.vue_vue_type_script_setup_true_lang-CAM0Xbzt.js (removed) 10.9 kB 🟢 -10.9 kB 🟢 -2.89 kB 🟢 -2.54 kB
assets/WidgetInputNumber.vue_vue_type_script_setup_true_lang-DOuV_emH.js (new) 10.9 kB 🔴 +10.9 kB 🔴 +2.89 kB 🔴 +2.55 kB
assets/ComfyQueueButton-CdjjOOmJ.js (new) 8.83 kB 🔴 +8.83 kB 🔴 +2.58 kB 🔴 +2.3 kB
assets/ComfyQueueButton-gHvnBS7U.js (removed) 8.83 kB 🟢 -8.83 kB 🟢 -2.58 kB 🟢 -2.29 kB
assets/WidgetWithControl.vue_vue_type_script_setup_true_lang-B30yQsym.js (new) 3.72 kB 🔴 +3.72 kB 🔴 +1.46 kB 🔴 +1.32 kB
assets/WidgetWithControl.vue_vue_type_script_setup_true_lang-D_8syzs6.js (removed) 3.72 kB 🟢 -3.72 kB 🟢 -1.45 kB 🟢 -1.31 kB
assets/WidgetButton-CUJ_pY8B.js (new) 2.21 kB 🔴 +2.21 kB 🔴 +996 B 🔴 +880 B
assets/WidgetButton-DxOQGrTs.js (removed) 2.21 kB 🟢 -2.21 kB 🟢 -996 B 🟢 -890 B
assets/WidgetLayoutField.vue_vue_type_script_setup_true_lang-DLSSIqeN.js (new) 2.14 kB 🔴 +2.14 kB 🔴 +890 B 🔴 +772 B
assets/WidgetLayoutField.vue_vue_type_script_setup_true_lang-n_gbp9QU.js (removed) 2.14 kB 🟢 -2.14 kB 🟢 -890 B 🟢 -772 B
assets/MediaTitle.vue_vue_type_script_setup_true_lang-C75NRRw_.js (removed) 897 B 🟢 -897 B 🟢 -503 B 🟢 -444 B
assets/MediaTitle.vue_vue_type_script_setup_true_lang-D9AMI1DG.js (new) 897 B 🔴 +897 B 🔴 +504 B 🔴 +438 B
assets/UserAvatar.vue_vue_type_script_setup_true_lang-D2sFSC5I.js 1.34 kB 1.34 kB ⚪ 0 B ⚪ 0 B ⚪ 0 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-BcWzqxq3.js (new) 7.51 kB 🔴 +7.51 kB 🔴 +1.83 kB 🔴 +1.58 kB
assets/keybindingService-BOj69KeA.js (removed) 7.51 kB 🟢 -7.51 kB 🟢 -1.83 kB 🟢 -1.58 kB
assets/audioService-BUlfwHOh.js (removed) 2.2 kB 🟢 -2.2 kB 🟢 -960 B 🟢 -826 B
assets/audioService-EIlGnOBa.js (new) 2.2 kB 🔴 +2.2 kB 🔴 +961 B 🔴 +824 B
assets/serverConfigStore-vzHjAhYO.js 2.83 kB 2.83 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B

Status: 2 added / 2 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-BldjnUqG.js (removed) 1.41 kB 🟢 -1.41 kB 🟢 -650 B 🟢 -549 B
assets/audioUtils-CrCOtm6Y.js (new) 1.41 kB 🔴 +1.41 kB 🔴 +650 B 🔴 +544 B

Status: 1 added / 1 removed

Vendor & Third-Party — 9.19 MB (baseline 9.19 MB) • ⚪ 0 B

External libraries and shared vendor chunks

File Before After Δ Raw Δ Gzip Δ Brotli
assets/vendor-chart-DKN42gM5.js 452 kB 452 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/vendor-other-B0-E2a1W.js 3.9 MB 3.9 MB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/vendor-primevue-8yyuhoFO.js 1.95 MB 1.95 MB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/vendor-three-U-rzyCAc.js 2.08 MB 2.08 MB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/vendor-tiptap-B8SQZ7yI.js 232 kB 232 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/vendor-vue-B7S_YYz9.js 160 kB 160 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/vendor-xterm-BF8peZ5_.js 420 kB 420 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
Other — 3.5 MB (baseline 3.5 MB) • ⚪ 0 B

Bundles that do not match a named category

File Before After Δ Raw Δ Gzip Δ Brotli
assets/SubscriptionRequiredDialogContent-BORwgj8A.js (new) 29.3 kB 🔴 +29.3 kB 🔴 +6.51 kB 🔴 +5.65 kB
assets/SubscriptionRequiredDialogContent-wkB_1Irn.js (removed) 29.3 kB 🟢 -29.3 kB 🟢 -6.51 kB 🟢 -5.64 kB
assets/WidgetRecordAudio-C68S2K01.js (removed) 20.4 kB 🟢 -20.4 kB 🟢 -5.24 kB 🟢 -4.63 kB
assets/WidgetRecordAudio-DDTuS7NF.js (new) 20.4 kB 🔴 +20.4 kB 🔴 +5.24 kB 🔴 +4.63 kB
assets/AudioPreviewPlayer-CapxEQTZ.js (removed) 13.3 kB 🟢 -13.3 kB 🟢 -3.35 kB 🟢 -2.99 kB
assets/AudioPreviewPlayer-DWcpi3hT.js (new) 13.3 kB 🔴 +13.3 kB 🔴 +3.35 kB 🔴 +2.99 kB
assets/ValueControlPopover-BDyplfm8.js (removed) 5.49 kB 🟢 -5.49 kB 🟢 -1.71 kB 🟢 -1.52 kB
assets/ValueControlPopover-Ci90PbFl.js (new) 5.49 kB 🔴 +5.49 kB 🔴 +1.71 kB 🔴 +1.52 kB
assets/WidgetGalleria-BOyo6NDw.js (removed) 4.1 kB 🟢 -4.1 kB 🟢 -1.45 kB 🟢 -1.3 kB
assets/WidgetGalleria-Co-STb8r.js (new) 4.1 kB 🔴 +4.1 kB 🔴 +1.45 kB 🔴 +1.3 kB
assets/WidgetColorPicker-DAedwMTg.js (new) 3.41 kB 🔴 +3.41 kB 🔴 +1.38 kB 🔴 +1.24 kB
assets/WidgetColorPicker-Ho2rvYkp.js (removed) 3.41 kB 🟢 -3.41 kB 🟢 -1.38 kB 🟢 -1.23 kB
assets/WidgetTextarea-Bz_tHJSr.js (removed) 3.08 kB 🟢 -3.08 kB 🟢 -1.21 kB 🟢 -1.08 kB
assets/WidgetTextarea-iDqe8QTU.js (new) 3.08 kB 🔴 +3.08 kB 🔴 +1.22 kB 🔴 +1.09 kB
assets/WidgetMarkdown-BCDV4dDB.js (removed) 3.08 kB 🟢 -3.08 kB 🟢 -1.28 kB 🟢 -1.13 kB
assets/WidgetMarkdown-Cg_r7eO1.js (new) 3.08 kB 🔴 +3.08 kB 🔴 +1.28 kB 🔴 +1.13 kB
assets/WidgetAudioUI-C41qeKxi.js (new) 2.89 kB 🔴 +2.89 kB 🔴 +1.17 kB 🔴 +1.06 kB
assets/WidgetAudioUI-Cs6HdyRj.js (removed) 2.89 kB 🟢 -2.89 kB 🟢 -1.17 kB 🟢 -1.06 kB
assets/WidgetInputText-DjLoc9Sl.js (new) 1.99 kB 🔴 +1.99 kB 🔴 +920 B 🔴 +858 B
assets/WidgetInputText-mDJ7O_a_.js (removed) 1.99 kB 🟢 -1.99 kB 🟢 -917 B 🟢 -851 B
assets/WidgetToggleSwitch-Chpz9mWf.js (removed) 1.76 kB 🟢 -1.76 kB 🟢 -835 B 🟢 -729 B
assets/WidgetToggleSwitch-XNcXQSbj.js (new) 1.76 kB 🔴 +1.76 kB 🔴 +835 B 🔴 +730 B
assets/MediaImageBottom-BS1PKB3g.js (new) 1.55 kB 🔴 +1.55 kB 🔴 +734 B 🔴 +640 B
assets/MediaImageBottom-D6ifmlY0.js (removed) 1.55 kB 🟢 -1.55 kB 🟢 -736 B 🟢 -643 B
assets/MediaAudioBottom-CvNaAsIv.js (new) 1.51 kB 🔴 +1.51 kB 🔴 +734 B 🔴 +647 B
assets/MediaAudioBottom-D8KU7V13.js (removed) 1.51 kB 🟢 -1.51 kB 🟢 -735 B 🟢 -649 B
assets/Media3DBottom-BC1Y5hj9.js (removed) 1.5 kB 🟢 -1.5 kB 🟢 -732 B 🟢 -646 B
assets/Media3DBottom-KoKJPjoW.js (new) 1.5 kB 🔴 +1.5 kB 🔴 +732 B 🔴 +647 B
assets/MediaVideoBottom-BUJRPJua.js (removed) 1.5 kB 🟢 -1.5 kB 🟢 -732 B 🟢 -646 B
assets/MediaVideoBottom-DtY_bAa3.js (new) 1.5 kB 🔴 +1.5 kB 🔴 +732 B 🔴 +646 B
assets/Media3DTop-BMjJQ6Gm.js (new) 1.49 kB 🔴 +1.49 kB 🔴 +767 B 🔴 +651 B
assets/Media3DTop-chkhaQ5h.js (removed) 1.49 kB 🟢 -1.49 kB 🟢 -768 B 🟢 -653 B
assets/WidgetSelect-B2oMQu4_.js (new) 733 B 🔴 +733 B 🔴 +359 B 🔴 +310 B
assets/WidgetSelect-DNa9v_Pm.js (removed) 733 B 🟢 -733 B 🟢 -360 B 🟢 -329 B
assets/WidgetInputNumber-DI-9uU7z.js (removed) 673 B 🟢 -673 B 🟢 -349 B 🟢 -288 B
assets/WidgetInputNumber-Eh9KT1ih.js (new) 673 B 🔴 +673 B 🔴 +348 B 🔴 +290 B
assets/Load3D-BqCmMoCU.js (removed) 424 B 🟢 -424 B 🟢 -269 B 🟢 -223 B
assets/Load3D-Cc2ka5M1.js (new) 424 B 🔴 +424 B 🔴 +268 B 🔴 +223 B
assets/WidgetLegacy-CXoK3Qi8.js (removed) 364 B 🟢 -364 B 🟢 -239 B 🟢 -195 B
assets/WidgetLegacy-DU9OvvVE.js (new) 364 B 🔴 +364 B 🔴 +238 B 🔴 +196 B
assets/commands-bTEY9Mp6.js 13.8 kB 13.8 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/commands-BWp4HdfU.js 101 B 101 B ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/commands-CcfGaui5.js 14.4 kB 14.4 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/commands-CisfgZf5.js 13.7 kB 13.7 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/commands-CkU12Foh.js 13 kB 13 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/commands-CoH2DJa6.js 14.2 kB 14.2 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/commands-COSt-Bjx.js 14.9 kB 14.9 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/commands-DalfIW5f.js 15.9 kB 15.9 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/commands-DfTl0eCm.js 13.5 kB 13.5 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/commands-DwSJL865.js 13.7 kB 13.7 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/main-Bdc58rJq.js 97.1 kB 97.1 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/main-C9ZJBRdI.js 81.5 kB 81.5 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/main-CAL83XT3.js 84.6 kB 84.6 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/main-CHLLfvpG.js 82.4 kB 82.4 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/main-Cw9RZWRY.js 89 B 89 B ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/main-DDqR5EuX.js 71.3 kB 71.3 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/main-DLHyaEcz.js 92.1 kB 92.1 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/main-JzWMbEh0.js 91.2 kB 91.2 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/main-O7KfJeMO.js 79.9 kB 79.9 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/main-OzGsrlqJ.js 112 kB 112 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/MediaAudioTop-D6xQ7BTZ.js 1.46 kB 1.46 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/MediaImageTop-BaBlYZTy.js 1.75 kB 1.75 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/MediaVideoTop-B297IpwP.js 2.65 kB 2.65 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/nodeDefs-aW9En70v.js 260 kB 260 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/nodeDefs-BDbge6_f.js 279 kB 279 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/nodeDefs-BIckSVgU.js 273 kB 273 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/nodeDefs-BiYpVi7D.js 263 kB 263 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/nodeDefs-Bw_Jitw_.js 101 B 101 B ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/nodeDefs-CCEXtYfM.js 243 kB 243 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/nodeDefs-CvmVDWYd.js 323 kB 323 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/nodeDefs-D_wreoPJ.js 267 kB 267 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/nodeDefs-Dz-0ZIBN.js 297 kB 297 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/nodeDefs-VZsNmhG7.js 264 kB 264 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/OBJLoader2Worker-GDlTeC1j.js 4.69 kB 4.69 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/WidgetChart-Du6foKGb.js 2.48 kB 2.48 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/WidgetImageCompare-DlNxYBJ7.js 3.18 kB 3.18 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/widgetPropFilter-BIbGSUAt.js 1.28 kB 1.28 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B

Status: 20 added / 20 removed

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

🤖 Fix all issues with AI agents
In @src/components/rightSidePanel/RightSidePanel.test.ts:
- Around line 60-93: Add unit tests that cover fallback and null-manager edge
cases for RightSidePanel: create tests using setupGraph/createMountConfig that
select a node with empty node.title and ensure the panel displays node.type
(verify fallback from nodeData.title/node.title to node.type), add a test that
sets mockNodeManager.value = null and selects a node to ensure it falls back to
node.title when nodeManager is unavailable, and add a test where vueNodeData
lacks an entry for the selected node to confirm the component still renders a
sensible title; reference RightSidePanel, LGraphNode, node.title, node.type,
nodeData/vueNodeData, nodeManager/mockNodeManager, setupGraph and
createMountConfig when locating where to add these tests.
- Around line 48-76: The test fails because directly setting LGraphNode.title
doesn't emit the 'node:property:changed' event that useGraphNodeManager relies
on; update the test to either (a) change the node title via the code path that
triggers the event (e.g., call the node/graph method that emits
'node:property:changed'), or (b) manually emit
graph.trigger('node:property:changed', { node, property: 'title', value:
'Updated Title' }) after assigning node.title, or (c) mock the event emission in
the test; reference LGraphNode, useGraphNodeManager and the
'node:property:changed' event to locate where to apply the fix so RightSidePanel
observes the title change.

In @src/components/rightSidePanel/RightSidePanel.vue:
- Around line 63-68: Add a brief clarifying comment above the selectedNodeTitle
computed that describes the fallback priority: first use
nodeManager.value?.vueNodeData.get(nodeId)?.title, then
selectedNode.value.title, and finally selectedNode.value.type; reference the
symbols selectedNodeTitle, selectedNode, nodeManager and vueNodeData so future
readers understand the lookup order and rationale.
📜 Review details

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between a7d0825 and f48b2d6.

📒 Files selected for processing (2)
  • src/components/rightSidePanel/RightSidePanel.test.ts
  • src/components/rightSidePanel/RightSidePanel.vue
🧰 Additional context used
📓 Path-based instructions (15)
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/rightSidePanel/RightSidePanel.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/rightSidePanel/RightSidePanel.vue
  • src/components/rightSidePanel/RightSidePanel.test.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/components/rightSidePanel/RightSidePanel.vue
  • src/components/rightSidePanel/RightSidePanel.test.ts
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/rightSidePanel/RightSidePanel.vue
  • src/components/rightSidePanel/RightSidePanel.test.ts
src/**/*.{vue,ts,tsx}

📄 CodeRabbit inference engine (src/CLAUDE.md)

Follow Vue 3 composition API style guide

Files:

  • src/components/rightSidePanel/RightSidePanel.vue
  • src/components/rightSidePanel/RightSidePanel.test.ts
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/rightSidePanel/RightSidePanel.vue
  • src/components/rightSidePanel/RightSidePanel.test.ts
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/rightSidePanel/RightSidePanel.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/rightSidePanel/RightSidePanel.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/rightSidePanel/RightSidePanel.vue
  • src/components/rightSidePanel/RightSidePanel.test.ts
**/*.vue

📄 CodeRabbit inference engine (AGENTS.md)

**/*.vue: Use Vue 3.5+ with TypeScript in .vue files, exclusively using Composition API with <script setup lang="ts"> syntax
Use Tailwind 4 for styling in Vue components; avoid <style> blocks
Name Vue components using PascalCase (e.g., MenuHamburger.vue)
Use Vue 3.5 TypeScript-style default prop declaration with reactive props destructuring; do not use withDefaults or runtime props declaration
Prefer computed() over ref with watch when deriving values
Prefer useModel over separately defining prop and emit for two-way binding
Use vue-i18n in composition API for string literals; place new translation entries in src/locales/en/main.json
Use cn() utility function from @/utils/tailwindUtil for merging Tailwind class names; do not use :class="[]" syntax
Do not use the dark: Tailwind variant; use semantic values from the style.css theme instead (e.g., bg-node-component-surface)
Do not use !important or the ! important prefix for Tailwind classes; find and correct interfering !important classes instead
Avoid new usage of PrimeVue components; use VueUse, shadcn/vue, or Reka UI instead
Leverage VueUse functions for performance-enhancing styles in Vue components
Implement proper props and emits definitions in Vue components
Utilize Vue 3's Teleport component when needed
Use Suspense for async components
Follow Vue 3 style guide and naming conventions

Files:

  • src/components/rightSidePanel/RightSidePanel.vue
**/*.{ts,tsx,vue}

📄 CodeRabbit inference engine (AGENTS.md)

**/*.{ts,tsx,vue}: Use TypeScript exclusively; do not write new JavaScript code
Use sorted and grouped imports organized by plugin/source
Enforce ESLint rules including Vue + TypeScript rules, disallow floating promises, disallow unused imports, and restrict i18n raw text in templates
Do not use any type or as any type assertions; fix the underlying type issue instead
Write code that is expressive and self-documenting; avoid redundant comments and clean as you go
Keep functions short and functional; minimize nesting and follow the arrow anti-pattern
Avoid mutable state; prefer immutability and assignment at point of declaration
Use function declarations instead of function expressions when possible
Use es-toolkit for utility functions
Implement proper error handling in code

Files:

  • src/components/rightSidePanel/RightSidePanel.vue
  • src/components/rightSidePanel/RightSidePanel.test.ts
**/*.{ts,tsx,vue,js,jsx,json,css}

📄 CodeRabbit inference engine (AGENTS.md)

Apply Prettier formatting with 2-space indentation, single quotes, no trailing semicolons, and 80-character line width

Files:

  • src/components/rightSidePanel/RightSidePanel.vue
  • src/components/rightSidePanel/RightSidePanel.test.ts
src/**/*.ts

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

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

Files:

  • src/components/rightSidePanel/RightSidePanel.test.ts
**/*.test.ts

📄 CodeRabbit inference engine (AGENTS.md)

**/*.test.ts: Use unit/component tests in tests-ui/ or src/**/*.test.ts with Vitest framework
For mocking in tests, leverage Vitest utilities; keep module mocks contained and avoid global mutable state within test files
Do not write change detector tests or tests dependent on non-behavioral features like utility classes or styles
Aim for behavioral coverage of critical and new features in unit tests

Files:

  • src/components/rightSidePanel/RightSidePanel.test.ts
**/*.{ts,tsx}

📄 CodeRabbit inference engine (AGENTS.md)

Minimize the surface area (exported values) of each module and composable

Files:

  • src/components/rightSidePanel/RightSidePanel.test.ts
🧠 Learnings (35)
📓 Common learnings
Learnt from: DrJKL
Repo: Comfy-Org/ComfyUI_frontend PR: 7137
File: src/components/rightSidePanel/RightSidePanel.vue:174-180
Timestamp: 2025-12-06T02:11:00.385Z
Learning: PrimeVue components have poor TypeScript typing, so type assertions (like `as RightSidePanelTab`) may be necessary when handling emitted events or prop values from PrimeVue components like TabList.
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 : Utilize ref and reactive for reactive state
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.
📚 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 TabMenu component with Tabs without panels

Applied to files:

  • src/components/rightSidePanel/RightSidePanel.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,ts,js} : Use existing VueUse composables (such as useElementHover) instead of manually managing event listeners

Applied to files:

  • src/components/rightSidePanel/RightSidePanel.vue
📚 Learning: 2025-11-24T19:47:56.371Z
Learnt from: CR
Repo: Comfy-Org/ComfyUI_frontend PR: 0
File: src/lib/litegraph/CLAUDE.md:0-0
Timestamp: 2025-11-24T19:47:56.371Z
Learning: Applies to src/lib/litegraph/**/*.{test,spec}.{ts,tsx} : Use provided test helpers `createTestSubgraph` and `createTestSubgraphNode` from `./fixtures/subgraphHelpers` for consistent subgraph test setup

Applied to files:

  • src/components/rightSidePanel/RightSidePanel.vue
  • src/components/rightSidePanel/RightSidePanel.test.ts
📚 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,ts} : Leverage VueUse functions for performance-enhancing styles

Applied to files:

  • src/components/rightSidePanel/RightSidePanel.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 : Use lifecycle hooks: onMounted, onUpdated in Vue 3 Composition API

Applied to files:

  • src/components/rightSidePanel/RightSidePanel.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 : Use setup() function in Vue 3 Composition API

Applied to files:

  • src/components/rightSidePanel/RightSidePanel.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 : Use ref/reactive for state management in Vue 3 Composition API

Applied to files:

  • src/components/rightSidePanel/RightSidePanel.vue
📚 Learning: 2025-12-21T06:04:12.562Z
Learnt from: CR
Repo: Comfy-Org/ComfyUI_frontend PR: 0
File: AGENTS.md:0-0
Timestamp: 2025-12-21T06:04:12.562Z
Learning: Applies to **/*.vue : Leverage VueUse functions for performance-enhancing styles in Vue components

Applied to files:

  • src/components/rightSidePanel/RightSidePanel.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 : Utilize Vue 3's Teleport component when needed

Applied to files:

  • src/components/rightSidePanel/RightSidePanel.vue
📚 Learning: 2025-11-24T19:47:34.324Z
Learnt from: CR
Repo: Comfy-Org/ComfyUI_frontend PR: 0
File: src/CLAUDE.md:0-0
Timestamp: 2025-11-24T19:47:34.324Z
Learning: Applies to src/**/*.{vue,ts,tsx} : Follow Vue 3 composition API style guide

Applied to files:

  • src/components/rightSidePanel/RightSidePanel.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/rightSidePanel/RightSidePanel.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/rightSidePanel/RightSidePanel.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/rightSidePanel/RightSidePanel.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/rightSidePanel/RightSidePanel.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/rightSidePanel/RightSidePanel.vue
  • src/components/rightSidePanel/RightSidePanel.test.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/rightSidePanel/RightSidePanel.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/rightSidePanel/RightSidePanel.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/rightSidePanel/RightSidePanel.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/rightSidePanel/RightSidePanel.vue
📚 Learning: 2025-11-24T19:47:56.371Z
Learnt from: CR
Repo: Comfy-Org/ComfyUI_frontend PR: 0
File: src/lib/litegraph/CLAUDE.md:0-0
Timestamp: 2025-11-24T19:47:56.371Z
Learning: Applies to src/lib/litegraph/**/*.{test,spec}.{js,ts,jsx,tsx} : When adding features, always write vitest unit tests using cursor rules in @.cursor

Applied to files:

  • src/components/rightSidePanel/RightSidePanel.test.ts
📚 Learning: 2025-12-21T06:04:12.562Z
Learnt from: CR
Repo: Comfy-Org/ComfyUI_frontend PR: 0
File: AGENTS.md:0-0
Timestamp: 2025-12-21T06:04:12.562Z
Learning: Applies to **/*.test.ts : Use unit/component tests in `tests-ui/` or `src/**/*.test.ts` with Vitest framework

Applied to files:

  • src/components/rightSidePanel/RightSidePanel.test.ts
📚 Learning: 2025-12-21T06:04:12.562Z
Learnt from: CR
Repo: Comfy-Org/ComfyUI_frontend PR: 0
File: AGENTS.md:0-0
Timestamp: 2025-12-21T06:04:12.562Z
Learning: Applies to **/*.test.ts : Aim for behavioral coverage of critical and new features in unit tests

Applied to files:

  • src/components/rightSidePanel/RightSidePanel.test.ts
📚 Learning: 2025-11-24T19:47:56.371Z
Learnt from: CR
Repo: Comfy-Org/ComfyUI_frontend PR: 0
File: src/lib/litegraph/CLAUDE.md:0-0
Timestamp: 2025-11-24T19:47:56.371Z
Learning: Applies to src/lib/litegraph/**/*.{test,spec}.{ts,tsx} : When writing tests for subgraph-related code, always import from the barrel export at `@/lib/litegraph/src/litegraph` to avoid circular dependency issues

Applied to files:

  • src/components/rightSidePanel/RightSidePanel.test.ts
📚 Learning: 2025-12-21T06:04:12.562Z
Learnt from: CR
Repo: Comfy-Org/ComfyUI_frontend PR: 0
File: AGENTS.md:0-0
Timestamp: 2025-12-21T06:04:12.562Z
Learning: Applies to **/*.test.ts : Do not write change detector tests or tests dependent on non-behavioral features like utility classes or styles

Applied to files:

  • src/components/rightSidePanel/RightSidePanel.test.ts
📚 Learning: 2025-12-21T06:04:12.562Z
Learnt from: CR
Repo: Comfy-Org/ComfyUI_frontend PR: 0
File: AGENTS.md:0-0
Timestamp: 2025-12-21T06:04:12.562Z
Learning: Applies to **/*.test.ts : For mocking in tests, leverage Vitest utilities; keep module mocks contained and avoid global mutable state within test files

Applied to files:

  • src/components/rightSidePanel/RightSidePanel.test.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} : Follow naming conventions for browser tests

Applied to files:

  • src/components/rightSidePanel/RightSidePanel.test.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} : Test user workflows in browser tests

Applied to files:

  • src/components/rightSidePanel/RightSidePanel.test.ts
📚 Learning: 2025-12-06T02:11:00.385Z
Learnt from: DrJKL
Repo: Comfy-Org/ComfyUI_frontend PR: 7137
File: src/components/rightSidePanel/RightSidePanel.vue:174-180
Timestamp: 2025-12-06T02:11:00.385Z
Learning: PrimeVue components have poor TypeScript typing, so type assertions (like `as RightSidePanelTab`) may be necessary when handling emitted events or prop values from PrimeVue components like TabList.

Applied to files:

  • src/components/rightSidePanel/RightSidePanel.test.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:

  • src/components/rightSidePanel/RightSidePanel.test.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:

  • src/components/rightSidePanel/RightSidePanel.test.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:

  • src/components/rightSidePanel/RightSidePanel.test.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:

  • src/components/rightSidePanel/RightSidePanel.test.ts
📚 Learning: 2025-12-10T03:09:13.807Z
Learnt from: DrJKL
Repo: Comfy-Org/ComfyUI_frontend PR: 7303
File: src/components/topbar/CurrentUserPopover.test.ts:199-205
Timestamp: 2025-12-10T03:09:13.807Z
Learning: In test files, prefer selecting or asserting on accessible properties (text content, aria-label, role, accessible name) over data-testid attributes. This ensures tests validate actual user-facing behavior and accessibility, reducing reliance on implementation details like test IDs.

Applied to files:

  • src/components/rightSidePanel/RightSidePanel.test.ts
📚 Learning: 2025-12-30T01:31:04.927Z
Learnt from: DrJKL
Repo: Comfy-Org/ComfyUI_frontend PR: 7797
File: tests-ui/tests/lib/litegraph/src/widgets/ComboWidget.test.ts:648-648
Timestamp: 2025-12-30T01:31:04.927Z
Learning: In Vitest v4, when mocking functions that may be called as constructors (using new), the mock implementation must use function() or class syntax rather than an arrow function. Arrow mocks can cause '<anonymous> is not a constructor' errors. This is a breaking change from Vitest v3 where mocks could use an arrow function. Apply this guideline to test files that mock constructor-like calls (e.g., in tests under tests-ui, such as ComboWidget.test.ts) and ensure mock implementations are defined with function() { ... } or class { ... } to preserve constructor behavior.

Applied to files:

  • src/components/rightSidePanel/RightSidePanel.test.ts
🧬 Code graph analysis (1)
src/components/rightSidePanel/RightSidePanel.test.ts (1)
src/composables/graph/useGraphNodeManager.ts (2)
  • GraphNodeManager (84-93)
  • useGraphNodeManager (220-604)
🔇 Additional comments (1)
src/components/rightSidePanel/RightSidePanel.vue (1)

10-10: LGTM! Reactive title integration correctly implemented.

The integration with useVueNodeLifecycle provides reactive access to node title changes through nodeManager.vueNodeData. The fallback chain in selectedNodeTitle properly handles cases where:

  • nodeData from the lifecycle manager has a title
  • Falls back to the node's own title property
  • Falls back to the node's type as a last resort

The computed property will reactively update when the node manager detects title changes in LiteGraph, fixing the issue described in the PR objectives.

Also applies to: 28-28, 63-68, 72-72

Comment on lines +48 to +76
const setupGraph = () => {
const graph = new LGraph()
mockNodeManager.value = useGraphNodeManager(graph)
return { graph, canvasStore: useCanvasStore() }
}

describe('RightSidePanel', () => {
beforeEach(() => {
setActivePinia(createPinia())
mockNodeManager.value = null
})

describe('title reactivity', () => {
it('updates panel title when node.title changes', async () => {
const { graph, canvasStore } = setupGraph()

const node = new LGraphNode('Original Title', 'TestNode')
graph.add(node)
canvasStore.selectedItems = [node]

const wrapper = mount(RightSidePanel, createMountConfig())
await nextTick()
expect(wrapper.text()).toContain('Original Title')

node.title = 'Updated Title'

await nextTick()
expect(wrapper.text()).toContain('Updated Title')
})
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 | 🟠 Major

🧩 Analysis chain

🏁 Script executed:

cd /repo && pnpm test src/components/rightSidePanel/RightSidePanel.test.ts -- --reporter=verbose

Repository: Comfy-Org/ComfyUI_frontend

Length of output: 125


🏁 Script executed:

#!/bin/bash
# First, check the repository structure
pwd
ls -la
git ls-files | grep -E "RightSidePanel\.test\.ts|package\.json" | head -5

Repository: Comfy-Org/ComfyUI_frontend

Length of output: 4143


🏁 Script executed:

#!/bin/bash
# Find the test file and check test structure
find /home/jailuser/git -name "RightSidePanel.test.ts" -type f

Repository: Comfy-Org/ComfyUI_frontend

Length of output: 141


🏁 Script executed:

#!/bin/bash
# Read the test file to understand the complete test
cat -n /home/jailuser/git/src/components/rightSidePanel/RightSidePanel.test.ts | head -100

Repository: Comfy-Org/ComfyUI_frontend

Length of output: 3498


🏁 Script executed:

#!/bin/bash
# Find LGraphNode implementation
find /home/jailuser/git -name "*.ts" -path "*/litegraph/*" -type f | grep -i "node" | head -10

Repository: Comfy-Org/ComfyUI_frontend

Length of output: 733


🏁 Script executed:

#!/bin/bash
# Find the main LGraphNode class definition
find /home/jailuser/git/src/lib/litegraph -name "LGraphNode.ts" -type f

Repository: Comfy-Org/ComfyUI_frontend

Length of output: 124


🏁 Script executed:

#!/bin/bash
# Read the LGraphNode implementation to check for property setters
cat -n /home/jailuser/git/src/lib/litegraph/src/LGraphNode.ts | head -150

Repository: Comfy-Org/ComfyUI_frontend

Length of output: 5766


🏁 Script executed:

#!/bin/bash
# Search for the title property definition and setter in LGraphNode
rg -n "title\s*[=:]|set title|\.title\s*=" /home/jailuser/git/src/lib/litegraph/src/LGraphNode.ts | head -20

Repository: Comfy-Org/ComfyUI_frontend

Length of output: 396


🏁 Script executed:

#!/bin/bash
# Search for event system in LGraphNode (onPropertyChange, emit, etc.)
rg -n "onPropertyChange|onTitleChange|_onTitleChange|emit|trigger" /home/jailuser/git/src/lib/litegraph/src/LGraphNode.ts | head -30

Repository: Comfy-Org/ComfyUI_frontend

Length of output: 1891


🏁 Script executed:

#!/bin/bash
# Find the context around line 519 where the property:changed event is triggered
sed -n '510,530p' /home/jailuser/git/src/lib/litegraph/src/LGraphNode.ts

Repository: Comfy-Org/ComfyUI_frontend

Length of output: 534


🏁 Script executed:

#!/bin/bash
# Search for title property changes and events
rg -B5 -A5 "property.*title|title.*changed" /home/jailuser/git/src/lib/litegraph/src/LGraphNode.ts | head -40

Repository: Comfy-Org/ComfyUI_frontend

Length of output: 52


🏁 Script executed:

#!/bin/bash
# Check if there's a getter/setter for title in LGraphNode
rg -n "get title|set title" /home/jailuser/git/src/lib/litegraph/src/LGraphNode.ts

Repository: Comfy-Org/ComfyUI_frontend

Length of output: 149


🏁 Script executed:

#!/bin/bash
# Read useGraphNodeManager to see how it listens for title changes
cat -n /home/jailuser/git/src/composables/graph/useGraphNodeManager.ts | head -100

Repository: Comfy-Org/ComfyUI_frontend

Length of output: 3596


🏁 Script executed:

#!/bin/bash
# Continue reading useGraphNodeManager, looking for event listeners
sed -n '100,250p' /home/jailuser/git/src/composables/graph/useGraphNodeManager.ts

Repository: Comfy-Org/ComfyUI_frontend

Length of output: 4947


🏁 Script executed:

#!/bin/bash
# Continue reading to find the event listener setup
sed -n '250,400p' /home/jailuser/git/src/composables/graph/useGraphNodeManager.ts

Repository: Comfy-Org/ComfyUI_frontend

Length of output: 4848


🏁 Script executed:

#!/bin/bash
# Continue reading to find graph event listeners
sed -n '400,550p' /home/jailuser/git/src/composables/graph/useGraphNodeManager.ts

Repository: Comfy-Org/ComfyUI_frontend

Length of output: 4715


Direct property assignment does not trigger LiteGraph property change events for the title field.

The test assumes node.title = 'Updated Title' will emit a 'node:property:changed' event that useGraphNodeManager listens to, but the implementation shows event triggering is only explicitly implemented for specific properties (e.g., shape). The title property is a plain string with no setter interceptor, so direct assignment won't trigger the event handler that updates vueNodeData.title. This test will fail.

The title property must be updated through a method that explicitly calls graph.trigger('node:property:changed', { property: 'title', ... }), or the test needs to mock the event emission, or a property setter needs to be added to LGraphNode.title.

🤖 Prompt for AI Agents
In @src/components/rightSidePanel/RightSidePanel.test.ts around lines 48 - 76,
The test fails because directly setting LGraphNode.title doesn't emit the
'node:property:changed' event that useGraphNodeManager relies on; update the
test to either (a) change the node title via the code path that triggers the
event (e.g., call the node/graph method that emits 'node:property:changed'), or
(b) manually emit graph.trigger('node:property:changed', { node, property:
'title', value: 'Updated Title' }) after assigning node.title, or (c) mock the
event emission in the test; reference LGraphNode, useGraphNodeManager and the
'node:property:changed' event to locate where to apply the fix so RightSidePanel
observes the title change.

Comment on lines +60 to +93
describe('title reactivity', () => {
it('updates panel title when node.title changes', async () => {
const { graph, canvasStore } = setupGraph()

const node = new LGraphNode('Original Title', 'TestNode')
graph.add(node)
canvasStore.selectedItems = [node]

const wrapper = mount(RightSidePanel, createMountConfig())
await nextTick()
expect(wrapper.text()).toContain('Original Title')

node.title = 'Updated Title'

await nextTick()
expect(wrapper.text()).toContain('Updated Title')
})

it('shows selection count message when multiple nodes are selected', async () => {
const { graph, canvasStore } = setupGraph()

const node1 = new LGraphNode('Node 1', 'TestNode')
const node2 = new LGraphNode('Node 2', 'TestNode')
graph.add(node1)
graph.add(node2)
canvasStore.selectedItems = [node1, node2]

const wrapper = mount(RightSidePanel, createMountConfig())
await nextTick()

expect(wrapper.text()).toContain('2')
expect(wrapper.text()).not.toContain('Node 1')
expect(wrapper.text()).not.toContain('Node 2')
})
Copy link
Contributor

Choose a reason for hiding this comment

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

🧹 Nitpick | 🔵 Trivial

Consider adding edge case tests for fallback logic.

The current tests cover happy path scenarios (title updates, multi-selection). Consider adding tests for:

  • Fallback to node.type when nodeData.title and node.title are empty/undefined
  • Behavior when nodeManager is null
  • Scenario where vueNodeData doesn't contain an entry for the selected node
📋 Suggested additional test cases
it('falls back to node.type when title is empty', async () => {
  const { graph, canvasStore } = setupGraph()

  const node = new LGraphNode('', 'CustomNodeType')
  graph.add(node)
  canvasStore.selectedItems = [node]

  const wrapper = mount(RightSidePanel, createMountConfig())
  await nextTick()
  
  expect(wrapper.text()).toContain('CustomNodeType')
})

it('handles null nodeManager gracefully', async () => {
  mockNodeManager.value = null
  const canvasStore = useCanvasStore()
  
  const node = new LGraphNode('Test Node', 'TestType')
  canvasStore.selectedItems = [node]

  const wrapper = mount(RightSidePanel, createMountConfig())
  await nextTick()
  
  // Should fallback to node.title when nodeManager is unavailable
  expect(wrapper.text()).toContain('Test Node')
})
🤖 Prompt for AI Agents
In @src/components/rightSidePanel/RightSidePanel.test.ts around lines 60 - 93,
Add unit tests that cover fallback and null-manager edge cases for
RightSidePanel: create tests using setupGraph/createMountConfig that select a
node with empty node.title and ensure the panel displays node.type (verify
fallback from nodeData.title/node.title to node.type), add a test that sets
mockNodeManager.value = null and selects a node to ensure it falls back to
node.title when nodeManager is unavailable, and add a test where vueNodeData
lacks an entry for the selected node to confirm the component still renders a
sensible title; reference RightSidePanel, LGraphNode, node.title, node.type,
nodeData/vueNodeData, nodeManager/mockNodeManager, setupGraph and
createMountConfig when locating where to add these tests.

Comment on lines +63 to +68
const selectedNodeTitle = computed(() => {
if (!selectedNode.value) return null
const nodeId = String(selectedNode.value.id)
const nodeData = nodeManager.value?.vueNodeData.get(nodeId)
return nodeData?.title || selectedNode.value.title || selectedNode.value.type
})
Copy link
Contributor

Choose a reason for hiding this comment

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

🧹 Nitpick | 🔵 Trivial

Optional: Add clarifying comment for the fallback chain.

The fallback logic is sound, but a brief comment explaining the priority would improve maintainability:

💡 Suggested clarifying comment
 const selectedNodeTitle = computed(() => {
   if (!selectedNode.value) return null
   const nodeId = String(selectedNode.value.id)
   const nodeData = nodeManager.value?.vueNodeData.get(nodeId)
+  // Priority: reactive lifecycle data → node title → node type
   return nodeData?.title || selectedNode.value.title || selectedNode.value.type
 })
📝 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 selectedNodeTitle = computed(() => {
if (!selectedNode.value) return null
const nodeId = String(selectedNode.value.id)
const nodeData = nodeManager.value?.vueNodeData.get(nodeId)
return nodeData?.title || selectedNode.value.title || selectedNode.value.type
})
const selectedNodeTitle = computed(() => {
if (!selectedNode.value) return null
const nodeId = String(selectedNode.value.id)
const nodeData = nodeManager.value?.vueNodeData.get(nodeId)
// Priority: reactive lifecycle data → node title → node type
return nodeData?.title || selectedNode.value.title || selectedNode.value.type
})
🤖 Prompt for AI Agents
In @src/components/rightSidePanel/RightSidePanel.vue around lines 63 - 68, Add a
brief clarifying comment above the selectedNodeTitle computed that describes the
fallback priority: first use nodeManager.value?.vueNodeData.get(nodeId)?.title,
then selectedNode.value.title, and finally selectedNode.value.type; reference
the symbols selectedNodeTitle, selectedNode, nodeManager and vueNodeData so
future readers understand the lookup order and rationale.

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.

  • The description seems a little misleading since the reactivity is only fixed in vue mode (where litegraph isn't used)
  • There's some pretty significant work being done on the right side panel over in #7812

I'd want a second opinion here, but actual content of the PR is an improvement and LGTM

@pythongosssss pythongosssss marked this pull request as draft January 8, 2026 14:40
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.

3 participants