Skip to content

Conversation

@DrJKL
Copy link
Contributor

@DrJKL DrJKL commented Nov 26, 2025

Summary

Make it easier to open the lightbox preview.

Review Focus

The first click still selects the image. I liked the suggestion to require shift or ctrl to initiate selection and have click go back to the previous behavior.

┆Issue is synchronized with this Notion page by Unito

@DrJKL DrJKL requested a review from a team as a code owner November 26, 2025 09:17
@dosubot dosubot bot added the size:M This PR changes 30-99 lines, ignoring generated files. label Nov 26, 2025
@coderabbitai
Copy link
Contributor

coderabbitai bot commented Nov 26, 2025

📝 Walkthrough

Walkthrough

The changes simplify hover state management in MediaAssetCard by removing overlay hover tracking and refactoring button components, while adding a double-click "view" event emission to MediaImageTop.

Changes

Cohort / File(s) Summary
Hover State Simplification
src/platform/assets/components/MediaAssetCard.vue
Removed overlay hover state tracking and event handlers; replaced nested tooltip-wrapped button group with direct IconButton and MoreButton components; removed mouseenter/mouseleave bindings from Output Count button; updated hover state logic to depend solely on isHovered and isMenuOpen.
View Event Addition
src/platform/assets/components/MediaImageTop.vue
Added "view" emitted event that triggers on double-click of the root div element.
✨ Finishing touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch drjkl/click-clack

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

@github-actions
Copy link

github-actions bot commented Nov 26, 2025

🎭 Playwright Test Results

⚠️ Tests passed with flaky tests

⏰ Completed at: 11/26/2025, 09:27:49 AM UTC

📈 Summary

  • Total Tests: 497
  • Passed: 486 ✅
  • Failed: 0
  • Flaky: 2 ⚠️
  • Skipped: 9 ⏭️

📊 Test Reports by Browser

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

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

@github-actions
Copy link

github-actions bot commented Nov 26, 2025

🎨 Storybook Build Status

Build completed successfully!

⏰ Completed at: 11/26/2025, 09:18:38 AM UTC

🔗 Links


🎉 Your Storybook is ready for review!

@github-actions
Copy link

Bundle Size Report

Summary

  • Raw size: 17 MB baseline 17 MB — 🟢 -839 B
  • Gzip: 3.37 MB baseline 3.37 MB — 🟢 -28 B
  • Brotli: 2.58 MB baseline 2.58 MB — 🟢 -148 B
  • Bundles: 93 current • 93 baseline • 39 added / 39 removed

Category Glance
App Entry Points 🟢 -907 B (3.18 MB) · Other 🔴 +68 B (3.84 MB) · Vendor & Third-Party ⚪ 0 B (8.56 MB) · Graph Workspace ⚪ 0 B (946 kB) · Panels & Settings ⚪ 0 B (298 kB) · UI Components ⚪ 0 B (139 kB) · + 3 more

Per-category breakdown
App Entry Points — 3.18 MB (baseline 3.18 MB) • 🟢 -907 B

Main entry bundles and manifests

File Before After Δ Raw Δ Gzip Δ Brotli
assets/index-B1Sd_dlo.js (removed) 2.95 MB 🟢 -2.95 MB 🟢 -614 kB 🟢 -466 kB
assets/index-Cq9MjbwK.js (new) 2.95 MB 🔴 +2.95 MB 🔴 +614 kB 🔴 +466 kB
assets/index-C2LUHU_h.js (new) 227 kB 🔴 +227 kB 🔴 +48.6 kB 🔴 +40 kB
assets/index-E7BB4-_a.js (removed) 227 kB 🟢 -227 kB 🟢 -48.6 kB 🟢 -40 kB
assets/index-Dlls23XS.js (removed) 345 B 🟢 -345 B 🟢 -243 B 🟢 -202 B
assets/index-qjmtbZvt.js (new) 345 B 🔴 +345 B 🔴 +243 B 🔴 +199 B

Status: 3 added / 3 removed

Graph Workspace — 946 kB (baseline 946 kB) • ⚪ 0 B

Graph editor runtime, canvas, workflow orchestration

File Before After Δ Raw Δ Gzip Δ Brotli
assets/GraphView-07H-x51C.js (removed) 946 kB 🟢 -946 kB 🟢 -183 kB 🟢 -140 kB
assets/GraphView-BwxCzoqN.js (new) 946 kB 🔴 +946 kB 🔴 +183 kB 🔴 +140 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-oaW2aVQu.js (removed) 6.54 kB 🟢 -6.54 kB 🟢 -2.14 kB 🟢 -1.9 kB
assets/UserSelectView-ziZVQQRg.js (new) 6.54 kB 🔴 +6.54 kB 🔴 +2.14 kB 🔴 +1.9 kB

Status: 1 added / 1 removed

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

Configuration panels, inspectors, and settings screens

File Before After Δ Raw Δ Gzip Δ Brotli
assets/CreditsPanel-DodD9rLx.js (new) 21.4 kB 🔴 +21.4 kB 🔴 +5.15 kB 🔴 +4.5 kB
assets/CreditsPanel-DVFatSW_.js (removed) 21.4 kB 🟢 -21.4 kB 🟢 -5.15 kB 🟢 -4.5 kB
assets/KeybindingPanel-B7g7KeXK.js (removed) 13.6 kB 🟢 -13.6 kB 🟢 -3.42 kB 🟢 -3 kB
assets/KeybindingPanel-DndJ9VQr.js (new) 13.6 kB 🔴 +13.6 kB 🔴 +3.43 kB 🔴 +3.01 kB
assets/ExtensionPanel-BEIZFFaW.js (removed) 10.4 kB 🟢 -10.4 kB 🟢 -2.48 kB 🟢 -2.17 kB
assets/ExtensionPanel-FFgorBMr.js (new) 10.4 kB 🔴 +10.4 kB 🔴 +2.48 kB 🔴 +2.17 kB
assets/AboutPanel-1htXMmWb.js (removed) 9.16 kB 🟢 -9.16 kB 🟢 -2.46 kB 🟢 -2.21 kB
assets/AboutPanel-DSWBPJbv.js (new) 9.16 kB 🔴 +9.16 kB 🔴 +2.47 kB 🔴 +2.21 kB
assets/ServerConfigPanel-Cm0Ruy5z.js (removed) 6.56 kB 🟢 -6.56 kB 🟢 -1.83 kB 🟢 -1.63 kB
assets/ServerConfigPanel-CPjw2abi.js (new) 6.56 kB 🔴 +6.56 kB 🔴 +1.83 kB 🔴 +1.63 kB
assets/UserPanel-D8XPm13p.js (new) 6.23 kB 🔴 +6.23 kB 🔴 +1.72 kB 🔴 +1.52 kB
assets/UserPanel-GRbl4AJg.js (removed) 6.23 kB 🟢 -6.23 kB 🟢 -1.72 kB 🟢 -1.51 kB
assets/settings-BXTtSH4O.js 33.3 kB 33.3 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/settings-C9Pzn-NG.js 25.2 kB 25.2 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/settings-CCy2fA_h.js 27.3 kB 27.3 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/settings-CQpqEFfl.js 26.6 kB 26.6 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/settings-DHcnxypw.js 21.7 kB 21.7 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/settings-DhFTK9fY.js 25.1 kB 25.1 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/settings-DlT4t_ui.js 25.9 kB 25.9 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/settings-DRgSrIdD.js 24.2 kB 24.2 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/settings-tjkeqiZq.js 21.1 kB 21.1 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B

Status: 6 added / 6 removed

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

Reusable component library chunks

File Before After Δ Raw Δ Gzip Δ Brotli
assets/Load3D.vue_vue_type_script_setup_true_lang-38I_dIWi.js (new) 53.9 kB 🔴 +53.9 kB 🔴 +8.52 kB 🔴 +7.32 kB
assets/Load3D.vue_vue_type_script_setup_true_lang-CDipxR8c.js (removed) 53.9 kB 🟢 -53.9 kB 🟢 -8.52 kB 🟢 -7.31 kB
assets/WidgetSelect.vue_vue_type_script_setup_true_lang-D_xpNvUE.js (new) 46.9 kB 🔴 +46.9 kB 🔴 +10.1 kB 🔴 +8.77 kB
assets/WidgetSelect.vue_vue_type_script_setup_true_lang-D-ls2FI5.js (removed) 46.9 kB 🟢 -46.9 kB 🟢 -10.1 kB 🟢 -8.77 kB
assets/WidgetInputNumber.vue_vue_type_script_setup_true_lang-CeeKHVKq.js (new) 12.8 kB 🔴 +12.8 kB 🔴 +3.35 kB 🔴 +2.97 kB
assets/WidgetInputNumber.vue_vue_type_script_setup_true_lang-CEyzyd2_.js (removed) 12.8 kB 🟢 -12.8 kB 🟢 -3.35 kB 🟢 -2.97 kB
assets/ComfyQueueButton-C-vx_CMD.js (new) 7.73 kB 🔴 +7.73 kB 🔴 +2.2 kB 🔴 +1.95 kB
assets/ComfyQueueButton-CS5XVFsm.js (removed) 7.73 kB 🟢 -7.73 kB 🟢 -2.2 kB 🟢 -1.95 kB
assets/WidgetLayoutField.vue_vue_type_script_setup_true_lang-CTPGhfHT.js (removed) 2.16 kB 🟢 -2.16 kB 🟢 -826 B 🟢 -718 B
assets/WidgetLayoutField.vue_vue_type_script_setup_true_lang-vTz9ZPxp.js (new) 2.16 kB 🔴 +2.16 kB 🔴 +828 B 🔴 +715 B
assets/MediaTitle.vue_vue_type_script_setup_true_lang-BAsUscXS.js (new) 897 B 🔴 +897 B 🔴 +504 B 🔴 +430 B
assets/MediaTitle.vue_vue_type_script_setup_true_lang-C3ShFXw_.js (removed) 897 B 🟢 -897 B 🟢 -502 B 🟢 -463 B
assets/LazyImage.vue_vue_type_script_setup_true_lang-DNzEEbAp.js 10.8 kB 10.8 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/UserAvatar.vue_vue_type_script_setup_true_lang-B4qnwhJi.js 1.34 kB 1.34 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/WidgetButton-0Kc6B4DO.js 2.04 kB 2.04 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B

Status: 6 added / 6 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-Apa1REWe.js (new) 7.51 kB 🔴 +7.51 kB 🔴 +1.83 kB 🔴 +1.59 kB
assets/keybindingService-DhoPEZ6i.js (removed) 7.51 kB 🟢 -7.51 kB 🟢 -1.83 kB 🟢 -1.58 kB
assets/audioService-CJqD09e9.js (new) 2.2 kB 🔴 +2.2 kB 🔴 +962 B 🔴 +825 B
assets/audioService-Cq9bSBtP.js (removed) 2.2 kB 🟢 -2.2 kB 🟢 -959 B 🟢 -829 B
assets/serverConfigStore-NS6ibDz2.js 2.83 kB 2.83 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B

Status: 2 added / 2 removed

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

Helpers, composables, and utility bundles

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

Status: 1 added / 1 removed

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

External libraries and shared vendor chunks

File Before After Δ Raw Δ Gzip Δ Brotli
assets/vendor-chart-Bc7F9itp.js 452 kB 452 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/vendor-other-BUi7FCLE.js 3.98 MB 3.98 MB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/vendor-primevue-DTsA3ueY.js 1.96 MB 1.96 MB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/vendor-three-aR6ntw5X.js 1.37 MB 1.37 MB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/vendor-tiptap-CaFtSsrn.js 232 kB 232 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/vendor-vue-xOQVyCMJ.js 160 kB 160 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/vendor-xterm-BZLod3g9.js 407 kB 407 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
Other — 3.84 MB (baseline 3.84 MB) • 🔴 +68 B

Bundles that do not match a named category

File Before After Δ Raw Δ Gzip Δ Brotli
assets/WidgetRecordAudio-BDefW-iN.js (removed) 20.5 kB 🟢 -20.5 kB 🟢 -5.25 kB 🟢 -4.66 kB
assets/WidgetRecordAudio-CATCogJ7.js (new) 20.5 kB 🔴 +20.5 kB 🔴 +5.26 kB 🔴 +4.66 kB
assets/AudioPreviewPlayer-BXpLjTv4.js (new) 13.6 kB 🔴 +13.6 kB 🔴 +3.42 kB 🔴 +3.06 kB
assets/AudioPreviewPlayer-DyuUix1G.js (removed) 13.6 kB 🟢 -13.6 kB 🟢 -3.42 kB 🟢 -3.07 kB
assets/WidgetGalleria-CDmMMni_.js (new) 4.1 kB 🔴 +4.1 kB 🔴 +1.45 kB 🔴 +1.3 kB
assets/WidgetGalleria-DAHg1J0_.js (removed) 4.1 kB 🟢 -4.1 kB 🟢 -1.44 kB 🟢 -1.31 kB
assets/WidgetColorPicker-Bg5Z1Kde.js (removed) 3.41 kB 🟢 -3.41 kB 🟢 -1.38 kB 🟢 -1.23 kB
assets/WidgetColorPicker-unvuFUhB.js (new) 3.41 kB 🔴 +3.41 kB 🔴 +1.38 kB 🔴 +1.23 kB
assets/WidgetMarkdown-6lWZrO4s.js (new) 3.16 kB 🔴 +3.16 kB 🔴 +1.32 kB 🔴 +1.16 kB
assets/WidgetMarkdown-SN0j4L8o.js (removed) 3.16 kB 🟢 -3.16 kB 🟢 -1.31 kB 🟢 -1.15 kB
assets/WidgetAudioUI-2c9uI_a3.js (new) 2.82 kB 🔴 +2.82 kB 🔴 +1.12 kB 🔴 +1.01 kB
assets/WidgetAudioUI-iE2R5gjN.js (removed) 2.82 kB 🟢 -2.82 kB 🟢 -1.12 kB 🟢 -1.02 kB
assets/WidgetTextarea-BRGRwsdw.js (removed) 2.54 kB 🟢 -2.54 kB 🟢 -1.04 kB 🟢 -933 B
assets/WidgetTextarea-D87bl-XX.js (new) 2.54 kB 🔴 +2.54 kB 🔴 +1.04 kB 🔴 +909 B
assets/WidgetInputText-DJHr16jv.js (new) 1.99 kB 🔴 +1.99 kB 🔴 +918 B 🔴 +857 B
assets/WidgetInputText-OYCY3GSt.js (removed) 1.99 kB 🟢 -1.99 kB 🟢 -916 B 🟢 -855 B
assets/WidgetToggleSwitch-CF1qeuXA.js (new) 1.76 kB 🔴 +1.76 kB 🔴 +834 B 🔴 +730 B
assets/WidgetToggleSwitch-QpzDprj4.js (removed) 1.76 kB 🟢 -1.76 kB 🟢 -834 B 🟢 -729 B
assets/MediaImageTop-Cuj8x4sh.js (new) 1.75 kB 🔴 +1.75 kB 🔴 +843 B 🔴 +718 B
assets/MediaImageTop-BTxsJ9KT.js (removed) 1.68 kB 🟢 -1.68 kB 🟢 -813 B 🟢 -692 B
assets/MediaImageBottom-Da5Gx6Er.js (new) 1.57 kB 🔴 +1.57 kB 🔴 +740 B 🔴 +646 B
assets/MediaImageBottom-DuKo29XI.js (removed) 1.57 kB 🟢 -1.57 kB 🟢 -739 B 🟢 -644 B
assets/MediaAudioBottom-05FNVbZ4.js (new) 1.52 kB 🔴 +1.52 kB 🔴 +742 B 🔴 +656 B
assets/MediaAudioBottom-BxlDqOhg.js (removed) 1.52 kB 🟢 -1.52 kB 🟢 -740 B 🟢 -656 B
assets/MediaVideoBottom-CipzClxq.js (removed) 1.52 kB 🟢 -1.52 kB 🟢 -737 B 🟢 -654 B
assets/MediaVideoBottom-CZL5lalN.js (new) 1.52 kB 🔴 +1.52 kB 🔴 +739 B 🔴 +655 B
assets/Media3DBottom-BZcOJVNE.js (new) 1.5 kB 🔴 +1.5 kB 🔴 +731 B 🔴 +646 B
assets/Media3DBottom-TpfJFAPS.js (removed) 1.5 kB 🟢 -1.5 kB 🟢 -731 B 🟢 -650 B
assets/Media3DTop-ggKlmJ-x.js (removed) 1.49 kB 🟢 -1.49 kB 🟢 -763 B 🟢 -654 B
assets/Media3DTop-Hqk-kjN-.js (new) 1.49 kB 🔴 +1.49 kB 🔴 +767 B 🔴 +652 B
assets/WidgetSelect-CI9FrGTo.js (new) 655 B 🔴 +655 B 🔴 +343 B 🔴 +289 B
assets/WidgetSelect-Dk2wCuLX.js (removed) 655 B 🟢 -655 B 🟢 -342 B 🟢 -288 B
assets/WidgetInputNumber-BPNE3Fug.js (removed) 595 B 🟢 -595 B 🟢 -329 B 🟢 -276 B
assets/WidgetInputNumber-CeIU1xXd.js (new) 595 B 🔴 +595 B 🔴 +328 B 🔴 +279 B
assets/Load3D-BzJEMqJ8.js (removed) 424 B 🟢 -424 B 🟢 -267 B 🟢 -223 B
assets/Load3D-qBjtfoBD.js (new) 424 B 🔴 +424 B 🔴 +268 B 🔴 +223 B
assets/WidgetLegacy-BrqbWjjr.js (removed) 364 B 🟢 -364 B 🟢 -237 B 🟢 -194 B
assets/WidgetLegacy-DtLsy7NP.js (new) 364 B 🔴 +364 B 🔴 +238 B 🔴 +195 B
assets/commands-_s-RvhJR.js 13.6 kB 13.6 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/commands-BuUILW6P.js 13 kB 13 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/commands-BV4R6fLx.js 14.9 kB 14.9 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/commands-CLwPdnT6.js 14.2 kB 14.2 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/commands-CWMchBmd.js 15.9 kB 15.9 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/commands-DazTQhtc.js 12.9 kB 12.9 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/commands-DmWrOe93.js 13.7 kB 13.7 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/commands-DwiH7Kr6.js 13.8 kB 13.8 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/commands-mS3LCNPn.js 14.5 kB 14.5 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/main-5lOBdqcC.js 84.5 kB 84.5 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/main-BOCuaVpE.js 73.4 kB 73.4 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/main-ClrEFGUz.js 72.4 kB 72.4 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/main-CyNU0iQX.js 99.3 kB 99.3 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/main-D7gwLxft.js 114 kB 114 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/main-DC8o4BCt.js 86.8 kB 86.8 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/main-DKiesCV4.js 94.3 kB 94.3 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/main-Hq2q-OtB.js 83.6 kB 83.6 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/main-USAlAlnj.js 82 kB 82 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/MediaAudioTop-ClVHGsSJ.js 1.46 kB 1.46 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/MediaVideoTop-P2MYHlgs.js 2.76 kB 2.76 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/nodeDefs-_Px5dSNW.js 306 kB 306 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/nodeDefs-7z21KPoS.js 285 kB 285 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/nodeDefs-BWKZzBPK.js 346 kB 346 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/nodeDefs-CGbgH4Yl.js 320 kB 320 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/nodeDefs-CjjjdWkV.js 313 kB 313 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/nodeDefs-CVrNtxvj.js 288 kB 288 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/nodeDefs-DLRSA0IK.js 309 kB 309 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/nodeDefs-DQV2gnwA.js 372 kB 372 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/nodeDefs-ofqLG5vz.js 310 kB 310 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/WidgetChart-DaKVD7Py.js 2.48 kB 2.48 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/WidgetImageCompare-DE5-CeXh.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

@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: 0

🧹 Nitpick comments (1)
src/platform/assets/components/MediaAssetCard.vue (1)

62-84: Actions overlay wiring looks solid and integrates well with the new view flow

The refactored IconGroup with IconButton (inspect) and MoreButton (more actions) is clean, and all zoom entry points now consistently go through handleZoomClick:

  • Direct inspect click (@click.stop="handleZoomClick").
  • Context menu @inspect="handleZoomClick".
  • Child media components emitting view, which MediaAssetCard maps to handleZoomClick.

This keeps the zoom/lightbox behavior centralized and aligns nicely with the new double‑click path from MediaImageTop.vue. Tooltips use existing i18n keys, so no new strings are introduced.

From a UX angle, this means users can:

  • single‑click the card to select (as before),
  • use the inspect icon for a clear, discoverable zoom affordance, and
  • double‑click the image area as a shortcut.

That combination feels reasonable; I wouldn’t gate selection on Shift/Ctrl unless you’ve seen concrete issues with accidental selection, since that would make selection less discoverable for new users.

📜 Review details

Configuration used: CodeRabbit UI

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between e633204 and 67dad6a.

📒 Files selected for processing (2)
  • src/platform/assets/components/MediaAssetCard.vue (2 hunks)
  • src/platform/assets/components/MediaImageTop.vue (2 hunks)
🧰 Additional context used
📓 Path-based instructions (12)
**/*.vue

📄 CodeRabbit inference engine (.cursorrules)

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

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

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

Files:

  • src/platform/assets/components/MediaImageTop.vue
  • src/platform/assets/components/MediaAssetCard.vue
**/*.{vue,ts,tsx}

📄 CodeRabbit inference engine (.cursorrules)

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

Files:

  • src/platform/assets/components/MediaImageTop.vue
  • src/platform/assets/components/MediaAssetCard.vue
**/*.{ts,tsx,js,vue}

📄 CodeRabbit inference engine (.cursorrules)

Implement proper error handling in components and services

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

Files:

  • src/platform/assets/components/MediaImageTop.vue
  • src/platform/assets/components/MediaAssetCard.vue
src/**/*.vue

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

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

Files:

  • src/platform/assets/components/MediaImageTop.vue
  • src/platform/assets/components/MediaAssetCard.vue
src/**/*.{vue,ts}

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

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

Files:

  • src/platform/assets/components/MediaImageTop.vue
  • src/platform/assets/components/MediaAssetCard.vue
**/*.{ts,tsx,js,jsx,vue}

📄 CodeRabbit inference engine (CLAUDE.md)

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

Files:

  • src/platform/assets/components/MediaImageTop.vue
  • src/platform/assets/components/MediaAssetCard.vue
**/*.{vue,html}

📄 CodeRabbit inference engine (CLAUDE.md)

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

Files:

  • src/platform/assets/components/MediaImageTop.vue
  • src/platform/assets/components/MediaAssetCard.vue
**/*.{ts,tsx,vue}

📄 CodeRabbit inference engine (CLAUDE.md)

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

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

Files:

  • src/platform/assets/components/MediaImageTop.vue
  • src/platform/assets/components/MediaAssetCard.vue
src/**/*.{ts,tsx,vue}

📄 CodeRabbit inference engine (src/CLAUDE.md)

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

Files:

  • src/platform/assets/components/MediaImageTop.vue
  • src/platform/assets/components/MediaAssetCard.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/platform/assets/components/MediaImageTop.vue
  • src/platform/assets/components/MediaAssetCard.vue
src/**/*.{vue,ts,tsx}

📄 CodeRabbit inference engine (src/CLAUDE.md)

Follow Vue 3 composition API style guide

Files:

  • src/platform/assets/components/MediaImageTop.vue
  • src/platform/assets/components/MediaAssetCard.vue
src/**/{components,composables}/**/*.{ts,tsx,vue}

📄 CodeRabbit inference engine (src/CLAUDE.md)

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

Files:

  • src/platform/assets/components/MediaImageTop.vue
  • src/platform/assets/components/MediaAssetCard.vue
🧠 Learnings (8)
📓 Common learnings
Learnt from: CR
Repo: Comfy-Org/ComfyUI_frontend PR: 0
File: src/components/CLAUDE.md:0-0
Timestamp: 2025-11-24T19:47:45.616Z
Learning: Applies to src/components/**/*.{vue,ts,js} : Use existing VueUse composables (such as useElementHover) instead of manually managing event listeners
📚 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 : Define proper props and emits definitions in Vue components

Applied to files:

  • src/platform/assets/components/MediaImageTop.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 : Prefer emit/event-name for state changes over other communication patterns

Applied to files:

  • src/platform/assets/components/MediaImageTop.vue
📚 Learning: 2025-11-24T19:47:02.860Z
Learnt from: CR
Repo: Comfy-Org/ComfyUI_frontend PR: 0
File: .github/copilot-instructions.md:0-0
Timestamp: 2025-11-24T19:47:02.860Z
Learning: Applies to src/**/*.vue : Implement proper props and emits definitions

Applied to files:

  • src/platform/assets/components/MediaImageTop.vue
📚 Learning: 2025-11-24T19:46:52.279Z
Learnt from: CR
Repo: Comfy-Org/ComfyUI_frontend PR: 0
File: .cursorrules:0-0
Timestamp: 2025-11-24T19:46:52.279Z
Learning: Applies to **/*.vue : Implement proper props and emits definitions in Vue components

Applied to files:

  • src/platform/assets/components/MediaImageTop.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/platform/assets/components/MediaAssetCard.vue
📚 Learning: 2025-11-24T19:47:45.616Z
Learnt from: CR
Repo: Comfy-Org/ComfyUI_frontend PR: 0
File: src/components/CLAUDE.md:0-0
Timestamp: 2025-11-24T19:47:45.616Z
Learning: Applies to src/components/**/*.vue : Replace PrimeVue InputSwitch component with ToggleSwitch

Applied to files:

  • src/platform/assets/components/MediaAssetCard.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 : Extract complex conditionals to computed properties

Applied to files:

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

4-4: Double‑click → view emit wiring looks correct; please verify selection behavior

The new @dblclick="emit('view')" on the root container and the added view: [] emit definition are consistent and type‑safe, and they give MediaAssetCard a clean hook to trigger the lightbox without changing the existing API.

One thing to double‑check in the browser: a double‑click will still fire the underlying click handlers twice on ancestors in addition to the dblclick. Given the current selection model, please confirm that:

  • a single click still selects the asset as before, and
  • a double‑click both keeps the asset selected and opens the lightbox, without accidentally toggling selection off or causing a second, redundant zoom.

If this behaves as intended in the asset browser, the implementation here is good to go.

Also applies to: 30-33

src/platform/assets/components/MediaAssetCard.vue (1)

293-312: Hover/menu state consolidation via isCardOrOverlayHovered is a nice simplification

The new isCardOrOverlayHovered computed that folds together card hover and menu‑open state:

const isCardOrOverlayHovered = computed(
  () => isHovered.value || isMenuOpen.value
)

and its use in showStaticChips / showActionsOverlay gives you:

  • static chips only when not loading, asset is present, not hovered, not playing
  • actions overlay whenever the card is hovered, the menu is open, or video is playing

This removes the need for a separate overlay‑hover flag while still keeping the overlay visible when the actions menu is open. The logic reads clearly and matches the intended behavior of “chips when idle, controls on interaction/playing”.

No changes needed from my side here.

@DrJKL DrJKL merged commit df66a96 into main Nov 26, 2025
32 checks passed
@DrJKL DrJKL deleted the drjkl/click-clack branch November 26, 2025 19:52
@christian-byrne christian-byrne added needs-backport Fix/change that needs to be cherry-picked to the current feature freeze branch core/1.33 labels Dec 8, 2025
github-actions bot pushed a commit that referenced this pull request Dec 8, 2025
## Summary

Make it easier to open the lightbox preview.

## Review Focus

The first click still selects the image. I liked the suggestion to
require shift or ctrl to initiate selection and have click go back to
the previous behavior.

┆Issue is synchronized with this [Notion
page](https://www.notion.so/PR-6955-Feat-Double-Click-on-Image-Assets-to-open-the-lightbox-2b76d73d365081f0bf0de847add5c820)
by [Unito](https://www.unito.io)
@comfy-pr-bot
Copy link
Member

@DrJKL Successfully backported to #7239

@github-actions github-actions bot removed the needs-backport Fix/change that needs to be cherry-picked to the current feature freeze branch label Dec 8, 2025
christian-byrne pushed a commit that referenced this pull request Dec 8, 2025
…ightbox (#7239)

Backport of #6955 to `core/1.33`

Automatically created by backport workflow.

┆Issue is synchronized with this [Notion
page](https://www.notion.so/PR-7239-backport-core-1-33-Feat-Double-Click-on-Image-Assets-to-open-the-lightbox-2c36d73d36508107a168c49a5dad0bf7)
by [Unito](https://www.unito.io)

Co-authored-by: Alexander Brown <[email protected]>
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.

4 participants