Skip to content

Conversation

@viva-jinyi
Copy link
Member

@viva-jinyi viva-jinyi commented Jan 7, 2026

Summary

Enhanced the functionality to provide detailed error information to users when Custom Node Python imports fail.

Changes

  • What: Improved import failed error information display - changed from simple messages to detailed Python traceback display

Review Focus

  • Changes to API response data storage in useConflictDetection.ts (storing traceback in required_value)
  • Priority handling logic for import failed in PackEnableToggle
  • Removal of "Open Logs" button and inline error display in WarningTabPanel

Screenshots (if applicable)

Before
before.webm

After
after.webm

┆Issue is synchronized with this Notion page by Unito

@dosubot dosubot bot added the size:L This PR changes 100-499 lines, ignoring generated files. label Jan 7, 2026
@coderabbitai
Copy link
Contributor

coderabbitai bot commented Jan 7, 2026

Warning

Rate limit exceeded

@viva-jinyi has exceeded the limit for the number of commits that can be reviewed per hour. Please wait 18 minutes and 14 seconds before requesting another review.

⌛ How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

📥 Commits

Reviewing files that changed from the base of the PR and between 1691b06 and d19db06.

📒 Files selected for processing (15)
  • src/components/dialog/content/MissingNodesFooter.vue
  • src/locales/en/main.json
  • src/services/dialogService.ts
  • src/workbench/extensions/manager/components/manager/ImportFailedNodeContent.vue
  • src/workbench/extensions/manager/components/manager/ImportFailedNodeFooter.vue
  • src/workbench/extensions/manager/components/manager/ImportFailedNodeHeader.vue
  • src/workbench/extensions/manager/components/manager/NodeConflictDialogContent.test.ts
  • src/workbench/extensions/manager/components/manager/NodeConflictDialogContent.vue
  • src/workbench/extensions/manager/components/manager/NodeConflictHeader.vue
  • src/workbench/extensions/manager/components/manager/button/PackEnableToggle.vue
  • src/workbench/extensions/manager/components/manager/infoPanel/tabs/WarningTabPanel.vue
  • src/workbench/extensions/manager/composables/useConflictDetection.test.ts
  • src/workbench/extensions/manager/composables/useConflictDetection.ts
  • src/workbench/extensions/manager/composables/useImportFailedDetection.test.ts
  • src/workbench/extensions/manager/composables/useImportFailedDetection.ts
📝 Walkthrough

Walkthrough

Adds a dedicated import-failed dialog flow: new header/content/footer Vue components, a dialogService method showImportFailedNodeDialog, routing of import_failed conflicts to this dialog, updates to conflict detection shape, and related UI and i18n adjustments.

Changes

Cohort / File(s) Summary
New Import-Failed Dialog Components
src/workbench/extensions/manager/components/manager/ImportFailedNodeHeader.vue, src/workbench/extensions/manager/components/manager/ImportFailedNodeContent.vue, src/workbench/extensions/manager/components/manager/ImportFailedNodeFooter.vue
Added three Vue components that render the import-failed dialog (header with title/icon, content listing import_failed conflicts with error/traceback, footer button that closes the dialog).
Dialog Service
src/services/dialogService.ts
Added showImportFailedNodeDialog to render the global-import-failed dialog and pass conflictedPackages via dialogComponentProps.
Conflict detection & composables
src/workbench/extensions/manager/composables/useConflictDetection.ts, src/workbench/extensions/manager/composables/useImportFailedDetection.ts, src/workbench/extensions/manager/composables/useImportFailedDetection.test.ts, src/workbench/extensions/manager/composables/useConflictDetection.test.ts
Modified import-failure data shape to accept { error?, traceback? }; detectImportFailConflicts now collects error and traceback; useImportFailedDetection now invokes showImportFailedNodeDialog with conflictedPackages (type ConflictDetectionResult[]); tests updated to assert the new dialog payload.
Conflict routing in UI
src/workbench/extensions/manager/components/manager/button/PackEnableToggle.vue
Added branch: if any conflict.type === 'import_failed' invoke import-failed dialog flow; otherwise keep existing showNodeConflictDialog path and mark conflicts seen on close.
Warning tab & headers
src/workbench/extensions/manager/components/manager/infoPanel/tabs/WarningTabPanel.vue, src/workbench/extensions/manager/components/manager/NodeConflictHeader.vue
WarningTabPanel: removed importFailedInfo button and nodePack prop; renders import_failed conflict details inline. NodeConflictHeader: replaced icon class with icon-[lucide--triangle-alert] text-gold-600.
Localization & minor UI tweak
src/locales/en/main.json, src/components/dialog/content/MissingNodesFooter.vue
Added importFailed.title i18n key; removed size="sm" prop from Open Manager button in MissingNodesFooter.vue.
Other (manifest/test updates)
package.json (manifest referenced)
Manifest referenced for context; tests adjusted alongside composable changes.

Sequence Diagram(s)

sequenceDiagram
    participant UI as PackEnableToggle (UI)
    participant Composable as useImportFailedDetection
    participant Service as Dialog Service
    participant Dialog as Import-Failed Dialog Components

    UI->>Composable: Detect package conflicts
    Composable->>Composable: Filter for import_failed conflicts
    alt import_failed found
        Composable->>Service: showImportFailedNodeDialog({ conflictedPackages })
        Service->>Dialog: Mount Header, Content, Footer (global-import-failed)
        Dialog->>Dialog: Render errors (messages, tracebacks)
        Note over Dialog: User reviews details
        Dialog->>Service: Close dialog on "Understood"
    else other conflicts
        Composable->>Service: showNodeConflictDialog(conflicts)
        Note over Service: Existing conflict dialog flow
    end
Loading

Possibly related PRs


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

🎭 Playwright Test Results

⚠️ Tests passed with flaky tests

⏰ Completed at: 01/08/2026, 01:40:40 AM UTC

📈 Summary

  • Total Tests: 513
  • Passed: 504 ✅
  • Failed: 0
  • Flaky: 1 ⚠️
  • Skipped: 8 ⏭️

📊 Test Reports by Browser

  • chromium: View Report • ✅ 494 / ❌ 0 / ⚠️ 0 / ⏭️ 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 7, 2026

🎨 Storybook Build Status

Build completed successfully!

⏰ Completed at: 01/08/2026, 01:35:21 AM UTC

🔗 Links


🎉 Your Storybook is ready for review!

@github-actions
Copy link

github-actions bot commented Jan 7, 2026

Bundle Size Report

Summary

  • Raw size: 17.5 MB baseline 17.5 MB — 🔴 +5.99 kB
  • Gzip: 3.57 MB baseline 3.57 MB — 🔴 +942 B
  • Brotli: 2.72 MB baseline 2.72 MB — 🔴 +597 B
  • Bundles: 94 current • 94 baseline • 38 added / 38 removed

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

Per-category breakdown
App Entry Points — 3.25 MB (baseline 3.24 MB) • 🔴 +5.99 kB

Main entry bundles and manifests

File Before After Δ Raw Δ Gzip Δ Brotli
assets/index-CPtfM4c-.js (new) 3.05 MB 🔴 +3.05 MB 🔴 +641 kB 🔴 +486 kB
assets/index-CS6iiBd1.js (removed) 3.05 MB 🟢 -3.05 MB 🟢 -640 kB 🟢 -486 kB
assets/index-a0MfhUBu.js (removed) 194 kB 🟢 -194 kB 🟢 -42.3 kB 🟢 -35.1 kB
assets/index-C6xp2TKU.js (new) 194 kB 🔴 +194 kB 🔴 +42.3 kB 🔴 +35.1 kB
assets/index-BORHme4e.js (removed) 345 B 🟢 -345 B 🟢 -244 B 🟢 -237 B
assets/index-zMWKHXVG.js (new) 345 B 🔴 +345 B 🔴 +246 B 🔴 +200 B

Status: 3 added / 3 removed

Graph Workspace — 1.01 MB (baseline 1.01 MB) • ⚪ 0 B

Graph editor runtime, canvas, workflow orchestration

File Before After Δ Raw Δ Gzip Δ Brotli
assets/GraphView-CkBz80c2.js (removed) 1.01 MB 🟢 -1.01 MB 🟢 -197 kB 🟢 -150 kB
assets/GraphView-jkdvzIo_.js (new) 1.01 MB 🔴 +1.01 MB 🔴 +197 kB 🔴 +150 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-C6lVyXyc.js (removed) 6.63 kB 🟢 -6.63 kB 🟢 -2.14 kB 🟢 -1.9 kB
assets/UserSelectView-DIWKt0Wg.js (new) 6.63 kB 🔴 +6.63 kB 🔴 +2.14 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-ByQ0DXH3.js (new) 22.7 kB 🔴 +22.7 kB 🔴 +5.25 kB 🔴 +4.59 kB
assets/LegacyCreditsPanel-QTp8ekcp.js (removed) 22.7 kB 🟢 -22.7 kB 🟢 -5.25 kB 🟢 -4.6 kB
assets/KeybindingPanel-DkZOjUhH.js (removed) 14.8 kB 🟢 -14.8 kB 🟢 -3.57 kB 🟢 -3.13 kB
assets/KeybindingPanel-DUAupJ40.js (new) 14.8 kB 🔴 +14.8 kB 🔴 +3.57 kB 🔴 +3.14 kB
assets/ExtensionPanel-C5JElr9r.js (new) 11.1 kB 🔴 +11.1 kB 🔴 +2.61 kB 🔴 +2.29 kB
assets/ExtensionPanel-ZOxpMWNj.js (removed) 11.1 kB 🟢 -11.1 kB 🟢 -2.61 kB 🟢 -2.29 kB
assets/AboutPanel-DCX_JvyU.js (removed) 9.16 kB 🟢 -9.16 kB 🟢 -2.46 kB 🟢 -2.21 kB
assets/AboutPanel-DJVA2Z1y.js (new) 9.16 kB 🔴 +9.16 kB 🔴 +2.46 kB 🔴 +2.2 kB
assets/ServerConfigPanel-2HlNV2B-.js (removed) 7.51 kB 🟢 -7.51 kB 🟢 -2.04 kB 🟢 -1.8 kB
assets/ServerConfigPanel-D4s7Pcp0.js (new) 7.51 kB 🔴 +7.51 kB 🔴 +2.04 kB 🔴 +1.8 kB
assets/UserPanel-Bi1hhcH5.js (new) 6.88 kB 🔴 +6.88 kB 🔴 +1.78 kB 🔴 +1.56 kB
assets/UserPanel-DIBDuPl4.js (removed) 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 — 197 kB (baseline 197 kB) • ⚪ 0 B

Reusable component library chunks

File Before After Δ Raw Δ Gzip Δ Brotli
assets/LazyImage.vue_vue_type_script_setup_true_lang-BgTtHERP.js (removed) 63 kB 🟢 -63 kB 🟢 -12.9 kB 🟢 -11.2 kB
assets/LazyImage.vue_vue_type_script_setup_true_lang-vmRBQvLR.js (new) 63 kB 🔴 +63 kB 🔴 +12.9 kB 🔴 +11.2 kB
assets/Load3D.vue_vue_type_script_setup_true_lang-Bq3AKJQj.js (removed) 56 kB 🟢 -56 kB 🟢 -8.76 kB 🟢 -7.52 kB
assets/Load3D.vue_vue_type_script_setup_true_lang-xrObApsy.js (new) 56 kB 🔴 +56 kB 🔴 +8.75 kB 🔴 +7.52 kB
assets/WidgetSelect.vue_vue_type_script_setup_true_lang-BPllnp0J.js (removed) 49 kB 🟢 -49 kB 🟢 -10.5 kB 🟢 -9.13 kB
assets/WidgetSelect.vue_vue_type_script_setup_true_lang-CbDpfiyC.js (new) 49 kB 🔴 +49 kB 🔴 +10.5 kB 🔴 +9.14 kB
assets/WidgetInputNumber.vue_vue_type_script_setup_true_lang-CEV4sGIe.js (new) 10.9 kB 🔴 +10.9 kB 🔴 +2.89 kB 🔴 +2.56 kB
assets/WidgetInputNumber.vue_vue_type_script_setup_true_lang-DxTxUdmC.js (removed) 10.9 kB 🟢 -10.9 kB 🟢 -2.89 kB 🟢 -2.55 kB
assets/ComfyQueueButton-BDi1glKR.js (removed) 8.83 kB 🟢 -8.83 kB 🟢 -2.57 kB 🟢 -2.3 kB
assets/ComfyQueueButton-C3J0WpnM.js (new) 8.83 kB 🔴 +8.83 kB 🔴 +2.58 kB 🔴 +2.3 kB
assets/WidgetWithControl.vue_vue_type_script_setup_true_lang-CPfrzJ91.js (new) 3.72 kB 🔴 +3.72 kB 🔴 +1.45 kB 🔴 +1.32 kB
assets/WidgetWithControl.vue_vue_type_script_setup_true_lang-DHE6qlaO.js (removed) 3.72 kB 🟢 -3.72 kB 🟢 -1.45 kB 🟢 -1.31 kB
assets/WidgetButton-45ORdROZ.js (removed) 2.21 kB 🟢 -2.21 kB 🟢 -993 B 🟢 -870 B
assets/WidgetButton-SZp_oNu5.js (new) 2.21 kB 🔴 +2.21 kB 🔴 +993 B 🔴 +896 B
assets/WidgetLayoutField.vue_vue_type_script_setup_true_lang-CpmPOaiD.js (new) 2.14 kB 🔴 +2.14 kB 🔴 +887 B 🔴 +770 B
assets/WidgetLayoutField.vue_vue_type_script_setup_true_lang-DT0T3wHh.js (removed) 2.14 kB 🟢 -2.14 kB 🟢 -888 B 🟢 -770 B
assets/UserAvatar.vue_vue_type_script_setup_true_lang-PtsQiccS.js 1.34 kB 1.34 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-CEXkR-77.js (new) 7.51 kB 🔴 +7.51 kB 🔴 +1.83 kB 🔴 +1.58 kB
assets/keybindingService-DYK6Uy7_.js (removed) 7.51 kB 🟢 -7.51 kB 🟢 -1.83 kB 🟢 -1.57 kB
assets/audioService-CPlt36nF.js (removed) 2.2 kB 🟢 -2.2 kB 🟢 -960 B 🟢 -821 B
assets/audioService-EJxDuyo2.js (new) 2.2 kB 🔴 +2.2 kB 🔴 +959 B 🔴 +821 B
assets/serverConfigStore-C7L6OKtS.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-Du3J0fkD.js (new) 1.41 kB 🔴 +1.41 kB 🔴 +650 B 🔴 +551 B
assets/audioUtils-s7Ate-gM.js (removed) 1.41 kB 🟢 -1.41 kB 🟢 -648 B 🟢 -550 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-CAFSFyru.js 452 kB 452 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/vendor-other-CtqoBnhc.js 3.9 MB 3.9 MB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/vendor-primevue-B1YbLmDP.js 1.95 MB 1.95 MB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/vendor-three-Boac8LtY.js 2.08 MB 2.08 MB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/vendor-tiptap-DxCePpNw.js 232 kB 232 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/vendor-vue-Btw3Hy_q.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-CMeqx4JD.js (removed) 29.3 kB 🟢 -29.3 kB 🟢 -6.5 kB 🟢 -5.64 kB
assets/SubscriptionRequiredDialogContent-CnuS5FyJ.js (new) 29.3 kB 🔴 +29.3 kB 🔴 +6.51 kB 🔴 +5.65 kB
assets/WidgetRecordAudio-BIMvZOtk.js (removed) 20.4 kB 🟢 -20.4 kB 🟢 -5.23 kB 🟢 -4.63 kB
assets/WidgetRecordAudio-DtHWn6Fo.js (new) 20.4 kB 🔴 +20.4 kB 🔴 +5.23 kB 🔴 +4.63 kB
assets/AudioPreviewPlayer-C3dZyV-q.js (new) 13.3 kB 🔴 +13.3 kB 🔴 +3.34 kB 🔴 +2.99 kB
assets/AudioPreviewPlayer-DSAEzyUM.js (removed) 13.3 kB 🟢 -13.3 kB 🟢 -3.34 kB 🟢 -2.99 kB
assets/ValueControlPopover-_sxRXvZy.js (removed) 5.49 kB 🟢 -5.49 kB 🟢 -1.7 kB 🟢 -1.52 kB
assets/ValueControlPopover-DSzGn1fo.js (new) 5.49 kB 🔴 +5.49 kB 🔴 +1.7 kB 🔴 +1.52 kB
assets/WidgetGalleria-D4c_0Nu8.js (removed) 4.1 kB 🟢 -4.1 kB 🟢 -1.44 kB 🟢 -1.3 kB
assets/WidgetGalleria-DteTODYZ.js (new) 4.1 kB 🔴 +4.1 kB 🔴 +1.44 kB 🔴 +1.3 kB
assets/WidgetColorPicker-bBWFa3Od.js (new) 3.41 kB 🔴 +3.41 kB 🔴 +1.38 kB 🔴 +1.23 kB
assets/WidgetColorPicker-DXl_rv6y.js (removed) 3.41 kB 🟢 -3.41 kB 🟢 -1.38 kB 🟢 -1.23 kB
assets/WidgetTextarea-CW59yeML.js (new) 3.08 kB 🔴 +3.08 kB 🔴 +1.21 kB 🔴 +1.08 kB
assets/WidgetTextarea-DxB76Hzn.js (removed) 3.08 kB 🟢 -3.08 kB 🟢 -1.21 kB 🟢 -1.08 kB
assets/WidgetMarkdown-Bf--vpLL.js (removed) 3.08 kB 🟢 -3.08 kB 🟢 -1.27 kB 🟢 -1.13 kB
assets/WidgetMarkdown-CVfmYHrM.js (new) 3.08 kB 🔴 +3.08 kB 🔴 +1.28 kB 🔴 +1.12 kB
assets/WidgetAudioUI-C4rlifCm.js (removed) 2.89 kB 🟢 -2.89 kB 🟢 -1.16 kB 🟢 -1.06 kB
assets/WidgetAudioUI-CIwxHUl9.js (new) 2.89 kB 🔴 +2.89 kB 🔴 +1.16 kB 🔴 +1.05 kB
assets/WidgetInputText-9SLEh47c.js (new) 1.99 kB 🔴 +1.99 kB 🔴 +918 B 🔴 +852 B
assets/WidgetInputText-hr4OCWAW.js (removed) 1.99 kB 🟢 -1.99 kB 🟢 -918 B 🟢 -848 B
assets/WidgetToggleSwitch-Br1MHyWU.js (new) 1.76 kB 🔴 +1.76 kB 🔴 +830 B 🔴 +732 B
assets/WidgetToggleSwitch-DUVO6F0X.js (removed) 1.76 kB 🟢 -1.76 kB 🟢 -832 B 🟢 -733 B
assets/Media3DTop-CEg4eS97.js (new) 1.49 kB 🔴 +1.49 kB 🔴 +761 B 🔴 +653 B
assets/Media3DTop-DZWalol3.js (removed) 1.49 kB 🟢 -1.49 kB 🟢 -762 B 🟢 -653 B
assets/WidgetSelect-3Y7Koqr1.js (removed) 733 B 🟢 -733 B 🟢 -360 B 🟢 -313 B
assets/WidgetSelect-CIo8drmq.js (new) 733 B 🔴 +733 B 🔴 +357 B 🔴 +299 B
assets/WidgetInputNumber-B7T4lMKQ.js (removed) 673 B 🟢 -673 B 🟢 -345 B 🟢 -295 B
assets/WidgetInputNumber-zFVOGLT-.js (new) 673 B 🔴 +673 B 🔴 +344 B 🔴 +288 B
assets/Load3D-Dvowjsg_.js (removed) 424 B 🟢 -424 B 🟢 -264 B 🟢 -222 B
assets/Load3D-vrCDdJhz.js (new) 424 B 🔴 +424 B 🔴 +264 B 🔴 +231 B
assets/WidgetLegacy-CKnF9bTR.js (removed) 364 B 🟢 -364 B 🟢 -235 B 🟢 -193 B
assets/WidgetLegacy-CLWxTu24.js (new) 364 B 🔴 +364 B 🔴 +234 B 🔴 +193 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-Cig_KuEt.js 1.46 kB 1.46 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/MediaImageTop-CceP_k47.js 1.75 kB 1.75 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/MediaVideoTop-Bm4APiyx.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-Bpup_F4s.js 2.48 kB 2.48 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/WidgetImageCompare-gJXsKU9X.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: 16 added / 16 removed

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 5

🤖 Fix all issues with AI agents
In @src/services/dialogService.ts:
- Around line 488-520: In showImportFailedNodeDialog, replace the redundant
truthy-fallback "conflictedPackages: conflictedPackages || []" with a nullish
fallback or remove it: use "conflictedPackages: conflictedPackages ?? []" if the
ImportFailedNodeContent requires an array, or simply "conflictedPackages" if it
can accept undefined.

In
@src/workbench/extensions/manager/components/manager/button/PackEnableToggle.vue:
- Around line 87-115: The import-failed branch (when hasImportFailed is true)
shows showImportFailedDialog() but never acknowledges the conflict; update the
showImportFailedDialog invocation to include a close/ack handler that calls
markConflictsAsSeen() (and thus sets modal_dismissed) similar to the
dialogComponentProps.onClose used for showNodeConflictDialog, so import failure
modals stop reappearing after being dismissed.

In
@src/workbench/extensions/manager/components/manager/ImportFailedNodeContent.vue:
- Around line 12-17: The component ImportFailedNodeContent.vue is showing
pkg.errorMessage (short message) instead of the detailed Python traceback;
change the rendered content to use pkg.traceback (and simplify the v-if to just
check pkg.traceback or pkg.errorMessage if you want a fallback) so it matches
WarningTabPanel.vue and the logic in useConflictDetection.ts (which ensures
traceback contains full info/fallback); update the template to render traceback
(pkg.traceback) in the mono-styled div and keep the existing class and
conditional visibility.
- Around line 6-10: The scrollable container rendered in the v-for over
importFailedPackages (keyed by pkg.packageId) needs accessibility attributes so
screen readers know it's a scrollable error/code region; update the outer div
that contains the traceback to include role="region" plus an accessible label
(either aria-label like "Error traceback for {pkg.packageId}" or aria-labelledby
pointing to a heading), make it keyboard-focusable with tabindex="0" so users
can scroll via keyboard, and optionally add aria-live or aria-describedby if
there are dynamic updates; apply these attributes to the div that wraps each
package's error content (the element using :key="pkg.packageId") so each package
region is announced correctly.

In @src/workbench/extensions/manager/composables/useImportFailedDetection.ts:
- Around line 74-78: The exported property and the internal variable both named
showImportFailedDialog cause ambiguity; rename the internal function/variable
(e.g., to openDialog or dialogHandler) used inside the composable so the
returned property showImportFailedDialog clearly refers to the public API.
Update all references within useImportFailedDetection (including the closure
that calls showImportFailedDialog([conflicts.value])) to use the new internal
name, ensuring the returned object still exposes showImportFailedDialog.
📜 Review details

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between dcf0886 and 9da7b0e.

📒 Files selected for processing (11)
  • src/components/dialog/content/MissingNodesFooter.vue
  • src/locales/en/main.json
  • src/services/dialogService.ts
  • src/workbench/extensions/manager/components/manager/ImportFailedNodeContent.vue
  • src/workbench/extensions/manager/components/manager/ImportFailedNodeFooter.vue
  • src/workbench/extensions/manager/components/manager/ImportFailedNodeHeader.vue
  • src/workbench/extensions/manager/components/manager/NodeConflictHeader.vue
  • src/workbench/extensions/manager/components/manager/button/PackEnableToggle.vue
  • src/workbench/extensions/manager/components/manager/infoPanel/tabs/WarningTabPanel.vue
  • src/workbench/extensions/manager/composables/useConflictDetection.ts
  • src/workbench/extensions/manager/composables/useImportFailedDetection.ts
🧰 Additional context used
📓 Path-based instructions (16)
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/services/dialogService.ts
  • src/workbench/extensions/manager/components/manager/ImportFailedNodeHeader.vue
  • src/workbench/extensions/manager/components/manager/ImportFailedNodeContent.vue
  • src/workbench/extensions/manager/components/manager/infoPanel/tabs/WarningTabPanel.vue
  • src/components/dialog/content/MissingNodesFooter.vue
  • src/workbench/extensions/manager/components/manager/button/PackEnableToggle.vue
  • src/workbench/extensions/manager/components/manager/NodeConflictHeader.vue
  • src/workbench/extensions/manager/components/manager/ImportFailedNodeFooter.vue
  • src/workbench/extensions/manager/composables/useConflictDetection.ts
  • src/workbench/extensions/manager/composables/useImportFailedDetection.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/services/dialogService.ts
  • src/workbench/extensions/manager/composables/useConflictDetection.ts
  • src/workbench/extensions/manager/composables/useImportFailedDetection.ts
src/**/{services,composables}/**/*.{ts,tsx}

📄 CodeRabbit inference engine (src/CLAUDE.md)

src/**/{services,composables}/**/*.{ts,tsx}: Use api.apiURL() for backend endpoints instead of constructing URLs directly
Use api.fileURL() for static file access instead of constructing URLs directly

Files:

  • src/services/dialogService.ts
  • src/workbench/extensions/manager/composables/useConflictDetection.ts
  • src/workbench/extensions/manager/composables/useImportFailedDetection.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/services/dialogService.ts
  • src/workbench/extensions/manager/components/manager/ImportFailedNodeHeader.vue
  • src/workbench/extensions/manager/components/manager/ImportFailedNodeContent.vue
  • src/workbench/extensions/manager/components/manager/infoPanel/tabs/WarningTabPanel.vue
  • src/components/dialog/content/MissingNodesFooter.vue
  • src/workbench/extensions/manager/components/manager/button/PackEnableToggle.vue
  • src/workbench/extensions/manager/components/manager/NodeConflictHeader.vue
  • src/workbench/extensions/manager/components/manager/ImportFailedNodeFooter.vue
  • src/workbench/extensions/manager/composables/useConflictDetection.ts
  • src/workbench/extensions/manager/composables/useImportFailedDetection.ts
src/**/*.{vue,ts,tsx}

📄 CodeRabbit inference engine (src/CLAUDE.md)

Follow Vue 3 composition API style guide

Files:

  • src/services/dialogService.ts
  • src/workbench/extensions/manager/components/manager/ImportFailedNodeHeader.vue
  • src/workbench/extensions/manager/components/manager/ImportFailedNodeContent.vue
  • src/workbench/extensions/manager/components/manager/infoPanel/tabs/WarningTabPanel.vue
  • src/components/dialog/content/MissingNodesFooter.vue
  • src/workbench/extensions/manager/components/manager/button/PackEnableToggle.vue
  • src/workbench/extensions/manager/components/manager/NodeConflictHeader.vue
  • src/workbench/extensions/manager/components/manager/ImportFailedNodeFooter.vue
  • src/workbench/extensions/manager/composables/useConflictDetection.ts
  • src/workbench/extensions/manager/composables/useImportFailedDetection.ts
**/*.{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/services/dialogService.ts
  • src/workbench/extensions/manager/components/manager/ImportFailedNodeHeader.vue
  • src/workbench/extensions/manager/components/manager/ImportFailedNodeContent.vue
  • src/workbench/extensions/manager/components/manager/infoPanel/tabs/WarningTabPanel.vue
  • src/components/dialog/content/MissingNodesFooter.vue
  • src/workbench/extensions/manager/components/manager/button/PackEnableToggle.vue
  • src/workbench/extensions/manager/components/manager/NodeConflictHeader.vue
  • src/workbench/extensions/manager/components/manager/ImportFailedNodeFooter.vue
  • src/workbench/extensions/manager/composables/useConflictDetection.ts
  • src/workbench/extensions/manager/composables/useImportFailedDetection.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/services/dialogService.ts
  • src/workbench/extensions/manager/components/manager/ImportFailedNodeHeader.vue
  • src/locales/en/main.json
  • src/workbench/extensions/manager/components/manager/ImportFailedNodeContent.vue
  • src/workbench/extensions/manager/components/manager/infoPanel/tabs/WarningTabPanel.vue
  • src/components/dialog/content/MissingNodesFooter.vue
  • src/workbench/extensions/manager/components/manager/button/PackEnableToggle.vue
  • src/workbench/extensions/manager/components/manager/NodeConflictHeader.vue
  • src/workbench/extensions/manager/components/manager/ImportFailedNodeFooter.vue
  • src/workbench/extensions/manager/composables/useConflictDetection.ts
  • src/workbench/extensions/manager/composables/useImportFailedDetection.ts
**/*.{ts,tsx}

📄 CodeRabbit inference engine (AGENTS.md)

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

Files:

  • src/services/dialogService.ts
  • src/workbench/extensions/manager/composables/useConflictDetection.ts
  • src/workbench/extensions/manager/composables/useImportFailedDetection.ts
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/workbench/extensions/manager/components/manager/ImportFailedNodeHeader.vue
  • src/workbench/extensions/manager/components/manager/ImportFailedNodeContent.vue
  • src/workbench/extensions/manager/components/manager/infoPanel/tabs/WarningTabPanel.vue
  • src/components/dialog/content/MissingNodesFooter.vue
  • src/workbench/extensions/manager/components/manager/button/PackEnableToggle.vue
  • src/workbench/extensions/manager/components/manager/NodeConflictHeader.vue
  • src/workbench/extensions/manager/components/manager/ImportFailedNodeFooter.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/workbench/extensions/manager/components/manager/ImportFailedNodeHeader.vue
  • src/workbench/extensions/manager/components/manager/ImportFailedNodeContent.vue
  • src/workbench/extensions/manager/components/manager/infoPanel/tabs/WarningTabPanel.vue
  • src/components/dialog/content/MissingNodesFooter.vue
  • src/workbench/extensions/manager/components/manager/button/PackEnableToggle.vue
  • src/workbench/extensions/manager/components/manager/NodeConflictHeader.vue
  • src/workbench/extensions/manager/components/manager/ImportFailedNodeFooter.vue
  • src/workbench/extensions/manager/composables/useConflictDetection.ts
  • src/workbench/extensions/manager/composables/useImportFailedDetection.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/workbench/extensions/manager/components/manager/ImportFailedNodeHeader.vue
  • src/workbench/extensions/manager/components/manager/ImportFailedNodeContent.vue
  • src/workbench/extensions/manager/components/manager/infoPanel/tabs/WarningTabPanel.vue
  • src/components/dialog/content/MissingNodesFooter.vue
  • src/workbench/extensions/manager/components/manager/button/PackEnableToggle.vue
  • src/workbench/extensions/manager/components/manager/NodeConflictHeader.vue
  • src/workbench/extensions/manager/components/manager/ImportFailedNodeFooter.vue
  • src/workbench/extensions/manager/composables/useConflictDetection.ts
  • src/workbench/extensions/manager/composables/useImportFailedDetection.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/workbench/extensions/manager/components/manager/ImportFailedNodeHeader.vue
  • src/workbench/extensions/manager/components/manager/ImportFailedNodeContent.vue
  • src/workbench/extensions/manager/components/manager/infoPanel/tabs/WarningTabPanel.vue
  • src/components/dialog/content/MissingNodesFooter.vue
  • src/workbench/extensions/manager/components/manager/button/PackEnableToggle.vue
  • src/workbench/extensions/manager/components/manager/NodeConflictHeader.vue
  • src/workbench/extensions/manager/components/manager/ImportFailedNodeFooter.vue
src/components/**/*.vue

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

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

Files:

  • src/components/dialog/content/MissingNodesFooter.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/dialog/content/MissingNodesFooter.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/dialog/content/MissingNodesFooter.vue
**/**/use[A-Z]*.ts

📄 CodeRabbit inference engine (AGENTS.md)

Name composables using the pattern useXyz.ts

Files:

  • src/workbench/extensions/manager/composables/useConflictDetection.ts
  • src/workbench/extensions/manager/composables/useImportFailedDetection.ts
🧠 Learnings (26)
📚 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/services/dialogService.ts
  • src/workbench/extensions/manager/composables/useConflictDetection.ts
  • src/workbench/extensions/manager/composables/useImportFailedDetection.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/services/dialogService.ts
  • src/workbench/extensions/manager/composables/useConflictDetection.ts
  • src/workbench/extensions/manager/composables/useImportFailedDetection.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/services/dialogService.ts
  • src/workbench/extensions/manager/composables/useConflictDetection.ts
  • src/workbench/extensions/manager/composables/useImportFailedDetection.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/services/dialogService.ts
  • src/workbench/extensions/manager/composables/useConflictDetection.ts
  • src/workbench/extensions/manager/composables/useImportFailedDetection.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/services/dialogService.ts
  • src/workbench/extensions/manager/components/manager/ImportFailedNodeHeader.vue
  • src/workbench/extensions/manager/components/manager/ImportFailedNodeContent.vue
  • src/workbench/extensions/manager/components/manager/infoPanel/tabs/WarningTabPanel.vue
  • src/components/dialog/content/MissingNodesFooter.vue
  • src/workbench/extensions/manager/components/manager/button/PackEnableToggle.vue
  • src/workbench/extensions/manager/components/manager/NodeConflictHeader.vue
  • src/workbench/extensions/manager/components/manager/ImportFailedNodeFooter.vue
  • src/workbench/extensions/manager/composables/useConflictDetection.ts
  • src/workbench/extensions/manager/composables/useImportFailedDetection.ts
📚 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 InlineMessage component with Message

Applied to files:

  • src/workbench/extensions/manager/components/manager/ImportFailedNodeHeader.vue
  • src/workbench/extensions/manager/components/manager/infoPanel/tabs/WarningTabPanel.vue
  • src/workbench/extensions/manager/components/manager/NodeConflictHeader.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/workbench/extensions/manager/components/manager/ImportFailedNodeHeader.vue
  • src/workbench/extensions/manager/components/manager/ImportFailedNodeContent.vue
  • src/workbench/extensions/manager/components/manager/infoPanel/tabs/WarningTabPanel.vue
  • src/components/dialog/content/MissingNodesFooter.vue
  • src/workbench/extensions/manager/components/manager/button/PackEnableToggle.vue
  • src/workbench/extensions/manager/components/manager/NodeConflictHeader.vue
  • src/workbench/extensions/manager/components/manager/ImportFailedNodeFooter.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/workbench/extensions/manager/components/manager/ImportFailedNodeHeader.vue
  • src/workbench/extensions/manager/components/manager/ImportFailedNodeContent.vue
  • src/workbench/extensions/manager/components/manager/infoPanel/tabs/WarningTabPanel.vue
  • src/components/dialog/content/MissingNodesFooter.vue
  • src/workbench/extensions/manager/components/manager/button/PackEnableToggle.vue
  • src/workbench/extensions/manager/components/manager/NodeConflictHeader.vue
  • src/workbench/extensions/manager/components/manager/ImportFailedNodeFooter.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/workbench/extensions/manager/components/manager/ImportFailedNodeHeader.vue
  • src/workbench/extensions/manager/components/manager/ImportFailedNodeContent.vue
  • src/workbench/extensions/manager/components/manager/infoPanel/tabs/WarningTabPanel.vue
  • src/components/dialog/content/MissingNodesFooter.vue
  • src/workbench/extensions/manager/components/manager/button/PackEnableToggle.vue
  • src/workbench/extensions/manager/components/manager/NodeConflictHeader.vue
  • src/workbench/extensions/manager/components/manager/ImportFailedNodeFooter.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/workbench/extensions/manager/components/manager/ImportFailedNodeHeader.vue
  • src/workbench/extensions/manager/components/manager/ImportFailedNodeContent.vue
  • src/workbench/extensions/manager/components/manager/infoPanel/tabs/WarningTabPanel.vue
  • src/components/dialog/content/MissingNodesFooter.vue
  • src/workbench/extensions/manager/components/manager/button/PackEnableToggle.vue
  • src/workbench/extensions/manager/components/manager/NodeConflictHeader.vue
  • src/workbench/extensions/manager/components/manager/ImportFailedNodeFooter.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/workbench/extensions/manager/components/manager/ImportFailedNodeHeader.vue
  • src/workbench/extensions/manager/components/manager/ImportFailedNodeContent.vue
  • src/workbench/extensions/manager/components/manager/infoPanel/tabs/WarningTabPanel.vue
  • src/components/dialog/content/MissingNodesFooter.vue
  • src/workbench/extensions/manager/components/manager/button/PackEnableToggle.vue
  • src/workbench/extensions/manager/components/manager/NodeConflictHeader.vue
  • src/workbench/extensions/manager/components/manager/ImportFailedNodeFooter.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/workbench/extensions/manager/components/manager/ImportFailedNodeHeader.vue
  • src/workbench/extensions/manager/components/manager/ImportFailedNodeContent.vue
  • src/workbench/extensions/manager/components/manager/infoPanel/tabs/WarningTabPanel.vue
  • src/components/dialog/content/MissingNodesFooter.vue
  • src/workbench/extensions/manager/components/manager/button/PackEnableToggle.vue
  • src/workbench/extensions/manager/components/manager/NodeConflictHeader.vue
  • src/workbench/extensions/manager/components/manager/ImportFailedNodeFooter.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/workbench/extensions/manager/components/manager/ImportFailedNodeHeader.vue
  • src/workbench/extensions/manager/components/manager/ImportFailedNodeContent.vue
  • src/workbench/extensions/manager/components/manager/infoPanel/tabs/WarningTabPanel.vue
  • src/components/dialog/content/MissingNodesFooter.vue
  • src/workbench/extensions/manager/components/manager/button/PackEnableToggle.vue
  • src/workbench/extensions/manager/components/manager/NodeConflictHeader.vue
  • src/workbench/extensions/manager/components/manager/ImportFailedNodeFooter.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,ts} : Implement proper error handling

Applied to files:

  • src/workbench/extensions/manager/components/manager/ImportFailedNodeContent.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 TabMenu component with Tabs without panels

Applied to files:

  • src/workbench/extensions/manager/components/manager/infoPanel/tabs/WarningTabPanel.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/workbench/extensions/manager/components/manager/infoPanel/tabs/WarningTabPanel.vue
  • src/workbench/extensions/manager/components/manager/NodeConflictHeader.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/dialog/content/MissingNodesFooter.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 **/*.{ts,tsx,vue} : Use sorted and grouped imports organized by plugin/source

Applied to files:

  • src/workbench/extensions/manager/composables/useImportFailedDetection.ts
📚 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/workbench/extensions/manager/composables/useImportFailedDetection.ts
📚 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 : Extract complex conditionals to computed properties

Applied to files:

  • src/workbench/extensions/manager/composables/useImportFailedDetection.ts
📚 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/workbench/extensions/manager/composables/useImportFailedDetection.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 **/*.vue : Prefer `computed()` over `ref` with `watch` when deriving values

Applied to files:

  • src/workbench/extensions/manager/composables/useImportFailedDetection.ts
📚 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/**/{components,composables}/**/*.{ts,tsx,vue} : Use vue-i18n for ALL user-facing strings by adding them to `src/locales/en/main.json`

Applied to files:

  • src/workbench/extensions/manager/composables/useImportFailedDetection.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 : Utilize ref and reactive for reactive state

Applied to files:

  • src/workbench/extensions/manager/composables/useImportFailedDetection.ts
📚 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 vue-i18n for ALL UI strings

Applied to files:

  • src/workbench/extensions/manager/composables/useImportFailedDetection.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} : Use vue-i18n in composition API for any string literals. Place new translation entries in src/locales/en/main.json

Applied to files:

  • src/workbench/extensions/manager/composables/useImportFailedDetection.ts
🧬 Code graph analysis (2)
src/services/dialogService.ts (2)
src/workbench/extensions/manager/types/conflictDetectionTypes.ts (1)
  • ConflictDetectionResult (55-61)
src/stores/dialogStore.ts (1)
  • DialogComponentProps (37-38)
src/workbench/extensions/manager/composables/useImportFailedDetection.ts (1)
src/workbench/extensions/manager/types/conflictDetectionTypes.ts (1)
  • ConflictDetectionResult (55-61)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (5)
  • GitHub Check: deploy-and-comment
  • GitHub Check: test
  • GitHub Check: lint-and-format
  • GitHub Check: collect
  • GitHub Check: setup
🔇 Additional comments (12)
src/components/dialog/content/MissingNodesFooter.vue (1)

25-25: Verify removal of button size prop.

The size="sm" prop was removed from the "Open Manager" button, while other buttons in the same footer component retain explicit size props (size="md" on lines 18 and 28-31). This creates inconsistent button sizing across the footer.

Was this removal intentional? If the buttons should have uniform sizing, consider either:

  1. Restoring size="sm" to match the original design, or
  2. Removing size props from all buttons to use consistent defaults
🔎 Restore size prop for consistency
-    <Button variant="textonly" @click="openManager">{{
+    <Button variant="textonly" size="sm" @click="openManager">{{
       $t('g.openManager')
     }}</Button>
src/workbench/extensions/manager/components/manager/NodeConflictHeader.vue (1)

5-5: LGTM! Icon migration aligns with guidelines.

The icon change from PrimeIcons (pi pi-exclamation-triangle) to Lucide (icon-[lucide--triangle-alert]) follows the coding guidelines' preference for Lucide icons. The semantic color class text-gold-600 maintains visual consistency with the new ImportFailedNodeHeader component.

src/locales/en/main.json (1)

381-383: LGTM! Translation entry properly structured.

The new importFailed.title translation key is properly formatted and follows the existing pattern. It's correctly placed at the root level and supports the new import failure dialog UI.

src/services/dialogService.ts (2)

33-35: LGTM! Import statements properly structured.

The new component imports for the import-failed dialog flow are correctly placed and follow the existing patterns in the file.


601-601: LGTM! Function properly exported.

The new showImportFailedNodeDialog function is correctly added to the return object, making it accessible to consumers of the dialog service. The placement alongside showNodeConflictDialog makes logical sense given their related functionality.

src/workbench/extensions/manager/components/manager/ImportFailedNodeHeader.vue (1)

12-12: Add TypeScript language attribute.

The coding guidelines require <script setup lang="ts"> for all Vue components. Add the lang="ts" attribute for consistency and type safety.

🔎 Add TypeScript language attribute
-<script setup lang="ts"></script>
+<script setup lang="ts"></script>

Based on coding guidelines: "Use Vue 3.5+ with TypeScript in .vue files, exclusively using Composition API with <script setup lang="ts"> syntax"

⛔ Skipped due to learnings
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 : Use Vue 3.5+ with TypeScript in `.vue` files, exclusively using Composition API with `<script setup lang="ts">` syntax
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 **/*.{ts,tsx,vue} : Use TypeScript exclusively; do not write new JavaScript code
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 : Use Vue 3.5 TypeScript-style default prop declaration with reactive props destructuring; do not use `withDefaults` or runtime props declaration
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
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/**/*.{ts,tsx,vue} : Implement proper TypeScript types throughout the codebase
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/**/*.ts : Use TypeScript for type safety
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 **/*.{ts,tsx,vue} : Do not use `any` type or `as any` type assertions; fix the underlying type issue instead
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 **/*.{ts,tsx,vue} : Enforce ESLint rules including Vue + TypeScript rules, disallow floating promises, disallow unused imports, and restrict i18n raw text in templates
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/**/*.{ts,tsx,vue} : Avoid using ts-expect-error; use proper TypeScript types instead
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/**/stores/**/*.{ts,tsx} : Use TypeScript for type safety in state management stores
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 setup() function for component logic
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/**/*.ts : Use es-toolkit for utility functions
src/workbench/extensions/manager/components/manager/ImportFailedNodeFooter.vue (1)

1-20: LGTM!

The footer component follows Vue 3.5 Composition API patterns correctly, uses the common Button component as per repository standards, and implements proper i18n for user-facing text.

src/workbench/extensions/manager/components/manager/button/PackEnableToggle.vue (1)

44-44: LGTM!

The import and initialization of useImportFailedDetection follows Vue 3.5 Composition API patterns correctly.

Also applies to: 58-58

src/workbench/extensions/manager/composables/useConflictDetection.ts (1)

391-436: LGTM!

The updated detectImportFailConflicts function correctly handles the new API response format with flexible { error?, traceback? } structure. The data mapping is sound:

  • current_value: short error message for summary display
  • required_value: detailed traceback (or error if unavailable) for full error details

This aligns with the PR objective of displaying detailed Python tracebacks for import failures.

src/workbench/extensions/manager/components/manager/infoPanel/tabs/WarningTabPanel.vue (1)

8-25: LGTM!

The type-specific rendering correctly displays detailed tracebacks for import_failed conflicts via conflict.required_value, aligning with the PR objective of showing Python tracebacks inline. The removal of the "Open Logs" button in favor of direct display improves the user experience.

src/workbench/extensions/manager/composables/useImportFailedDetection.ts (2)

7-10: LGTM!

The import statement correctly adds the ConflictDetectionResult type needed for the updated function signatures. The import follows the project's TypeScript conventions with proper type-only imports.


29-38: LGTM!

The function correctly integrates with the new dialog service method showImportFailedNodeDialog. The defensive checks ensure the dialog is only shown when there are actual conflicts to display.

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 (1)
src/workbench/extensions/manager/composables/useConflictDetection.test.ts (1)

400-434: Add test coverage for the traceback field—the primary feature of this PR.

This test only verifies import failures with an error field and omits the traceback field entirely. According to the PR objectives, the main enhancement is displaying detailed Python traceback. Add test cases covering:

  • Import failure with both error and traceback fields
  • Import failure with only traceback (if supported)
  • Verification that required_value correctly combines both error and traceback into fullErrorInfo
  • Edge case where import fail info is null
🔎 Proposed additional test cases
it('should detect import failures with traceback', async () => {
  mockInstalledPacks.isReady.value = true
  mockInstalledPacksWithVersions.value = [
    {
      id: 'fail-pack-with-traceback',
      version: '1.0.0'
    }
  ]

  vi.mocked(
    mockComfyManagerService.getImportFailInfoBulk
  ).mockResolvedValue({
    'fail-pack-with-traceback': {
      error: 'ImportError: cannot import name Foo',
      traceback: 'Traceback (most recent call last):\n  File "module.py", line 10\n    raise ImportError\nImportError: cannot import name Foo',
      name: 'fail-pack-with-traceback',
      path: '/path/to/pack'
    }
  })

  vi.mocked(mockRegistryService.getBulkNodeVersions).mockResolvedValue({
    node_versions: []
  })

  const { runFullConflictAnalysis } = useConflictDetection()
  const result = await runFullConflictAnalysis()

  expect(result.results).toHaveLength(1)
  expect(result.results[0].conflicts).toContainEqual({
    type: 'import_failed',
    current_value: 'ImportError: cannot import name Foo',
    required_value: expect.stringContaining('Traceback (most recent call last)')
  })
  expect(result.results[0].conflicts[0].required_value).toContain('ImportError: cannot import name Foo')
})

it('should handle import failures with null failureInfo', async () => {
  mockInstalledPacks.isReady.value = true
  mockInstalledPacksWithVersions.value = [
    {
      id: 'null-fail-pack',
      version: '1.0.0'
    }
  ]

  vi.mocked(
    mockComfyManagerService.getImportFailInfoBulk
  ).mockResolvedValue({
    'null-fail-pack': null
  })

  vi.mocked(mockRegistryService.getBulkNodeVersions).mockResolvedValue({
    node_versions: []
  })

  const { runFullConflictAnalysis } = useConflictDetection()
  const result = await runFullConflictAnalysis()

  // Verify the package is handled gracefully (no conflicts or appropriate default)
  expect(result.results).toHaveLength(1)
  // Adjust expectation based on actual implementation behavior for null
})
🤖 Fix all issues with AI agents
In @src/workbench/extensions/manager/composables/useConflictDetection.test.ts:
- Around line 413-416: Replace the `as any` assertion with a proper typed
interface: define an interface (e.g., ImportFailInfo { error?: string;
traceback?: string; name: string; path: string }) and use it for the test object
instead of `as any`; also update the service signature/type for
getImportFailInfoBulk to return/accept ImportFailInfo[] (or the matching shape)
so the test and service types align and no `any` is required.

In
@src/workbench/extensions/manager/composables/useImportFailedDetection.test.ts:
- Around line 230-242: The test currently checks that
mockDialogService.showImportFailedNodeDialog is called with conflicts containing
an import_failed type but doesn't assert the error/traceback is propagated;
update the expectation in useImportFailedDetection.test (the expect(...) block
around mockDialogService.showImportFailedNodeDialog) to also assert that the
conflicting entry includes a required_value field (or required_value.traceback)
containing the error details/string — locate the expectation referencing
conflictedPackages and extend the expect.objectContaining for the conflict to
include required_value (or required_value.traceback) to ensure the traceback is
passed through to the dialog payload.
📜 Review details

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 9da7b0e and 1691b06.

📒 Files selected for processing (2)
  • src/workbench/extensions/manager/composables/useConflictDetection.test.ts
  • src/workbench/extensions/manager/composables/useImportFailedDetection.test.ts
🧰 Additional context used
📓 Path-based instructions (12)
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/workbench/extensions/manager/composables/useImportFailedDetection.test.ts
  • src/workbench/extensions/manager/composables/useConflictDetection.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/workbench/extensions/manager/composables/useImportFailedDetection.test.ts
  • src/workbench/extensions/manager/composables/useConflictDetection.test.ts
src/**/{services,composables}/**/*.{ts,tsx}

📄 CodeRabbit inference engine (src/CLAUDE.md)

src/**/{services,composables}/**/*.{ts,tsx}: Use api.apiURL() for backend endpoints instead of constructing URLs directly
Use api.fileURL() for static file access instead of constructing URLs directly

Files:

  • src/workbench/extensions/manager/composables/useImportFailedDetection.test.ts
  • src/workbench/extensions/manager/composables/useConflictDetection.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/workbench/extensions/manager/composables/useImportFailedDetection.test.ts
  • src/workbench/extensions/manager/composables/useConflictDetection.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/workbench/extensions/manager/composables/useImportFailedDetection.test.ts
  • src/workbench/extensions/manager/composables/useConflictDetection.test.ts
src/**/*.{vue,ts,tsx}

📄 CodeRabbit inference engine (src/CLAUDE.md)

Follow Vue 3 composition API style guide

Files:

  • src/workbench/extensions/manager/composables/useImportFailedDetection.test.ts
  • src/workbench/extensions/manager/composables/useConflictDetection.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/workbench/extensions/manager/composables/useImportFailedDetection.test.ts
  • src/workbench/extensions/manager/composables/useConflictDetection.test.ts
**/*.{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/workbench/extensions/manager/composables/useImportFailedDetection.test.ts
  • src/workbench/extensions/manager/composables/useConflictDetection.test.ts
**/**/use[A-Z]*.ts

📄 CodeRabbit inference engine (AGENTS.md)

Name composables using the pattern useXyz.ts

Files:

  • src/workbench/extensions/manager/composables/useImportFailedDetection.test.ts
  • src/workbench/extensions/manager/composables/useConflictDetection.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/workbench/extensions/manager/composables/useImportFailedDetection.test.ts
  • src/workbench/extensions/manager/composables/useConflictDetection.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/workbench/extensions/manager/composables/useImportFailedDetection.test.ts
  • src/workbench/extensions/manager/composables/useConflictDetection.test.ts
**/*.{ts,tsx}

📄 CodeRabbit inference engine (AGENTS.md)

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

Files:

  • src/workbench/extensions/manager/composables/useImportFailedDetection.test.ts
  • src/workbench/extensions/manager/composables/useConflictDetection.test.ts
🧠 Learnings (8)
📚 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/workbench/extensions/manager/composables/useImportFailedDetection.test.ts
  • src/workbench/extensions/manager/composables/useConflictDetection.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/workbench/extensions/manager/composables/useImportFailedDetection.test.ts
  • src/workbench/extensions/manager/composables/useConflictDetection.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/workbench/extensions/manager/composables/useImportFailedDetection.test.ts
  • src/workbench/extensions/manager/composables/useConflictDetection.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/workbench/extensions/manager/composables/useImportFailedDetection.test.ts
  • src/workbench/extensions/manager/composables/useConflictDetection.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/workbench/extensions/manager/composables/useImportFailedDetection.test.ts
  • src/workbench/extensions/manager/composables/useConflictDetection.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/workbench/extensions/manager/composables/useImportFailedDetection.test.ts
  • src/workbench/extensions/manager/composables/useConflictDetection.test.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/workbench/extensions/manager/composables/useImportFailedDetection.test.ts
  • src/workbench/extensions/manager/composables/useConflictDetection.test.ts
📚 Learning: 2025-11-24T19:48:09.318Z
Learnt from: CR
Repo: Comfy-Org/ComfyUI_frontend PR: 0
File: .cursor/rules/unit-test.mdc:0-0
Timestamp: 2025-11-24T19:48:09.318Z
Learning: Applies to test/**/*.{test,spec}.{js,ts,jsx,tsx} : Prefer the use of `test.extend` over loose variables; import `test as baseTest` from `vitest`

Applied to files:

  • src/workbench/extensions/manager/composables/useConflictDetection.test.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). (4)
  • GitHub Check: test
  • GitHub Check: setup
  • GitHub Check: lint-and-format
  • GitHub Check: collect
🔇 Additional comments (2)
src/workbench/extensions/manager/composables/useImportFailedDetection.test.ts (1)

46-49: LGTM! Mock setup correctly includes the new dialog method.

The mock now includes both showErrorDialog and showImportFailedNodeDialog, which properly supports the updated dialog flow for import failures.

src/workbench/extensions/manager/composables/useConflictDetection.test.ts (1)

431-432: The test expectation is correct. The implementation intentionally sets both current_value and required_value to the same value when no traceback is present. The logic is fullErrorInfo = traceback || errorMsg, which means when traceback is absent or empty, it falls back to the error message. The test mock does not provide a traceback field, so both values correctly resolve to 'Import error'.

Comment on lines +413 to 416
error: 'Import error',
name: 'fail-pack',
path: '/path/to/pack'
} as any // The actual API returns different structure than types
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

Replace as any with proper TypeScript types.

The type assertion as any bypasses type safety and violates coding guidelines. Update the type definitions to match the actual API response structure { error?: string; traceback?: string; name: string; path: string } or use a properly typed interface.

As per coding guidelines, avoid using as any type assertions and fix the underlying type issue instead.

Details 🔎 Proposed fix

Define a proper type for the import failure response:

+type ImportFailInfo = {
+  error?: string
+  traceback?: string
+  name: string
+  path: string
+}
+
 vi.mocked(
   mockComfyManagerService.getImportFailInfoBulk
 ).mockResolvedValue({
   'fail-pack': {
     error: 'Import error',
     name: 'fail-pack',
     path: '/path/to/pack'
-  } as any // The actual API returns different structure than types
+  }
 })

Additionally, ensure the actual type definition for getImportFailInfoBulk in the service is updated to match this structure.

📝 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
error: 'Import error',
name: 'fail-pack',
path: '/path/to/pack'
} as any // The actual API returns different structure than types
type ImportFailInfo = {
error?: string
traceback?: string
name: string
path: string
}
vi.mocked(
mockComfyManagerService.getImportFailInfoBulk
).mockResolvedValue({
'fail-pack': {
error: 'Import error',
name: 'fail-pack',
path: '/path/to/pack'
}
})
🤖 Prompt for AI Agents
In @src/workbench/extensions/manager/composables/useConflictDetection.test.ts
around lines 413 - 416, Replace the `as any` assertion with a proper typed
interface: define an interface (e.g., ImportFailInfo { error?: string;
traceback?: string; name: string; path: string }) and use it for the test object
instead of `as any`; also update the service signature/type for
getImportFailInfoBulk to return/accept ImportFailInfo[] (or the matching shape)
so the test and service types align and no `any` is required.

Comment on lines 230 to 245
expect(mockDialogService.showImportFailedNodeDialog).toHaveBeenCalledWith({
conflictedPackages: expect.arrayContaining([
expect.objectContaining({
package_id: 'test-package',
package_name: 'Test Package',
conflicts: expect.arrayContaining([
expect.objectContaining({
type: 'import_failed'
})
])
})
])
})
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 verifying that error details are passed through to the dialog.

The assertion correctly validates the dialog method is called with the expected structure. However, since the PR objective emphasizes storing traceback in required_value, consider explicitly asserting that this field is present in the conflicts to ensure error details are properly passed through to the dialog.

🔎 Optional enhancement to verify traceback field
 expect(mockDialogService.showImportFailedNodeDialog).toHaveBeenCalledWith({
   conflictedPackages: expect.arrayContaining([
     expect.objectContaining({
       package_id: 'test-package',
       package_name: 'Test Package',
       conflicts: expect.arrayContaining([
         expect.objectContaining({
-          type: 'import_failed'
+          type: 'import_failed',
+          required_value: expect.any(String)
         })
       ])
     })
   ])
 })

This ensures the error details/traceback are preserved in the dialog payload.

📝 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
expect(mockDialogService.showImportFailedNodeDialog).toHaveBeenCalledWith({
conflictedPackages: expect.arrayContaining([
expect.objectContaining({
package_id: 'test-package',
package_name: 'Test Package',
conflicts: expect.arrayContaining([
expect.objectContaining({
type: 'import_failed'
})
])
})
])
})
expect(mockDialogService.showImportFailedNodeDialog).toHaveBeenCalledWith({
conflictedPackages: expect.arrayContaining([
expect.objectContaining({
package_id: 'test-package',
package_name: 'Test Package',
conflicts: expect.arrayContaining([
expect.objectContaining({
type: 'import_failed',
required_value: expect.any(String)
})
])
})
])
})
🤖 Prompt for AI Agents
In
@src/workbench/extensions/manager/composables/useImportFailedDetection.test.ts
around lines 230 - 242, The test currently checks that
mockDialogService.showImportFailedNodeDialog is called with conflicts containing
an import_failed type but doesn't assert the error/traceback is propagated;
update the expectation in useImportFailedDetection.test (the expect(...) block
around mockDialogService.showImportFailedNodeDialog) to also assert that the
conflicting entry includes a required_value field (or required_value.traceback)
containing the error details/string — locate the expectation referencing
conflictedPackages and extend the expect.objectContaining for the conflict to
include required_value (or required_value.traceback) to ensure the traceback is
passed through to the dialog payload.

@viva-jinyi viva-jinyi force-pushed the manager/import-failed-msg branch from 093848d to 755c6b4 Compare January 8, 2026 01:17
@viva-jinyi viva-jinyi force-pushed the manager/import-failed-msg branch from 255a92e to d19db06 Compare January 8, 2026 01:33
@viva-jinyi viva-jinyi enabled auto-merge (squash) January 8, 2026 01:34
Copy link
Contributor

@christian-byrne christian-byrne left a comment

Choose a reason for hiding this comment

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

LGTM with nits

Comment on lines +406 to +410
const errorMsg = failureInfo.error || 'Unknown import error'
const traceback = failureInfo.traceback || ''

// Combine error and traceback for display
const fullErrorInfo = traceback || errorMsg
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: I believe this code could be simplified

@viva-jinyi viva-jinyi merged commit 6a73391 into main Jan 8, 2026
28 checks passed
@viva-jinyi viva-jinyi deleted the manager/import-failed-msg branch January 8, 2026 01:54
@viva-jinyi viva-jinyi mentioned this pull request Jan 8, 2026
christian-byrne pushed a commit that referenced this pull request Jan 8, 2026
## Summary

<!-- One sentence describing what changed and why. -->
#7871
#7858
I refactored the code based on the reviews I received on those two PRs.

## Changes

- **What**: 

1. Updated IconGroup to address the backgroundClass handling.
2. Replaced text-gold-600 with a semantic color token.
3. Replaced PrimeVue Icon with a lucide icon.

┆Issue is synchronized with this [Notion
page](https://www.notion.so/PR-7893-Refactor-code-reivew-2e26d73d365081e68a44e89ed1163062)
by [Unito](https://www.unito.io)

---------

Co-authored-by: Alexander Brown <[email protected]>
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
Co-authored-by: GitHub Action <[email protected]>
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