Skip to content

feat: add animation progress bar for 3D nodes and viewer#7839

Merged
jtydhr88 merged 1 commit intomainfrom
feat/3d-animation-progress-bar
Jan 4, 2026
Merged

feat: add animation progress bar for 3D nodes and viewer#7839
jtydhr88 merged 1 commit intomainfrom
feat/3d-animation-progress-bar

Conversation

@jtydhr88
Copy link
Collaborator

@jtydhr88 jtydhr88 commented Jan 4, 2026

Summary

  • Add draggable progress bar to AnimationControls component
  • Display current time / total duration
  • Allow seeking through animations when paused or playing
  • Add animation controls to 3D Viewer

fix #7830 and #7831

Screenshots (if applicable)

2026-01-03.22-04-25.mp4

┆Issue is synchronized with this Notion page by Unito

@jtydhr88 jtydhr88 requested a review from a team as a code owner January 4, 2026 03:06
@dosubot dosubot bot added the size:L This PR changes 100-499 lines, ignoring generated files. label Jan 4, 2026
@coderabbitai
Copy link
Contributor

coderabbitai bot commented Jan 4, 2026

📝 Walkthrough

Walkthrough

Added animation progress seeking capability to 3D model viewer through a new draggable progress slider in the AnimationControls component. Integrated animation state management across composables and the Load3d animation engine, enabling users to seek to specific points in longer animations rather than watching from the beginning.

Changes

Cohort / File(s) Summary
Animation UI Components
src/components/load3d/controls/AnimationControls.vue, src/components/load3d/Load3dViewerContent.vue, src/components/load3d/Load3D.vue
AnimationControls redesigned with vertical flex layout and new time progress slider bound to animationProgress; added formatTime utility for display and handleSliderChange to emit seek events. Load3dViewerContent conditionally renders AnimationControls with comprehensive v-model bindings (animations, playing, selected-speed, selected-animation, animation-progress, animation-duration). Load3D exposes new public members (animationProgress, animationDuration, handleSeek).
Animation State Management
src/composables/useLoad3d.ts, src/composables/useLoad3dViewer.ts
useLoad3d introduces animationProgress, animationDuration reactive state and handleSeek() handler; listens to animationProgressChange events. useLoad3dViewer adds comprehensive animation state (animations, playing, selectedSpeed, selectedAnimation, animationProgress, animationDuration); implements setupAnimationEvents(), watchers for playback control, and handleSeek() delegation.
Animation Engine Core
src/extensions/core/load3d/AnimationManager.ts, src/extensions/core/load3d/Load3d.ts, src/extensions/core/load3d/interfaces.ts
AnimationManager emits animationProgressChange on animation selection and during playback updates; adds getAnimationTime(), getAnimationDuration(), and setAnimationTime(time) public methods with time clamping and state preservation. Load3d delegates these three methods to AnimationManager and calls forceRender() after time updates. AnimationManagerInterface updated with corresponding method signatures.
State Persistence
src/services/load3dService.ts
Uses SkeletonUtils.clone() for proper skeletal animation support when copying 3D models; invokes setupModelAnimations() to copy animation state from source to cloned target.

Sequence Diagram

sequenceDiagram
    participant User
    participant AnimationControls as AnimationControls<br/>(UI)
    participant Load3DViewer as Load3dViewerContent<br/>(Container)
    participant useViewer as useLoad3dViewer<br/>(Composable)
    participant Load3d as Load3d Instance<br/>(Core Engine)
    participant AnimMgr as AnimationManager<br/>(Animation State)

    User->>AnimationControls: Drag slider to seek position
    AnimationControls->>AnimationControls: handleSliderChange(newProgress)
    AnimationControls->>AnimationControls: emit seek(newProgress)
    AnimationControls->>Load3DViewer: `@seek` event
    Load3DViewer->>useViewer: handleSeek(progress)
    useViewer->>useViewer: Compute time from progress
    useViewer->>Load3d: setAnimationTime(time)
    Load3d->>AnimMgr: setAnimationTime(time)
    AnimMgr->>AnimMgr: Clamp & update action.currentTime
    AnimMgr->>AnimMgr: Sync with mixer
    AnimMgr->>AnimMgr: emit animationProgressChange
    AnimMgr->>useViewer: animationProgressChange event
    useViewer->>useViewer: Update animationProgress,<br/>animationDuration refs
    useViewer-->>AnimationControls: v-model update
    AnimationControls-->>User: Display updated time & slider position
    Load3d->>Load3d: forceRender()
    Load3d-->>User: Updated 3D view
Loading

Pre-merge checks and finishing touches

❌ Failed checks (1 inconclusive)
Check name Status Explanation Resolution
Out of Scope Changes check ❓ Inconclusive All changes are scoped to animation control features. However, the PR also improves animation cloning in load3dService via SkeletonUtils, which exceeds the stated objective of adding a progress bar. Clarify whether the SkeletonUtils improvement in load3dService is intentional scope expansion or should be separated into a distinct PR.
✅ Passed checks (1 passed)
Check name Status Explanation
Linked Issues check ✅ Passed The pull request implements all required features from issue #7830: a draggable progress bar with current/total time display and seeking functionality in AnimationControls.
✨ Finishing touches
  • 📝 Generate docstrings

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

❤️ Share

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

@github-actions
Copy link

github-actions bot commented Jan 4, 2026

🎨 Storybook Build Status

Build completed successfully!

⏰ Completed at: 01/04/2026, 03:07:33 AM UTC

🔗 Links


🎉 Your Storybook is ready for review!

@github-actions
Copy link

github-actions bot commented Jan 4, 2026

🎭 Playwright Test Results

⚠️ Tests passed with flaky tests

⏰ Completed at: 01/04/2026, 03:12:44 AM UTC

📈 Summary

  • Total Tests: 511
  • Passed: 500 ✅
  • Failed: 0
  • Flaky: 3 ⚠️
  • Skipped: 8 ⏭️

📊 Test Reports by Browser

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

Bundle Size Report

Summary

  • Raw size: 17.3 MB baseline 17.3 MB — 🔴 +9.72 kB
  • Gzip: 3.55 MB baseline 3.54 MB — 🔴 +1.46 kB
  • Brotli: 2.7 MB baseline 2.7 MB — 🔴 +954 B
  • Bundles: 98 current • 98 baseline • 56 added / 56 removed

Category Glance
App Entry Points 🔴 +14.3 kB (3.23 MB) · UI Components 🟢 -5.66 kB (193 kB) · Vendor & Third-Party 🔴 +1.1 kB (9.12 MB) · Other ⚪ 0 B (3.47 MB) · Graph Workspace ⚪ 0 B (1000 kB) · Panels & Settings ⚪ 0 B (300 kB) · + 3 more

Per-category breakdown
App Entry Points — 3.23 MB (baseline 3.21 MB) • 🔴 +14.3 kB

Main entry bundles and manifests

File Before After Δ Raw Δ Gzip Δ Brotli
assets/index-Bbn6j0UD.js (new) 3.03 MB 🔴 +3.03 MB 🔴 +637 kB 🔴 +484 kB
assets/index-BA5eZMZ8.js (removed) 3.02 MB 🟢 -3.02 MB 🟢 -634 kB 🟢 -482 kB
assets/index-CRAS7mlZ.js (removed) 194 kB 🟢 -194 kB 🟢 -42.3 kB 🟢 -35.1 kB
assets/index-Cybtrczo.js (new) 194 kB 🔴 +194 kB 🔴 +42.3 kB 🔴 +35.1 kB
assets/index-BHFabMbY.js (new) 345 B 🔴 +345 B 🔴 +244 B 🔴 +201 B
assets/index-Dliiq7GE.js (removed) 345 B 🟢 -345 B 🟢 -246 B 🟢 -202 B

Status: 3 added / 3 removed

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

Graph editor runtime, canvas, workflow orchestration

File Before After Δ Raw Δ Gzip Δ Brotli
assets/GraphView-DtR8e5sg.js (new) 1000 kB 🔴 +1000 kB 🔴 +194 kB 🔴 +148 kB
assets/GraphView-RZbHHAs9.js (removed) 1000 kB 🟢 -1000 kB 🟢 -194 kB 🟢 -148 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-Bfhyz6CQ.js (removed) 6.63 kB 🟢 -6.63 kB 🟢 -2.15 kB 🟢 -1.9 kB
assets/UserSelectView-CyLLd6LO.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-BTj4WiCP.js (removed) 22.7 kB 🟢 -22.7 kB 🟢 -5.26 kB 🟢 -4.6 kB
assets/LegacyCreditsPanel-DGtj7O4z.js (new) 22.7 kB 🔴 +22.7 kB 🔴 +5.26 kB 🔴 +4.6 kB
assets/KeybindingPanel-CSd8_3yu.js (new) 14.8 kB 🔴 +14.8 kB 🔴 +3.57 kB 🔴 +3.12 kB
assets/KeybindingPanel-DAvzJxkS.js (removed) 14.8 kB 🟢 -14.8 kB 🟢 -3.58 kB 🟢 -3.12 kB
assets/ExtensionPanel-BY0XlxQJ.js (removed) 11.1 kB 🟢 -11.1 kB 🟢 -2.62 kB 🟢 -2.3 kB
assets/ExtensionPanel-DK1ljGgd.js (new) 11.1 kB 🔴 +11.1 kB 🔴 +2.62 kB 🔴 +2.3 kB
assets/AboutPanel-B3i-r3u8.js (removed) 9.16 kB 🟢 -9.16 kB 🟢 -2.46 kB 🟢 -2.21 kB
assets/AboutPanel-J92vh9XO.js (new) 9.16 kB 🔴 +9.16 kB 🔴 +2.46 kB 🔴 +2.2 kB
assets/ServerConfigPanel-C5pF53A7.js (new) 7.51 kB 🔴 +7.51 kB 🔴 +2.04 kB 🔴 +1.81 kB
assets/ServerConfigPanel-Dk6UqSeW.js (removed) 7.51 kB 🟢 -7.51 kB 🟢 -2.05 kB 🟢 -1.81 kB
assets/UserPanel-Bay-kw9Z.js (new) 6.88 kB 🔴 +6.88 kB 🔴 +1.79 kB 🔴 +1.57 kB
assets/UserPanel-kN7QRKuQ.js (removed) 6.88 kB 🟢 -6.88 kB 🟢 -1.79 kB 🟢 -1.57 kB
assets/settings-AN2JfZVQ.js 21.7 kB 21.7 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
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-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 — 193 kB (baseline 199 kB) • 🟢 -5.66 kB

Reusable component library chunks

File Before After Δ Raw Δ Gzip Δ Brotli
assets/LazyImage.vue_vue_type_script_setup_true_lang-CxyLIqfI.js (new) 60.1 kB 🔴 +60.1 kB 🔴 +12.4 kB 🔴 +10.8 kB
assets/LazyImage.vue_vue_type_script_setup_true_lang-HPBE6lG2.js (removed) 60.1 kB 🟢 -60.1 kB 🟢 -12.4 kB 🟢 -10.8 kB
assets/Load3D.vue_vue_type_script_setup_true_lang-D1Qtit1E.js (removed) 56.4 kB 🟢 -56.4 kB 🟢 -8.91 kB 🟢 -7.61 kB
assets/Load3D.vue_vue_type_script_setup_true_lang-CPD6o0ti.js (new) 54.4 kB 🔴 +54.4 kB 🔴 +8.6 kB 🔴 +7.39 kB
assets/WidgetSelect.vue_vue_type_script_setup_true_lang-C7Ho9aP3.js (new) 49 kB 🔴 +49 kB 🔴 +10.5 kB 🔴 +9.14 kB
assets/WidgetSelect.vue_vue_type_script_setup_true_lang-E_T68qC-.js (removed) 49 kB 🟢 -49 kB 🟢 -10.5 kB 🟢 -9.14 kB
assets/WidgetInputNumber.vue_vue_type_script_setup_true_lang-DwCrWJcs.js (removed) 14.6 kB 🟢 -14.6 kB 🟢 -3.79 kB 🟢 -3.34 kB
assets/WidgetInputNumber.vue_vue_type_script_setup_true_lang-CE6guJnm.js (new) 10.9 kB 🔴 +10.9 kB 🔴 +2.89 kB 🔴 +2.55 kB
assets/ComfyQueueButton-BBmbkg14.js (removed) 8.83 kB 🟢 -8.83 kB 🟢 -2.58 kB 🟢 -2.3 kB
assets/ComfyQueueButton-D6mqqPt3.js (new) 8.83 kB 🔴 +8.83 kB 🔴 +2.57 kB 🔴 +2.29 kB
assets/WidgetWithControl.vue_vue_type_script_setup_true_lang-CbfXEDyF.js (new) 3.72 kB 🔴 +3.72 kB 🔴 +1.46 kB 🔴 +1.32 kB
assets/WidgetWithControl.vue_vue_type_script_setup_true_lang-vn4lpTWx.js (removed) 3.72 kB 🟢 -3.72 kB 🟢 -1.46 kB 🟢 -1.32 kB
assets/WidgetButton-B73QWnPB.js (new) 2.21 kB 🔴 +2.21 kB 🔴 +997 B 🔴 +893 B
assets/WidgetButton-vx-B0FJ7.js (removed) 2.21 kB 🟢 -2.21 kB 🟢 -998 B 🟢 -898 B
assets/WidgetLayoutField.vue_vue_type_script_setup_true_lang-Dsd391Lz.js (removed) 2.14 kB 🟢 -2.14 kB 🟢 -892 B 🟢 -771 B
assets/WidgetLayoutField.vue_vue_type_script_setup_true_lang-DYHvU_1-.js (new) 2.14 kB 🔴 +2.14 kB 🔴 +890 B 🔴 +767 B
assets/UserAvatar.vue_vue_type_script_setup_true_lang-CieNuc25.js (new) 1.34 kB 🔴 +1.34 kB 🔴 +685 B 🔴 +595 B
assets/UserAvatar.vue_vue_type_script_setup_true_lang-DV-9JnFV.js (removed) 1.34 kB 🟢 -1.34 kB 🟢 -687 B 🟢 -594 B
assets/MediaTitle.vue_vue_type_script_setup_true_lang-CIXHQiQ6.js (removed) 897 B 🟢 -897 B 🟢 -505 B 🟢 -446 B
assets/MediaTitle.vue_vue_type_script_setup_true_lang-ljzk2w32.js (new) 897 B 🔴 +897 B 🔴 +502 B 🔴 +432 B

Status: 10 added / 10 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-9C-cPvxN.js (new) 7.51 kB 🔴 +7.51 kB 🔴 +1.83 kB 🔴 +1.58 kB
assets/keybindingService-CeBqhuI0.js (removed) 7.51 kB 🟢 -7.51 kB 🟢 -1.83 kB 🟢 -1.58 kB
assets/serverConfigStore-BWm_uxF_.js (new) 2.83 kB 🔴 +2.83 kB 🔴 +906 B 🔴 +788 B
assets/serverConfigStore-CulKZi3K.js (removed) 2.83 kB 🟢 -2.83 kB 🟢 -910 B 🟢 -796 B
assets/audioService-BlUatW80.js (removed) 2.2 kB 🟢 -2.2 kB 🟢 -961 B 🟢 -826 B
assets/audioService-BZlSF3KA.js (new) 2.2 kB 🔴 +2.2 kB 🔴 +960 B 🔴 +826 B

Status: 3 added / 3 removed

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

Helpers, composables, and utility bundles

File Before After Δ Raw Δ Gzip Δ Brotli
assets/audioUtils-6lEzZnsy.js (removed) 1.41 kB 🟢 -1.41 kB 🟢 -652 B 🟢 -548 B
assets/audioUtils-BWhowPt3.js (new) 1.41 kB 🔴 +1.41 kB 🔴 +651 B 🔴 +547 B

Status: 1 added / 1 removed

Vendor & Third-Party — 9.12 MB (baseline 9.12 MB) • 🔴 +1.1 kB

External libraries and shared vendor chunks

File Before After Δ Raw Δ Gzip Δ Brotli
assets/vendor-other-CzYzbUcM.js (removed) 3.89 MB 🟢 -3.89 MB 🟢 -845 kB 🟢 -676 kB
assets/vendor-other-QAjmpiSo.js (new) 3.89 MB 🔴 +3.89 MB 🔴 +845 kB 🔴 +676 kB
assets/vendor-three-BYiW32lN.js (new) 2.02 MB 🔴 +2.02 MB 🔴 +417 kB 🔴 +299 kB
assets/vendor-three-DYL0ZbEr.js (removed) 2.02 MB 🟢 -2.02 MB 🟢 -416 kB 🟢 -298 kB
assets/vendor-primevue-BaL9qxPA.js (new) 1.95 MB 🔴 +1.95 MB 🔴 +334 kB 🔴 +201 kB
assets/vendor-primevue-Ch6rhmJJ.js (removed) 1.95 MB 🟢 -1.95 MB 🟢 -334 kB 🟢 -201 kB
assets/vendor-chart-BiTiQvXD.js (new) 452 kB 🔴 +452 kB 🔴 +99 kB 🔴 +81 kB
assets/vendor-chart-KBsqeQPQ.js (removed) 452 kB 🟢 -452 kB 🟢 -99 kB 🟢 -81 kB
assets/vendor-tiptap-BkaRKIwe.js (new) 232 kB 🔴 +232 kB 🔴 +45.7 kB 🔴 +37.7 kB
assets/vendor-tiptap-XfQ74oRB.js (removed) 232 kB 🟢 -232 kB 🟢 -45.7 kB 🟢 -37.7 kB
assets/vendor-vue-DgYh9BF5.js (new) 160 kB 🔴 +160 kB 🔴 +37 kB 🔴 +31.4 kB
assets/vendor-vue-DLbRHZS7.js (removed) 160 kB 🟢 -160 kB 🟢 -37 kB 🟢 -31.3 kB
assets/vendor-xterm-BF8peZ5_.js 420 kB 420 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B

Status: 6 added / 6 removed

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

Bundles that do not match a named category

File Before After Δ Raw Δ Gzip Δ Brotli
assets/SubscriptionRequiredDialogContent-B0oED_N9.js (new) 29 kB 🔴 +29 kB 🔴 +6.42 kB 🔴 +5.57 kB
assets/SubscriptionRequiredDialogContent-BqEj5uu9.js (removed) 29 kB 🟢 -29 kB 🟢 -6.43 kB 🟢 -5.59 kB
assets/WidgetRecordAudio-BPj0TU6y.js (removed) 20.4 kB 🟢 -20.4 kB 🟢 -5.24 kB 🟢 -4.63 kB
assets/WidgetRecordAudio-CqDNg3dl.js (new) 20.4 kB 🔴 +20.4 kB 🔴 +5.23 kB 🔴 +4.64 kB
assets/AudioPreviewPlayer-41eBK6CX.js (removed) 13.3 kB 🟢 -13.3 kB 🟢 -3.35 kB 🟢 -2.99 kB
assets/AudioPreviewPlayer-e5LiPCZM.js (new) 13.3 kB 🔴 +13.3 kB 🔴 +3.35 kB 🔴 +3 kB
assets/ValueControlPopover-B62K3PHA.js (new) 5.49 kB 🔴 +5.49 kB 🔴 +1.71 kB 🔴 +1.52 kB
assets/ValueControlPopover-IgKOrY3a.js (removed) 5.49 kB 🟢 -5.49 kB 🟢 -1.71 kB 🟢 -1.51 kB
assets/WidgetGalleria-D3nhqTr8.js (removed) 4.1 kB 🟢 -4.1 kB 🟢 -1.45 kB 🟢 -1.31 kB
assets/WidgetGalleria-DnEOtuu5.js (new) 4.1 kB 🔴 +4.1 kB 🔴 +1.44 kB 🔴 +1.3 kB
assets/WidgetColorPicker-B5DwYGMj.js (new) 3.41 kB 🔴 +3.41 kB 🔴 +1.38 kB 🔴 +1.23 kB
assets/WidgetColorPicker-B7pr75__.js (removed) 3.41 kB 🟢 -3.41 kB 🟢 -1.38 kB 🟢 -1.23 kB
assets/WidgetImageCompare-CPasFD9R.js (new) 3.18 kB 🔴 +3.18 kB 🔴 +1.1 kB 🔴 +955 B
assets/WidgetImageCompare-DOO74J4Y.js (removed) 3.18 kB 🟢 -3.18 kB 🟢 -1.1 kB 🟢 -985 B
assets/WidgetTextarea-DcVO9ONg.js (new) 3.08 kB 🔴 +3.08 kB 🔴 +1.22 kB 🔴 +1.08 kB
assets/WidgetTextarea-m31xbQOD.js (removed) 3.08 kB 🟢 -3.08 kB 🟢 -1.22 kB 🟢 -1.08 kB
assets/WidgetMarkdown-BMO8lD23.js (new) 3.08 kB 🔴 +3.08 kB 🔴 +1.28 kB 🔴 +1.13 kB
assets/WidgetMarkdown-CezcGSYR.js (removed) 3.08 kB 🟢 -3.08 kB 🟢 -1.28 kB 🟢 -1.13 kB
assets/WidgetAudioUI-Bc9pk1oE.js (new) 2.89 kB 🔴 +2.89 kB 🔴 +1.17 kB 🔴 +1.05 kB
assets/WidgetAudioUI-CAclVmP7.js (removed) 2.89 kB 🟢 -2.89 kB 🟢 -1.17 kB 🟢 -1.06 kB
assets/MediaVideoTop-BBrtuHMQ.js (new) 2.65 kB 🔴 +2.65 kB 🔴 +1.01 kB 🔴 +869 B
assets/MediaVideoTop-uhl1tYxE.js (removed) 2.65 kB 🟢 -2.65 kB 🟢 -1.01 kB 🟢 -868 B
assets/WidgetChart-CXIOBBuD.js (removed) 2.48 kB 🟢 -2.48 kB 🟢 -934 B 🟢 -820 B
assets/WidgetChart-DSurjgrZ.js (new) 2.48 kB 🔴 +2.48 kB 🔴 +930 B 🔴 +817 B
assets/WidgetInputText-7-JzKrkV.js (removed) 1.99 kB 🟢 -1.99 kB 🟢 -925 B 🟢 -863 B
assets/WidgetInputText-Bnu09zmd.js (new) 1.99 kB 🔴 +1.99 kB 🔴 +921 B 🔴 +834 B
assets/WidgetToggleSwitch-DLS2Bjhp.js (new) 1.76 kB 🔴 +1.76 kB 🔴 +834 B 🔴 +735 B
assets/WidgetToggleSwitch-lmxGyu16.js (removed) 1.76 kB 🟢 -1.76 kB 🟢 -838 B 🟢 -733 B
assets/MediaImageTop-BenufCTB.js (removed) 1.75 kB 🟢 -1.75 kB 🟢 -840 B 🟢 -718 B
assets/MediaImageTop-DoyWuZ6A.js (new) 1.75 kB 🔴 +1.75 kB 🔴 +842 B 🔴 +715 B
assets/MediaImageBottom-CXW3-LJ9.js (removed) 1.55 kB 🟢 -1.55 kB 🟢 -736 B 🟢 -640 B
assets/MediaImageBottom-DcMvBukd.js (new) 1.55 kB 🔴 +1.55 kB 🔴 +732 B 🔴 +645 B
assets/MediaAudioBottom-C1HOqtxz.js (removed) 1.51 kB 🟢 -1.51 kB 🟢 -734 B 🟢 -644 B
assets/MediaAudioBottom-cgx06SfY.js (new) 1.51 kB 🔴 +1.51 kB 🔴 +734 B 🔴 +646 B
assets/Media3DBottom-BXUMGWI6.js (new) 1.5 kB 🔴 +1.5 kB 🔴 +733 B 🔴 +650 B
assets/Media3DBottom-D9R9pXYm.js (removed) 1.5 kB 🟢 -1.5 kB 🟢 -734 B 🟢 -645 B
assets/MediaVideoBottom-BN7KlIk4.js (removed) 1.5 kB 🟢 -1.5 kB 🟢 -733 B 🟢 -646 B
assets/MediaVideoBottom-C1czouFJ.js (new) 1.5 kB 🔴 +1.5 kB 🔴 +732 B 🔴 +647 B
assets/Media3DTop-DAWBFLAT.js (removed) 1.49 kB 🟢 -1.49 kB 🟢 -771 B 🟢 -650 B
assets/Media3DTop-O5zMHsIB.js (new) 1.49 kB 🔴 +1.49 kB 🔴 +769 B 🔴 +650 B
assets/MediaAudioTop-DNcFZed8.js (new) 1.46 kB 🔴 +1.46 kB 🔴 +740 B 🔴 +619 B
assets/MediaAudioTop-DnMHwvAw.js (removed) 1.46 kB 🟢 -1.46 kB 🟢 -738 B 🟢 -616 B
assets/WidgetSelect-BcX_RbIS.js (new) 733 B 🔴 +733 B 🔴 +360 B 🔴 +303 B
assets/WidgetSelect-BKDgvucH.js (removed) 733 B 🟢 -733 B 🟢 -365 B 🟢 -331 B
assets/WidgetInputNumber-98VjYao_.js (removed) 673 B 🟢 -673 B 🟢 -349 B 🟢 -289 B
assets/WidgetInputNumber-DwCxiMIp.js (new) 673 B 🔴 +673 B 🔴 +347 B 🔴 +287 B
assets/Load3D-DCgNYtQy.js (new) 424 B 🔴 +424 B 🔴 +268 B 🔴 +226 B
assets/Load3D-tmf1t7_0.js (removed) 424 B 🟢 -424 B 🟢 -267 B 🟢 -222 B
assets/WidgetLegacy-B_3W6-x4.js (removed) 364 B 🟢 -364 B 🟢 -238 B 🟢 -195 B
assets/WidgetLegacy-Eh5K5RnT.js (new) 364 B 🔴 +364 B 🔴 +238 B 🔴 +195 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-BRKE6VDs.js 91 kB 91 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-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/nodeDefs-aW9En70v.js 260 kB 260 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/nodeDefs-BIckSVgU.js 273 kB 273 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/nodeDefs-BiYpVi7D.js 263 kB 263 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/nodeDefs-Bw_Jitw_.js 101 B 101 B ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/nodeDefs-CCEXtYfM.js 243 kB 243 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/nodeDefs-CvmVDWYd.js 323 kB 323 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/nodeDefs-D_wreoPJ.js 267 kB 267 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/nodeDefs-DIAYlJwM.js 246 kB 246 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/widgetPropFilter-BIbGSUAt.js 1.28 kB 1.28 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B

Status: 25 added / 25 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: 3

📜 Review details

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 8d1f8ed and 2d7c3d4.

📒 Files selected for processing (9)
  • src/components/load3d/Load3D.vue
  • src/components/load3d/Load3dViewerContent.vue
  • src/components/load3d/controls/AnimationControls.vue
  • src/composables/useLoad3d.ts
  • src/composables/useLoad3dViewer.ts
  • src/extensions/core/load3d/AnimationManager.ts
  • src/extensions/core/load3d/Load3d.ts
  • src/extensions/core/load3d/interfaces.ts
  • src/services/load3dService.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/extensions/core/load3d/interfaces.ts
  • src/extensions/core/load3d/Load3d.ts
  • src/composables/useLoad3d.ts
  • src/extensions/core/load3d/AnimationManager.ts
  • src/components/load3d/controls/AnimationControls.vue
  • src/composables/useLoad3dViewer.ts
  • src/components/load3d/Load3dViewerContent.vue
  • src/components/load3d/Load3D.vue
  • src/services/load3dService.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/extensions/core/load3d/interfaces.ts
  • src/extensions/core/load3d/Load3d.ts
  • src/composables/useLoad3d.ts
  • src/extensions/core/load3d/AnimationManager.ts
  • src/composables/useLoad3dViewer.ts
  • src/services/load3dService.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/extensions/core/load3d/interfaces.ts
  • src/extensions/core/load3d/Load3d.ts
  • src/composables/useLoad3d.ts
  • src/extensions/core/load3d/AnimationManager.ts
  • src/components/load3d/controls/AnimationControls.vue
  • src/composables/useLoad3dViewer.ts
  • src/components/load3d/Load3dViewerContent.vue
  • src/components/load3d/Load3D.vue
  • src/services/load3dService.ts
src/**/*.{vue,ts,tsx}

📄 CodeRabbit inference engine (src/CLAUDE.md)

Follow Vue 3 composition API style guide

Files:

  • src/extensions/core/load3d/interfaces.ts
  • src/extensions/core/load3d/Load3d.ts
  • src/composables/useLoad3d.ts
  • src/extensions/core/load3d/AnimationManager.ts
  • src/components/load3d/controls/AnimationControls.vue
  • src/composables/useLoad3dViewer.ts
  • src/components/load3d/Load3dViewerContent.vue
  • src/components/load3d/Load3D.vue
  • src/services/load3dService.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/extensions/core/load3d/interfaces.ts
  • src/extensions/core/load3d/Load3d.ts
  • src/composables/useLoad3d.ts
  • src/extensions/core/load3d/AnimationManager.ts
  • src/components/load3d/controls/AnimationControls.vue
  • src/composables/useLoad3dViewer.ts
  • src/components/load3d/Load3dViewerContent.vue
  • src/components/load3d/Load3D.vue
  • src/services/load3dService.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/extensions/core/load3d/interfaces.ts
  • src/extensions/core/load3d/Load3d.ts
  • src/composables/useLoad3d.ts
  • src/extensions/core/load3d/AnimationManager.ts
  • src/components/load3d/controls/AnimationControls.vue
  • src/composables/useLoad3dViewer.ts
  • src/components/load3d/Load3dViewerContent.vue
  • src/components/load3d/Load3D.vue
  • src/services/load3dService.ts
**/*.{ts,tsx}

📄 CodeRabbit inference engine (AGENTS.md)

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

Files:

  • src/extensions/core/load3d/interfaces.ts
  • src/extensions/core/load3d/Load3d.ts
  • src/composables/useLoad3d.ts
  • src/extensions/core/load3d/AnimationManager.ts
  • src/composables/useLoad3dViewer.ts
  • src/services/load3dService.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/composables/useLoad3d.ts
  • src/composables/useLoad3dViewer.ts
  • src/services/load3dService.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/composables/useLoad3d.ts
  • src/components/load3d/controls/AnimationControls.vue
  • src/composables/useLoad3dViewer.ts
  • src/components/load3d/Load3dViewerContent.vue
  • src/components/load3d/Load3D.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/composables/useLoad3d.ts
  • src/components/load3d/controls/AnimationControls.vue
  • src/composables/useLoad3dViewer.ts
  • src/components/load3d/Load3dViewerContent.vue
  • src/components/load3d/Load3D.vue
**/**/use[A-Z]*.ts

📄 CodeRabbit inference engine (AGENTS.md)

Name composables using the pattern useXyz.ts

Files:

  • src/composables/useLoad3d.ts
  • src/composables/useLoad3dViewer.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/components/load3d/controls/AnimationControls.vue
  • src/components/load3d/Load3dViewerContent.vue
  • src/components/load3d/Load3D.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/load3d/controls/AnimationControls.vue
  • src/components/load3d/Load3dViewerContent.vue
  • src/components/load3d/Load3D.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/load3d/controls/AnimationControls.vue
  • src/components/load3d/Load3dViewerContent.vue
  • src/components/load3d/Load3D.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/load3d/controls/AnimationControls.vue
  • src/components/load3d/Load3dViewerContent.vue
  • src/components/load3d/Load3D.vue
**/*.vue

📄 CodeRabbit inference engine (AGENTS.md)

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

Files:

  • src/components/load3d/controls/AnimationControls.vue
  • src/components/load3d/Load3dViewerContent.vue
  • src/components/load3d/Load3D.vue
🧠 Learnings (24)
📚 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/extensions/core/load3d/interfaces.ts
  • src/extensions/core/load3d/Load3d.ts
  • src/composables/useLoad3d.ts
  • src/extensions/core/load3d/AnimationManager.ts
  • src/composables/useLoad3dViewer.ts
  • src/services/load3dService.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/extensions/core/load3d/interfaces.ts
  • src/extensions/core/load3d/Load3d.ts
  • src/composables/useLoad3d.ts
  • src/extensions/core/load3d/AnimationManager.ts
  • src/composables/useLoad3dViewer.ts
  • src/services/load3dService.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/extensions/core/load3d/interfaces.ts
  • src/extensions/core/load3d/Load3d.ts
  • src/composables/useLoad3d.ts
  • src/extensions/core/load3d/AnimationManager.ts
  • src/composables/useLoad3dViewer.ts
  • src/services/load3dService.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/extensions/core/load3d/interfaces.ts
  • src/extensions/core/load3d/Load3d.ts
  • src/composables/useLoad3d.ts
  • src/extensions/core/load3d/AnimationManager.ts
  • src/composables/useLoad3dViewer.ts
  • src/services/load3dService.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/extensions/core/load3d/interfaces.ts
  • src/extensions/core/load3d/Load3d.ts
  • src/composables/useLoad3d.ts
  • src/extensions/core/load3d/AnimationManager.ts
  • src/components/load3d/controls/AnimationControls.vue
  • src/composables/useLoad3dViewer.ts
  • src/components/load3d/Load3dViewerContent.vue
  • src/components/load3d/Load3D.vue
  • src/services/load3dService.ts
📚 Learning: 2025-12-09T03:49:52.828Z
Learnt from: christian-byrne
Repo: Comfy-Org/ComfyUI_frontend PR: 6300
File: src/platform/updates/components/WhatsNewPopup.vue:5-13
Timestamp: 2025-12-09T03:49:52.828Z
Learning: In Vue files across the ComfyUI_frontend repo, when a button is needed, prefer the repo's common button components from src/components/button/ (IconButton.vue, TextButton.vue, IconTextButton.vue) over plain HTML <button> elements. These components wrap PrimeVue with the project’s design system styling. Use only the common button components for consistency and theming, and import them from src/components/button/ as needed.

Applied to files:

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

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

Applied to files:

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

Applied to files:

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

Applied to files:

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

Applied to files:

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

Applied to files:

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

Applied to files:

  • src/components/load3d/controls/AnimationControls.vue
  • src/components/load3d/Load3dViewerContent.vue
  • src/components/load3d/Load3D.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/load3d/controls/AnimationControls.vue
  • src/components/load3d/Load3dViewerContent.vue
  • src/components/load3d/Load3D.vue
📚 Learning: 2025-12-21T06:04:12.562Z
Learnt from: CR
Repo: Comfy-Org/ComfyUI_frontend PR: 0
File: AGENTS.md:0-0
Timestamp: 2025-12-21T06:04:12.562Z
Learning: Applies to **/*.vue : Use Vue 3.5+ with TypeScript in `.vue` files, exclusively using Composition API with `<script setup lang="ts">` syntax

Applied to files:

  • src/components/load3d/Load3dViewerContent.vue
📚 Learning: 2025-12-21T06:04:12.562Z
Learnt from: CR
Repo: Comfy-Org/ComfyUI_frontend PR: 0
File: AGENTS.md:0-0
Timestamp: 2025-12-21T06:04:12.562Z
Learning: Applies to **/*.vue : Utilize Vue 3's Teleport component when needed

Applied to files:

  • src/components/load3d/Load3dViewerContent.vue
  • src/services/load3dService.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 Vue 3's Teleport component when needed

Applied to files:

  • src/components/load3d/Load3dViewerContent.vue
  • src/services/load3dService.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 setup() function in Vue 3 Composition API

Applied to files:

  • src/components/load3d/Load3dViewerContent.vue
📚 Learning: 2025-11-24T19:47:45.616Z
Learnt from: CR
Repo: Comfy-Org/ComfyUI_frontend PR: 0
File: src/components/CLAUDE.md:0-0
Timestamp: 2025-11-24T19:47:45.616Z
Learning: Applies to src/components/**/*.vue : Use lifecycle hooks: onMounted, onUpdated in Vue 3 Composition API

Applied to files:

  • src/components/load3d/Load3dViewerContent.vue
📚 Learning: 2025-11-24T19:47:02.860Z
Learnt from: CR
Repo: Comfy-Org/ComfyUI_frontend PR: 0
File: .github/copilot-instructions.md:0-0
Timestamp: 2025-11-24T19:47:02.860Z
Learning: Applies to src/**/*.vue : Use setup() function for component logic

Applied to files:

  • src/components/load3d/Load3dViewerContent.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 lifecycle hooks with onMounted, onUpdated, etc.

Applied to files:

  • src/components/load3d/Load3dViewerContent.vue
📚 Learning: 2025-11-24T19:47:02.860Z
Learnt from: CR
Repo: Comfy-Org/ComfyUI_frontend PR: 0
File: .github/copilot-instructions.md:0-0
Timestamp: 2025-11-24T19:47:02.860Z
Learning: Applies to src/**/*.vue : Utilize ref and reactive for reactive state

Applied to files:

  • src/components/load3d/Load3dViewerContent.vue
📚 Learning: 2025-11-24T19:47:45.616Z
Learnt from: CR
Repo: Comfy-Org/ComfyUI_frontend PR: 0
File: src/components/CLAUDE.md:0-0
Timestamp: 2025-11-24T19:47:45.616Z
Learning: Applies to src/components/**/*.vue : Use ref/reactive for state management in Vue 3 Composition API

Applied to files:

  • src/components/load3d/Load3dViewerContent.vue
📚 Learning: 2025-11-24T19:47:45.616Z
Learnt from: CR
Repo: Comfy-Org/ComfyUI_frontend PR: 0
File: src/components/CLAUDE.md:0-0
Timestamp: 2025-11-24T19:47:45.616Z
Learning: Applies to src/components/**/*.vue : Use Teleport/Suspense when needed for component rendering

Applied to files:

  • src/components/load3d/Load3dViewerContent.vue
📚 Learning: 2025-12-18T20:39:30.137Z
Learnt from: jtydhr88
Repo: Comfy-Org/ComfyUI_frontend PR: 7621
File: src/components/load3d/Load3DScene.vue:4-4
Timestamp: 2025-12-18T20:39:30.137Z
Learning: In src/components/load3d/Load3DScene.vue, the scoped `<style>` block with `!important` declarations for the canvas element is necessary because Three.js dynamically creates the canvas with inline styles, preventing direct application of Tailwind classes. This is a valid exception to the Tailwind-only styling guideline.

Applied to files:

  • src/services/load3dService.ts
🧬 Code graph analysis (2)
src/extensions/core/load3d/AnimationManager.ts (1)
src/scripts/app.ts (1)
  • progress (270-272)
src/composables/useLoad3dViewer.ts (1)
src/extensions/core/load3d/interfaces.ts (1)
  • AnimationItem (81-84)
⏰ 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: lint-and-format
  • GitHub Check: collect
  • GitHub Check: setup
  • GitHub Check: test
🔇 Additional comments (24)
src/services/load3dService.ts (3)

2-2: LGTM! Proper import for skeletal animation support.

The SkeletonUtils import is necessary for correctly cloning models with skeletal animations, preserving bone hierarchies and animation data.


79-83: LGTM! Proper cleanup before model replacement.

Removing the existing model before adding the new one prevents scene duplication and potential memory leaks. This is good defensive coding practice.


118-123: Consider adding explicit null check for clarity.

While setupModelAnimations() safely handles a null sourceOriginalModel through defensive null-checking (line 51 in AnimationManager), passing a potentially null value is implicit. For code clarity, consider guarding the call:

if (source.hasAnimations() && sourceOriginalModel) {
  target.animationManager.setupModelAnimations(
    modelClone,
    sourceOriginalModel
  )
}

This makes the contract explicit and prevents unnecessary function calls when animations exist but originalModel is unavailable.

src/extensions/core/load3d/interfaces.ts (1)

149-151: LGTM! Well-defined interface additions for animation control.

The three new methods provide a clean public API for reading and controlling animation timing. The signatures are properly typed and consistent with the existing interface conventions.

src/extensions/core/load3d/Load3d.ts (1)

729-740: LGTM! Proper delegation with render synchronization.

The three new methods correctly delegate to the animation manager and follow the established pattern. The forceRender() call in setAnimationTime ensures the display updates immediately after seeking, which is essential for responsive UI feedback.

src/composables/useLoad3d.ts (4)

63-64: LGTM! New animation state properties.

The animationProgress and animationDuration refs provide the necessary reactive state for the progress bar feature. They are properly initialized and integrated with the event system.


362-367: LGTM! Proper defensive checks in seek handler.

The handleSeek function includes appropriate guards:

  • Verifies load3d exists before calling methods
  • Checks animationDuration.value > 0 to prevent division by zero
  • Correctly converts progress (0-100 range) to time in seconds

The implementation is safe and follows best practices.


526-533: LGTM! Animation progress event handling.

The animationProgressChange event handler correctly updates both animationProgress and animationDuration from the event data. This enables reactive updates when the animation playback advances.


593-594: LGTM! Properly exposed public API.

The new animation state properties and handleSeek handler are correctly exposed in the composable's return object, making them available to consuming components.

Also applies to: 607-607

src/components/load3d/Load3D.vue (2)

36-38: LGTM!

The new animation progress bindings are correctly wired: v-model:animation-progress, v-model:animation-duration, and @seek event are properly connected to the composable's state and handler.


125-127: LGTM!

The destructuring of animationProgress, animationDuration, and handleSeek from useLoad3d correctly exposes the new animation control API for use in the template bindings.

Also applies to: 138-138

src/extensions/core/load3d/AnimationManager.ts (3)

128-134: LGTM!

Emitting initial progress with duration when an animation is selected ensures the UI starts with correct state. This enables the progress bar to display the correct duration immediately.


160-171: LGTM!

The guard check for animationActions.length > 0 before emitting progress prevents potential errors when no actions exist. The progress calculation correctly derives percentage from action time and clip duration.


174-182: LGTM!

Simple and correct getter implementations with appropriate fallback to 0 when no animation actions exist.

src/components/load3d/controls/AnimationControls.vue (5)

6-21: LGTM!

The play/pause button correctly uses the repo's Button component with appropriate icon handling and i18n-translated aria-label.


69-78: LGTM!

The model definitions for animationProgress and animationDuration with defaults, plus the typed emit for seek, correctly establish the component's public API for animation control.


88-97: LGTM!

The currentTime computed property and formatTime utility are well-implemented. The format logic correctly handles both sub-minute and multi-minute durations with proper zero-padding.


103-108: LGTM!

The handler correctly guards against undefined values, updates the model, and emits the seek event for parent components to handle.


40-52: Consider adding accessibility attributes to the slider.

The slider lacks an accessible label. Screen reader users won't understand its purpose.

🔎 Proposed fix
       <Slider
         :model-value="[animationProgress]"
         :min="0"
         :max="100"
         :step="0.1"
         class="flex-1"
+        :aria-label="$t('load3d.animationProgress')"
         @update:model-value="handleSliderChange"
       />

Add the translation key to src/locales/en/main.json:

{
  "load3d": {
    "animationProgress": "Animation progress"
  }
}
⛔ Skipped due to learnings
Learnt from: DrJKL
Repo: Comfy-Org/ComfyUI_frontend PR: 7603
File: src/components/queue/QueueOverlayHeader.vue:49-59
Timestamp: 2025-12-18T21:15:54.349Z
Learning: For Vue components in Comfy-Org/ComfyUI_frontend: Do not suggest adding aria-label to buttons that already have visible text content (e.g., <span> elements with labels). The visible text automatically provides the accessible name. aria-label should only be used for elements without visible labels, such as icon-only buttons.
src/composables/useLoad3dViewer.ts (5)

53-59: LGTM!

Animation state refs are properly typed and initialized with sensible defaults.


186-203: Verify edge case: speed value of 0 will be skipped.

The condition if (load3d && newValue) on line 194 will skip updating when newValue is 0 (falsy). While 0 speed is likely not a valid option in the UI, consider using explicit undefined/null checks for robustness.

🔎 Proposed fix (if 0 speed should be allowed)
   watch(selectedSpeed, (newValue) => {
-    if (load3d && newValue) {
+    if (load3d && newValue !== undefined) {
       load3d.setAnimationSpeed(newValue)
     }
   })

205-210: LGTM!

The seek handler correctly converts progress percentage to time and guards against missing load3d instance or zero duration.


337-338: LGTM!

The setupAnimationEvents() call is correctly placed after load3d initialization and state copying in both node mode and standalone mode initialization paths.

Also applies to: 379-380


598-604: LGTM!

The new animation state and handleSeek method are correctly exported, completing the public API surface for animation control in the viewer.

Also applies to: 618-618

@jtydhr88 jtydhr88 merged commit 7fcfa4c into main Jan 4, 2026
32 checks passed
@jtydhr88 jtydhr88 deleted the feat/3d-animation-progress-bar branch January 4, 2026 13:47
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.

The animation playback feature for 3D nodes should have a draggable progress bar in the UI

2 participants