Skip to content

Conversation

@DrJKL
Copy link
Contributor

@DrJKL DrJKL commented Dec 18, 2025

Summary

Replace all the IconTextButtons with Button

┆Issue is synchronized with this Notion page by Unito

@coderabbitai
Copy link
Contributor

coderabbitai bot commented Dec 18, 2025

📝 Walkthrough

Walkthrough

Deleted the IconTextButton component and its Storybook stories, removed the buttonTypes.ts types/helpers module, and replaced IconTextButton usages across many components with the unified Button component, adjusting props, inline icon/label markup, some size typings, and a few i18n call sites.

Changes

Cohort / File(s) Summary
IconTextButton removal
src/components/button/IconTextButton.vue, src/components/button/IconTextButton.stories.ts
Removed the IconTextButton Vue component and its Storybook stories/exports.
Button type utilities removal
src/types/buttonTypes.ts
Deleted exported types and helper functions for button sizes, types, border handling, and base class generation.
Button story updates
src/components/ui/button/Button.stories.ts
Extended story arg typings, added an icon arg, and converted SingleButton to a render-based story with conditional icon placement.
Mass IconTextButton → Button replacements (queue, dialog, job components)
src/components/dialog/content/MissingNodesFooter.vue, src/components/queue/.../QueueOverlayExpanded.vue, src/components/queue/QueueOverlayHeader.vue, src/components/queue/job/JobContextMenu.vue, src/components/queue/job/JobDetailsPopover.vue, src/components/queue/job/JobFiltersBar.vue
Replaced IconTextButton imports/usages with Button.vue; moved icon and label inline; switched props from legacy label/type to variant/size and adjusted classes; preserved handlers/events.
Widget, sidebar, more & layout updates
src/components/custom/widget/WorkflowTemplateSelectorDialog.vue, src/components/widget/SampleModelSelector.vue, src/components/widget/layout/BaseModalLayout.stories.ts, src/components/button/MoreButton.stories.ts, src/components/sidebar/tabs/AssetsSidebarTab.vue
Replaced IconTextButton with Button in headers/footers/action areas and stories; updated templates to inline icon and span label; removed IconTextButton imports.
Asset components & menus
src/platform/assets/components/AssetBrowserModal.vue, src/platform/assets/components/AssetCard.vue, src/platform/assets/components/MediaAssetCard.vue, src/platform/assets/components/MediaAssetContextMenu.vue, src/platform/assets/components/MediaAssetFilterBar.vue, src/platform/assets/components/MediaAssetSortMenu.vue, src/platform/assets/components/UploadModelFooter.vue
Migrated IconTextButton usages to Button.vue; converted label props/icon slots to inline markup; introduced model-based sortBy via defineModel and exported SortBy type in MediaAssetSortMenu; adjusted i18n usage where required.
Extension & workbench manager buttons
src/renderer/extensions/.../FormDropdownMenuFilter.vue, src/workbench/extensions/manager/components/manager/button/PackInstallButton.vue, src/workbench/.../PackUninstallButton.vue, src/workbench/.../PackUpdateButton.vue
Replaced IconTextButton with Button; updated size prop typing to ButtonVariants['size']; migrated some i18n calls to composition API (useI18n); adjusted templates to render inline icon/spinner/label.
Misc stories and examples
src/components/widget/*, src/components/*...stories.ts
Story files updated to register and render Button instead of IconTextButton, with inline icon/label markup and variant props.

Possibly related PRs

✨ Finishing touches
  • 📝 Generate docstrings
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch drjkl/button-buttonest

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.

@DrJKL DrJKL changed the title WIP/Component: Button Migraion 3: IconTextButton WIP/Component: Button Migration 3: IconTextButton Dec 18, 2025
@github-actions
Copy link

github-actions bot commented Dec 18, 2025

🎨 Storybook Build Status

Build completed successfully!

⏰ Completed at: 12/18/2025, 11:03:11 PM UTC

🔗 Links


🎉 Your Storybook is ready for review!

@github-actions
Copy link

github-actions bot commented Dec 18, 2025

🎭 Playwright Test Results

Some tests failed

⏰ Completed at: 12/18/2025, 11:12:04 PM UTC

📈 Summary

  • Total Tests: 505
  • Passed: 492 ✅
  • Failed: 1 ❌
  • Flaky: 3 ⚠️
  • Skipped: 9 ⏭️

📊 Test Reports by Browser

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

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

@github-actions
Copy link

github-actions bot commented Dec 18, 2025

Bundle Size Report

Summary

  • Raw size: 16.6 MB baseline 16.6 MB — 🟢 -3.32 kB
  • Gzip: 3.37 MB baseline 3.37 MB — 🟢 -726 B
  • Brotli: 2.59 MB baseline 2.6 MB — 🟢 -1.04 kB
  • Bundles: 99 current • 99 baseline • 42 added / 42 removed

Category Glance
App Entry Points 🟢 -2.78 kB (3.2 MB) · Graph Workspace 🟢 -620 B (996 kB) · UI Components 🔴 +83 B (184 kB) · Panels & Settings 🟢 -2 B (297 kB) · Vendor & Third-Party ⚪ 0 B (8.46 MB) · Other ⚪ 0 B (3.44 MB) · + 3 more

Per-category breakdown
App Entry Points — 3.2 MB (baseline 3.21 MB) • 🟢 -2.78 kB

Main entry bundles and manifests

File Before After Δ Raw Δ Gzip Δ Brotli
assets/index-DVpFzEPA.js (removed) 2.98 MB 🟢 -2.98 MB 🟢 -628 kB 🟢 -478 kB
assets/index-DY-X3lF2.js (new) 2.98 MB 🔴 +2.98 MB 🔴 +627 kB 🔴 +477 kB
assets/index-DG5WEZ8S.js (removed) 227 kB 🟢 -227 kB 🟢 -48.5 kB 🟢 -39.9 kB
assets/index-DjuuPwIQ.js (new) 227 kB 🔴 +227 kB 🔴 +48.5 kB 🔴 +39.8 kB
assets/index-BWwRLi3N.js (new) 345 B 🔴 +345 B 🔴 +245 B 🔴 +209 B
assets/index-DXVmWUzW.js (removed) 345 B 🟢 -345 B 🟢 -244 B 🟢 -229 B

Status: 3 added / 3 removed

Graph Workspace — 996 kB (baseline 996 kB) • 🟢 -620 B

Graph editor runtime, canvas, workflow orchestration

File Before After Δ Raw Δ Gzip Δ Brotli
assets/GraphView-lr6Q75J0.js (removed) 996 kB 🟢 -996 kB 🟢 -195 kB 🟢 -148 kB
assets/GraphView-D6PEgVrO.js (new) 996 kB 🔴 +996 kB 🔴 +195 kB 🔴 +148 kB

Status: 1 added / 1 removed

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

Top-level views, pages, and routed surfaces

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

Status: 1 added / 1 removed

Panels & Settings — 297 kB (baseline 297 kB) • 🟢 -2 B

Configuration panels, inspectors, and settings screens

File Before After Δ Raw Δ Gzip Δ Brotli
assets/LegacyCreditsPanel-BDBLCVV8.js (removed) 21.4 kB 🟢 -21.4 kB 🟢 -5.16 kB 🟢 -4.51 kB
assets/LegacyCreditsPanel-P5ajMS-A.js (new) 21.4 kB 🔴 +21.4 kB 🔴 +5.16 kB 🔴 +4.51 kB
assets/KeybindingPanel-5FEvCSEz.js (removed) 13.6 kB 🟢 -13.6 kB 🟢 -3.42 kB 🟢 -3.01 kB
assets/KeybindingPanel-DYNJaGCu.js (new) 13.6 kB 🔴 +13.6 kB 🔴 +3.42 kB 🔴 +3.01 kB
assets/ExtensionPanel-CVs6Lw4P.js (removed) 10.8 kB 🟢 -10.8 kB 🟢 -2.57 kB 🟢 -2.25 kB
assets/ExtensionPanel-D5LYoZZ9.js (new) 10.8 kB 🔴 +10.8 kB 🔴 +2.57 kB 🔴 +2.24 kB
assets/AboutPanel-DBYgg2Us.js (removed) 9.16 kB 🟢 -9.16 kB 🟢 -2.46 kB 🟢 -2.21 kB
assets/AboutPanel-BqcRCMMb.js (new) 9.16 kB 🔴 +9.16 kB 🔴 +2.46 kB 🔴 +2.2 kB
assets/ServerConfigPanel-CIMNCsk2.js (removed) 7.07 kB 🟢 -7.07 kB 🟢 -1.98 kB 🟢 -1.76 kB
assets/ServerConfigPanel-V1vHsy-l.js (new) 7.07 kB 🔴 +7.07 kB 🔴 +1.98 kB 🔴 +1.76 kB
assets/UserPanel-BNhyniv3.js (removed) 6.23 kB 🟢 -6.23 kB 🟢 -1.72 kB 🟢 -1.5 kB
assets/UserPanel-CftNsW6E.js (new) 6.23 kB 🔴 +6.23 kB 🔴 +1.72 kB 🔴 +1.5 kB
assets/settings-BhbWhsRg.js 101 B 101 B ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/settings-BvFz-TmQ.js 33.1 kB 33.1 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/settings-BxYnTA2y.js 21.5 kB 21.5 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/settings-C6bMjAne.js 27.1 kB 27.1 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/settings-C7Yhp7H7.js 24 kB 24 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/settings-CsnOn8G0.js 25.7 kB 25.7 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/settings-D5BGNZ7M.js 24.8 kB 24.8 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/settings-D7k3huHm.js 25 kB 25 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/settings-DamkILzl.js 26.4 kB 26.4 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/settings-s1k0gw1Y.js 20.9 kB 20.9 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B

Status: 6 added / 6 removed

UI Components — 184 kB (baseline 184 kB) • 🔴 +83 B

Reusable component library chunks

File Before After Δ Raw Δ Gzip Δ Brotli
assets/Load3D.vue_vue_type_script_setup_true_lang-G2WuCF9H.js (new) 53.5 kB 🔴 +53.5 kB 🔴 +8.45 kB 🔴 +7.26 kB
assets/Load3D.vue_vue_type_script_setup_true_lang-sPS63egj.js (removed) 53.5 kB 🟢 -53.5 kB 🟢 -8.45 kB 🟢 -7.26 kB
assets/WidgetSelect.vue_vue_type_script_setup_true_lang-C37Vk5m7.js (removed) 48.8 kB 🟢 -48.8 kB 🟢 -10.5 kB 🟢 -9.14 kB
assets/WidgetSelect.vue_vue_type_script_setup_true_lang-DBzXaqiq.js (new) 48.8 kB 🔴 +48.8 kB 🔴 +10.5 kB 🔴 +9.13 kB
assets/LazyImage.vue_vue_type_script_setup_true_lang-CYUdan4l.js (new) 48.4 kB 🔴 +48.4 kB 🔴 +10.6 kB 🔴 +9.3 kB
assets/LazyImage.vue_vue_type_script_setup_true_lang-BBAAtvZf.js (removed) 48.4 kB 🟢 -48.4 kB 🟢 -10.7 kB 🟢 -9.35 kB
assets/WidgetInputNumber.vue_vue_type_script_setup_true_lang-BmfDf0UJ.js (new) 14.3 kB 🔴 +14.3 kB 🔴 +3.74 kB 🔴 +3.29 kB
assets/WidgetInputNumber.vue_vue_type_script_setup_true_lang-CMaFjbiz.js (removed) 14.3 kB 🟢 -14.3 kB 🟢 -3.73 kB 🟢 -3.29 kB
assets/ComfyQueueButton-DoKoOoyf.js (new) 8.49 kB 🔴 +8.49 kB 🔴 +2.49 kB 🔴 +2.21 kB
assets/ComfyQueueButton-IRM0o-Z5.js (removed) 8.49 kB 🟢 -8.49 kB 🟢 -2.49 kB 🟢 -2.22 kB
assets/WidgetWithControl.vue_vue_type_script_setup_true_lang-CnzyH73-.js (removed) 3.68 kB 🟢 -3.68 kB 🟢 -1.45 kB 🟢 -1.31 kB
assets/WidgetWithControl.vue_vue_type_script_setup_true_lang-D8AUqBqz.js (new) 3.68 kB 🔴 +3.68 kB 🔴 +1.45 kB 🔴 +1.31 kB
assets/WidgetLayoutField.vue_vue_type_script_setup_true_lang-Cae5Ocg3.js (removed) 2.14 kB 🟢 -2.14 kB 🟢 -889 B 🟢 -769 B
assets/WidgetLayoutField.vue_vue_type_script_setup_true_lang-CqtKsPbx.js (new) 2.14 kB 🔴 +2.14 kB 🔴 +889 B 🔴 +762 B
assets/MediaTitle.vue_vue_type_script_setup_true_lang-D1jSuqXe.js (new) 897 B 🔴 +897 B 🔴 +502 B 🔴 +435 B
assets/MediaTitle.vue_vue_type_script_setup_true_lang-R9I8s2xt.js (removed) 897 B 🟢 -897 B 🟢 -504 B 🟢 -441 B
assets/UserAvatar.vue_vue_type_script_setup_true_lang-C6S4PBEs.js 1.34 kB 1.34 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/WidgetButton-B5FcXt9_.js 2.04 kB 2.04 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B

Status: 8 added / 8 removed

Data & Services — 12.5 kB (baseline 12.5 kB) • ⚪ 0 B

Stores, services, APIs, and repositories

File Before After Δ Raw Δ Gzip Δ Brotli
assets/keybindingService-DSLpC7E6.js (removed) 7.51 kB 🟢 -7.51 kB 🟢 -1.83 kB 🟢 -1.58 kB
assets/keybindingService-hvGH6txd.js (new) 7.51 kB 🔴 +7.51 kB 🔴 +1.83 kB 🔴 +1.57 kB
assets/audioService-B2i_FaWb.js (removed) 2.2 kB 🟢 -2.2 kB 🟢 -959 B 🟢 -823 B
assets/audioService-DeRooodd.js (new) 2.2 kB 🔴 +2.2 kB 🔴 +959 B 🔴 +822 B
assets/serverConfigStore-DDOxHQs5.js 2.83 kB 2.83 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B

Status: 2 added / 2 removed

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

Helpers, composables, and utility bundles

File Before After Δ Raw Δ Gzip Δ Brotli
assets/audioUtils-BIPYJUm6.js (removed) 1.41 kB 🟢 -1.41 kB 🟢 -652 B 🟢 -551 B
assets/audioUtils-Dhv158Ab.js (new) 1.41 kB 🔴 +1.41 kB 🔴 +651 B 🔴 +550 B
assets/nodeFilterUtil-CXKCRJ-m.js 460 B 460 B ⚪ 0 B ⚪ 0 B ⚪ 0 B

Status: 1 added / 1 removed

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

External libraries and shared vendor chunks

File Before After Δ Raw Δ Gzip Δ Brotli
assets/vendor-chart-4Lxb_aRy.js 452 kB 452 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/vendor-other-N5ffP4jf.js 3.86 MB 3.86 MB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/vendor-primevue-BAx-x20c.js 1.96 MB 1.96 MB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/vendor-three-C1LfRdh4.js 1.37 MB 1.37 MB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/vendor-tiptap-DMBnJfDx.js 232 kB 232 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/vendor-vue-DyquAs8-.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.44 MB (baseline 3.44 MB) • ⚪ 0 B

Bundles that do not match a named category

File Before After Δ Raw Δ Gzip Δ Brotli
assets/SubscriptionRequiredDialogContent-Gd4DM-Md.js (removed) 28.1 kB 🟢 -28.1 kB 🟢 -6.34 kB 🟢 -5.49 kB
assets/SubscriptionRequiredDialogContent-r4m3drb0.js (new) 28.1 kB 🔴 +28.1 kB 🔴 +6.34 kB 🔴 +5.49 kB
assets/WidgetRecordAudio-BciKFHUG.js (new) 20.4 kB 🔴 +20.4 kB 🔴 +5.23 kB 🔴 +4.63 kB
assets/WidgetRecordAudio-Ccw85LSK.js (removed) 20.4 kB 🟢 -20.4 kB 🟢 -5.23 kB 🟢 -4.63 kB
assets/AudioPreviewPlayer-B0eXnDdz.js (new) 13.4 kB 🔴 +13.4 kB 🔴 +3.37 kB 🔴 +3.01 kB
assets/AudioPreviewPlayer-D1y4Moey.js (removed) 13.4 kB 🟢 -13.4 kB 🟢 -3.37 kB 🟢 -3.01 kB
assets/ValueControlPopover-DSSFzsid.js (removed) 5.49 kB 🟢 -5.49 kB 🟢 -1.7 kB 🟢 -1.52 kB
assets/ValueControlPopover-EgfETZiO.js (new) 5.49 kB 🔴 +5.49 kB 🔴 +1.7 kB 🔴 +1.51 kB
assets/WidgetGalleria-CTZ-j1XG.js (new) 4.1 kB 🔴 +4.1 kB 🔴 +1.44 kB 🔴 +1.3 kB
assets/WidgetGalleria-Dkd01XHF.js (removed) 4.1 kB 🟢 -4.1 kB 🟢 -1.45 kB 🟢 -1.3 kB
assets/WidgetColorPicker-B96iKuGo.js (removed) 3.41 kB 🟢 -3.41 kB 🟢 -1.38 kB 🟢 -1.23 kB
assets/WidgetColorPicker-CnTwf43F.js (new) 3.41 kB 🔴 +3.41 kB 🔴 +1.38 kB 🔴 +1.23 kB
assets/WidgetTextarea-Cg1s60YM.js (removed) 3.08 kB 🟢 -3.08 kB 🟢 -1.21 kB 🟢 -1.09 kB
assets/WidgetTextarea-DzBXQcW-.js (new) 3.08 kB 🔴 +3.08 kB 🔴 +1.21 kB 🔴 +1.07 kB
assets/WidgetMarkdown-NAGVxqZU.js (new) 3.08 kB 🔴 +3.08 kB 🔴 +1.28 kB 🔴 +1.13 kB
assets/WidgetMarkdown-qy2-6hAB.js (removed) 3.08 kB 🟢 -3.08 kB 🟢 -1.28 kB 🟢 -1.13 kB
assets/WidgetAudioUI-Bnm7LGv5.js (removed) 2.94 kB 🟢 -2.94 kB 🟢 -1.19 kB 🟢 -1.07 kB
assets/WidgetAudioUI-FI5f1T08.js (new) 2.94 kB 🔴 +2.94 kB 🔴 +1.18 kB 🔴 +1.07 kB
assets/WidgetInputText-BTtMxls2.js (removed) 1.99 kB 🟢 -1.99 kB 🟢 -917 B 🟢 -853 B
assets/WidgetInputText-CSbe7_iD.js (new) 1.99 kB 🔴 +1.99 kB 🔴 +919 B 🔴 +846 B
assets/WidgetToggleSwitch-B-3V-MvK.js (new) 1.76 kB 🔴 +1.76 kB 🔴 +833 B 🔴 +732 B
assets/WidgetToggleSwitch-Dy0xKFFE.js (removed) 1.76 kB 🟢 -1.76 kB 🟢 -833 B 🟢 -734 B
assets/MediaImageBottom-CEtGgyWN.js (removed) 1.55 kB 🟢 -1.55 kB 🟢 -734 B 🟢 -643 B
assets/MediaImageBottom-DdVfu7RM.js (new) 1.55 kB 🔴 +1.55 kB 🔴 +731 B 🔴 +640 B
assets/MediaAudioBottom-BfHJs09T.js (removed) 1.51 kB 🟢 -1.51 kB 🟢 -731 B 🟢 -644 B
assets/MediaAudioBottom-DV6IaPyb.js (new) 1.51 kB 🔴 +1.51 kB 🔴 +732 B 🔴 +645 B
assets/Media3DBottom-Bbdrs1we.js (removed) 1.5 kB 🟢 -1.5 kB 🟢 -729 B 🟢 -645 B
assets/Media3DBottom-DKxEolZp.js (new) 1.5 kB 🔴 +1.5 kB 🔴 +728 B 🔴 +644 B
assets/MediaVideoBottom-0tJe5OU-.js (removed) 1.5 kB 🟢 -1.5 kB 🟢 -728 B 🟢 -643 B
assets/MediaVideoBottom-CJbYfpwc.js (new) 1.5 kB 🔴 +1.5 kB 🔴 +727 B 🔴 +643 B
assets/Media3DTop-1gsW14sy.js (removed) 1.49 kB 🟢 -1.49 kB 🟢 -763 B 🟢 -652 B
assets/Media3DTop-DSZq7mIQ.js (new) 1.49 kB 🔴 +1.49 kB 🔴 +764 B 🔴 +651 B
assets/WidgetSelect-CRKwutLF.js (new) 733 B 🔴 +733 B 🔴 +360 B 🔴 +321 B
assets/WidgetSelect-D7zSfc6E.js (removed) 733 B 🟢 -733 B 🟢 -362 B 🟢 -321 B
assets/WidgetInputNumber-D2nDFM_h.js (new) 673 B 🔴 +673 B 🔴 +349 B 🔴 +289 B
assets/WidgetInputNumber-DMpWJ3PN.js (removed) 673 B 🟢 -673 B 🟢 -347 B 🟢 -295 B
assets/Load3D-BkMo26ab.js (new) 424 B 🔴 +424 B 🔴 +268 B 🔴 +222 B
assets/Load3D-DVyY8i38.js (removed) 424 B 🟢 -424 B 🟢 -266 B 🟢 -230 B
assets/WidgetLegacy-BQuDm-8d.js (new) 364 B 🔴 +364 B 🔴 +236 B 🔴 +192 B
assets/WidgetLegacy-w1TH4t2k.js (removed) 364 B 🟢 -364 B 🟢 -237 B 🟢 -193 B
assets/commands-BWp4HdfU.js 101 B 101 B ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/commands-CcfGaui5.js 14.4 kB 14.4 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/commands-CisfgZf5.js 13.7 kB 13.7 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/commands-CkU12Foh.js 13 kB 13 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/commands-CoH2DJa6.js 14.2 kB 14.2 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/commands-COSt-Bjx.js 14.9 kB 14.9 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/commands-DalfIW5f.js 15.9 kB 15.9 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/commands-DfTl0eCm.js 13.5 kB 13.5 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/commands-DwSJL865.js 13.7 kB 13.7 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/commands-Zxyx15Vd.js 12.8 kB 12.8 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/main-BDhxs-bB.js 79.9 kB 79.9 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/main-BtXVDFw6.js 84.7 kB 84.7 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/main-Buv6RhU4.js 82.4 kB 82.4 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/main-CgJ6zvJL.js 97.2 kB 97.2 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/main-CI9qb0E5.js 112 kB 112 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/main-Cu4LqtW0.js 81.6 kB 81.6 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/main-Cw9RZWRY.js 89 B 89 B ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/main-Dm19QY4N.js 92.2 kB 92.2 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/main-Tihe0h_r.js 71.3 kB 71.3 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/main-wPWMutMw.js 70.4 kB 70.4 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/MediaAudioTop-DbG-lp_Y.js 1.46 kB 1.46 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/MediaImageTop-cYYPK99g.js 1.75 kB 1.75 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/MediaVideoTop-D2Oavg0V.js 2.65 kB 2.65 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/nodeDefs-1Vh3MCrN.js 240 kB 240 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/nodeDefs-aW9En70v.js 260 kB 260 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/nodeDefs-BIckSVgU.js 273 kB 273 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/nodeDefs-BiYpVi7D.js 263 kB 263 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/nodeDefs-Bw_Jitw_.js 101 B 101 B ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/nodeDefs-CCEXtYfM.js 243 kB 243 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/nodeDefs-CvmVDWYd.js 323 kB 323 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/nodeDefs-D_wreoPJ.js 267 kB 267 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/nodeDefs-Dz-0ZIBN.js 297 kB 297 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/nodeDefs-VZsNmhG7.js 264 kB 264 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/WidgetChart-54cAzoul.js 2.48 kB 2.48 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/WidgetImageCompare-bTic3jrs.js 2.21 kB 2.21 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/widgetPropFilter-BIbGSUAt.js 1.28 kB 1.28 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B

Status: 20 added / 20 removed

@DrJKL DrJKL marked this pull request as ready for review December 18, 2025 21:04
@dosubot dosubot bot added the size:XXL This PR changes 1000+ lines, ignoring generated files. label Dec 18, 2025
@DrJKL DrJKL changed the title WIP/Component: Button Migration 3: IconTextButton Component: Button Migration 3: IconTextButton Dec 18, 2025
@DrJKL DrJKL force-pushed the drjkl/button-buttonest branch from 908427e to ba19ff4 Compare December 18, 2025 21:07
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

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 3

♻️ Duplicate comments (3)
src/workbench/extensions/manager/components/manager/button/PackUpdateButton.vue (1)

12-12: Unconditional spinner renders always - add v-if condition.

The DotSpinner is rendered unconditionally, causing it to spin even when the button is not performing an update. This creates a confusing UX where the loading indicator is always visible.

🔎 Proposed fix
-    <DotSpinner duration="1s" :size="12" />
+    <DotSpinner v-if="isUpdating" duration="1s" :size="12" />
src/platform/assets/components/MediaAssetSortMenu.vue (1)

3-10: Minor inconsistency in text rendering (duplicate).

Line 8 wraps the translated text in <span>, while lines 17, 27, and 36 render text directly. This inconsistency was already flagged in a previous review.

src/components/widget/layout/BaseModalLayout.stories.ts (1)

210-228: Fix deprecated Button usage to match the pattern used elsewhere in this file.

These Buttons still use the deprecated label prop and #icon template slot, which are not supported by the Button component. This will cause the buttons to render incorrectly or not display the text.

Lines 334-348 in the second template show the correct pattern for the same functionality.

🔎 Proposed fix
 <Button
   variant="secondary"
-  label="Settings"
   @click="() => { close() }"
 >
-  <template #icon>
-    <i class="icon-[lucide--download] size-3" />
-  </template>
+  <i class="icon-[lucide--download] size-3" />
+  <span>Settings</span>
 </Button>

 <Button
   variant="primary"
-  label="Profile"
   @click="() => { close() }"
 >
-  <template #icon>
-    <i class="icon-[lucide--scroll] size-3" />
-  </template>
+  <i class="icon-[lucide--scroll] size-3" />
+  <span>Profile</span>
 </Button>

label="Settings"
<Button
variant="textonly"
@click="() => { close() }"
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

Simplify click handlers.

The arrow function wrappers are unnecessary since close is already a function. You can pass it directly.

🔎 Proposed simplification
-              @click="() => { close() }"
+              @click="close"

Apply the same change on both lines 27 and 35.

Also applies to: 35-35

🤖 Prompt for AI Agents
In src/components/button/MoreButton.stories.ts around lines 27 and 35, the
@click handlers wrap the existing close function in unnecessary arrow functions;
remove the wrapper and pass close directly (i.e., change @click="() => { close()
}" to @click="close") on both lines to simplify the handlers.

</template>
</IconTextButton>
<i class="icon-[lucide--download] size-4" />
<span>Settings</span>
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 using i18n for string literals.

While this is a Storybook story for demonstration, the coding guidelines specify using vue-i18n for all UI strings in src/components/**/*.{vue,ts,js}. Using i18n in stories can serve as a best-practice example and maintain consistency with the guidelines.

As per coding guidelines, all UI strings should use i18n translation keys.

Also applies to: 38-38

🤖 Prompt for AI Agents
In src/components/button/MoreButton.stories.ts around lines 30 and 38, the story
uses raw string literals ("Settings" and another at line 38); replace these with
vue-i18n translation keys: add appropriate keys to your locale file (e.g.
components.moreButton.settings) and update the story to use the i18n translation
function (e.g. this.$t or t('components.moreButton.settings')) or register the
i18n plugin in the storybook preview/decorator so the story renders translated
text; ensure keys are added to locales and the story imports/uses the i18n
instance instead of hard-coded strings.

Comment on lines +61 to +82
<Button
class="justify-start px-0"
variant="muted-textonly"
size="sm"
icon-position="right"
@click.stop="copyErrorMessage"
>
<template #icon>
<i class="icon-[lucide--copy] block size-3.5 leading-none" />
</template>
</IconTextButton>
<IconTextButton
class="h-6 justify-start gap-2 bg-transparent px-0 text-[0.75rem] leading-none text-text-secondary hover:opacity-90"
type="transparent"
:label="t('queue.jobDetails.report')"
<span>{{ copyAriaLabel }}</span>
<i class="icon-[lucide--copy] block size-3.5 leading-none" />
</Button>
<Button
class="justify-start px-0"
variant="muted-textonly"
size="sm"
icon-position="right"
@click.stop="reportJobError"
>
<template #icon>
<i
class="icon-[lucide--message-circle-warning] block size-3.5 leading-none"
/>
</template>
</IconTextButton>
<span>{{ t('queue.jobDetails.report') }}</span>
<i
class="icon-[lucide--message-circle-warning] block size-3.5 leading-none"
/>
</Button>
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

🧩 Analysis chain

🏁 Script executed:

# Find the Button component
fd -e vue -e ts "Button" src/components --type f | head -20

Repository: Comfy-Org/ComfyUI_frontend

Length of output: 1228


🏁 Script executed:

# Search for Button component definition
rg "export.*Button" src/components --type vue --type ts -A 5

Repository: Comfy-Org/ComfyUI_frontend

Length of output: 97


🏁 Script executed:

# Check for icon-position prop usage in the codebase
rg "icon-position" src --type vue

Repository: Comfy-Org/ComfyUI_frontend

Length of output: 97


🏁 Script executed:

# Find Button component in components directory
find src/components -name "Button.vue" -o -name "Button.ts" | head -10

Repository: Comfy-Org/ComfyUI_frontend

Length of output: 105


🏁 Script executed:

# Search for Button component export more broadly
rg "export.*Button" src/components --type-list

Repository: Comfy-Org/ComfyUI_frontend

Length of output: 459


🏁 Script executed:

# Look for icon-position in all files
rg "icon-position" src --type-list

Repository: Comfy-Org/ComfyUI_frontend

Length of output: 459


🏁 Script executed:

# Search for Button component definition and icon-position usage
rg -l "icon-position" src/

Repository: Comfy-Org/ComfyUI_frontend

Length of output: 116


🏁 Script executed:

# Check the Button component for icon-position prop
cat src/components/ui/button/Button.vue

Repository: Comfy-Org/ComfyUI_frontend

Length of output: 755


🏁 Script executed:

# Also check the full JobDetailsPopover.vue file to understand context
cat src/components/queue/job/JobDetailsPopover.vue

Repository: Comfy-Org/ComfyUI_frontend

Length of output: 10860


Remove unsupported icon-position prop from Button components.

The icon-position prop on lines 65 and 75 is not part of the Button component's API and will be silently ignored. The visual layout is already correct because the icon appears after the text in the content order. Remove both instances of icon-position="right".

🤖 Prompt for AI Agents
In src/components/queue/job/JobDetailsPopover.vue around lines 61 to 82, the two
Button components include an unsupported prop icon-position="right"; remove the
icon-position="right" attribute from both Button instances (the copy and report
buttons) so the prop is not passed and the layout relies on the existing content
order that already places the icon after the text.

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 1

📜 Review details

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between ba19ff4 and 3c09492.

📒 Files selected for processing (2)
  • src/components/queue/QueueOverlayHeader.vue (1 hunks)
  • src/workbench/extensions/manager/components/manager/button/PackUpdateButton.vue (1 hunks)
🧰 Additional context used
📓 Path-based instructions (11)
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: Vue 3 SFCs must use Composition API only - no Options API
Use <script setup lang="ts"> for component logic
Use Tailwind 4 utility classes for styling - avoid <style> blocks
Use cn() utility from @/utils/tailwindUtil to merge Tailwind class names - never use :class="[]" syntax
Never use the dark: Tailwind variant - use semantic values from style.css theme instead (e.g., bg-node-component-surface)
Use Vue 3.5+ TypeScript style default prop declaration with reactive destructuring - prefer useModel to prop/emit pairs, do not use withDefaults
Do not import Vue macros unnecessarily
Use vue-i18n in composition API for string literals - place translation entries in src/locales/en/main.json
Implement proper props and emits definitions in Vue components
Utilize Vue 3's Teleport component when needed
Use Suspense for async components
Avoid new usage of PrimeVue components

Files:

  • src/components/queue/QueueOverlayHeader.vue
  • src/workbench/extensions/manager/components/manager/button/PackUpdateButton.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

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

Files:

  • src/components/queue/QueueOverlayHeader.vue
  • src/workbench/extensions/manager/components/manager/button/PackUpdateButton.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}: ESLint rules: Vue + TS rules, no floating promises, unused imports disallowed, i18n raw text restrictions in templates
Use es-toolkit for utility functions
Avoid mutable state - prefer immutability and assignment at point of declaration
Never use any type - use proper TypeScript types
Never use as any type assertions - fix the underlying type issue

Files:

  • src/components/queue/QueueOverlayHeader.vue
  • src/workbench/extensions/manager/components/manager/button/PackUpdateButton.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/queue/QueueOverlayHeader.vue
  • src/workbench/extensions/manager/components/manager/button/PackUpdateButton.vue
src/**/*.{vue,ts,tsx}

📄 CodeRabbit inference engine (src/CLAUDE.md)

Follow Vue 3 composition API style guide

Files:

  • src/components/queue/QueueOverlayHeader.vue
  • src/workbench/extensions/manager/components/manager/button/PackUpdateButton.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/queue/QueueOverlayHeader.vue
  • src/workbench/extensions/manager/components/manager/button/PackUpdateButton.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

Vue components must be named in PascalCase (e.g., MenuHamburger.vue)

Files:

  • src/components/queue/QueueOverlayHeader.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/queue/QueueOverlayHeader.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/queue/QueueOverlayHeader.vue
src/**/*.{js,ts,tsx,vue}

📄 CodeRabbit inference engine (AGENTS.md)

Use TypeScript exclusively - no new JavaScript files

Files:

  • src/components/queue/QueueOverlayHeader.vue
  • src/workbench/extensions/manager/components/manager/button/PackUpdateButton.vue
src/**/*.{ts,tsx,vue,js}

📄 CodeRabbit inference engine (AGENTS.md)

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

Files:

  • src/components/queue/QueueOverlayHeader.vue
  • src/workbench/extensions/manager/components/manager/button/PackUpdateButton.vue
🧠 Learnings (26)
📓 Common learnings
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: 7603
File: src/components/queue/QueueOverlayHeader.vue:49-59
Timestamp: 2025-12-18T21:15:46.862Z
Learning: For Vue components in Comfy-Org/ComfyUI_frontend: Do not suggest adding aria-label to buttons that already have visible text content (e.g., <span> elements with labels). The visible text automatically provides the accessible name. aria-label should only be used for elements without visible labels, such as icon-only buttons.
📚 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/queue/QueueOverlayHeader.vue
  • src/workbench/extensions/manager/components/manager/button/PackUpdateButton.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/queue/QueueOverlayHeader.vue
  • src/workbench/extensions/manager/components/manager/button/PackUpdateButton.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/queue/QueueOverlayHeader.vue
  • src/workbench/extensions/manager/components/manager/button/PackUpdateButton.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/queue/QueueOverlayHeader.vue
  • src/workbench/extensions/manager/components/manager/button/PackUpdateButton.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/queue/QueueOverlayHeader.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 Sidebar component with Drawer

Applied to files:

  • src/components/queue/QueueOverlayHeader.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/queue/QueueOverlayHeader.vue
  • src/workbench/extensions/manager/components/manager/button/PackUpdateButton.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/queue/QueueOverlayHeader.vue
  • src/workbench/extensions/manager/components/manager/button/PackUpdateButton.vue
📚 Learning: 2025-12-05T06:11:09.383Z
Learnt from: DrJKL
Repo: Comfy-Org/ComfyUI_frontend PR: 7177
File: src/platform/assets/components/UploadModelFooter.vue:72-78
Timestamp: 2025-12-05T06:11:09.383Z
Learning: For the ComfyUI_frontend repository, avoid suggesting comments that would be redundant when the code is already self-explanatory through descriptive naming (e.g., filenames, prop names, aria-labels). The project prefers clean code without unnecessary documentation comments.

Applied to files:

  • src/components/queue/QueueOverlayHeader.vue
📚 Learning: 2025-12-10T03:09:19.636Z
Learnt from: DrJKL
Repo: Comfy-Org/ComfyUI_frontend PR: 7303
File: src/components/topbar/CurrentUserPopover.test.ts:199-205
Timestamp: 2025-12-10T03:09:19.636Z
Learning: For test files in the Comfy-Org/ComfyUI_frontend repository: When writing tests, prefer selecting elements by accessible properties (text content, aria-label, role, accessible name) over data-testid attributes. This ensures tests verify actual user-facing behavior and accessibility compliance.

Applied to files:

  • src/components/queue/QueueOverlayHeader.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/queue/QueueOverlayHeader.vue
📚 Learning: 2025-11-24T19:47:45.616Z
Learnt from: CR
Repo: Comfy-Org/ComfyUI_frontend PR: 0
File: src/components/CLAUDE.md:0-0
Timestamp: 2025-11-24T19:47:45.616Z
Learning: Applies to src/components/**/*.vue : Extract complex conditionals to computed properties

Applied to files:

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

Applied to files:

  • src/components/queue/QueueOverlayHeader.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 : Implement computed() for derived state in Vue 3 Composition API

Applied to files:

  • src/components/queue/QueueOverlayHeader.vue
📚 Learning: 2025-12-17T01:01:03.609Z
Learnt from: CR
Repo: Comfy-Org/ComfyUI_frontend PR: 0
File: AGENTS.md:0-0
Timestamp: 2025-12-17T01:01:03.609Z
Learning: Applies to src/**/*.{vue,ts} : Avoid using `ref` and `watch` together - use `computed` instead if possible

Applied to files:

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

Applied to files:

  • src/components/queue/QueueOverlayHeader.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/queue/QueueOverlayHeader.vue
📚 Learning: 2025-12-17T01:01:03.609Z
Learnt from: CR
Repo: Comfy-Org/ComfyUI_frontend PR: 0
File: AGENTS.md:0-0
Timestamp: 2025-12-17T01:01:03.609Z
Learning: Applies to src/**/*.vue : Use vue-i18n in composition API for string literals - place translation entries in `src/locales/en/main.json`

Applied to files:

  • src/components/queue/QueueOverlayHeader.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/queue/QueueOverlayHeader.vue
  • src/workbench/extensions/manager/components/manager/button/PackUpdateButton.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/queue/QueueOverlayHeader.vue
  • src/workbench/extensions/manager/components/manager/button/PackUpdateButton.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/queue/QueueOverlayHeader.vue
  • src/workbench/extensions/manager/components/manager/button/PackUpdateButton.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/queue/QueueOverlayHeader.vue
  • src/workbench/extensions/manager/components/manager/button/PackUpdateButton.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/queue/QueueOverlayHeader.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 Steps component with Stepper without panels

Applied to files:

  • src/workbench/extensions/manager/components/manager/button/PackUpdateButton.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). (2)
  • GitHub Check: lint-and-format
  • GitHub Check: test
🔇 Additional comments (2)
src/workbench/extensions/manager/components/manager/button/PackUpdateButton.vue (2)

2-14: LGTM! Past review concern has been addressed.

The conditional rendering of the spinner has been correctly implemented with v-if="isUpdating" on line 12, exactly as suggested in the previous review. The button now shows the spinner only during the update operation, providing clear visual feedback to users.

The migration from IconTextButton to Button is well-executed:

  • variant="textonly" with class="border" appropriately replaces the old transparent style
  • Inline content composition (spinner + text) follows the new Button component pattern
  • Proper i18n usage and accessibility (visible text label)
  • Correct disabled state handling during updates

17-77: LGTM! Script logic is solid.

The import update on line 21 correctly aligns with the template migration. The script demonstrates good practices:

  • Proper error handling with try-catch-finally
  • Edge case handling (empty arrays, missing data)
  • Reliable state management with isUpdating reset in finally block
  • Clear logging for debugging
  • Appropriate filtering for installed packs before updates

class="w-full justify-start"
variant="textonly"
size="sm"
:aria-label="t('sideToolbar.queueProgressOverlay.clearHistory')"
Copy link
Contributor

@coderabbitai coderabbitai bot Dec 18, 2025

Choose a reason for hiding this comment

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

⚠️ Potential issue | 🟡 Minor

Remove redundant aria-label.

This button has visible text content (the <span> on lines 57-59), which automatically provides the accessible name. The aria-label attribute is redundant and should be removed. Per accessibility best practices, aria-label should only be used for elements without visible labels, such as icon-only buttons (like the one on line 21-31, which correctly uses aria-label).

🔎 Proposed fix
 <Button
   class="w-full justify-start"
   variant="textonly"
   size="sm"
-  :aria-label="t('sideToolbar.queueProgressOverlay.clearHistory')"
   @click="onClearHistoryFromMenu"
 >
   <i class="icon-[lucide--file-x-2] size-4 text-muted" />
   <span>{{
     t('sideToolbar.queueProgressOverlay.clearHistory')
   }}</span>
 </Button>

Based on learnings from previous review feedback on this file.

🤖 Prompt for AI Agents
In src/components/queue/QueueOverlayHeader.vue around line 53, the button
includes a redundant aria-label even though it has visible text in the nested
<span>; remove the
:aria-label="t('sideToolbar.queueProgressOverlay.clearHistory')" attribute from
this button so the visible text serves as the accessible name, leaving
aria-labels only on icon-only buttons (e.g., the one at lines ~21-31) as
appropriate.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I would love to, but it's used to target the element in a test.
This should get cleaned up when we migrate from the basic Vue Test Utils to use Vue Testing Library instead.

Copy link
Contributor

Choose a reason for hiding this comment

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

@DrJKL, thanks for the explanation! That makes sense. Vue Testing Library facilitates querying the DOM in the same way users would, allowing you to find elements by their label text and ensuring accessibility, so the migration should indeed resolve this.

In the meantime, if it's feasible for the test, you could potentially select this button by its visible text content (the translated "clearHistory" text) instead of the aria-label attribute. That would allow you to remove the redundant aria-label now while still maintaining a reliable test selector. But if the current test structure makes that difficult, keeping it until the Vue Testing Library migration is a reasonable compromise.

Looking forward to seeing this cleaned up in the migration! 🐰

    (\\_/)
    (•ᴗ•)
    />📚 Planning ahead!

🧠 Learnings used
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: For Vue components in Comfy-Org/ComfyUI_frontend: Do not suggest adding aria-label to buttons that already have visible text content (e.g., <span> elements with labels). The visible text automatically provides the accessible name. aria-label should only be used for elements without visible labels, such as icon-only buttons.

Learnt from: DrJKL
Repo: Comfy-Org/ComfyUI_frontend PR: 7303
File: src/components/topbar/CurrentUserPopover.test.ts:199-205
Timestamp: 2025-12-10T03:09:19.636Z
Learning: For test files in the Comfy-Org/ComfyUI_frontend repository: When writing tests, prefer selecting elements by accessible properties (text content, aria-label, role, accessible name) over data-testid attributes. This ensures tests verify actual user-facing behavior and accessibility compliance.

Learnt from: DrJKL
Repo: Comfy-Org/ComfyUI_frontend PR: 7177
File: src/platform/assets/components/UploadModelFooter.vue:72-78
Timestamp: 2025-12-05T06:11:09.383Z
Learning: For the ComfyUI_frontend repository, avoid suggesting comments that would be redundant when the code is already self-explanatory through descriptive naming (e.g., filenames, prop names, aria-labels). The project prefers clean code without unnecessary documentation comments.

Learnt from: CR
Repo: Comfy-Org/ComfyUI_frontend PR: 0
File: AGENTS.md:0-0
Timestamp: 2025-12-17T01:01:03.609Z
Learning: Applies to tests-ui/**/*.test.ts : For Component testing, use Vue Test Utils and follow advice about making components easy to test

Learnt from: CR
Repo: Comfy-Org/ComfyUI_frontend PR: 0
File: AGENTS.md:0-0
Timestamp: 2025-12-17T01:01:03.609Z
Learning: Applies to tests-ui/**/*.test.ts : For mocking, leverage Vitest's utilities where possible

Learnt from: CR
Repo: Comfy-Org/ComfyUI_frontend PR: 0
File: browser_tests/CLAUDE.md:0-0
Timestamp: 2025-11-24T19:47:22.909Z
Learning: Applies to browser_tests/**/*.{e2e,spec}.{ts,tsx,js,jsx} : Prefer specific selectors in browser tests

Learnt from: CR
Repo: Comfy-Org/ComfyUI_frontend PR: 0
File: tests-ui/CLAUDE.md:0-0
Timestamp: 2025-11-24T19:48:03.270Z
Learning: Applies to tests-ui/**/*.test.{js,ts,jsx,tsx} : Use existing test utilities rather than writing custom utilities

Learnt from: CR
Repo: Comfy-Org/ComfyUI_frontend PR: 0
File: src/components/CLAUDE.md:0-0
Timestamp: 2025-11-24T19:47:45.616Z
Learning: Applies to src/components/**/*.vue : Implement cleanup for async operations in Vue components

Learnt from: CR
Repo: Comfy-Org/ComfyUI_frontend PR: 0
File: AGENTS.md:0-0
Timestamp: 2025-12-17T01:01:03.609Z
Learning: Applies to tests-ui/**/*.test.ts : Do not write tests dependent on non-behavioral features like utility classes or styles

Learnt from: CR
Repo: Comfy-Org/ComfyUI_frontend PR: 0
File: .cursor/rules/unit-test.mdc:0-0
Timestamp: 2025-11-24T19:48:09.318Z
Learning: Applies to test/**/*.{test,spec}.{js,ts,jsx,tsx} : Use `test` instead of `it` for defining test cases in vitest

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

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

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

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.

@DrJKL DrJKL force-pushed the drjkl/button-buttonest branch from 53b6f63 to d065f50 Compare December 18, 2025 22:33
Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 5

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/tabs/AssetsSidebarTab.vue (1)

129-138: Add aria-label to icon-only buttons for accessibility.

The icon-only buttons in compact mode lack aria-label attributes, making them inaccessible to screen reader users who cannot determine the button purpose.

🔎 Proposed fix to add aria-label attributes
           <template v-if="isCompact">
             <!-- Compact mode: Icon only -->
             <Button
               v-if="shouldShowDeleteButton"
               size="icon"
+              :aria-label="$t('mediaAsset.selection.deleteSelected')"
               @click="handleDeleteSelected"
             >
               <i class="icon-[lucide--trash-2] size-4" />
             </Button>
-            <Button size="icon" @click="handleDownloadSelected">
+            <Button 
+              size="icon" 
+              :aria-label="$t('mediaAsset.selection.downloadSelected')"
+              @click="handleDownloadSelected"
+            >
               <i class="icon-[lucide--download] size-4" />
             </Button>
           </template>

Based on learnings, icon-only buttons require aria-label to provide accessible names for assistive technology users.

♻️ Duplicate comments (1)
src/components/widget/layout/BaseModalLayout.stories.ts (1)

210-228: Remove deprecated label prop and #icon template slots - inconsistent with second template block.

The Button components on lines 210-218 and 220-228 still use the deprecated label prop and <template #icon> slots, but the identical buttons in the second template block (lines 334-340 and 342-348) correctly use inline content. The Button component no longer accepts these props after the IconTextButton migration.

🔎 Proposed fix to match the second template block pattern
 <Button
   variant="secondary"
-  label="Settings"
   @click="() => { close() }"
 >
-  <template #icon>
-    <i class="icon-[lucide--download] size-3" />
-  </template>
+  <i class="icon-[lucide--download] size-3" />
+  <span>Settings</span>
 </Button>

 <Button
   variant="primary"
-  label="Profile"
   @click="() => { close() }"
 >
-  <template #icon>
-    <i class="icon-[lucide--scroll] size-3" />
-  </template>
+  <i class="icon-[lucide--scroll] size-3" />
+  <span>Profile</span>
 </Button>

Comment on lines +23 to +39
<Button
v-else
class="w-full justify-start gap-2 bg-transparent p-2 font-inter text-[12px] leading-none text-text-primary hover:bg-interface-panel-hover-surface"
type="transparent"
:label="entry.label"
class="w-full justify-start bg-transparent"
variant="textonly"
size="sm"
:aria-label="entry.label"
@click="onEntry(entry)"
>
<template #icon>
<i
v-if="entry.icon"
:class="[
entry.icon,
'block size-4 shrink-0 leading-none text-text-secondary'
]"
/>
</template>
</IconTextButton>
<i
v-if="entry.icon"
:class="[
entry.icon,
'block size-4 shrink-0 leading-none text-text-secondary'
]"
/>
<span>{{ entry.label }}</span>
</Button>
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

Remove redundant aria-label.

The button has visible text content in the <span> element (line 38), which automatically provides the accessible name. The aria-label on line 28 is redundant and should be removed.

Based on learnings, aria-label should only be used for elements without visible labels (e.g., icon-only buttons).

🔎 Proposed fix
 <Button
   v-else
   class="w-full justify-start bg-transparent"
   variant="textonly"
   size="sm"
-  :aria-label="entry.label"
   @click="onEntry(entry)"
 >
📝 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
<Button
v-else
class="w-full justify-start gap-2 bg-transparent p-2 font-inter text-[12px] leading-none text-text-primary hover:bg-interface-panel-hover-surface"
type="transparent"
:label="entry.label"
class="w-full justify-start bg-transparent"
variant="textonly"
size="sm"
:aria-label="entry.label"
@click="onEntry(entry)"
>
<template #icon>
<i
v-if="entry.icon"
:class="[
entry.icon,
'block size-4 shrink-0 leading-none text-text-secondary'
]"
/>
</template>
</IconTextButton>
<i
v-if="entry.icon"
:class="[
entry.icon,
'block size-4 shrink-0 leading-none text-text-secondary'
]"
/>
<span>{{ entry.label }}</span>
</Button>
<Button
v-else
class="w-full justify-start bg-transparent"
variant="textonly"
size="sm"
@click="onEntry(entry)"
>
<i
v-if="entry.icon"
:class="[
entry.icon,
'block size-4 shrink-0 leading-none text-text-secondary'
]"
/>
<span>{{ entry.label }}</span>
</Button>
🤖 Prompt for AI Agents
In src/components/queue/job/JobContextMenu.vue around lines 23 to 39, remove the
redundant :aria-label="entry.label" from the Button element because the visible
<span>{{ entry.label }}</span> already provides the accessible name; if you need
to support icon-only entries in future, add an aria-label only when there is no
visible label (e.g., conditionally bind aria-label when entry.label is absent).

Comment on lines 54 to 67
export const SingleButton: Story = {
args: {
variant: 'primary',
size: 'lg'
}
render: (args) => ({
components: { Button },
setup() {
return { args }
},
template: `
<Button v-bind="args">
<i v-if="args.icon === 'left'" class="icon-[lucide--settings]" />
{{args.default}}
<i v-if="args.icon === 'right'" class="icon-[lucide--settings]" />
</Button>`
})
}
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

🧩 Analysis chain

🏁 Script executed:

#!/bin/bash
# Check the actual Button.stories.ts file
find . -name "Button.stories.ts" -path "*/src/components/ui/button/*" | head -1 | xargs -I {} sh -c 'echo "File found: {}"; wc -l {}'

Repository: Comfy-Org/ComfyUI_frontend

Length of output: 174


🏁 Script executed:

#!/bin/bash
# Read the actual file content and show lines around 54-67
find . -name "Button.stories.ts" -path "*/src/components/ui/button/*" -type f | head -1 | xargs -I {} sed -n '50,70p' {}

Repository: Comfy-Org/ComfyUI_frontend

Length of output: 559


🏁 Script executed:

#!/bin/bash
# Check the Button component definition to understand its interface
find . -name "Button.vue" -o -name "Button.ts" | grep -E "src/components/ui/button" | head -1 | xargs -I {} cat {}

Repository: Comfy-Org/ComfyUI_frontend

Length of output: 755


🏁 Script executed:

#!/bin/bash
# Check prettier configuration
cat .prettierrc 2>/dev/null || cat .prettierrc.json 2>/dev/null || echo "No .prettierrc found"

Repository: Comfy-Org/ComfyUI_frontend

Length of output: 407


Add spacing in mustache interpolation to comply with formatting standards.

The render function pattern is correct and effectively demonstrates icon usage, but the template has a formatting violation: {{args.default}} should be {{ args.default }} per the project's Prettier configuration which enforces spacing in mustache interpolations.

🤖 Prompt for AI Agents
In src/components/ui/button/Button.stories.ts around lines 54 to 67, the
template uses mustache interpolation without spaces (`{{args.default}}`),
violating the project's Prettier rule; update the template to use spaced
mustache interpolation (`{{ args.default }}`) (and similarly ensure any other
interpolations in this template follow the same spacing convention) so the file
conforms to formatting standards.

Comment on lines +26 to +36
<Button
variant="secondary"
@click="
() => {
close()
}
"
>
<template #icon>
<i class="icon-[lucide--download]" />
</template>
</IconTextButton>
<IconTextButton
type="primary"
:label="$t('g.profile')"
<i class="icon-[lucide--download]" />
<span>{{ $t('g.settings') }}</span>
</Button>
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

Fix icon mismatch for settings button.

The button uses a download icon (icon-[lucide--download]) for a settings action. This is semantically incorrect and may confuse users.

🔎 Suggested fix
             <Button
               variant="secondary"
               @click="
                 () => {
                   close()
                 }
               "
             >
-              <i class="icon-[lucide--download]" />
+              <i class="icon-[lucide--settings]" />
               <span>{{ $t('g.settings') }}</span>
             </Button>
📝 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
<Button
variant="secondary"
@click="
() => {
close()
}
"
>
<template #icon>
<i class="icon-[lucide--download]" />
</template>
</IconTextButton>
<IconTextButton
type="primary"
:label="$t('g.profile')"
<i class="icon-[lucide--download]" />
<span>{{ $t('g.settings') }}</span>
</Button>
<Button
variant="secondary"
@click="
() => {
close()
}
"
>
<i class="icon-[lucide--settings]" />
<span>{{ $t('g.settings') }}</span>
</Button>
🤖 Prompt for AI Agents
In src/components/widget/SampleModelSelector.vue around lines 26 to 36, the
settings Button currently uses the download icon class
"icon-[lucide--download]"; change that class to the appropriate settings icon
(e.g., "icon-[lucide--settings]" or your project's lucide settings/gear icon
class) so the visual matches the action, and also update/add an accessible label
(aria-label or title) for the button to reflect "Settings".

Comment on lines +37 to +47
<Button
variant="primary"
@click="
() => {
close()
}
"
>
<template #icon>
<i class="icon-[lucide--scroll]" />
</template>
</IconTextButton>
<i class="icon-[lucide--scroll]" />
<span>{{ $t('g.profile') }}</span>
</Button>
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

Fix icon mismatch for profile button.

The button uses a scroll icon (icon-[lucide--scroll]) for a profile action. This is semantically incorrect and may confuse users.

🔎 Suggested fix
             <Button
               variant="primary"
               @click="
                 () => {
                   close()
                 }
               "
             >
-              <i class="icon-[lucide--scroll]" />
+              <i class="icon-[lucide--user]" />
               <span>{{ $t('g.profile') }}</span>
             </Button>
📝 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
<Button
variant="primary"
@click="
() => {
close()
}
"
>
<template #icon>
<i class="icon-[lucide--scroll]" />
</template>
</IconTextButton>
<i class="icon-[lucide--scroll]" />
<span>{{ $t('g.profile') }}</span>
</Button>
<Button
variant="primary"
@click="
() => {
close()
}
"
>
<i class="icon-[lucide--user]" />
<span>{{ $t('g.profile') }}</span>
</Button>
🤖 Prompt for AI Agents
In src/components/widget/SampleModelSelector.vue around lines 37 to 47, the
profile button incorrectly uses the scroll icon class "icon-[lucide--scroll]";
replace that class with an appropriate profile/user icon class (e.g.,
"icon-[lucide--user]" or "icon-[lucide--user-circle]") so the icon matches the
action, and ensure any related styling or accessibility text remains correct
after the change.

@DrJKL DrJKL force-pushed the drjkl/button-buttonest branch from d065f50 to 109e3b1 Compare December 18, 2025 23:01
@DrJKL DrJKL merged commit 2c26fbb into main Dec 19, 2025
26 of 27 checks passed
@DrJKL DrJKL deleted the drjkl/button-buttonest branch December 19, 2025 00:09
@luke-mino-altherr luke-mino-altherr added needs-backport Fix/change that needs to be cherry-picked to the current feature freeze branch cloud/1.35 Backport PRs for cloud 1.35 labels Dec 22, 2025
@github-actions
Copy link

⚠️ Backport to cloud/1.35 failed

Reason: Merge conflicts detected during cherry-pick of 2c26fbb

📄 Conflicting files
src/components/custom/widget/WorkflowTemplateSelectorDialog.vue
src/components/dialog/content/MissingNodesFooter.vue
src/components/queue/QueueOverlayExpanded.vue
src/components/queue/QueueOverlayHeader.vue
src/components/queue/job/JobDetailsPopover.vue
src/components/queue/job/JobFiltersBar.vue
src/components/sidebar/tabs/AssetsSidebarTab.vue
src/components/ui/button/Button.stories.ts
src/components/widget/SampleModelSelector.vue
src/components/widget/layout/BaseModalLayout.stories.ts
src/platform/assets/components/UploadModelFooter.vue
src/types/buttonTypes.ts
🤖 Prompt for AI Agents
Backport PR #7603 (https://github.com/Comfy-Org/ComfyUI_frontend/pull/7603) to cloud/1.35.
Cherry-pick merge commit 2c26fbb550838c8bc696391ed963d8633269c0bd onto new branch
backport-7603-to-cloud-1.35 from origin/cloud/1.35.
Resolve conflicts in: src/components/custom/widget/WorkflowTemplateSelectorDialog.vue src/components/dialog/content/MissingNodesFooter.vue src/components/queue/QueueOverlayExpanded.vue src/components/queue/QueueOverlayHeader.vue src/components/queue/job/JobDetailsPopover.vue src/components/queue/job/JobFiltersBar.vue src/components/sidebar/tabs/AssetsSidebarTab.vue src/components/ui/button/Button.stories.ts src/components/widget/SampleModelSelector.vue src/components/widget/layout/BaseModalLayout.stories.ts src/platform/assets/components/UploadModelFooter.vue src/types/buttonTypes.ts .
For test snapshots (browser_tests/**/*-snapshots/), accept PR version if
changed in original PR, else keep target. For package.json versions, keep
target branch. For pnpm-lock.yaml, regenerate with pnpm install.
Ask user for non-obvious conflicts.
Create PR titled "[backport cloud/1.35] <original title>" with label "backport".
See .github/workflows/pr-backport.yaml for workflow details.

cc @DrJKL

1 similar comment
@github-actions
Copy link

⚠️ Backport to cloud/1.35 failed

Reason: Merge conflicts detected during cherry-pick of 2c26fbb

📄 Conflicting files
src/components/custom/widget/WorkflowTemplateSelectorDialog.vue
src/components/dialog/content/MissingNodesFooter.vue
src/components/queue/QueueOverlayExpanded.vue
src/components/queue/QueueOverlayHeader.vue
src/components/queue/job/JobDetailsPopover.vue
src/components/queue/job/JobFiltersBar.vue
src/components/sidebar/tabs/AssetsSidebarTab.vue
src/components/ui/button/Button.stories.ts
src/components/widget/SampleModelSelector.vue
src/components/widget/layout/BaseModalLayout.stories.ts
src/platform/assets/components/UploadModelFooter.vue
src/types/buttonTypes.ts
🤖 Prompt for AI Agents
Backport PR #7603 (https://github.com/Comfy-Org/ComfyUI_frontend/pull/7603) to cloud/1.35.
Cherry-pick merge commit 2c26fbb550838c8bc696391ed963d8633269c0bd onto new branch
backport-7603-to-cloud-1.35 from origin/cloud/1.35.
Resolve conflicts in: src/components/custom/widget/WorkflowTemplateSelectorDialog.vue src/components/dialog/content/MissingNodesFooter.vue src/components/queue/QueueOverlayExpanded.vue src/components/queue/QueueOverlayHeader.vue src/components/queue/job/JobDetailsPopover.vue src/components/queue/job/JobFiltersBar.vue src/components/sidebar/tabs/AssetsSidebarTab.vue src/components/ui/button/Button.stories.ts src/components/widget/SampleModelSelector.vue src/components/widget/layout/BaseModalLayout.stories.ts src/platform/assets/components/UploadModelFooter.vue src/types/buttonTypes.ts .
For test snapshots (browser_tests/**/*-snapshots/), accept PR version if
changed in original PR, else keep target. For package.json versions, keep
target branch. For pnpm-lock.yaml, regenerate with pnpm install.
Ask user for non-obvious conflicts.
Create PR titled "[backport cloud/1.35] <original title>" with label "backport".
See .github/workflows/pr-backport.yaml for workflow details.

cc @DrJKL

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

Labels

cloud/1.35 Backport PRs for cloud 1.35 needs-backport Fix/change that needs to be cherry-picked to the current feature freeze branch size:XXL This PR changes 1000+ lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants