Skip to content

Conversation

@pythongosssss
Copy link
Member

@pythongosssss pythongosssss commented Jan 5, 2026

Summary

The current help / feedback is often overlooked by users, this adds a setting that makes it more visible moving it up into the tab bar and moves the user login/profile button out of the "action bar" into the tab bar.

Changes

  • Add 'Comfy.UI.TabBarLayout' setting with Default/Integrated options
  • Move Help & User controls to tab bar when Integrated mode is enabled
  • Extract help center logic into shared useHelpCenter composable

Screenshots (if applicable)

image image

┆Issue is synchronized with this Notion page by Unito

- Add 'Comfy.UI.TabBarLayout' setting with Default/Integrated options
- Move Help & User controls to tab bar when Integrated mode is enabled
- Extract help center logic into shared useHelpCenter composable
@coderabbitai
Copy link
Contributor

coderabbitai bot commented Jan 5, 2026

📝 Walkthrough

Walkthrough

Adds a Tab Bar Layout setting and integrates Help Center controls into an optional integrated tab bar; centralizes Help Center UI into a new composable and popup component, updates store/schema/locales, and applies conditional rendering across topbar and sidebar components.

Changes

Cohort / File(s) Summary
Settings & Schema
src/locales/en/settings.json, src/platform/settings/constants/coreSettings.ts, src/schemas/apiSchema.ts
Add Comfy.UI.TabBarLayout setting (options: Default/Integrated), add localization entries and register the setting in core settings and zSettings schema.
Help Center UI & Composable
src/components/helpcenter/HelpCenterPopups.vue, src/composables/useHelpCenter.ts, src/stores/helpCenterStore.ts
New HelpCenterPopups component (Teleports Help/Release/WhatsNew UIs); new useHelpCenter(triggerFrom?) composable exposing visibility, triggerLocation, red-dot logic and handlers; helpCenterStore adds HelpCenterTriggerLocation, triggerLocation ref, and toggle(location?) / show(location?) signatures.
Sidebar changes
src/components/sidebar/SidebarHelpCenterIcon.vue, src/components/sidebar/SideToolbar.vue
SidebarHelpCenterIcon simplified to an icon using useHelpCenter; SideToolbar mounts HelpCenterPopups and hides the sidebar help icon when Comfy.UI.TabBarLayout is Integrated.
Topbar & Tab Bar integration
src/components/topbar/TopMenuHelpButton.vue, src/components/topbar/CurrentUserButton.vue, src/components/topbar/LoginButton.vue, src/components/topbar/WorkflowTabs.vue, src/components/TopMenuSection.vue
New TopMenuHelpButton; CurrentUserButton adds showArrow and compact props; LoginButton adds a class prop and switches to text-only variant; WorkflowTabs and TopMenuSection read Comfy.UI.TabBarLayout via settings store and render/hide integrated actions accordingly.
Localization (top menu)
src/locales/en/main.json
Add menu.helpAndFeedback translation ("Help & Feedback") used by top-menu help button.

Sequence Diagram(s)

sequenceDiagram
    autonumber
    participant User
    participant UI as Topbar / Sidebar
    participant Composable as useHelpCenter
    participant Store as helpCenterStore
    participant Popups as HelpCenterPopups
    participant Dialog as DialogService

    User->>UI: click help control
    UI->>Composable: toggleHelpCenter(location)
    Composable->>Store: toggle(location) / set triggerLocation
    Store-->>Composable: isVisible / triggerLocation
    Composable->>Popups: show Help Center (Teleport into canvas)
    Popups-->>User: render popup
    alt User dismisses WhatsNew
        User->>Popups: dismiss
        Popups->>Composable: handleWhatsNewDismissed()
        Composable->>Dialog: maybe show conflict modal (async)
        Dialog-->>User: show conflict modal (if needed)
    end
Loading

Possibly related PRs

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

🎨 Storybook Build Status

Build completed successfully!

⏰ Completed at: 01/09/2026, 03:05:13 PM UTC

🔗 Links


🎉 Your Storybook is ready for review!

@github-actions
Copy link

github-actions bot commented Jan 5, 2026

🎭 Playwright Test Results

Some tests failed

⏰ Completed at: 01/09/2026, 03:10:27 PM UTC

📈 Summary

  • Total Tests: 510
  • Passed: 498 ✅
  • Failed: 1 ❌
  • Flaky: 3 ⚠️
  • Skipped: 8 ⏭️

📊 Test Reports by Browser

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

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

@github-actions
Copy link

github-actions bot commented Jan 5, 2026

Bundle Size Report

Summary

  • Raw size: 17.6 MB baseline 17.6 MB — 🔴 +4.93 kB
  • Gzip: 3.61 MB baseline 3.6 MB — 🔴 +836 B
  • Brotli: 2.75 MB baseline 2.75 MB — 🔴 +738 B
  • Bundles: 94 current • 94 baseline • 38 added / 38 removed

Category Glance
Graph Workspace 🔴 +4.56 kB (1.05 MB) · App Entry Points 🔴 +365 B (3.24 MB) · Vendor & Third-Party ⚪ 0 B (9.19 MB) · Other ⚪ 0 B (3.6 MB) · Panels & Settings ⚪ 0 B (302 kB) · UI Components ⚪ 0 B (198 kB) · + 3 more

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

Main entry bundles and manifests

File Before After Δ Raw Δ Gzip Δ Brotli
assets/index-DCq_80_e.js (new) 3.04 MB 🔴 +3.04 MB 🔴 +639 kB 🔴 +486 kB
assets/index-BUHlvq_V.js (removed) 3.04 MB 🟢 -3.04 MB 🟢 -639 kB 🟢 -486 kB
assets/index-Bo6EoLVT.js (removed) 194 kB 🟢 -194 kB 🟢 -42.3 kB 🟢 -35.2 kB
assets/index-Dph3DHET.js (new) 194 kB 🔴 +194 kB 🔴 +42.3 kB 🔴 +35.2 kB
assets/index-CYW6GT9N.js (new) 345 B 🔴 +345 B 🔴 +247 B 🔴 +234 B
assets/index-DvSDbxwj.js (removed) 345 B 🟢 -345 B 🟢 -245 B 🟢 -230 B

Status: 3 added / 3 removed

Graph Workspace — 1.05 MB (baseline 1.05 MB) • 🔴 +4.56 kB

Graph editor runtime, canvas, workflow orchestration

File Before After Δ Raw Δ Gzip Δ Brotli
assets/GraphView-DwcEXuJZ.js (new) 1.05 MB 🔴 +1.05 MB 🔴 +204 kB 🔴 +155 kB
assets/GraphView-D0BIszwN.js (removed) 1.05 MB 🟢 -1.05 MB 🟢 -203 kB 🟢 -154 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-BNJx4H6o.js (removed) 6.63 kB 🟢 -6.63 kB 🟢 -2.15 kB 🟢 -1.9 kB
assets/UserSelectView-mmabwHg7.js (new) 6.63 kB 🔴 +6.63 kB 🔴 +2.14 kB 🔴 +1.9 kB

Status: 1 added / 1 removed

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

Configuration panels, inspectors, and settings screens

File Before After Δ Raw Δ Gzip Δ Brotli
assets/LegacyCreditsPanel-BNVpXF6u.js (removed) 25.1 kB 🟢 -25.1 kB 🟢 -5.74 kB 🟢 -5 kB
assets/LegacyCreditsPanel-BrwS9tkC.js (new) 25.1 kB 🔴 +25.1 kB 🔴 +5.74 kB 🔴 +5 kB
assets/KeybindingPanel-CaqnnZBh.js (new) 14.8 kB 🔴 +14.8 kB 🔴 +3.57 kB 🔴 +3.13 kB
assets/KeybindingPanel-GafU-v2V.js (removed) 14.8 kB 🟢 -14.8 kB 🟢 -3.57 kB 🟢 -3.12 kB
assets/ExtensionPanel-BUqOQiVq.js (new) 11.1 kB 🔴 +11.1 kB 🔴 +2.62 kB 🔴 +2.29 kB
assets/ExtensionPanel-Cg9B1F_r.js (removed) 11.1 kB 🟢 -11.1 kB 🟢 -2.62 kB 🟢 -2.29 kB
assets/AboutPanel-BX7ASl7S.js (removed) 9.16 kB 🟢 -9.16 kB 🟢 -2.46 kB 🟢 -2.2 kB
assets/AboutPanel-DTmnJ65b.js (new) 9.16 kB 🔴 +9.16 kB 🔴 +2.46 kB 🔴 +2.2 kB
assets/ServerConfigPanel-B2EnUMg5.js (removed) 7.51 kB 🟢 -7.51 kB 🟢 -2.04 kB 🟢 -1.81 kB
assets/ServerConfigPanel-C3G6J_Mg.js (new) 7.51 kB 🔴 +7.51 kB 🔴 +2.04 kB 🔴 +1.81 kB
assets/UserPanel-ji2f5SqT.js (removed) 6.88 kB 🟢 -6.88 kB 🟢 -1.79 kB 🟢 -1.56 kB
assets/UserPanel-VUULyDtX.js (new) 6.88 kB 🔴 +6.88 kB 🔴 +1.79 kB 🔴 +1.57 kB
assets/settings-BhbWhsRg.js 101 B 101 B ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/settings-BIdKi-OT.js 26.2 kB 26.2 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/settings-Bu3OR-lX.js 24.6 kB 24.6 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/settings-ByL6gy5c.js 25.4 kB 25.4 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/settings-CjlRFMdL.js 32.8 kB 32.8 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/settings-DkGwvylK.js 26.9 kB 26.9 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/settings-Dyd027Dx.js 24.7 kB 24.7 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/settings-MzsBgiwB.js 21.7 kB 21.7 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/settings-wwBxqLH5.js 21.3 kB 21.3 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/settings-xx2Yb6R2.js 23.8 kB 23.8 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B

Status: 6 added / 6 removed

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

Reusable component library chunks

File Before After Δ Raw Δ Gzip Δ Brotli
assets/LazyImage.vue_vue_type_script_setup_true_lang-BjVS2daH.js (new) 63 kB 🔴 +63 kB 🔴 +12.9 kB 🔴 +11.2 kB
assets/LazyImage.vue_vue_type_script_setup_true_lang-DnYtn_DK.js (removed) 63 kB 🟢 -63 kB 🟢 -12.9 kB 🟢 -11.2 kB
assets/Load3D.vue_vue_type_script_setup_true_lang-Bf6kjjpg.js (new) 56.4 kB 🔴 +56.4 kB 🔴 +8.78 kB 🔴 +7.52 kB
assets/Load3D.vue_vue_type_script_setup_true_lang-D_JZGF57.js (removed) 56.4 kB 🟢 -56.4 kB 🟢 -8.78 kB 🟢 -7.54 kB
assets/WidgetSelect.vue_vue_type_script_setup_true_lang-CDSUJGNY.js (removed) 49 kB 🟢 -49 kB 🟢 -10.6 kB 🟢 -9.16 kB
assets/WidgetSelect.vue_vue_type_script_setup_true_lang-ckwl4Ucd.js (new) 49 kB 🔴 +49 kB 🔴 +10.5 kB 🔴 +9.15 kB
assets/WidgetInputNumber.vue_vue_type_script_setup_true_lang-B61tEOMB.js (removed) 10.9 kB 🟢 -10.9 kB 🟢 -2.9 kB 🟢 -2.56 kB
assets/WidgetInputNumber.vue_vue_type_script_setup_true_lang-C1grE4yR.js (new) 10.9 kB 🔴 +10.9 kB 🔴 +2.9 kB 🔴 +2.55 kB
assets/ComfyQueueButton-BFOf45ht.js (new) 8.83 kB 🔴 +8.83 kB 🔴 +2.58 kB 🔴 +2.3 kB
assets/ComfyQueueButton-CUYW3J7r.js (removed) 8.83 kB 🟢 -8.83 kB 🟢 -2.58 kB 🟢 -2.3 kB
assets/WidgetWithControl.vue_vue_type_script_setup_true_lang-B0PuK-ql.js (new) 3.72 kB 🔴 +3.72 kB 🔴 +1.46 kB 🔴 +1.32 kB
assets/WidgetWithControl.vue_vue_type_script_setup_true_lang-CVRskFE4.js (removed) 3.72 kB 🟢 -3.72 kB 🟢 -1.46 kB 🟢 -1.32 kB
assets/WidgetButton-3Tu8M0q-.js (new) 2.21 kB 🔴 +2.21 kB 🔴 +995 B 🔴 +889 B
assets/WidgetButton-CT6yuSoi.js (removed) 2.21 kB 🟢 -2.21 kB 🟢 -995 B 🟢 -873 B
assets/WidgetLayoutField.vue_vue_type_script_setup_true_lang-CZru8wsU.js (new) 2.14 kB 🔴 +2.14 kB 🔴 +889 B 🔴 +769 B
assets/WidgetLayoutField.vue_vue_type_script_setup_true_lang-tFXBGIzW.js (removed) 2.14 kB 🟢 -2.14 kB 🟢 -891 B 🟢 -768 B
assets/UserAvatar.vue_vue_type_script_setup_true_lang-BW-xXiXL.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-CyFrDzxz.js (removed) 7.51 kB 🟢 -7.51 kB 🟢 -1.83 kB 🟢 -1.57 kB
assets/keybindingService-DYioUYqq.js (new) 7.51 kB 🔴 +7.51 kB 🔴 +1.83 kB 🔴 +1.57 kB
assets/audioService-DLjqXGjr.js (removed) 2.2 kB 🟢 -2.2 kB 🟢 -962 B 🟢 -824 B
assets/audioService-DSH33Jv8.js (new) 2.2 kB 🔴 +2.2 kB 🔴 +963 B 🔴 +820 B
assets/serverConfigStore-B13iXQYT.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-CBCV126W.js (removed) 1.41 kB 🟢 -1.41 kB 🟢 -652 B 🟢 -545 B
assets/audioUtils-CTDZjTQx.js (new) 1.41 kB 🔴 +1.41 kB 🔴 +651 B 🔴 +547 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-CVNMe_QT.js 452 kB 452 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/vendor-other-BhsQk6Ae.js 3.9 MB 3.9 MB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/vendor-primevue-DXqoawNR.js 1.95 MB 1.95 MB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/vendor-three-DSjh4FhQ.js 2.08 MB 2.08 MB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/vendor-tiptap-gfGUy857.js 232 kB 232 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/vendor-vue-BRQeq49A.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.6 MB (baseline 3.6 MB) • ⚪ 0 B

Bundles that do not match a named category

File Before After Δ Raw Δ Gzip Δ Brotli
assets/SubscriptionRequiredDialogContent-BJVwggwe.js (removed) 29.3 kB 🟢 -29.3 kB 🟢 -6.51 kB 🟢 -5.65 kB
assets/SubscriptionRequiredDialogContent-OxOJ8Dyd.js (new) 29.3 kB 🔴 +29.3 kB 🔴 +6.51 kB 🔴 +5.65 kB
assets/WidgetRecordAudio-BhfQYY1M.js (new) 20.4 kB 🔴 +20.4 kB 🔴 +5.24 kB 🔴 +4.63 kB
assets/WidgetRecordAudio-BmeKlhw4.js (removed) 20.4 kB 🟢 -20.4 kB 🟢 -5.24 kB 🟢 -4.63 kB
assets/AudioPreviewPlayer-BgI0MaF6.js (removed) 13.3 kB 🟢 -13.3 kB 🟢 -3.35 kB 🟢 -2.99 kB
assets/AudioPreviewPlayer-Cw4Eg4Z6.js (new) 13.3 kB 🔴 +13.3 kB 🔴 +3.35 kB 🔴 +3 kB
assets/ValueControlPopover-CZHJhsVh.js (new) 5.49 kB 🔴 +5.49 kB 🔴 +1.71 kB 🔴 +1.51 kB
assets/ValueControlPopover-DqDArjK9.js (removed) 5.49 kB 🟢 -5.49 kB 🟢 -1.71 kB 🟢 -1.51 kB
assets/WidgetGalleria-Cgy8qMXM.js (new) 4.1 kB 🔴 +4.1 kB 🔴 +1.45 kB 🔴 +1.3 kB
assets/WidgetGalleria-DbKKkb2B.js (removed) 4.1 kB 🟢 -4.1 kB 🟢 -1.45 kB 🟢 -1.3 kB
assets/WidgetColorPicker-Bth3-gAu.js (new) 3.41 kB 🔴 +3.41 kB 🔴 +1.38 kB 🔴 +1.23 kB
assets/WidgetColorPicker-CEZAUHoT.js (removed) 3.41 kB 🟢 -3.41 kB 🟢 -1.38 kB 🟢 -1.24 kB
assets/WidgetTextarea-0IJILtDQ.js (removed) 3.08 kB 🟢 -3.08 kB 🟢 -1.22 kB 🟢 -1.08 kB
assets/WidgetTextarea-C_iB1_2B.js (new) 3.08 kB 🔴 +3.08 kB 🔴 +1.22 kB 🔴 +1.1 kB
assets/WidgetMarkdown-CeWIsAZb.js (new) 3.08 kB 🔴 +3.08 kB 🔴 +1.28 kB 🔴 +1.13 kB
assets/WidgetMarkdown-dlT4Ai64.js (removed) 3.08 kB 🟢 -3.08 kB 🟢 -1.28 kB 🟢 -1.13 kB
assets/WidgetAudioUI-B7NZQD70.js (removed) 2.89 kB 🟢 -2.89 kB 🟢 -1.17 kB 🟢 -1.07 kB
assets/WidgetAudioUI-Dp_eqWWB.js (new) 2.89 kB 🔴 +2.89 kB 🔴 +1.17 kB 🔴 +1.06 kB
assets/WidgetToggleSwitch-ClfVVmcB.js (removed) 2.66 kB 🟢 -2.66 kB 🟢 -1.13 kB 🟢 -1.03 kB
assets/WidgetToggleSwitch-DDdoQhIq.js (new) 2.66 kB 🔴 +2.66 kB 🔴 +1.13 kB 🔴 +1.02 kB
assets/WidgetInputText-oPKWbMKG.js (new) 1.99 kB 🔴 +1.99 kB 🔴 +922 B 🔴 +836 B
assets/WidgetInputText-ZeIFWeGP.js (removed) 1.99 kB 🟢 -1.99 kB 🟢 -921 B 🟢 -863 B
assets/Media3DTop-Di22RHUp.js (removed) 1.49 kB 🟢 -1.49 kB 🟢 -766 B 🟢 -653 B
assets/Media3DTop-kPUjtj-_.js (new) 1.49 kB 🔴 +1.49 kB 🔴 +762 B 🔴 +651 B
assets/WidgetSelect-BDVTIChC.js (new) 733 B 🔴 +733 B 🔴 +361 B 🔴 +329 B
assets/WidgetSelect-DarrlQOM.js (removed) 733 B 🟢 -733 B 🟢 -362 B 🟢 -334 B
assets/WidgetInputNumber-B3iDhzBF.js (new) 673 B 🔴 +673 B 🔴 +350 B 🔴 +286 B
assets/WidgetInputNumber-DGr3ziZ_.js (removed) 673 B 🟢 -673 B 🟢 -349 B 🟢 -293 B
assets/Load3D-Bs6WClz1.js (new) 424 B 🔴 +424 B 🔴 +267 B 🔴 +222 B
assets/Load3D-DHih_e-X.js (removed) 424 B 🟢 -424 B 🟢 -266 B 🟢 -225 B
assets/WidgetLegacy-BQ33dJfH.js (removed) 364 B 🟢 -364 B 🟢 -238 B 🟢 -194 B
assets/WidgetLegacy-Ch8IgrvB.js (new) 364 B 🔴 +364 B 🔴 +237 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-BqhbFwOZ.js 1.46 kB 1.46 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/MediaImageTop-Bc7bfzYn.js 1.75 kB 1.75 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/MediaVideoTop-C-sg4fxv.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/OBJLoader2WorkerModule-DTMpvldF.js 109 kB 109 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/WidgetChart-DI6o-dtT.js 2.48 kB 2.48 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/WidgetImageCompare-QmPH3KIa.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

@github-actions
Copy link

github-actions bot commented Jan 5, 2026

🔧 Auto-fixes Applied

This PR has been automatically updated to fix linting and formatting issues.

⚠️ Important: Your local branch is now behind. Run git pull before making additional changes to avoid conflicts.

Changes made:

  • ESLint auto-fixes
  • Prettier formatting

@pythongosssss pythongosssss marked this pull request as ready for review January 6, 2026 10:56
@dosubot dosubot bot added the size:XL This PR changes 500-999 lines, ignoring generated files. label Jan 6, 2026
Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 4

Caution

Some comments are outside the diff and can’t be posted inline due to platform limitations.

⚠️ Outside diff range comments (1)
src/components/sidebar/SidebarHelpCenterIcon.vue (1)

25-44: Use design system color token instead of hardcoded color, and remove !important if possible.

The hardcoded color #ff3b30 should be replaced with a design system token. The closest available semantic colors are --color-danger-200 (#d62952) or --color-error-text (#ff4444). Determine which is appropriate for your notification indicator.

For the !important on line 42, try removing it by adjusting the CSS selector specificity to override PrimeVue's defaults without the !important flag.

Current code
:deep(.p-badge) {
  background: #ff3b30;
  color: #ff3b30;
  min-width: 8px;
  height: 8px;
  padding: 0;
  border-radius: 9999px;
  font-size: 0;
  margin-top: 4px;
  margin-right: 4px;
  border: none;
  outline: none;
  box-shadow: none;
}

:deep(.p-badge.p-badge-dot) {
  width: 8px !important;
}
🤖 Fix all issues with AI Agents
In @src/components/helpcenter/HelpCenterPopups.vue:
- Around line 44-50: The backdrop element rendered inside Teleport uses
position: absolute which can fail to cover the viewport; update the styling for
the backdrop (the div with class "help-center-backdrop" rendered when
isHelpCenterVisible and the similar backdrop used around lines 74-82) to use
position: fixed instead of absolute so it always spans the full viewport
regardless of document flow or scrolling; locate the CSS rules for
.help-center-backdrop (and any duplicate backdrop class/inline style in the same
component) and change position to fixed, keeping existing sizing
(top/left/right/bottom or width/height) and z-index intact.
- Around line 73-134: Replace hardcoded CSS in HelpCenterPopups.vue by switching
positioning and z-index to Tailwind/design tokens and moving animations to
shared CSS: update usages of .help-center-backdrop and .help-center-popup
(including variants .sidebar-left, .sidebar-right, .topbar-right,
.small-sidebar) to use Tailwind utility classes for absolute positioning,
spacing and z-index tokens instead of 9999/10000; if Tailwind's built-in
animations cover the behavior, replace the local @keyframes slideInUp and
slideInDown with Tailwind animation classes, otherwise move these keyframes into
the shared design-system CSS (or an @apply-enabled file) and reference them via
a named utility or class so the component contains only utility classes.

In @src/composables/useHelpCenter.ts:
- Around line 85-89: Wrap the onMounted initialization of the release store in a
try/catch: call releaseStore.initialize() inside try, handle failures in catch
by logging the error (e.g., console.error or your app logger), optionally
surface a user-friendly fallback (e.g., display a toast or set a local error
state) and avoid rethrowing so the unhandled error doesn’t crash the app; update
the onMounted block that calls releaseStore.initialize() accordingly and include
references to the onMounted callback and releaseStore.initialize() so reviewers
can find the change.
- Around line 43-48: The telemetry event in toggleHelpCenter hardcodes button_id
to 'sidebar_help_center_toggled' which mislabels events when triggerFrom is
'topbar'; update toggleHelpCenter to derive the button_id from triggerFrom
(e.g., use a mapping or template like `${triggerFrom}_help_center_toggled`)
before calling useTelemetry()?.trackUiButtonClicked, and keep the
helpCenterStore.toggle(triggerFrom) call unchanged so analytics reflect the real
trigger location.
📜 Review details

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Pro

📥 Commits

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

📒 Files selected for processing (14)
  • src/components/TopMenuSection.vue
  • src/components/helpcenter/HelpCenterPopups.vue
  • src/components/sidebar/SideToolbar.vue
  • src/components/sidebar/SidebarHelpCenterIcon.vue
  • src/components/topbar/CurrentUserButton.vue
  • src/components/topbar/LoginButton.vue
  • src/components/topbar/TopMenuHelpButton.vue
  • src/components/topbar/WorkflowTabs.vue
  • src/composables/useHelpCenter.ts
  • src/locales/en/main.json
  • src/locales/en/settings.json
  • src/platform/settings/constants/coreSettings.ts
  • src/schemas/apiSchema.ts
  • src/stores/helpCenterStore.ts
🧰 Additional context used
📓 Path-based instructions (18)
**/*.{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/locales/en/main.json
  • src/locales/en/settings.json
  • src/components/topbar/CurrentUserButton.vue
  • src/schemas/apiSchema.ts
  • src/components/topbar/WorkflowTabs.vue
  • src/components/helpcenter/HelpCenterPopups.vue
  • src/platform/settings/constants/coreSettings.ts
  • src/composables/useHelpCenter.ts
  • src/components/sidebar/SideToolbar.vue
  • src/components/topbar/TopMenuHelpButton.vue
  • src/components/topbar/LoginButton.vue
  • src/components/TopMenuSection.vue
  • src/stores/helpCenterStore.ts
  • src/components/sidebar/SidebarHelpCenterIcon.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/components/topbar/CurrentUserButton.vue
  • src/components/topbar/WorkflowTabs.vue
  • src/components/helpcenter/HelpCenterPopups.vue
  • src/components/sidebar/SideToolbar.vue
  • src/components/topbar/TopMenuHelpButton.vue
  • src/components/topbar/LoginButton.vue
  • src/components/TopMenuSection.vue
  • src/components/sidebar/SidebarHelpCenterIcon.vue
src/**/*.{vue,ts}

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

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

Files:

  • src/components/topbar/CurrentUserButton.vue
  • src/schemas/apiSchema.ts
  • src/components/topbar/WorkflowTabs.vue
  • src/components/helpcenter/HelpCenterPopups.vue
  • src/platform/settings/constants/coreSettings.ts
  • src/composables/useHelpCenter.ts
  • src/components/sidebar/SideToolbar.vue
  • src/components/topbar/TopMenuHelpButton.vue
  • src/components/topbar/LoginButton.vue
  • src/components/TopMenuSection.vue
  • src/stores/helpCenterStore.ts
  • src/components/sidebar/SidebarHelpCenterIcon.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/components/topbar/CurrentUserButton.vue
  • src/schemas/apiSchema.ts
  • src/components/topbar/WorkflowTabs.vue
  • src/components/helpcenter/HelpCenterPopups.vue
  • src/platform/settings/constants/coreSettings.ts
  • src/composables/useHelpCenter.ts
  • src/components/sidebar/SideToolbar.vue
  • src/components/topbar/TopMenuHelpButton.vue
  • src/components/topbar/LoginButton.vue
  • src/components/TopMenuSection.vue
  • src/stores/helpCenterStore.ts
  • src/components/sidebar/SidebarHelpCenterIcon.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/components/topbar/CurrentUserButton.vue
  • src/components/topbar/WorkflowTabs.vue
  • src/components/helpcenter/HelpCenterPopups.vue
  • src/composables/useHelpCenter.ts
  • src/components/sidebar/SideToolbar.vue
  • src/components/topbar/TopMenuHelpButton.vue
  • src/components/topbar/LoginButton.vue
  • src/components/TopMenuSection.vue
  • src/components/sidebar/SidebarHelpCenterIcon.vue
src/**/*.{vue,ts,tsx}

📄 CodeRabbit inference engine (src/CLAUDE.md)

Follow Vue 3 composition API style guide

Files:

  • src/components/topbar/CurrentUserButton.vue
  • src/schemas/apiSchema.ts
  • src/components/topbar/WorkflowTabs.vue
  • src/components/helpcenter/HelpCenterPopups.vue
  • src/platform/settings/constants/coreSettings.ts
  • src/composables/useHelpCenter.ts
  • src/components/sidebar/SideToolbar.vue
  • src/components/topbar/TopMenuHelpButton.vue
  • src/components/topbar/LoginButton.vue
  • src/components/TopMenuSection.vue
  • src/stores/helpCenterStore.ts
  • src/components/sidebar/SidebarHelpCenterIcon.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/components/topbar/CurrentUserButton.vue
  • src/components/topbar/WorkflowTabs.vue
  • src/components/helpcenter/HelpCenterPopups.vue
  • src/composables/useHelpCenter.ts
  • src/components/sidebar/SideToolbar.vue
  • src/components/topbar/TopMenuHelpButton.vue
  • src/components/topbar/LoginButton.vue
  • src/components/TopMenuSection.vue
  • src/components/sidebar/SidebarHelpCenterIcon.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/topbar/CurrentUserButton.vue
  • src/components/topbar/WorkflowTabs.vue
  • src/components/helpcenter/HelpCenterPopups.vue
  • src/components/sidebar/SideToolbar.vue
  • src/components/topbar/TopMenuHelpButton.vue
  • src/components/topbar/LoginButton.vue
  • src/components/TopMenuSection.vue
  • src/components/sidebar/SidebarHelpCenterIcon.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/topbar/CurrentUserButton.vue
  • src/components/topbar/WorkflowTabs.vue
  • src/components/helpcenter/HelpCenterPopups.vue
  • src/components/sidebar/SideToolbar.vue
  • src/components/topbar/TopMenuHelpButton.vue
  • src/components/topbar/LoginButton.vue
  • src/components/TopMenuSection.vue
  • src/components/sidebar/SidebarHelpCenterIcon.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/topbar/CurrentUserButton.vue
  • src/components/topbar/WorkflowTabs.vue
  • src/components/helpcenter/HelpCenterPopups.vue
  • src/components/sidebar/SideToolbar.vue
  • src/components/topbar/TopMenuHelpButton.vue
  • src/components/topbar/LoginButton.vue
  • src/components/TopMenuSection.vue
  • src/components/sidebar/SidebarHelpCenterIcon.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/topbar/CurrentUserButton.vue
  • src/components/topbar/WorkflowTabs.vue
  • src/components/helpcenter/HelpCenterPopups.vue
  • src/components/sidebar/SideToolbar.vue
  • src/components/topbar/TopMenuHelpButton.vue
  • src/components/topbar/LoginButton.vue
  • src/components/TopMenuSection.vue
  • src/components/sidebar/SidebarHelpCenterIcon.vue
**/*.{ts,tsx,vue}

📄 CodeRabbit inference engine (AGENTS.md)

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

Files:

  • src/components/topbar/CurrentUserButton.vue
  • src/schemas/apiSchema.ts
  • src/components/topbar/WorkflowTabs.vue
  • src/components/helpcenter/HelpCenterPopups.vue
  • src/platform/settings/constants/coreSettings.ts
  • src/composables/useHelpCenter.ts
  • src/components/sidebar/SideToolbar.vue
  • src/components/topbar/TopMenuHelpButton.vue
  • src/components/topbar/LoginButton.vue
  • src/components/TopMenuSection.vue
  • src/stores/helpCenterStore.ts
  • src/components/sidebar/SidebarHelpCenterIcon.vue
src/**/*.ts

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

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

Files:

  • src/schemas/apiSchema.ts
  • src/platform/settings/constants/coreSettings.ts
  • src/composables/useHelpCenter.ts
  • src/stores/helpCenterStore.ts
**/*.{ts,tsx}

📄 CodeRabbit inference engine (AGENTS.md)

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

Files:

  • src/schemas/apiSchema.ts
  • src/platform/settings/constants/coreSettings.ts
  • src/composables/useHelpCenter.ts
  • src/stores/helpCenterStore.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/useHelpCenter.ts
**/**/use[A-Z]*.ts

📄 CodeRabbit inference engine (AGENTS.md)

Name composables using the pattern useXyz.ts

Files:

  • src/composables/useHelpCenter.ts
src/**/stores/**/*.{ts,tsx}

📄 CodeRabbit inference engine (src/CLAUDE.md)

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

Files:

  • src/stores/helpCenterStore.ts
**/*Store.ts

📄 CodeRabbit inference engine (AGENTS.md)

Name Pinia stores using the pattern *Store.ts

Files:

  • src/stores/helpCenterStore.ts
🧠 Learnings (44)
📚 Learning: 2025-12-09T04:35:43.971Z
Learnt from: christian-byrne
Repo: Comfy-Org/ComfyUI_frontend PR: 6300
File: src/locales/en/main.json:774-780
Timestamp: 2025-12-09T04:35:43.971Z
Learning: In the Comfy-Org/ComfyUI_frontend repository, locale files other than `src/locales/en/main.json` are generated automatically on every release. Developers only need to add English (en) key/values in `src/locales/en/main.json` when making PRs; manual updates to other locale files (fr, ja, ko, ru, zh, zh-TW, es, ar, tr, etc.) are not required and should not be suggested in reviews.

Applied to files:

  • src/locales/en/settings.json
📚 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/components/topbar/CurrentUserButton.vue
  • src/components/helpcenter/HelpCenterPopups.vue
  • src/components/sidebar/SideToolbar.vue
  • src/components/topbar/TopMenuHelpButton.vue
  • src/components/topbar/LoginButton.vue
  • src/components/sidebar/SidebarHelpCenterIcon.vue
📚 Learning: 2025-12-09T03:49:52.828Z
Learnt from: christian-byrne
Repo: Comfy-Org/ComfyUI_frontend PR: 6300
File: src/platform/updates/components/WhatsNewPopup.vue:5-13
Timestamp: 2025-12-09T03:49:52.828Z
Learning: In Vue files across the ComfyUI_frontend repo, when a button is needed, prefer the repo's common button components from src/components/button/ (IconButton.vue, TextButton.vue, IconTextButton.vue) over plain HTML <button> elements. These components wrap PrimeVue with the project’s design system styling. Use only the common button components for consistency and theming, and import them from src/components/button/ as needed.

Applied to files:

  • src/components/topbar/CurrentUserButton.vue
  • src/components/topbar/WorkflowTabs.vue
  • src/components/helpcenter/HelpCenterPopups.vue
  • src/components/sidebar/SideToolbar.vue
  • src/components/topbar/TopMenuHelpButton.vue
  • src/components/topbar/LoginButton.vue
  • src/components/TopMenuSection.vue
  • src/components/sidebar/SidebarHelpCenterIcon.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/topbar/CurrentUserButton.vue
  • src/components/topbar/WorkflowTabs.vue
  • src/components/helpcenter/HelpCenterPopups.vue
  • src/components/sidebar/SideToolbar.vue
  • src/components/topbar/TopMenuHelpButton.vue
  • src/components/topbar/LoginButton.vue
  • src/components/TopMenuSection.vue
  • src/components/sidebar/SidebarHelpCenterIcon.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/topbar/CurrentUserButton.vue
  • src/components/topbar/WorkflowTabs.vue
  • src/components/helpcenter/HelpCenterPopups.vue
  • src/components/sidebar/SideToolbar.vue
  • src/components/topbar/TopMenuHelpButton.vue
  • src/components/topbar/LoginButton.vue
  • src/components/TopMenuSection.vue
  • src/components/sidebar/SidebarHelpCenterIcon.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/topbar/CurrentUserButton.vue
  • src/components/topbar/WorkflowTabs.vue
  • src/components/helpcenter/HelpCenterPopups.vue
  • src/components/sidebar/SideToolbar.vue
  • src/components/topbar/TopMenuHelpButton.vue
  • src/components/topbar/LoginButton.vue
  • src/components/TopMenuSection.vue
  • src/components/sidebar/SidebarHelpCenterIcon.vue
📚 Learning: 2025-12-11T12:25:15.470Z
Learnt from: christian-byrne
Repo: Comfy-Org/ComfyUI_frontend PR: 7358
File: src/components/dialog/content/signin/SignUpForm.vue:45-54
Timestamp: 2025-12-11T12:25:15.470Z
Learning: This repository uses CI automation to format code (pnpm format). Do not include manual formatting suggestions in code reviews for Comfy-Org/ComfyUI_frontend. If formatting issues are detected, rely on the CI formatter or re-run pnpm format. Focus reviews on correctness, readability, performance, accessibility, and maintainability rather than style formatting.

Applied to files:

  • src/components/topbar/CurrentUserButton.vue
  • src/schemas/apiSchema.ts
  • src/components/topbar/WorkflowTabs.vue
  • src/components/helpcenter/HelpCenterPopups.vue
  • src/platform/settings/constants/coreSettings.ts
  • src/composables/useHelpCenter.ts
  • src/components/sidebar/SideToolbar.vue
  • src/components/topbar/TopMenuHelpButton.vue
  • src/components/topbar/LoginButton.vue
  • src/components/TopMenuSection.vue
  • src/stores/helpCenterStore.ts
  • src/components/sidebar/SidebarHelpCenterIcon.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/topbar/CurrentUserButton.vue
  • src/components/topbar/WorkflowTabs.vue
  • src/components/helpcenter/HelpCenterPopups.vue
  • src/components/sidebar/SideToolbar.vue
  • src/components/topbar/TopMenuHelpButton.vue
  • src/components/topbar/LoginButton.vue
  • src/components/TopMenuSection.vue
  • src/components/sidebar/SidebarHelpCenterIcon.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/topbar/CurrentUserButton.vue
  • src/components/topbar/WorkflowTabs.vue
  • src/components/helpcenter/HelpCenterPopups.vue
  • src/components/sidebar/SideToolbar.vue
  • src/components/topbar/TopMenuHelpButton.vue
  • src/components/topbar/LoginButton.vue
  • src/components/TopMenuSection.vue
  • src/components/sidebar/SidebarHelpCenterIcon.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/topbar/CurrentUserButton.vue
  • src/components/topbar/WorkflowTabs.vue
  • src/components/helpcenter/HelpCenterPopups.vue
  • src/components/sidebar/SideToolbar.vue
  • src/components/topbar/TopMenuHelpButton.vue
  • src/components/topbar/LoginButton.vue
  • src/components/TopMenuSection.vue
  • src/components/sidebar/SidebarHelpCenterIcon.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/topbar/CurrentUserButton.vue
  • src/components/topbar/WorkflowTabs.vue
  • src/components/helpcenter/HelpCenterPopups.vue
  • src/components/sidebar/SideToolbar.vue
  • src/components/topbar/TopMenuHelpButton.vue
  • src/components/topbar/LoginButton.vue
  • src/components/TopMenuSection.vue
  • src/components/sidebar/SidebarHelpCenterIcon.vue
📚 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/schemas/apiSchema.ts
  • src/platform/settings/constants/coreSettings.ts
  • src/composables/useHelpCenter.ts
  • src/stores/helpCenterStore.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/schemas/apiSchema.ts
  • src/platform/settings/constants/coreSettings.ts
  • src/composables/useHelpCenter.ts
  • src/stores/helpCenterStore.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/schemas/apiSchema.ts
  • src/platform/settings/constants/coreSettings.ts
  • src/composables/useHelpCenter.ts
  • src/stores/helpCenterStore.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/schemas/apiSchema.ts
  • src/platform/settings/constants/coreSettings.ts
  • src/composables/useHelpCenter.ts
  • src/stores/helpCenterStore.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 TabMenu component with Tabs without panels

Applied to files:

  • src/components/topbar/WorkflowTabs.vue
  • src/components/sidebar/SideToolbar.vue
  • src/components/topbar/TopMenuHelpButton.vue
  • src/components/TopMenuSection.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} : Leverage VueUse functions for performance-enhancing styles

Applied to files:

  • src/components/topbar/WorkflowTabs.vue
  • src/components/sidebar/SideToolbar.vue
📚 Learning: 2025-11-24T19:47:45.616Z
Learnt from: CR
Repo: Comfy-Org/ComfyUI_frontend PR: 0
File: src/components/CLAUDE.md:0-0
Timestamp: 2025-11-24T19:47:45.616Z
Learning: Applies to src/components/**/*.{vue,ts,js} : Use existing VueUse composables (such as useElementHover) instead of manually managing event listeners

Applied to files:

  • src/components/topbar/WorkflowTabs.vue
  • src/composables/useHelpCenter.ts
  • src/components/sidebar/SideToolbar.vue
📚 Learning: 2025-11-24T19:47:45.616Z
Learnt from: CR
Repo: Comfy-Org/ComfyUI_frontend PR: 0
File: src/components/CLAUDE.md:0-0
Timestamp: 2025-11-24T19:47:45.616Z
Learning: Applies to src/components/**/*.{vue,ts,js} : Use vue-i18n for ALL UI strings

Applied to files:

  • src/components/topbar/WorkflowTabs.vue
📚 Learning: 2025-11-24T19:47:34.324Z
Learnt from: CR
Repo: Comfy-Org/ComfyUI_frontend PR: 0
File: src/CLAUDE.md:0-0
Timestamp: 2025-11-24T19:47:34.324Z
Learning: Applies to src/**/{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/components/topbar/WorkflowTabs.vue
📚 Learning: 2025-11-24T19:47:02.860Z
Learnt from: CR
Repo: Comfy-Org/ComfyUI_frontend PR: 0
File: .github/copilot-instructions.md:0-0
Timestamp: 2025-11-24T19:47:02.860Z
Learning: Applies to src/**/*.vue : Utilize Vue 3's Teleport component when needed

Applied to files:

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

Applied to files:

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

Applied to files:

  • src/components/topbar/WorkflowTabs.vue
  • src/components/helpcenter/HelpCenterPopups.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/topbar/WorkflowTabs.vue
  • src/components/helpcenter/HelpCenterPopups.vue
  • src/components/sidebar/SideToolbar.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/helpcenter/HelpCenterPopups.vue
  • src/components/sidebar/SideToolbar.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/helpcenter/HelpCenterPopups.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 TypeScript-style default prop declaration with reactive props destructuring; do not use `withDefaults` or runtime props declaration

Applied to files:

  • src/components/helpcenter/HelpCenterPopups.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 : Follow Vue 3 style guide and naming conventions

Applied to files:

  • src/components/helpcenter/HelpCenterPopups.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 : Follow Vue 3 style guide and naming conventions

Applied to files:

  • src/components/helpcenter/HelpCenterPopups.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 : Implement proper props and emits definitions in Vue components

Applied to files:

  • src/components/helpcenter/HelpCenterPopups.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 **/**/use[A-Z]*.ts : Name composables using the pattern `useXyz.ts`

Applied to files:

  • src/composables/useHelpCenter.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 Sidebar component with Drawer

Applied to files:

  • src/components/sidebar/SideToolbar.vue
  • src/components/topbar/LoginButton.vue
  • src/components/sidebar/SidebarHelpCenterIcon.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/sidebar/SideToolbar.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 : Avoid new usage of PrimeVue components; use VueUse, shadcn/vue, or Reka UI instead

Applied to files:

  • src/components/sidebar/SideToolbar.vue
  • src/components/topbar/LoginButton.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 : Name Vue components using PascalCase (e.g., `MenuHamburger.vue`)

Applied to files:

  • src/components/topbar/TopMenuHelpButton.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/components/topbar/TopMenuHelpButton.vue
  • src/components/topbar/LoginButton.vue
  • src/components/sidebar/SidebarHelpCenterIcon.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 `cn()` utility function from `@/utils/tailwindUtil` for merging Tailwind class names; do not use `:class="[]"` syntax

Applied to files:

  • src/components/topbar/LoginButton.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 Dropdown component with Select

Applied to files:

  • src/components/topbar/LoginButton.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 Calendar component with DatePicker

Applied to files:

  • src/components/topbar/LoginButton.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 InlineMessage component with Message

Applied to files:

  • src/components/topbar/LoginButton.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 Chips component with AutoComplete with multiple enabled

Applied to files:

  • src/components/topbar/LoginButton.vue
📚 Learning: 2025-12-30T22:22:38.162Z
Learnt from: kaili-yang
Repo: Comfy-Org/ComfyUI_frontend PR: 7805
File: src/composables/useCoreCommands.ts:439-439
Timestamp: 2025-12-30T22:22:38.162Z
Learning: In Pinia setup stores, when accessing reactive properties directly via `useStore().property` pattern (e.g., `useQueueUIStore().isOverlayExpanded`), Pinia automatically unwraps refs and returns the primitive value. The `.value` accessor is only needed when destructuring store properties or using `storeToRefs()`.

Applied to files:

  • src/components/TopMenuSection.vue
📚 Learning: 2025-11-24T19:47:34.324Z
Learnt from: CR
Repo: Comfy-Org/ComfyUI_frontend PR: 0
File: src/CLAUDE.md:0-0
Timestamp: 2025-11-24T19:47:34.324Z
Learning: Applies to src/**/stores/**/*.{ts,tsx} : Maintain clear public interfaces and restrict extension access in stores

Applied to files:

  • src/stores/helpCenterStore.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 **/*.{ts,tsx} : Minimize the surface area (exported values) of each module and composable

Applied to files:

  • src/components/sidebar/SidebarHelpCenterIcon.vue
🧬 Code graph analysis (2)
src/composables/useHelpCenter.ts (5)
src/stores/helpCenterStore.ts (2)
  • HelpCenterTriggerLocation (4-4)
  • useHelpCenterStore (6-33)
src/workbench/extensions/manager/composables/useConflictDetection.ts (1)
  • useConflictDetection (45-709)
src/services/dialogService.ts (1)
  • useDialogService (47-566)
src/workbench/extensions/manager/composables/useConflictAcknowledgment.ts (1)
  • useConflictAcknowledgment (44-101)
src/platform/telemetry/index.ts (1)
  • useTelemetry (32-42)
src/stores/helpCenterStore.ts (1)
src/scripts/domWidget.ts (1)
  • isVisible (155-157)
🔇 Additional comments (18)
src/locales/en/main.json (1)

830-830: LGTM: New locale entry follows conventions.

The addition of the menu.helpAndFeedback key follows the existing pattern and provides clear user-facing text for the Help & Feedback button.

Based on learnings, only the English locale file needs to be updated manually; other language files are auto-generated on release.

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

372-379: LGTM: Settings locale entry is well-structured.

The new Comfy_UI_TabBarLayout entry follows the existing pattern for combo settings and provides clear descriptions for both the setting name and tooltip.

src/components/sidebar/SideToolbar.vue (2)

43-43: LGTM: Conditional rendering correctly implements integrated tab bar logic.

The help center icon is appropriately hidden when the integrated tab bar layout is active.


49-49: LGTM: HelpCenterPopups integration follows Vue best practices.

The new HelpCenterPopups component is correctly imported and placed at the root of the side toolbar, with proper reactive state management through the computed isIntegratedTabBar property.

Also applies to: 58-58, 94-96

src/platform/settings/constants/coreSettings.ts (1)

551-560: LGTM: Setting definition follows the established pattern.

The new Comfy.UI.TabBarLayout setting is well-structured with appropriate category, type, options, and tooltip. The placement after Comfy.DevMode and before Comfy.UseNewMenu is logical.

Optional: Consider adding a versionAdded field (e.g., versionAdded: '1.X.X') for consistency with other recent settings, as this helps track when features were introduced.

src/components/topbar/TopMenuHelpButton.vue (2)

1-14: LGTM with suggestion: Template structure is well-implemented.

The button uses the common Button component, includes i18n for user-facing text, and properly implements the red dot notification indicator. The visible text provides an accessible name, so no aria-label is needed.

Suggestion: Verify if the hardcoded red color bg-[#ff3b30] on line 11 should use a semantic color token from style.css instead. Notification/alert colors are often defined in the design system for consistency across the application.

As per coding guidelines, prefer semantic values from the theme over hardcoded colors.


16-21: LGTM: Composable integration follows Vue 3 best practices.

The component correctly uses the Composition API with <script setup lang="ts"> and cleanly destructures only the needed properties from useHelpCenter('topbar').

src/components/topbar/LoginButton.vue (2)

4-16: LGTM: Visual updates align with integrated tab bar design.

The variant change to "textonly" and the styled icon wrapper enhance the visual presentation while maintaining all existing functionality.


38-49: LGTM: Prop definition follows Vue 3.5 best practices.

The class prop is properly typed and destructured, and the cn() utility is correctly used for class composition.

src/components/TopMenuSection.vue (2)

57-61: LGTM: Conditional rendering correctly implements integrated tab bar layout.

The logic properly hides CurrentUserButton and LoginButton when integrated mode is active, aligning with the feature's goal to move these controls into the tab bar area.


97-123: LGTM: Settings store integration follows Pinia best practices.

The settingStore is correctly initialized and accessed. The isIntegratedTabBar computed properly reads from the new Comfy.UI.TabBarLayout setting.

src/components/topbar/CurrentUserButton.vue (1)

16-46: LGTM: Optional showArrow prop enables flexible layout control.

The prop is properly typed with a sensible default that maintains backward compatibility. This allows the integrated tab bar to hide the chevron while preserving it in the default layout.

src/components/topbar/WorkflowTabs.vue (2)

96-136: LGTM: Store integration and computed logic consistent with TopMenuSection.

The settingStore initialization and isIntegratedTabBar computed follow the same pattern established in TopMenuSection, ensuring consistent behavior across the application.


70-81: TopMenuHelpButton component verified.

The TopMenuHelpButton component exists and is properly implemented at src/components/topbar/TopMenuHelpButton.vue. It follows Vue 3 Composition API guidelines with <script setup lang="ts">, uses vue-i18n for translations, and relies on Tailwind CSS for styling. The integrated tab bar UI block is well-structured with appropriate conditional rendering and spacing.

src/schemas/apiSchema.ts (1)

390-390: No action required. The schema definition is correct and the default value is properly configured in coreSettings.ts with defaultValue: 'Default', which matches one of the enum values.

src/stores/helpCenterStore.ts (1)

1-33: LGTM!

The store implementation is clean and follows Pinia patterns correctly. The toggle function appropriately only updates triggerLocation when opening (not closing), while show always sets the location before displaying. The type-safe union type provides good constraints.

src/components/sidebar/SidebarHelpCenterIcon.vue (1)

2-10: LGTM!

The component logic is cleanly delegated to the useHelpCenter composable, following the separation of concerns principle. The template bindings are correct.

src/components/helpcenter/HelpCenterPopups.vue (1)

60-62: Verify reactivity of destructured prop in composable call.

The isSmall prop is destructured from defineProps and used directly in the template, which is correct for Vue 3.5+. However, if useHelpCenter() needed to react to isSmall changes, it would require passing a ref. Currently useHelpCenter() doesn't use isSmall, so this is fine.

Comment on lines +44 to +50
<Teleport to="body">
<div
v-if="isHelpCenterVisible"
class="help-center-backdrop"
@click="closeHelpCenter"
/>
</Teleport>
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 | 🟡 Minor

Backdrop should use position: fixed instead of absolute.

The backdrop is teleported to body but uses position: absolute. If the body has any positioned ancestors or if the page is scrollable, the backdrop may not cover the entire viewport correctly. Using position: fixed ensures consistent full-viewport coverage.

🔎 Proposed fix
 .help-center-backdrop {
-  position: absolute;
+  position: fixed;
   top: 0;
   left: 0;
   right: 0;
   bottom: 0;
   z-index: 9999;
   background: transparent;
 }

Also applies to: 74-82

🤖 Prompt for AI Agents
In @src/components/helpcenter/HelpCenterPopups.vue around lines 44 - 50, The
backdrop element rendered inside Teleport uses position: absolute which can fail
to cover the viewport; update the styling for the backdrop (the div with class
"help-center-backdrop" rendered when isHelpCenterVisible and the similar
backdrop used around lines 74-82) to use position: fixed instead of absolute so
it always spans the full viewport regardless of document flow or scrolling;
locate the CSS rules for .help-center-backdrop (and any duplicate backdrop
class/inline style in the same component) and change position to fixed, keeping
existing sizing (top/left/right/bottom or width/height) and z-index intact.

Comment on lines +73 to +134
<style scoped>
.help-center-backdrop {
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
z-index: 9999;
background: transparent;
}
.help-center-popup {
position: absolute;
bottom: 1rem;
z-index: 10000;
animation: slideInUp 0.2s ease-out;
pointer-events: auto;
}
.help-center-popup.sidebar-left {
left: 1rem;
}
.help-center-popup.sidebar-left.small-sidebar {
left: 1rem;
}
.help-center-popup.sidebar-right {
right: 1rem;
}
.help-center-popup.topbar-right {
top: 2rem;
right: 1rem;
bottom: auto;
animation: slideInDown 0.2s ease-out;
}
@keyframes slideInDown {
from {
opacity: 0;
transform: translateY(-20px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
@keyframes slideInUp {
from {
opacity: 0;
transform: translateY(20px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
</style>
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 migrating custom CSS to Tailwind utilities.

Per coding guidelines, Vue components should "Use Tailwind CSS only for styling (no custom CSS)" and "Use the correct tokens from style.css in the design system package."

The current implementation uses:

  • Hardcoded z-index values (9999, 10000)
  • Custom keyframe animations
  • Multiple positioning classes

While animations may require CSS, the positioning and z-index could leverage Tailwind utilities or design system tokens. If Tailwind's animation utilities don't suffice, consider extracting the keyframes to a shared CSS file or using @apply in a design system context.

🤖 Prompt for AI Agents
In @src/components/helpcenter/HelpCenterPopups.vue around lines 73 - 134,
Replace hardcoded CSS in HelpCenterPopups.vue by switching positioning and
z-index to Tailwind/design tokens and moving animations to shared CSS: update
usages of .help-center-backdrop and .help-center-popup (including variants
.sidebar-left, .sidebar-right, .topbar-right, .small-sidebar) to use Tailwind
utility classes for absolute positioning, spacing and z-index tokens instead of
9999/10000; if Tailwind's built-in animations cover the behavior, replace the
local @keyframes slideInUp and slideInDown with Tailwind animation classes,
otherwise move these keyframes into the shared design-system CSS (or an
@apply-enabled file) and reference them via a named utility or class so the
component contains only utility classes.

Comment on lines +85 to +89
// Initialize release store on mount
onMounted(async () => {
// Initialize release store to fetch releases for toast and popup
await releaseStore.initialize()
})
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

Add error handling for release store initialization.

The releaseStore.initialize() call is not wrapped in a try/catch. If the initialization fails (e.g., network error), the error will be unhandled and may cause issues in development or crash reporting.

🔎 Proposed fix
  // Initialize release store on mount
  onMounted(async () => {
-   // Initialize release store to fetch releases for toast and popup
-   await releaseStore.initialize()
+   try {
+     // Initialize release store to fetch releases for toast and popup
+     await releaseStore.initialize()
+   } catch (error) {
+     console.error('[HelpCenter] Failed to initialize release store:', error)
+   }
  })
📝 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
// Initialize release store on mount
onMounted(async () => {
// Initialize release store to fetch releases for toast and popup
await releaseStore.initialize()
})
// Initialize release store on mount
onMounted(async () => {
try {
// Initialize release store to fetch releases for toast and popup
await releaseStore.initialize()
} catch (error) {
console.error('[HelpCenter] Failed to initialize release store:', error)
}
})
🤖 Prompt for AI Agents
In @src/composables/useHelpCenter.ts around lines 85 - 89, Wrap the onMounted
initialization of the release store in a try/catch: call
releaseStore.initialize() inside try, handle failures in catch by logging the
error (e.g., console.error or your app logger), optionally surface a
user-friendly fallback (e.g., display a toast or set a local error state) and
avoid rethrowing so the unhandled error doesn’t crash the app; update the
onMounted block that calls releaseStore.initialize() accordingly and include
references to the onMounted callback and releaseStore.initialize() so reviewers
can find the change.

Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 1

🤖 Fix all issues with AI Agents
In @src/composables/useHelpCenter.ts:
- Around line 86-89: The onMounted handler calls releaseStore.initialize()
without error handling; wrap the await releaseStore.initialize() call in a
try/catch inside the onMounted callback (or add a .catch) to handle
initialization failures, log the error via the app logger or console, and ensure
a safe fallback state (e.g., leave releases empty or set a flag on releaseStore)
so the help center still mounts even if releases fail to load; update the
onMounted block that references releaseStore.initialize() accordingly.
📜 Review details

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 2d169db and 24eaaf4.

📒 Files selected for processing (1)
  • src/composables/useHelpCenter.ts
🧰 Additional context used
📓 Path-based instructions (11)
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/composables/useHelpCenter.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/composables/useHelpCenter.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/useHelpCenter.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/composables/useHelpCenter.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/useHelpCenter.ts
src/**/*.{vue,ts,tsx}

📄 CodeRabbit inference engine (src/CLAUDE.md)

Follow Vue 3 composition API style guide

Files:

  • src/composables/useHelpCenter.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/composables/useHelpCenter.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/composables/useHelpCenter.ts
**/**/use[A-Z]*.ts

📄 CodeRabbit inference engine (AGENTS.md)

Name composables using the pattern useXyz.ts

Files:

  • src/composables/useHelpCenter.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/composables/useHelpCenter.ts
**/*.{ts,tsx}

📄 CodeRabbit inference engine (AGENTS.md)

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

Files:

  • src/composables/useHelpCenter.ts
🧠 Learnings (8)
📚 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: Implement proper error handling in stores

Applied to files:

  • src/composables/useHelpCenter.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 **/*.{ts,tsx,vue} : Implement proper error handling in code

Applied to files:

  • src/composables/useHelpCenter.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} : Implement proper error handling

Applied to files:

  • src/composables/useHelpCenter.ts
📚 Learning: 2025-12-09T03:39:54.501Z
Learnt from: DrJKL
Repo: Comfy-Org/ComfyUI_frontend PR: 7169
File: src/platform/remote/comfyui/jobs/jobTypes.ts:1-107
Timestamp: 2025-12-09T03:39:54.501Z
Learning: In the ComfyUI_frontend project, Zod is on v3.x. Do not suggest Zod v4 standalone validators (z.uuid, z.ulid, z.cuid2, z.nanoid) until an upgrade to Zod 4 is performed. When reviewing TypeScript files (e.g., src/platform/remote/comfyui/jobs/jobTypes.ts) validate against Zod 3 capabilities and avoid introducing v4-specific features; flag any proposal to upgrade or incorporate v4-only validators and propose staying with compatible 3.x patterns.

Applied to files:

  • src/composables/useHelpCenter.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/composables/useHelpCenter.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/composables/useHelpCenter.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/composables/useHelpCenter.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/composables/useHelpCenter.ts
🧬 Code graph analysis (1)
src/composables/useHelpCenter.ts (5)
src/stores/helpCenterStore.ts (2)
  • HelpCenterTriggerLocation (4-4)
  • useHelpCenterStore (6-33)
src/platform/settings/settingStore.ts (1)
  • useSettingStore (46-252)
src/workbench/extensions/manager/composables/useConflictDetection.ts (1)
  • useConflictDetection (45-709)
src/workbench/extensions/manager/composables/useConflictAcknowledgment.ts (1)
  • useConflictAcknowledgment (44-101)
src/platform/telemetry/index.ts (1)
  • useTelemetry (32-42)
⏰ 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). (14)
  • GitHub Check: playwright-tests-chromium-sharded (8, 8)
  • GitHub Check: playwright-tests-chromium-sharded (2, 8)
  • GitHub Check: playwright-tests-chromium-sharded (7, 8)
  • GitHub Check: playwright-tests-chromium-sharded (1, 8)
  • GitHub Check: playwright-tests-chromium-sharded (5, 8)
  • GitHub Check: playwright-tests-chromium-sharded (4, 8)
  • GitHub Check: playwright-tests-chromium-sharded (3, 8)
  • GitHub Check: playwright-tests-chromium-sharded (6, 8)
  • GitHub Check: playwright-tests (chromium-2x)
  • GitHub Check: playwright-tests (chromium-0.5x)
  • GitHub Check: playwright-tests (mobile-chrome)
  • GitHub Check: test
  • GitHub Check: lint-and-format
  • GitHub Check: collect
🔇 Additional comments (1)
src/composables/useHelpCenter.ts (1)

43-48: Telemetry tracking correctly reflects trigger location.

The implementation properly uses the triggerFrom parameter to generate an accurate button_id for analytics, ensuring telemetry data distinguishes between topbar and sidebar triggers.

Comment on lines +86 to +89
onMounted(async () => {
// Initialize release store to fetch releases for toast and popup
await releaseStore.initialize()
})
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 | 🟡 Minor

Add error handling for release store initialization.

The releaseStore.initialize() call lacks a try-catch wrapper. If initialization fails (e.g., network error), the unhandled promise rejection could leave the help center without release data and prevent users from seeing update notifications.

🔎 Proposed fix
  // Initialize release store on mount
  onMounted(async () => {
-   // Initialize release store to fetch releases for toast and popup
-   await releaseStore.initialize()
+   try {
+     // Initialize release store to fetch releases for toast and popup
+     await releaseStore.initialize()
+   } catch (error) {
+     console.error('[HelpCenter] Failed to initialize release store:', error)
+   }
  })
📝 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
onMounted(async () => {
// Initialize release store to fetch releases for toast and popup
await releaseStore.initialize()
})
onMounted(async () => {
try {
// Initialize release store to fetch releases for toast and popup
await releaseStore.initialize()
} catch (error) {
console.error('[HelpCenter] Failed to initialize release store:', error)
}
})
🤖 Prompt for AI Agents
In @src/composables/useHelpCenter.ts around lines 86 - 89, The onMounted handler
calls releaseStore.initialize() without error handling; wrap the await
releaseStore.initialize() call in a try/catch inside the onMounted callback (or
add a .catch) to handle initialization failures, log the error via the app
logger or console, and ensure a safe fallback state (e.g., leave releases empty
or set a flag on releaseStore) so the help center still mounts even if releases
fail to load; update the onMounted block that references
releaseStore.initialize() accordingly.

@comfydesigner
Copy link
Collaborator

Thanks for putting this behind a settings option!
Unrelated to this PR, but in the future should we organize all these into a collection? Perhaps these can be flagged as "beta" and that could be the collection to sort by to see/test out the latest changes.

As for the PR, the user account button is a bit cramped on my side vs what I see in your screenshot. Is this just an issue on my end? Using Chrome
Screenshot 2026-01-08 at 11 10 15 AM

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

🤖 Fix all issues with AI agents
In @src/components/topbar/CurrentUserButton.vue:
- Around line 12-21: The component is forwarding caller classes to the root div
instead of the clickable <Button>, so sizing from parents (e.g., WorkflowTabs)
is ineffective; update the template to bind $attrs (especially class) onto the
internal <Button> element rather than the outer wrapper and use explicit
class/prop merging for the compact prop (e.g., keep using cn(...) for internal
classes but merge $attrs.class there), ensure the outer root remains a wrapper
without swallowing caller attributes, and propagate remaining $attrs to the
<Button> so sizing and other attributes apply correctly (apply same change for
the other similar block around lines 46-53).

In @src/components/topbar/WorkflowTabs.vue:
- Around line 128-137: Extract the repeated setting key 'Comfy.UI.TabBarLayout'
and the comparison value 'Integrated' into exported named constants (e.g.,
TAB_BAR_LAYOUT_KEY and TAB_BAR_LAYOUT_INTEGRATED) and replace the raw strings in
WorkflowTabs.vue (where settingStore and computed isIntegratedTabBar are
defined), TopMenuSection.vue, and SideToolbar.vue with those constants; add the
constants to a shared module (or export them from coreSettings.ts/apiSchema.ts
if appropriate) and update imports so isIntegratedTabBar uses the new
TAB_BAR_LAYOUT_KEY constant for settingStore.get(...) and compares against
TAB_BAR_LAYOUT_INTEGRATED.
📜 Review details

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 24eaaf4 and d6bef9b.

📒 Files selected for processing (2)
  • src/components/topbar/CurrentUserButton.vue
  • src/components/topbar/WorkflowTabs.vue
🧰 Additional context used
📓 Path-based instructions (9)
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

src/**/*.vue: Use Vue 3 Single File Components (SFCs) with Composition API only; never use Options API
Use <script setup lang="ts"> syntax for component logic
Use Tailwind 4 utility classes for styling; avoid <style> blocks in Vue components
Do not use the dark: Tailwind variant; use semantic values from style.css theme instead (e.g., bg-node-component-surface)
Use cn() utility from @/utils/tailwindUtil for merging class names; never use :class="[]" syntax
Never use !important or the ! prefix for Tailwind classes; find and fix interfering classes instead
Use Tailwind fraction utilities instead of arbitrary percentages (e.g., w-4/5 instead of w-[80%], w-1/2 instead of w-[50%])
Use Vue 3.5 TypeScript style default prop declaration with destructuring; avoid withDefaults and runtime props
Use defineModel for v-model bindings instead of separately defining props and emits
Prefer reactive props destructuring over const props = defineProps<...>
Define slots via template usage, not defineSlots
Use same-name shorthand for slot prop bindings (e.g., :isExpanded instead of :is-expanded="isExpanded")
Use ref for reactive state, computed() for computed properties, and watch/watchEffect for side effects
Avoid using ref and watch t...

Files:

  • src/components/topbar/WorkflowTabs.vue
  • src/components/topbar/CurrentUserButton.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

Leverage VueUse functions for performance-enhancing utilities

Files:

  • src/components/topbar/WorkflowTabs.vue
  • src/components/topbar/CurrentUserButton.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

src/**/*.{ts,tsx,vue}: Use separate import type statements; do not mix inline type imports in the same statement
Sort and group imports by plugin; run pnpm format before committing
Derive component types using vue-component-type-helpers (ComponentProps, ComponentSlots) instead of separate type files
Code should be well-designed with clear names for everything; write code that is expressive and self-documenting
Avoid redundant comments and clean up code as you go; comments should explain why, not what
Ask if there is a simpler way to implement functionality; refactor complex code to simplify it
Minimize nesting depth (e.g., if () { ... } or for () { ... }); watch for arrow anti-pattern
Watch out for code smells and refactor to avoid them
Never use any type; use proper TypeScript types
Never use as any type assertions; fix the underlying type issue instead
Indent with 2 spaces; use single quotes; no trailing semicolons; max line width 80 (per .prettierrc)
Complex type definitions used in multiple related places should be extracted and named for reuse
Implement proper error handling

Files:

  • src/components/topbar/WorkflowTabs.vue
  • src/components/topbar/CurrentUserButton.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/components/topbar/WorkflowTabs.vue
  • src/components/topbar/CurrentUserButton.vue
src/**/*.{vue,ts,tsx}

📄 CodeRabbit inference engine (src/CLAUDE.md)

Follow Vue 3 composition API style guide

Files:

  • src/components/topbar/WorkflowTabs.vue
  • src/components/topbar/CurrentUserButton.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/components/topbar/WorkflowTabs.vue
  • src/components/topbar/CurrentUserButton.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

Name Vue components in PascalCase (e.g., MenuHamburger.vue)

Files:

  • src/components/topbar/WorkflowTabs.vue
  • src/components/topbar/CurrentUserButton.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/topbar/WorkflowTabs.vue
  • src/components/topbar/CurrentUserButton.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/topbar/WorkflowTabs.vue
  • src/components/topbar/CurrentUserButton.vue
🧠 Learnings (22)
📚 Learning: 2025-11-24T19:47:45.616Z
Learnt from: CR
Repo: Comfy-Org/ComfyUI_frontend PR: 0
File: src/components/CLAUDE.md:0-0
Timestamp: 2025-11-24T19:47:45.616Z
Learning: Applies to src/components/**/*.vue : Replace PrimeVue TabMenu component with Tabs without panels

Applied to files:

  • src/components/topbar/WorkflowTabs.vue
📚 Learning: 2025-12-09T03:49:52.828Z
Learnt from: christian-byrne
Repo: Comfy-Org/ComfyUI_frontend PR: 6300
File: src/platform/updates/components/WhatsNewPopup.vue:5-13
Timestamp: 2025-12-09T03:49:52.828Z
Learning: In Vue files across the ComfyUI_frontend repo, when a button is needed, prefer the repo's common button components from src/components/button/ (IconButton.vue, TextButton.vue, IconTextButton.vue) over plain HTML <button> elements. These components wrap PrimeVue with the project’s design system styling. Use only the common button components for consistency and theming, and import them from src/components/button/ as needed.

Applied to files:

  • src/components/topbar/WorkflowTabs.vue
  • src/components/topbar/CurrentUserButton.vue
📚 Learning: 2025-12-22T21:36:46.909Z
Learnt from: DrJKL
Repo: Comfy-Org/ComfyUI_frontend PR: 7649
File: tests-ui/tests/platform/cloud/subscription/components/SubscriptionPanel.test.ts:189-194
Timestamp: 2025-12-22T21:36:46.909Z
Learning: In the Comfy-Org/ComfyUI_frontend repository test files: Do not stub primitive UI components or customized primitive components (e.g., Button). Instead, import and register the real components in test setup. This ensures tests accurately reflect production behavior and component API usage.

Applied to files:

  • src/components/topbar/WorkflowTabs.vue
📚 Learning: 2026-01-09T00:50:57.103Z
Learnt from: CR
Repo: Comfy-Org/ComfyUI_frontend PR: 0
File: AGENTS.md:0-0
Timestamp: 2026-01-09T00:50:57.103Z
Learning: Applies to src/**/*.{vue,ts} : Leverage VueUse functions for performance-enhancing utilities

Applied to files:

  • src/components/topbar/WorkflowTabs.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} : Leverage VueUse functions for performance-enhancing styles

Applied to files:

  • src/components/topbar/WorkflowTabs.vue
  • src/components/topbar/CurrentUserButton.vue
📚 Learning: 2025-11-24T19:47:45.616Z
Learnt from: CR
Repo: Comfy-Org/ComfyUI_frontend PR: 0
File: src/components/CLAUDE.md:0-0
Timestamp: 2025-11-24T19:47:45.616Z
Learning: Applies to src/components/**/*.{vue,ts,js} : Use existing VueUse composables (such as useElementHover) instead of manually managing event listeners

Applied to files:

  • src/components/topbar/WorkflowTabs.vue
📚 Learning: 2025-11-24T19:47:45.616Z
Learnt from: CR
Repo: Comfy-Org/ComfyUI_frontend PR: 0
File: src/components/CLAUDE.md:0-0
Timestamp: 2025-11-24T19:47:45.616Z
Learning: Applies to src/components/**/*.{vue,ts,js} : Use vue-i18n for ALL UI strings

Applied to files:

  • src/components/topbar/WorkflowTabs.vue
📚 Learning: 2025-11-24T19:47:34.324Z
Learnt from: CR
Repo: Comfy-Org/ComfyUI_frontend PR: 0
File: src/CLAUDE.md:0-0
Timestamp: 2025-11-24T19:47:34.324Z
Learning: Applies to src/**/{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/components/topbar/WorkflowTabs.vue
📚 Learning: 2025-11-24T19:47:02.860Z
Learnt from: CR
Repo: Comfy-Org/ComfyUI_frontend PR: 0
File: .github/copilot-instructions.md:0-0
Timestamp: 2025-11-24T19:47:02.860Z
Learning: Applies to src/**/*.vue : Utilize Vue 3's Teleport component when needed

Applied to files:

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

Applied to files:

  • src/components/topbar/WorkflowTabs.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/topbar/WorkflowTabs.vue
  • src/components/topbar/CurrentUserButton.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/topbar/WorkflowTabs.vue
  • src/components/topbar/CurrentUserButton.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/topbar/WorkflowTabs.vue
  • src/components/topbar/CurrentUserButton.vue
📚 Learning: 2026-01-08T02:26:18.357Z
Learnt from: DrJKL
Repo: Comfy-Org/ComfyUI_frontend PR: 7893
File: src/components/button/IconGroup.vue:5-6
Timestamp: 2026-01-08T02:26:18.357Z
Learning: In components that use the cn utility from '@/utils/tailwindUtil' with tailwind-merge, rely on the behavior that conflicting Tailwind classes are resolved by keeping the last one. For example, cn('base-classes bg-default', propClass) will have any conflicting background class from propClass override bg-default. This additive pattern is intentional and aligns with the shadcn-ui convention; ensure you document or review expectations accordingly in Vue components.

Applied to files:

  • src/components/topbar/WorkflowTabs.vue
  • src/components/topbar/CurrentUserButton.vue
📚 Learning: 2025-12-11T12:25:15.470Z
Learnt from: christian-byrne
Repo: Comfy-Org/ComfyUI_frontend PR: 7358
File: src/components/dialog/content/signin/SignUpForm.vue:45-54
Timestamp: 2025-12-11T12:25:15.470Z
Learning: This repository uses CI automation to format code (pnpm format). Do not include manual formatting suggestions in code reviews for Comfy-Org/ComfyUI_frontend. If formatting issues are detected, rely on the CI formatter or re-run pnpm format. Focus reviews on correctness, readability, performance, accessibility, and maintainability rather than style formatting.

Applied to files:

  • src/components/topbar/WorkflowTabs.vue
  • src/components/topbar/CurrentUserButton.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/topbar/WorkflowTabs.vue
  • src/components/topbar/CurrentUserButton.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/topbar/WorkflowTabs.vue
  • src/components/topbar/CurrentUserButton.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/topbar/WorkflowTabs.vue
  • src/components/topbar/CurrentUserButton.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/topbar/WorkflowTabs.vue
  • src/components/topbar/CurrentUserButton.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 : Define proper props and emits definitions in Vue components

Applied to files:

  • src/components/topbar/CurrentUserButton.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/components/topbar/CurrentUserButton.vue
📚 Learning: 2026-01-09T00:50:57.103Z
Learnt from: CR
Repo: Comfy-Org/ComfyUI_frontend PR: 0
File: AGENTS.md:0-0
Timestamp: 2026-01-09T00:50:57.103Z
Learning: Applies to src/**/*.vue : Use `cn()` utility from `@/utils/tailwindUtil` for merging class names; never use `:class="[]"` syntax

Applied to files:

  • src/components/topbar/CurrentUserButton.vue
🔇 Additional comments (1)
src/components/topbar/WorkflowTabs.vue (1)

70-82: Critical: CurrentUserButton doesn't accept class prop; web users cannot log in in integrated mode.

  • Line 75-79 (CurrentUserButton): CurrentUserButton's defineProps (line 50-53 of the component) only accepts showArrow and compact—it does not define a class prop. Passing class="shrink-0 p-1" will be ignored by Vue, so the shrink-0 class won't apply to the button element. Add class?: string to the props definition and forward it to the internal Button component to fix the "cramped" styling.

  • Line 81 (LoginButton visibility): LoginButton is shown only when isDesktop (Electron). In integrated mode on web/non-Electron browsers, logged-out users have no visible way to log in—there's no LoginButton in WorkflowTabs.vue or TopMenuSection.vue (which also requires !isIntegratedTabBar). The only alternative is a settings dialog, which is not a discoverable entry point. Either show LoginButton for web users in integrated mode, or provide an alternative login UI.

⛔ Skipped due to learnings
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:16.031Z
Learning: In the Comfy-Org/ComfyUI_frontend repository, avoid creating single-use variants for the Button component (and other UI components). Variants should be reusable across multiple use cases. It's acceptable to use a mix of variant props and manual Tailwind classes temporarily when a specific styling need exists in only one place, with consolidation deferred to a later phase when patterns emerge.
Learnt from: DrJKL
Repo: Comfy-Org/ComfyUI_frontend PR: 7559
File: .storybook/preview.ts:61-61
Timestamp: 2025-12-16T17:30:29.719Z
Learning: In .storybook/preview.ts for the Comfy-Org/ComfyUI_frontend repository, using `document.body.classList.add('[&_*]:!font-inter')` is the correct approach for applying the Inter font to all Storybook story elements. The simpler `font-inter` class alone does not work in this context. This runtime arbitrary variant pattern is valid and should not be flagged as an issue.
Learnt from: christian-byrne
Repo: Comfy-Org/ComfyUI_frontend PR: 6300
File: src/platform/updates/components/WhatsNewPopup.vue:5-13
Timestamp: 2025-12-09T03:50:03.127Z
Learning: In the Comfy-Org/ComfyUI_frontend repository, when avoiding PrimeVue components, prefer using the repo's common button components from src/components/button/ (IconButton.vue, TextButton.vue, IconTextButton.vue) rather than plain HTML buttons. These components wrap PrimeVue with custom design system styling.
Learnt from: DrJKL
Repo: Comfy-Org/ComfyUI_frontend PR: 7598
File: src/components/sidebar/tabs/AssetsSidebarTab.vue:131-131
Timestamp: 2025-12-18T02:07:44.374Z
Learning: Comfy-Org/ComfyUI_frontend uses Tailwind CSS v4 utilities, including the new “safe” overflow-alignment classes. Do not flag items-center-safe, justify-*-safe, or place-*-safe utilities as invalid in src/**/*.vue or stories.

Comment on lines +12 to +21
:class="
cn(
'flex items-center gap-1 rounded-full hover:bg-interface-button-hover-surface justify-center',
compact && 'size-full '
)
"
>
<UserAvatar :photo-url="photoURL" />
<UserAvatar :photo-url="photoURL" :class="compact && 'size-full'" />

<i class="icon-[lucide--chevron-down] size-3 px-1" />
<i v-if="showArrow" class="icon-[lucide--chevron-down] size-3 px-1" />
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

Forward $attrs (especially class) to the internal <Button> to make sizing controllable; likely fixes the “cramped” report.

Right now, a caller’s class="..." lands on the outer <div> (component root), not the clickable <Button>, so WorkflowTabs’ sizing classes won’t do what they look like they’re doing.

Proposed fix
 <script setup lang="ts">
 import Popover from 'primevue/popover'
-import { computed, ref } from 'vue'
+import { computed, ref, useAttrs } from 'vue'

 import UserAvatar from '@/components/common/UserAvatar.vue'
 import Button from '@/components/ui/button/Button.vue'
 import { useCurrentUser } from '@/composables/auth/useCurrentUser'
 import { cn } from '@/utils/tailwindUtil'

 import CurrentUserPopover from './CurrentUserPopover.vue'

+defineOptions({ inheritAttrs: false })
+
 const { showArrow = true, compact = false } = defineProps<{
   showArrow?: boolean
   compact?: boolean
 }>()
 
+const attrs = useAttrs()
+
 const { isLoggedIn, userPhotoUrl } = useCurrentUser()
 <template>
   <div>
     <Button
       v-if="isLoggedIn"
-      class="p-1 hover:bg-transparent"
+      v-bind="attrs"
+      class="p-1 hover:bg-transparent"
       variant="muted-textonly"
       :aria-label="$t('g.currentUser')"
       @click="popover?.toggle($event)"
     >
       <div
         :class="
           cn(
             'flex items-center gap-1 rounded-full hover:bg-interface-button-hover-surface justify-center',
-            compact && 'size-full '
+            compact && 'size-full'
           )
         "
       >
         <UserAvatar :photo-url="photoURL" :class="compact && 'size-full'" />
 
         <i v-if="showArrow" class="icon-[lucide--chevron-down] size-3 px-1" />
       </div>
     </Button>

Also applies to: 46-53

🤖 Prompt for AI Agents
In @src/components/topbar/CurrentUserButton.vue around lines 12 - 21, The
component is forwarding caller classes to the root div instead of the clickable
<Button>, so sizing from parents (e.g., WorkflowTabs) is ineffective; update the
template to bind $attrs (especially class) onto the internal <Button> element
rather than the outer wrapper and use explicit class/prop merging for the
compact prop (e.g., keep using cn(...) for internal classes but merge
$attrs.class there), ensure the outer root remains a wrapper without swallowing
caller attributes, and propagate remaining $attrs to the <Button> so sizing and
other attributes apply correctly (apply same change for the other similar block
around lines 46-53).

Comment on lines +128 to +137
const settingStore = useSettingStore()
const workspaceStore = useWorkspaceStore()
const workflowStore = useWorkflowStore()
const workflowBookmarkStore = useWorkflowBookmarkStore()
const workflowService = useWorkflowService()
const { isLoggedIn } = useCurrentUser()
const isIntegratedTabBar = computed(
() => settingStore.get('Comfy.UI.TabBarLayout') === 'Integrated'
)
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

🧩 Analysis chain

🏁 Script executed:

# Find the setting store file
fd -type f -name '*settingStore*' src/

Repository: Comfy-Org/ComfyUI_frontend

Length of output: 196


🏁 Script executed:

# Search for useSettingStore export
rg -n 'export.*useSettingStore|function useSettingStore' src/

Repository: Comfy-Org/ComfyUI_frontend

Length of output: 172


🏁 Script executed:

# Get context around WorkflowTabs.vue to see full implementation
wc -l src/components/topbar/WorkflowTabs.vue

Repository: Comfy-Org/ComfyUI_frontend

Length of output: 112


🏁 Script executed:

# Read the settingStore.ts file to understand the get() method
head -n 250 src/platform/settings/settingStore.ts

Repository: Comfy-Org/ComfyUI_frontend

Length of output: 7858


🏁 Script executed:

# Get context around lines 128-137 in WorkflowTabs.vue
sed -n '120,150p' src/components/topbar/WorkflowTabs.vue

Repository: Comfy-Org/ComfyUI_frontend

Length of output: 926


🏁 Script executed:

# Check if the string 'Comfy.UI.TabBarLayout' is used elsewhere in the codebase
rg -n "Comfy\.UI\.TabBarLayout" src/

Repository: Comfy-Org/ComfyUI_frontend

Length of output: 569


🏁 Script executed:

# Check if 'Integrated' tab bar layout value is used elsewhere
rg -n "===\s*['\"]Integrated['\"]|['\"]Integrated['\"]" src/components/topbar/WorkflowTabs.vue

Repository: Comfy-Org/ComfyUI_frontend

Length of output: 140


🏁 Script executed:

# Look for any constants file or types that might already define these values
fd -type f -name '*constant*' -o -name '*type*' src/platform/settings/

Repository: Comfy-Org/ComfyUI_frontend

Length of output: 240


🏁 Script executed:

# Check the apiSchema and coreSettings files for how these values are defined
sed -n '385,395p' src/schemas/apiSchema.ts

Repository: Comfy-Org/ComfyUI_frontend

Length of output: 600


🏁 Script executed:

# Check coreSettings definition
sed -n '545,565p' src/platform/settings/constants/coreSettings.ts

Repository: Comfy-Org/ComfyUI_frontend

Length of output: 691


🏁 Script executed:

# Verify that computed() tracks reactive dependencies properly by checking if there are any similar patterns in the codebase
rg -n "computed\s*\(\s*\(\)\s*=>\s*\w+Store\.get\(" src/components/ | head -20

Repository: Comfy-Org/ComfyUI_frontend

Length of output: 549


🏁 Script executed:

# Check if constants are exported anywhere for these setting keys
rg -n "export.*Comfy\.UI\.TabBarLayout|export.*INTEGRATED|export.*TAB_BAR" src/

Repository: Comfy-Org/ComfyUI_frontend

Length of output: 52


Consider extracting the tab layout setting key and value as constants.

The setting key 'Comfy.UI.TabBarLayout' and comparison value 'Integrated' are duplicated across WorkflowTabs.vue, TopMenuSection.vue, and SideToolbar.vue. While these values are already constrained by the zod schema in apiSchema.ts and defined in coreSettings.ts, exporting them as named constants would reduce string drift and centralize future changes.

🤖 Prompt for AI Agents
In @src/components/topbar/WorkflowTabs.vue around lines 128 - 137, Extract the
repeated setting key 'Comfy.UI.TabBarLayout' and the comparison value
'Integrated' into exported named constants (e.g., TAB_BAR_LAYOUT_KEY and
TAB_BAR_LAYOUT_INTEGRATED) and replace the raw strings in WorkflowTabs.vue
(where settingStore and computed isIntegratedTabBar are defined),
TopMenuSection.vue, and SideToolbar.vue with those constants; add the constants
to a shared module (or export them from coreSettings.ts/apiSchema.ts if
appropriate) and update imports so isIntegratedTabBar uses the new
TAB_BAR_LAYOUT_KEY constant for settingStore.get(...) and compares against
TAB_BAR_LAYOUT_INTEGRATED.

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 1

🤖 Fix all issues with AI agents
In @src/platform/settings/constants/coreSettings.ts:
- Around line 551-560: Add a versionAdded property to the setting object with id
'Comfy.UI.TabBarLayout' to match other settings; e.g., add versionAdded: '1.6.0'
(or the actual release version when this setting was introduced) alongside
id/name/type/defaultValue so the entry follows the established pattern for
tracking when settings were added.
📜 Review details

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between d6bef9b and 6de7b79.

📒 Files selected for processing (4)
  • src/components/TopMenuSection.vue
  • src/locales/en/main.json
  • src/platform/settings/constants/coreSettings.ts
  • src/schemas/apiSchema.ts
🧰 Additional context used
📓 Path-based instructions (11)
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

Leverage VueUse functions for performance-enhancing utilities

Files:

  • src/schemas/apiSchema.ts
  • src/platform/settings/constants/coreSettings.ts
  • src/components/TopMenuSection.vue
src/**/*.ts

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

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

src/**/*.ts: Minimize the surface area (exported values) of each module and composable
Use es-toolkit for utility functions

Files:

  • src/schemas/apiSchema.ts
  • src/platform/settings/constants/coreSettings.ts
src/**/*.{ts,tsx,vue}

📄 CodeRabbit inference engine (src/CLAUDE.md)

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

src/**/*.{ts,tsx,vue}: Use separate import type statements; do not mix inline type imports in the same statement
Sort and group imports by plugin; run pnpm format before committing
Derive component types using vue-component-type-helpers (ComponentProps, ComponentSlots) instead of separate type files
Code should be well-designed with clear names for everything; write code that is expressive and self-documenting
Avoid redundant comments and clean up code as you go; comments should explain why, not what
Ask if there is a simpler way to implement functionality; refactor complex code to simplify it
Minimize nesting depth (e.g., if () { ... } or for () { ... }); watch for arrow anti-pattern
Watch out for code smells and refactor to avoid them
Never use any type; use proper TypeScript types
Never use as any type assertions; fix the underlying type issue instead
Indent with 2 spaces; use single quotes; no trailing semicolons; max line width 80 (per .prettierrc)
Complex type definitions used in multiple related places should be extracted and named for reuse
Implement proper error handling

Files:

  • src/schemas/apiSchema.ts
  • src/platform/settings/constants/coreSettings.ts
  • src/components/TopMenuSection.vue
src/**/*.{vue,ts,tsx}

📄 CodeRabbit inference engine (src/CLAUDE.md)

Follow Vue 3 composition API style guide

Files:

  • src/schemas/apiSchema.ts
  • src/platform/settings/constants/coreSettings.ts
  • src/components/TopMenuSection.vue
src/**/*.{ts,tsx}

📄 CodeRabbit inference engine (AGENTS.md)

src/**/*.{ts,tsx}: Keep functions short and functional; use function declarations instead of function expressions when possible
Avoid mutable state; prefer immutability and assignment at point of declaration
Favor pure functions, especially testable ones

Files:

  • src/schemas/apiSchema.ts
  • src/platform/settings/constants/coreSettings.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

src/**/*.vue: Use Vue 3 Single File Components (SFCs) with Composition API only; never use Options API
Use <script setup lang="ts"> syntax for component logic
Use Tailwind 4 utility classes for styling; avoid <style> blocks in Vue components
Do not use the dark: Tailwind variant; use semantic values from style.css theme instead (e.g., bg-node-component-surface)
Use cn() utility from @/utils/tailwindUtil for merging class names; never use :class="[]" syntax
Never use !important or the ! prefix for Tailwind classes; find and fix interfering classes instead
Use Tailwind fraction utilities instead of arbitrary percentages (e.g., w-4/5 instead of w-[80%], w-1/2 instead of w-[50%])
Use Vue 3.5 TypeScript style default prop declaration with destructuring; avoid withDefaults and runtime props
Use defineModel for v-model bindings instead of separately defining props and emits
Prefer reactive props destructuring over const props = defineProps<...>
Define slots via template usage, not defineSlots
Use same-name shorthand for slot prop bindings (e.g., :isExpanded instead of :is-expanded="isExpanded")
Use ref for reactive state, computed() for computed properties, and watch/watchEffect for side effects
Avoid using ref and watch t...

Files:

  • src/components/TopMenuSection.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/components/TopMenuSection.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/components/TopMenuSection.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

Name Vue components in PascalCase (e.g., MenuHamburger.vue)

Files:

  • src/components/TopMenuSection.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/TopMenuSection.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/TopMenuSection.vue
🧠 Learnings (15)
📚 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/schemas/apiSchema.ts
  • src/platform/settings/constants/coreSettings.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/schemas/apiSchema.ts
  • src/platform/settings/constants/coreSettings.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/schemas/apiSchema.ts
  • src/platform/settings/constants/coreSettings.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/schemas/apiSchema.ts
  • src/platform/settings/constants/coreSettings.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/schemas/apiSchema.ts
  • src/platform/settings/constants/coreSettings.ts
  • src/components/TopMenuSection.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/components/TopMenuSection.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/TopMenuSection.vue
📚 Learning: 2025-12-09T03:49:52.828Z
Learnt from: christian-byrne
Repo: Comfy-Org/ComfyUI_frontend PR: 6300
File: src/platform/updates/components/WhatsNewPopup.vue:5-13
Timestamp: 2025-12-09T03:49:52.828Z
Learning: In Vue files across the ComfyUI_frontend repo, when a button is needed, prefer the repo's common button components from src/components/button/ (IconButton.vue, TextButton.vue, IconTextButton.vue) over plain HTML <button> elements. These components wrap PrimeVue with the project’s design system styling. Use only the common button components for consistency and theming, and import them from src/components/button/ as needed.

Applied to files:

  • src/components/TopMenuSection.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/TopMenuSection.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/TopMenuSection.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/TopMenuSection.vue
📚 Learning: 2026-01-08T02:26:18.357Z
Learnt from: DrJKL
Repo: Comfy-Org/ComfyUI_frontend PR: 7893
File: src/components/button/IconGroup.vue:5-6
Timestamp: 2026-01-08T02:26:18.357Z
Learning: In components that use the cn utility from '@/utils/tailwindUtil' with tailwind-merge, rely on the behavior that conflicting Tailwind classes are resolved by keeping the last one. For example, cn('base-classes bg-default', propClass) will have any conflicting background class from propClass override bg-default. This additive pattern is intentional and aligns with the shadcn-ui convention; ensure you document or review expectations accordingly in Vue components.

Applied to files:

  • src/components/TopMenuSection.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/TopMenuSection.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/TopMenuSection.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/TopMenuSection.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). (5)
  • GitHub Check: deploy-and-comment
  • GitHub Check: setup
  • GitHub Check: lint-and-format
  • GitHub Check: test
  • GitHub Check: collect
🔇 Additional comments (5)
src/schemas/apiSchema.ts (1)

402-402: LGTM! Schema addition is correct and consistent.

The new setting is properly defined with the enum values matching the core setting definition. The Zod v3-compatible syntax is used correctly.

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

840-840: LGTM! Localization key is properly structured.

The new "helpAndFeedback" translation follows the established pattern for menu items and provides clear, user-facing text.

src/components/TopMenuSection.vue (3)

102-102: LGTM! Setting store import follows best practices.

The import of useSettingStore is correctly placed and follows the repository's import organization pattern.


114-114: LGTM! Setting store integration is clean and reactive.

The computed property isIntegratedTabBar is efficiently implemented and will reactively update when the setting changes. The comparison logic is straightforward and correct.

Also applies to: 132-134


62-66: LGTM! Conditional rendering logic is correct and preserves existing behavior.

The updated conditions properly hide the CurrentUserButton and LoginButton when integrated tab bar mode is enabled, while preserving the existing authentication and platform checks. The use of && for combining conditions is clear and follows Vue best practices.

Comment on lines +551 to +560
{
id: 'Comfy.UI.TabBarLayout',
category: ['Appearance', 'General'],
name: 'Tab Bar Layout',
type: 'combo',
options: ['Default', 'Integrated'],
tooltip:
'Controls the layout of the tab bar. "Integrated" moves Help and User controls into the tab bar area.',
defaultValue: 'Default'
},
Copy link
Contributor

Choose a reason for hiding this comment

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

🧹 Nitpick | 🔵 Trivial

Consider adding a versionAdded field for tracking.

The setting definition is well-structured and follows the established pattern. However, most recent settings include a versionAdded field to track when the setting was introduced.

📝 Suggested enhancement
 {
   id: 'Comfy.UI.TabBarLayout',
   category: ['Appearance', 'General'],
   name: 'Tab Bar Layout',
   type: 'combo',
   options: ['Default', 'Integrated'],
   tooltip:
     'Controls the layout of the tab bar. "Integrated" moves Help and User controls into the tab bar area.',
-  defaultValue: 'Default'
+  defaultValue: 'Default',
+  versionAdded: '1.x.x'  // Replace with actual version
 }
🤖 Prompt for AI Agents
In @src/platform/settings/constants/coreSettings.ts around lines 551 - 560, Add
a versionAdded property to the setting object with id 'Comfy.UI.TabBarLayout' to
match other settings; e.g., add versionAdded: '1.6.0' (or the actual release
version when this setting was introduced) alongside id/name/type/defaultValue so
the entry follows the established pattern for tracking when settings were added.

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

Labels

size:XL This PR changes 500-999 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants