Skip to content

Conversation

@AustinMroz
Copy link
Collaborator

@AustinMroz AustinMroz commented Dec 17, 2025

  • Fixes asset widgets which have been promoted failing to display as asset widgets and having red names in vue mode.
  • Fixes promoted subgraph widgets failing to resolve inputSpec for use in vue mode.
Before After
before after

I'm not excited that this creates further bloat of SimplifiedWidget.

Known issue

  • Similar to Fix doubled control application #7550, subgraph widgets will have an incorrect callback and will fail to update value on a fresh reload. This can be "fixed" (made worse) by entering and exiting the subgraph. Since this creates a 'leaked' widget callback which will then be called.

┆Issue is synchronized with this Notion page by Unito

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

coderabbitai bot commented Dec 17, 2025

📝 Walkthrough

Walkthrough

Adds optional widget metadata fields and nodeType to mapped widget shapes, propagates nodeType through Vue widget components, and updates input-spec resolution for subgraph nodes to traverse proxy widgets to obtain the correct child widget InputSpecV2.

Changes

Cohort / File(s) Summary
Widget metadata types
src/composables/graph/useGraphNodeManager.ts, src/types/simplifiedWidget.ts
Expanded SafeWidgetData and SimplifiedWidget with optional fields: borderStyle, callback, controlWidget, isDOMWidget, and nodeType.
Widget mapping & component propagation
src/composables/graph/useGraphNodeManager.ts, src/renderer/extensions/vueNodes/components/NodeWidgets.vue, src/renderer/extensions/vueNodes/widgets/components/WidgetSelect.vue
safeWidgetMapper now populates new metadata (borderStyle, callback, controlWidget, nodeType); NodeWidgets.vue exposes consolidated spec including nodeType; WidgetSelect.vue uses explicit :widget and :node-type="widget.nodeType ?? nodeType" and expands asset-eligibility to include widget.type === 'asset'.
Subgraph proxy input resolution
src/stores/nodeDefStore.ts
getInputSpecForWidget updated to resolve inputs for subgraph nodes by locating a proxy widget, validating it with isProxyWidget, following the proxy/overlay to the linked subnode, and returning the InputSpecV2 from that child widget instead of the parent inputs map.

Sequence Diagram

sequenceDiagram
    participant Caller as caller (e.g., UI)
    participant NodeDef as nodeDefStore
    participant WidgetMapper as safeWidgetMapper
    participant Proxy as proxy widget overlay
    participant Subnode as subgraph child node
    participant Vue as Vue components

    Caller->>NodeDef: getInputSpecForWidget(widgetName, node)
    alt node is subgraph
        NodeDef->>Proxy: locate proxy widget by name
        Proxy-->>NodeDef: proxy found / validate isProxyWidget
        NodeDef->>Proxy: read overlay -> linked subnode & overlay widget
        Proxy-->>Subnode: identify child widget
        Subnode-->>NodeDef: return InputSpecV2 from child widget
    else non-subgraph
        NodeDef-->>NodeDef: derive InputSpecV2 from node.inputs[widgetName]
    end
    NodeDef-->>Caller: InputSpecV2

    Caller->>WidgetMapper: safeWidgetMapper(widget, node)
    WidgetMapper-->>Caller: SafeWidgetData (includes nodeType, borderStyle, callback, controlWidget)

    Caller->>Vue: render NodeWidgets with SafeWidgetData
    Vue->>WidgetSelect: pass :widget and :node-type
    WidgetSelect-->>Vue: determine asset mode (includes widget.type === 'asset')
Loading

Possibly related PRs

  • #7388: Overlaps subgraph input/widget resolution changes and proxy traversal in nodeDefStore.
  • #7322: Adds borderStyle and related widget metadata handling in the same mapper/components.
  • #7102: Modifies SafeWidgetData shape and safeWidgetMapper usage touching the same files.
✨ Finishing touches
  • 📝 Generate docstrings
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch austin/vue-subgraph-assets

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 Dec 17, 2025

🎨 Storybook Build Status

Build completed successfully!

⏰ Completed at: 12/17/2025, 03:24:59 AM UTC

🔗 Links


🎉 Your Storybook is ready for review!

@github-actions
Copy link

github-actions bot commented Dec 17, 2025

🎭 Playwright Test Results

⚠️ Tests passed with flaky tests

⏰ Completed at: 12/17/2025, 03:34:01 AM UTC

📈 Summary

  • Total Tests: 503
  • Passed: 489 ✅
  • Failed: 0
  • Flaky: 5 ⚠️
  • Skipped: 9 ⏭️

📊 Test Reports by Browser

  • chromium: View Report • ✅ 477 / ❌ 0 / ⚠️ 5 / ⏭️ 9
  • chromium-2x: View Report • ✅ 2 / ❌ 0 / ⚠️ 0 / ⏭️ 0
  • chromium-0.5x: View Report • ✅ 1 / ❌ 0 / ⚠️ 0 / ⏭️ 0
  • mobile-chrome: View Report • ✅ 9 / ❌ 0 / ⚠️ 0 / ⏭️ 0

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

@github-actions
Copy link

github-actions bot commented Dec 17, 2025

Bundle Size Report

Summary

  • Raw size: 16.6 MB baseline 16.6 MB — 🔴 +850 B
  • Gzip: 3.36 MB baseline 3.36 MB — 🔴 +248 B
  • Brotli: 2.59 MB baseline 2.59 MB — 🔴 +203 B
  • Bundles: 99 current • 99 baseline • 41 added / 41 removed

Category Glance
App Entry Points 🔴 +449 B (3.2 MB) · Graph Workspace 🔴 +305 B (992 kB) · UI Components 🔴 +96 B (183 kB) · Vendor & Third-Party ⚪ 0 B (8.45 MB) · Other ⚪ 0 B (3.41 MB) · Panels & Settings ⚪ 0 B (297 kB) · + 3 more

Per-category breakdown
App Entry Points — 3.2 MB (baseline 3.2 MB) • 🔴 +449 B

Main entry bundles and manifests

File Before After Δ Raw Δ Gzip Δ Brotli
assets/index-C4HyeK3j.js (new) 2.98 MB 🔴 +2.98 MB 🔴 +627 kB 🔴 +477 kB
assets/index-BPlb7xmw.js (removed) 2.98 MB 🟢 -2.98 MB 🟢 -627 kB 🟢 -477 kB
assets/index-BX2HvIgQ.js (new) 227 kB 🔴 +227 kB 🔴 +48.5 kB 🔴 +39.8 kB
assets/index-DOvZV4Ev.js (removed) 227 kB 🟢 -227 kB 🟢 -48.5 kB 🟢 -39.9 kB
assets/index-C0QsfXYn.js (removed) 345 B 🟢 -345 B 🟢 -244 B 🟢 -232 B
assets/index-gGHD0nAI.js (new) 345 B 🔴 +345 B 🔴 +246 B 🔴 +200 B

Status: 3 added / 3 removed

Graph Workspace — 992 kB (baseline 992 kB) • 🔴 +305 B

Graph editor runtime, canvas, workflow orchestration

File Before After Δ Raw Δ Gzip Δ Brotli
assets/GraphView-DcCfN4Gw.js (new) 992 kB 🔴 +992 kB 🔴 +193 kB 🔴 +147 kB
assets/GraphView-B1kxujW_.js (removed) 992 kB 🟢 -992 kB 🟢 -192 kB 🟢 -147 kB

Status: 1 added / 1 removed

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

Top-level views, pages, and routed surfaces

File Before After Δ Raw Δ Gzip Δ Brotli
assets/UserSelectView-BYQ9ZBfQ.js (removed) 6.54 kB 🟢 -6.54 kB 🟢 -2.14 kB 🟢 -1.89 kB
assets/UserSelectView-CLrIqMLH.js (new) 6.54 kB 🔴 +6.54 kB 🔴 +2.14 kB 🔴 +1.89 kB

Status: 1 added / 1 removed

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

Configuration panels, inspectors, and settings screens

File Before After Δ Raw Δ Gzip Δ Brotli
assets/LegacyCreditsPanel-37_H9jnx.js (removed) 21.4 kB 🟢 -21.4 kB 🟢 -5.16 kB 🟢 -4.5 kB
assets/LegacyCreditsPanel-l2HW85ve.js (new) 21.4 kB 🔴 +21.4 kB 🔴 +5.16 kB 🔴 +4.5 kB
assets/KeybindingPanel-CcHOPde8.js (removed) 13.6 kB 🟢 -13.6 kB 🟢 -3.42 kB 🟢 -3.03 kB
assets/KeybindingPanel-JEH7GVoG.js (new) 13.6 kB 🔴 +13.6 kB 🔴 +3.42 kB 🔴 +3.02 kB
assets/ExtensionPanel-xBy8DmEV.js (removed) 10.8 kB 🟢 -10.8 kB 🟢 -2.57 kB 🟢 -2.25 kB
assets/ExtensionPanel-zUZWb-sY.js (new) 10.8 kB 🔴 +10.8 kB 🔴 +2.57 kB 🔴 +2.25 kB
assets/AboutPanel-B-F4vuxm.js (removed) 9.16 kB 🟢 -9.16 kB 🟢 -2.46 kB 🟢 -2.2 kB
assets/AboutPanel-tuWJf4G5.js (new) 9.16 kB 🔴 +9.16 kB 🔴 +2.46 kB 🔴 +2.21 kB
assets/ServerConfigPanel-BSySpJtr.js (removed) 7.07 kB 🟢 -7.07 kB 🟢 -1.98 kB 🟢 -1.76 kB
assets/ServerConfigPanel-CJmF_lCE.js (new) 7.07 kB 🔴 +7.07 kB 🔴 +1.98 kB 🔴 +1.76 kB
assets/UserPanel-Cc6TscU4.js (new) 6.23 kB 🔴 +6.23 kB 🔴 +1.72 kB 🔴 +1.5 kB
assets/UserPanel-cjXd_JOs.js (removed) 6.23 kB 🟢 -6.23 kB 🟢 -1.72 kB 🟢 -1.5 kB
assets/settings-BhbWhsRg.js 101 B 101 B ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/settings-BvFz-TmQ.js 33.1 kB 33.1 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/settings-BxYnTA2y.js 21.5 kB 21.5 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/settings-C6bMjAne.js 27.1 kB 27.1 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/settings-C7Yhp7H7.js 24 kB 24 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/settings-CsnOn8G0.js 25.7 kB 25.7 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/settings-D5BGNZ7M.js 24.8 kB 24.8 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/settings-D7k3huHm.js 25 kB 25 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/settings-DamkILzl.js 26.4 kB 26.4 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/settings-s1k0gw1Y.js 20.9 kB 20.9 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B

Status: 6 added / 6 removed

UI Components — 183 kB (baseline 183 kB) • 🔴 +96 B

Reusable component library chunks

File Before After Δ Raw Δ Gzip Δ Brotli
assets/Load3D.vue_vue_type_script_setup_true_lang-Bf83Ujul.js (removed) 53.7 kB 🟢 -53.7 kB 🟢 -8.49 kB 🟢 -7.29 kB
assets/Load3D.vue_vue_type_script_setup_true_lang-BGA-L87b.js (new) 53.7 kB 🔴 +53.7 kB 🔴 +8.49 kB 🔴 +7.29 kB
assets/WidgetSelect.vue_vue_type_script_setup_true_lang-Bf-Y1AdC.js (new) 48.8 kB 🔴 +48.8 kB 🔴 +10.5 kB 🔴 +9.13 kB
assets/WidgetSelect.vue_vue_type_script_setup_true_lang-Cvc0eZXG.js (removed) 48.7 kB 🟢 -48.7 kB 🟢 -10.5 kB 🟢 -9.12 kB
assets/LazyImage.vue_vue_type_script_setup_true_lang-CWQxhFGa.js (new) 48 kB 🔴 +48 kB 🔴 +10.6 kB 🔴 +9.32 kB
assets/LazyImage.vue_vue_type_script_setup_true_lang-DUzI2bEp.js (removed) 48 kB 🟢 -48 kB 🟢 -10.6 kB 🟢 -9.32 kB
assets/WidgetInputNumber.vue_vue_type_script_setup_true_lang-BqpGWRO1.js (new) 14.3 kB 🔴 +14.3 kB 🔴 +3.73 kB 🔴 +3.29 kB
assets/WidgetInputNumber.vue_vue_type_script_setup_true_lang-BUoEaHFm.js (removed) 14.3 kB 🟢 -14.3 kB 🟢 -3.74 kB 🟢 -3.29 kB
assets/ComfyQueueButton-CtgcfnYR.js (new) 8.52 kB 🔴 +8.52 kB 🔴 +2.5 kB 🔴 +2.23 kB
assets/ComfyQueueButton-D28T3sFG.js (removed) 8.52 kB 🟢 -8.52 kB 🟢 -2.5 kB 🟢 -2.23 kB
assets/WidgetWithControl.vue_vue_type_script_setup_true_lang-BPHa-hkR.js (new) 3.68 kB 🔴 +3.68 kB 🔴 +1.45 kB 🔴 +1.31 kB
assets/WidgetWithControl.vue_vue_type_script_setup_true_lang-CFRMMfHX.js (removed) 3.68 kB 🟢 -3.68 kB 🟢 -1.45 kB 🟢 -1.31 kB
assets/WidgetLayoutField.vue_vue_type_script_setup_true_lang-Brlp9rso.js (new) 2.14 kB 🔴 +2.14 kB 🔴 +888 B 🔴 +770 B
assets/WidgetLayoutField.vue_vue_type_script_setup_true_lang-CwpS9r_H.js (removed) 2.14 kB 🟢 -2.14 kB 🟢 -888 B 🟢 -770 B
assets/MediaTitle.vue_vue_type_script_setup_true_lang-GsISkJoV.js (new) 897 B 🔴 +897 B 🔴 +503 B 🔴 +436 B
assets/MediaTitle.vue_vue_type_script_setup_true_lang-qpAfxhMi.js (removed) 897 B 🟢 -897 B 🟢 -501 B 🟢 -436 B
assets/UserAvatar.vue_vue_type_script_setup_true_lang-ByQFYn-E.js 1.34 kB 1.34 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/WidgetButton-CEPQvIIQ.js 2.04 kB 2.04 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B

Status: 8 added / 8 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-BSyZaQlR.js (new) 7.51 kB 🔴 +7.51 kB 🔴 +1.83 kB 🔴 +1.57 kB
assets/keybindingService-CtcGQ0i2.js (removed) 7.51 kB 🟢 -7.51 kB 🟢 -1.83 kB 🟢 -1.57 kB
assets/audioService-DEkS_Ku8.js (new) 2.2 kB 🔴 +2.2 kB 🔴 +962 B 🔴 +832 B
assets/audioService-SfC7QDsJ.js (removed) 2.2 kB 🟢 -2.2 kB 🟢 -961 B 🟢 -826 B
assets/serverConfigStore-BP7nYmv7.js 2.83 kB 2.83 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B

Status: 2 added / 2 removed

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

Helpers, composables, and utility bundles

File Before After Δ Raw Δ Gzip Δ Brotli
assets/audioUtils-2m6mygyf.js (new) 1.41 kB 🔴 +1.41 kB 🔴 +650 B 🔴 +542 B
assets/audioUtils-C-5NX04G.js (removed) 1.41 kB 🟢 -1.41 kB 🟢 -651 B 🟢 -543 B
assets/mathUtil-CD4DsosH.js 1.32 kB 1.32 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/nodeFilterUtil-CXKCRJ-m.js 460 B 460 B ⚪ 0 B ⚪ 0 B ⚪ 0 B

Status: 1 added / 1 removed

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

External libraries and shared vendor chunks

File Before After Δ Raw Δ Gzip Δ Brotli
assets/vendor-chart-o7g89i4t.js 452 kB 452 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/vendor-other-DByaMi26.js 3.86 MB 3.86 MB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/vendor-primevue-DFKEqFSu.js 1.96 MB 1.96 MB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/vendor-three-C1LfRdh4.js 1.37 MB 1.37 MB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/vendor-tiptap-BIufkEM_.js 232 kB 232 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/vendor-vue-BVEjmwHo.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.41 MB (baseline 3.41 MB) • ⚪ 0 B

Bundles that do not match a named category

File Before After Δ Raw Δ Gzip Δ Brotli
assets/WidgetRecordAudio-Bng5E5Yz.js (new) 20.4 kB 🔴 +20.4 kB 🔴 +5.23 kB 🔴 +4.64 kB
assets/WidgetRecordAudio-BnPC1Ziv.js (removed) 20.4 kB 🟢 -20.4 kB 🟢 -5.23 kB 🟢 -4.64 kB
assets/AudioPreviewPlayer-BSRvx20B.js (removed) 13.4 kB 🟢 -13.4 kB 🟢 -3.37 kB 🟢 -3.01 kB
assets/AudioPreviewPlayer-CdsOFIxP.js (new) 13.4 kB 🔴 +13.4 kB 🔴 +3.37 kB 🔴 +3.01 kB
assets/ValueControlPopover-DjHJLPKK.js (removed) 5.49 kB 🟢 -5.49 kB 🟢 -1.7 kB 🟢 -1.51 kB
assets/ValueControlPopover-TdMZHwZy.js (new) 5.49 kB 🔴 +5.49 kB 🔴 +1.7 kB 🔴 +1.51 kB
assets/WidgetGalleria-6ffDXPUz.js (new) 4.1 kB 🔴 +4.1 kB 🔴 +1.45 kB 🔴 +1.31 kB
assets/WidgetGalleria-D3jmAtGv.js (removed) 4.1 kB 🟢 -4.1 kB 🟢 -1.44 kB 🟢 -1.3 kB
assets/WidgetColorPicker-CEUKiRlE.js (new) 3.41 kB 🔴 +3.41 kB 🔴 +1.38 kB 🔴 +1.23 kB
assets/WidgetColorPicker-CsdD15zX.js (removed) 3.41 kB 🟢 -3.41 kB 🟢 -1.38 kB 🟢 -1.23 kB
assets/WidgetTextarea-DSzCbrxv.js (removed) 3.08 kB 🟢 -3.08 kB 🟢 -1.21 kB 🟢 -1.07 kB
assets/WidgetTextarea-DVBlWsc8.js (new) 3.08 kB 🔴 +3.08 kB 🔴 +1.21 kB 🔴 +1.08 kB
assets/WidgetMarkdown-BTZ-Dv47.js (removed) 3.08 kB 🟢 -3.08 kB 🟢 -1.28 kB 🟢 -1.13 kB
assets/WidgetMarkdown-C9YFYgVs.js (new) 3.08 kB 🔴 +3.08 kB 🔴 +1.28 kB 🔴 +1.13 kB
assets/WidgetAudioUI-10mAdde8.js (removed) 2.94 kB 🟢 -2.94 kB 🟢 -1.18 kB 🟢 -1.07 kB
assets/WidgetAudioUI-Cai7SkeV.js (new) 2.94 kB 🔴 +2.94 kB 🔴 +1.18 kB 🔴 +1.07 kB
assets/WidgetInputText-CG0USSeZ.js (new) 1.99 kB 🔴 +1.99 kB 🔴 +918 B 🔴 +852 B
assets/WidgetInputText-CzyhhPsC.js (removed) 1.99 kB 🟢 -1.99 kB 🟢 -919 B 🟢 -825 B
assets/WidgetToggleSwitch-9W8f9Nwx.js (removed) 1.76 kB 🟢 -1.76 kB 🟢 -832 B 🟢 -733 B
assets/WidgetToggleSwitch-DHAgsWPV.js (new) 1.76 kB 🔴 +1.76 kB 🔴 +832 B 🔴 +734 B
assets/MediaImageBottom-Bo9Wu6KO.js (removed) 1.55 kB 🟢 -1.55 kB 🟢 -732 B 🟢 -641 B
assets/MediaImageBottom-ZWcOlsny.js (new) 1.55 kB 🔴 +1.55 kB 🔴 +731 B 🔴 +636 B
assets/MediaAudioBottom-CyaMri0A.js (new) 1.51 kB 🔴 +1.51 kB 🔴 +732 B 🔴 +644 B
assets/MediaAudioBottom-D10bFQbi.js (removed) 1.51 kB 🟢 -1.51 kB 🟢 -730 B 🟢 -641 B
assets/Media3DBottom-BwyS66GM.js (new) 1.5 kB 🔴 +1.5 kB 🔴 +731 B 🔴 +644 B
assets/Media3DBottom-DIoH7F3-.js (removed) 1.5 kB 🟢 -1.5 kB 🟢 -729 B 🟢 -643 B
assets/MediaVideoBottom-BkFV-ee9.js (removed) 1.5 kB 🟢 -1.5 kB 🟢 -729 B 🟢 -644 B
assets/MediaVideoBottom-CwdFcUoB.js (new) 1.5 kB 🔴 +1.5 kB 🔴 +730 B 🔴 +645 B
assets/Media3DTop-BjZTzBgT.js (new) 1.49 kB 🔴 +1.49 kB 🔴 +763 B 🔴 +651 B
assets/Media3DTop-Cz7OVfH-.js (removed) 1.49 kB 🟢 -1.49 kB 🟢 -762 B 🟢 -646 B
assets/WidgetSelect-BLEvzuk1.js (removed) 733 B 🟢 -733 B 🟢 -362 B 🟢 -302 B
assets/WidgetSelect-Cemz3aTJ.js (new) 733 B 🔴 +733 B 🔴 +360 B 🔴 +301 B
assets/WidgetInputNumber-DpijYk-u.js (removed) 673 B 🟢 -673 B 🟢 -346 B 🟢 -286 B
assets/WidgetInputNumber-FkViR0TI.js (new) 673 B 🔴 +673 B 🔴 +347 B 🔴 +288 B
assets/Load3D-CFxfEdXh.js (new) 424 B 🔴 +424 B 🔴 +267 B 🔴 +229 B
assets/Load3D-CylFrG6_.js (removed) 424 B 🟢 -424 B 🟢 -266 B 🟢 -229 B
assets/WidgetLegacy-Djd31qEX.js (new) 364 B 🔴 +364 B 🔴 +238 B 🔴 +193 B
assets/WidgetLegacy-DYfIPJ99.js (removed) 364 B 🟢 -364 B 🟢 -239 B 🟢 -193 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/commands-Zxyx15Vd.js 12.8 kB 12.8 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/main-BDhxs-bB.js 79.9 kB 79.9 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/main-BtXVDFw6.js 84.7 kB 84.7 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/main-Buv6RhU4.js 82.4 kB 82.4 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/main-CgJ6zvJL.js 97.2 kB 97.2 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/main-CI9qb0E5.js 112 kB 112 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/main-Cu4LqtW0.js 81.6 kB 81.6 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/main-Cw9RZWRY.js 89 B 89 B ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/main-Dm19QY4N.js 92.2 kB 92.2 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/main-Tihe0h_r.js 71.3 kB 71.3 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/main-wPWMutMw.js 70.4 kB 70.4 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/MediaAudioTop-DSrVmTsv.js 1.46 kB 1.46 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/MediaImageTop-B7iuKaes.js 1.75 kB 1.75 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/MediaVideoTop-B1cvEWRN.js 2.65 kB 2.65 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/nodeDefs-1Vh3MCrN.js 240 kB 240 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/nodeDefs-aW9En70v.js 260 kB 260 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/WidgetChart-DwKqVDKB.js 2.48 kB 2.48 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/WidgetImageCompare-B4NspM7k.js 2.21 kB 2.21 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/widgetPropFilter-BIbGSUAt.js 1.28 kB 1.28 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B

Status: 19 added / 19 removed

Copy link
Contributor

@DrJKL DrJKL left a comment

Choose a reason for hiding this comment

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

(Want to add a test?)

DrJKL
DrJKL previously approved these changes Dec 17, 2025
Copy link
Contributor

@DrJKL DrJKL left a comment

Choose a reason for hiding this comment

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

More twists to the Gordian knot...
We'll untie it eventually.

@AustinMroz
Copy link
Collaborator Author

I would like to add a test, but didn't see any existing precedence for tests targeting cloud. I may have to take a rain check here.

to

add

more

newlines
Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 1

📜 Review details

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 0fa5d8b and b3f965c.

📒 Files selected for processing (1)
  • src/stores/nodeDefStore.ts (2 hunks)
🧰 Additional context used
📓 Path-based instructions (9)
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

src/**/*.{vue,ts}: Avoid using ref and watch together - use computed instead if possible
Do not add ref if a prop would suffice; do not add computed if the ref/prop directly would work; use watch only when computed won't accomplish the goal
Leverage VueUse functions for performance-enhancing styles

Files:

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

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

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

src/**/*.ts: Extract complex type definitions that are inlined in multiple related places - name them for reuse
Minimize the surface area (exported values) of each module and composable
Favor pure functions, especially testable ones

Files:

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

📄 CodeRabbit inference engine (src/CLAUDE.md)

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

src/**/*.{ts,tsx,vue}: ESLint rules: Vue + TS rules, no floating promises, unused imports disallowed, i18n raw text restrictions in templates
Use es-toolkit for utility functions
Avoid mutable state - prefer immutability and assignment at point of declaration
Never use any type - use proper TypeScript types
Never use as any type assertions - fix the underlying type issue

Files:

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

📄 CodeRabbit inference engine (src/CLAUDE.md)

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

Files:

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

📄 CodeRabbit inference engine (src/CLAUDE.md)

Follow Vue 3 composition API style guide

Files:

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

📄 CodeRabbit inference engine (AGENTS.md)

Use TypeScript exclusively - no new JavaScript files

Files:

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

📄 CodeRabbit inference engine (AGENTS.md)

Pinia store files must follow the naming pattern *Store.ts

Files:

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

📄 CodeRabbit inference engine (AGENTS.md)

src/**/*.{ts,tsx,vue,js}: Indent with 2 spaces, use single quotes, no trailing semicolons, line width 80 - see .prettierrc
Sort and group imports by plugin, run pnpm format before committing

Files:

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

📄 CodeRabbit inference engine (AGENTS.md)

Do not use function expressions - use function declarations instead when possible

Files:

  • src/stores/nodeDefStore.ts
🧠 Learnings (6)
📚 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/stores/nodeDefStore.ts
📚 Learning: 2025-12-04T21:43:49.363Z
Learnt from: DrJKL
Repo: Comfy-Org/ComfyUI_frontend PR: 7137
File: src/components/rightSidePanel/parameters/TabParameters.vue:10-0
Timestamp: 2025-12-04T21:43:49.363Z
Learning: Vue 3.5+ supports reactive props destructure in <script setup>. Destructuring props directly (e.g., `const { nodes } = defineProps<{ nodes: LGraphNode[] }>()`) maintains reactivity through compiler transformation. This is the recommended modern approach and does not require using `props.x` or `toRef`/`toRefs`.

Applied to files:

  • src/stores/nodeDefStore.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/stores/nodeDefStore.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/stores/nodeDefStore.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/stores/nodeDefStore.ts
📚 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/stores/nodeDefStore.ts
🧬 Code graph analysis (1)
src/stores/nodeDefStore.ts (1)
src/core/graph/subgraph/proxyWidget.ts (1)
  • isProxyWidget (51-53)
⏰ 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). (4)
  • GitHub Check: test
  • GitHub Check: lint-and-format
  • GitHub Check: setup
  • GitHub Check: collect
🔇 Additional comments (1)
src/stores/nodeDefStore.ts (1)

362-367: LGTM! Clean early return for non-subgraph nodes.

The logic correctly maintains the original behavior for non-subgraph nodes and handles the missing nodeDef case gracefully.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants