Skip to content

Conversation

@DrJKL
Copy link
Contributor

@DrJKL DrJKL commented Dec 16, 2025

Summary

Setup the variants and migrate existing uses of TextButton/TextIconButton/IconButton to a single Button component.

Still a work in progress.

Changes

  • What: Add a new Button
  • What: Migrate old buttons
  • What: Delete old buttons
  • Dependencies: CVA, upgrade Storybook

Review Focus

Screenshots (if applicable)

┆Issue is synchronized with this Notion page by Unito

@coderabbitai
Copy link
Contributor

coderabbitai bot commented Dec 16, 2025

📝 Walkthrough

Walkthrough

Replaces a legacy slot-less TextButton with a new slot-based Button component across the codebase, adds a CVA-based button variants module and Storybook stories for Button, and introduces the cva dependency/catalog entry.

Changes

Cohort / File(s) Summary
Dependency Management
package.json, pnpm-workspace.yaml
Added cva to root package.json dependencies and added catalog entry cva: 1.0.0-beta.4 to pnpm-workspace.yaml.
Removed Legacy TextButton
Deleted:
src/components/button/TextButton.vue, src/components/button/TextButton.stories.ts
Removed the legacy TextButton component and its Storybook stories.
New Button Component & Variants
src/components/ui/button/Button.vue, src/components/ui/button/button.variants.ts, src/components/ui/button/Button.stories.ts
Added a slot-based Button.vue (wraps a Primitive), CVA-driven button.variants.ts exporting buttonVariants, ButtonVariants, FOR_STORIES, and Storybook stories SingleButton and AllVariants.
Dialog & Footer Migrations
src/components/dialog/confirm/ConfirmFooter.vue, src/components/dialog/content/MissingNodesFooter.vue
Replaced TextButton usages with Button (moved label props into slot content, switched to variant/size props, updated imports and templates).
Queue Area Migrations
src/components/queue/QueueOverlayActive.vue, src/components/queue/dialogs/QueueClearHistoryDialog.vue, src/components/queue/job/JobFiltersBar.vue, src/components/queue/job/QueueJobItem.vue
Swapped TextButtonButton, adapted templates to slot-based labels and variant/size props, updated imports and event/emit usage where applicable.
Input & Sidebar Adjustments
src/components/input/MultiSelect.vue, src/components/sidebar/tabs/AssetsSidebarTab.vue
Replaced TextButton with Button; adjusted header/option/footer markup to use slot content and variant/size; added minor utility imports (e.g., cn, composition API useI18n).
Asset Upload Modals
src/platform/assets/components/UploadModelFooter.vue, src/platform/assets/components/UploadModelUpgradeModalFooter.vue
Replaced TextButton with Button for footer actions, moved labels into slots, adjusted variants/sizes; UploadModelUpgradeModalFooter.vue also adds a subscribe emit.
Build Config
vite.config.mts
Added IS_STORYBOOK flag and expanded DISABLE_VUE_PLUGINS condition to disable Vue plugins during Storybook runs.

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-button

📜 Recent review details

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between d29b5ab and 2b2e32a.

⛔ Files ignored due to path filters (1)
  • pnpm-lock.yaml is excluded by !**/pnpm-lock.yaml
📒 Files selected for processing (18)
  • package.json (1 hunks)
  • pnpm-workspace.yaml (1 hunks)
  • src/components/button/TextButton.stories.ts (0 hunks)
  • src/components/button/TextButton.vue (0 hunks)
  • src/components/dialog/confirm/ConfirmFooter.vue (1 hunks)
  • src/components/dialog/content/MissingNodesFooter.vue (2 hunks)
  • src/components/input/MultiSelect.vue (5 hunks)
  • src/components/queue/QueueOverlayActive.vue (2 hunks)
  • src/components/queue/dialogs/QueueClearHistoryDialog.vue (2 hunks)
  • src/components/queue/job/JobFiltersBar.vue (2 hunks)
  • src/components/queue/job/QueueJobItem.vue (2 hunks)
  • src/components/sidebar/tabs/AssetsSidebarTab.vue (3 hunks)
  • src/components/ui/button/Button.stories.ts (1 hunks)
  • src/components/ui/button/Button.vue (1 hunks)
  • src/components/ui/button/button.variants.ts (1 hunks)
  • src/platform/assets/components/UploadModelFooter.vue (3 hunks)
  • src/platform/assets/components/UploadModelUpgradeModalFooter.vue (1 hunks)
  • vite.config.mts (2 hunks)
💤 Files with no reviewable changes (2)
  • src/components/button/TextButton.stories.ts
  • src/components/button/TextButton.vue
🧰 Additional context used
📓 Path-based instructions (13)
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/dialogs/QueueClearHistoryDialog.vue
  • src/components/ui/button/Button.vue
  • src/components/dialog/content/MissingNodesFooter.vue
  • src/platform/assets/components/UploadModelUpgradeModalFooter.vue
  • src/components/queue/job/QueueJobItem.vue
  • src/components/queue/QueueOverlayActive.vue
  • src/components/input/MultiSelect.vue
  • src/components/sidebar/tabs/AssetsSidebarTab.vue
  • src/components/queue/job/JobFiltersBar.vue
  • src/platform/assets/components/UploadModelFooter.vue
  • src/components/dialog/confirm/ConfirmFooter.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/dialogs/QueueClearHistoryDialog.vue
  • src/components/ui/button/Button.vue
  • src/components/ui/button/Button.stories.ts
  • src/components/dialog/content/MissingNodesFooter.vue
  • src/platform/assets/components/UploadModelUpgradeModalFooter.vue
  • src/components/queue/job/QueueJobItem.vue
  • src/components/queue/QueueOverlayActive.vue
  • src/components/input/MultiSelect.vue
  • src/components/sidebar/tabs/AssetsSidebarTab.vue
  • src/components/queue/job/JobFiltersBar.vue
  • src/platform/assets/components/UploadModelFooter.vue
  • src/components/ui/button/button.variants.ts
  • src/components/dialog/confirm/ConfirmFooter.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/dialogs/QueueClearHistoryDialog.vue
  • src/components/ui/button/Button.vue
  • src/components/ui/button/Button.stories.ts
  • src/components/dialog/content/MissingNodesFooter.vue
  • src/platform/assets/components/UploadModelUpgradeModalFooter.vue
  • src/components/queue/job/QueueJobItem.vue
  • src/components/queue/QueueOverlayActive.vue
  • src/components/input/MultiSelect.vue
  • src/components/sidebar/tabs/AssetsSidebarTab.vue
  • src/components/queue/job/JobFiltersBar.vue
  • src/platform/assets/components/UploadModelFooter.vue
  • src/components/ui/button/button.variants.ts
  • src/components/dialog/confirm/ConfirmFooter.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/dialogs/QueueClearHistoryDialog.vue
  • src/components/ui/button/Button.vue
  • src/components/ui/button/Button.stories.ts
  • src/components/dialog/content/MissingNodesFooter.vue
  • src/platform/assets/components/UploadModelUpgradeModalFooter.vue
  • src/components/queue/job/QueueJobItem.vue
  • src/components/queue/QueueOverlayActive.vue
  • src/components/input/MultiSelect.vue
  • src/components/sidebar/tabs/AssetsSidebarTab.vue
  • src/components/queue/job/JobFiltersBar.vue
  • src/platform/assets/components/UploadModelFooter.vue
  • src/components/ui/button/button.variants.ts
  • src/components/dialog/confirm/ConfirmFooter.vue
src/**/*.{vue,ts,tsx}

📄 CodeRabbit inference engine (src/CLAUDE.md)

Follow Vue 3 composition API style guide

Files:

  • src/components/queue/dialogs/QueueClearHistoryDialog.vue
  • src/components/ui/button/Button.vue
  • src/components/ui/button/Button.stories.ts
  • src/components/dialog/content/MissingNodesFooter.vue
  • src/platform/assets/components/UploadModelUpgradeModalFooter.vue
  • src/components/queue/job/QueueJobItem.vue
  • src/components/queue/QueueOverlayActive.vue
  • src/components/input/MultiSelect.vue
  • src/components/sidebar/tabs/AssetsSidebarTab.vue
  • src/components/queue/job/JobFiltersBar.vue
  • src/platform/assets/components/UploadModelFooter.vue
  • src/components/ui/button/button.variants.ts
  • src/components/dialog/confirm/ConfirmFooter.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/dialogs/QueueClearHistoryDialog.vue
  • src/components/ui/button/Button.vue
  • src/components/ui/button/Button.stories.ts
  • src/components/dialog/content/MissingNodesFooter.vue
  • src/platform/assets/components/UploadModelUpgradeModalFooter.vue
  • src/components/queue/job/QueueJobItem.vue
  • src/components/queue/QueueOverlayActive.vue
  • src/components/input/MultiSelect.vue
  • src/components/sidebar/tabs/AssetsSidebarTab.vue
  • src/components/queue/job/JobFiltersBar.vue
  • src/platform/assets/components/UploadModelFooter.vue
  • src/components/ui/button/button.variants.ts
  • src/components/dialog/confirm/ConfirmFooter.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/dialogs/QueueClearHistoryDialog.vue
  • src/components/ui/button/Button.vue
  • src/components/dialog/content/MissingNodesFooter.vue
  • src/components/queue/job/QueueJobItem.vue
  • src/components/queue/QueueOverlayActive.vue
  • src/components/input/MultiSelect.vue
  • src/components/sidebar/tabs/AssetsSidebarTab.vue
  • src/components/queue/job/JobFiltersBar.vue
  • src/components/dialog/confirm/ConfirmFooter.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/dialogs/QueueClearHistoryDialog.vue
  • src/components/ui/button/Button.vue
  • src/components/dialog/content/MissingNodesFooter.vue
  • src/components/queue/job/QueueJobItem.vue
  • src/components/queue/QueueOverlayActive.vue
  • src/components/input/MultiSelect.vue
  • src/components/sidebar/tabs/AssetsSidebarTab.vue
  • src/components/queue/job/JobFiltersBar.vue
  • src/components/dialog/confirm/ConfirmFooter.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/dialogs/QueueClearHistoryDialog.vue
  • src/components/ui/button/Button.vue
  • src/components/ui/button/Button.stories.ts
  • src/components/dialog/content/MissingNodesFooter.vue
  • src/components/queue/job/QueueJobItem.vue
  • src/components/queue/QueueOverlayActive.vue
  • src/components/input/MultiSelect.vue
  • src/components/sidebar/tabs/AssetsSidebarTab.vue
  • src/components/queue/job/JobFiltersBar.vue
  • src/components/ui/button/button.variants.ts
  • src/components/dialog/confirm/ConfirmFooter.vue
src/**/*.{js,ts,tsx,vue}

📄 CodeRabbit inference engine (AGENTS.md)

Use TypeScript exclusively - no new JavaScript files

Files:

  • src/components/queue/dialogs/QueueClearHistoryDialog.vue
  • src/components/ui/button/Button.vue
  • src/components/ui/button/Button.stories.ts
  • src/components/dialog/content/MissingNodesFooter.vue
  • src/platform/assets/components/UploadModelUpgradeModalFooter.vue
  • src/components/queue/job/QueueJobItem.vue
  • src/components/queue/QueueOverlayActive.vue
  • src/components/input/MultiSelect.vue
  • src/components/sidebar/tabs/AssetsSidebarTab.vue
  • src/components/queue/job/JobFiltersBar.vue
  • src/platform/assets/components/UploadModelFooter.vue
  • src/components/ui/button/button.variants.ts
  • src/components/dialog/confirm/ConfirmFooter.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/dialogs/QueueClearHistoryDialog.vue
  • src/components/ui/button/Button.vue
  • src/components/ui/button/Button.stories.ts
  • src/components/dialog/content/MissingNodesFooter.vue
  • src/platform/assets/components/UploadModelUpgradeModalFooter.vue
  • src/components/queue/job/QueueJobItem.vue
  • src/components/queue/QueueOverlayActive.vue
  • src/components/input/MultiSelect.vue
  • src/components/sidebar/tabs/AssetsSidebarTab.vue
  • src/components/queue/job/JobFiltersBar.vue
  • src/platform/assets/components/UploadModelFooter.vue
  • src/components/ui/button/button.variants.ts
  • src/components/dialog/confirm/ConfirmFooter.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: Extract complex type definitions that are inlined in multiple related places - name them for reuse
Minimize the surface area (exported values) of each module and composable
Favor pure functions, especially testable ones

Files:

  • src/components/ui/button/Button.stories.ts
  • src/components/ui/button/button.variants.ts
src/**/*.{ts,tsx}

📄 CodeRabbit inference engine (AGENTS.md)

Do not use function expressions - use function declarations instead when possible

Files:

  • src/components/ui/button/Button.stories.ts
  • src/components/ui/button/button.variants.ts
🧠 Learnings (65)
📓 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: 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
📚 Learning: 2025-12-16T22:21:59.236Z
Learnt from: DrJKL
Repo: Comfy-Org/ComfyUI_frontend PR: 7537
File: pnpm-workspace.yaml:50-50
Timestamp: 2025-12-16T22:21:59.236Z
Learning: In the Comfy-Org/ComfyUI_frontend repository, the project uses cva1.0.0-beta.4 (beta version) by deliberate choice. Do not suggest replacing it with class-variance-authority or flagging it as a beta dependency concern.

Applied to files:

  • pnpm-workspace.yaml
  • package.json
📚 Learning: 2025-12-09T03:50:03.127Z
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.

Applied to files:

  • pnpm-workspace.yaml
  • src/components/ui/button/Button.stories.ts
📚 Learning: 2025-12-11T12:25:24.164Z
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:24.164Z
Learning: The project has CI automation that handles code formatting (pnpm format) automatically, so manual formatting suggestions should not be provided in code reviews for the Comfy-Org/ComfyUI_frontend repository.

Applied to files:

  • pnpm-workspace.yaml
📚 Learning: 2025-12-17T01:01:03.597Z
Learnt from: CR
Repo: Comfy-Org/ComfyUI_frontend PR: 0
File: AGENTS.md:0-0
Timestamp: 2025-12-17T01:01:03.597Z
Learning: Applies to src/**/*.vue : Avoid new usage of PrimeVue components

Applied to files:

  • pnpm-workspace.yaml
  • src/components/queue/dialogs/QueueClearHistoryDialog.vue
  • src/components/input/MultiSelect.vue
  • src/components/sidebar/tabs/AssetsSidebarTab.vue
  • src/platform/assets/components/UploadModelFooter.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:

  • pnpm-workspace.yaml
📚 Learning: 2025-11-24T19:47:02.860Z
Learnt from: CR
Repo: Comfy-Org/ComfyUI_frontend PR: 0
File: .github/copilot-instructions.md:0-0
Timestamp: 2025-11-24T19:47:02.860Z
Learning: Applies to src/**/*.vue : Use the Vue 3 Composition API instead of the Options API when writing Vue components (exception: when overriding or extending PrimeVue components for compatibility)

Applied to files:

  • pnpm-workspace.yaml
  • src/components/ui/button/Button.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:

  • pnpm-workspace.yaml
  • src/components/ui/button/Button.vue
  • src/components/ui/button/Button.stories.ts
📚 Learning: 2025-12-16T17:30:24.744Z
Learnt from: DrJKL
Repo: Comfy-Org/ComfyUI_frontend PR: 7559
File: .storybook/preview.ts:61-61
Timestamp: 2025-12-16T17:30:24.744Z
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.

Applied to files:

  • pnpm-workspace.yaml
  • src/components/queue/dialogs/QueueClearHistoryDialog.vue
  • src/components/ui/button/Button.stories.ts
  • src/components/ui/button/button.variants.ts
  • src/components/dialog/confirm/ConfirmFooter.vue
📚 Learning: 2025-12-09T21:40:19.792Z
Learnt from: benceruleanlu
Repo: Comfy-Org/ComfyUI_frontend PR: 7297
File: src/components/actionbar/ComfyActionbar.vue:33-43
Timestamp: 2025-12-09T21:40:19.792Z
Learning: In the Comfy-Org/ComfyUI_frontend repository, inline Tailwind CSS class strings, even when long, are acceptable and preferred over extracting them to computed properties when the classes are static. This is a common Tailwind pattern and doesn't need to be flagged as a readability issue.

Applied to files:

  • pnpm-workspace.yaml
  • src/components/ui/button/Button.stories.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 Dropdown component with Select

Applied to files:

  • pnpm-workspace.yaml
  • src/components/input/MultiSelect.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/dialogs/QueueClearHistoryDialog.vue
  • src/components/dialog/content/MissingNodesFooter.vue
  • src/platform/assets/components/UploadModelUpgradeModalFooter.vue
  • src/components/queue/job/QueueJobItem.vue
  • src/components/queue/QueueOverlayActive.vue
  • src/components/input/MultiSelect.vue
  • src/components/sidebar/tabs/AssetsSidebarTab.vue
  • src/components/queue/job/JobFiltersBar.vue
  • src/platform/assets/components/UploadModelFooter.vue
  • src/components/dialog/confirm/ConfirmFooter.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/dialogs/QueueClearHistoryDialog.vue
  • src/components/ui/button/Button.vue
  • src/components/dialog/content/MissingNodesFooter.vue
  • src/platform/assets/components/UploadModelUpgradeModalFooter.vue
  • src/components/queue/job/QueueJobItem.vue
  • src/components/queue/QueueOverlayActive.vue
  • src/components/input/MultiSelect.vue
  • src/components/sidebar/tabs/AssetsSidebarTab.vue
  • src/components/queue/job/JobFiltersBar.vue
  • src/platform/assets/components/UploadModelFooter.vue
  • src/components/dialog/confirm/ConfirmFooter.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/dialogs/QueueClearHistoryDialog.vue
  • src/components/ui/button/Button.vue
  • src/components/dialog/content/MissingNodesFooter.vue
  • src/platform/assets/components/UploadModelUpgradeModalFooter.vue
  • src/components/queue/job/QueueJobItem.vue
  • src/components/queue/QueueOverlayActive.vue
  • src/components/input/MultiSelect.vue
  • src/components/sidebar/tabs/AssetsSidebarTab.vue
  • src/components/queue/job/JobFiltersBar.vue
  • src/platform/assets/components/UploadModelFooter.vue
  • src/components/dialog/confirm/ConfirmFooter.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/components/queue/dialogs/QueueClearHistoryDialog.vue
  • src/components/input/MultiSelect.vue
  • src/components/sidebar/tabs/AssetsSidebarTab.vue
  • src/platform/assets/components/UploadModelFooter.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/dialogs/QueueClearHistoryDialog.vue
  • src/components/queue/job/QueueJobItem.vue
  • src/components/queue/QueueOverlayActive.vue
  • src/components/input/MultiSelect.vue
  • src/components/sidebar/tabs/AssetsSidebarTab.vue
  • src/components/queue/job/JobFiltersBar.vue
  • src/platform/assets/components/UploadModelFooter.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/queue/dialogs/QueueClearHistoryDialog.vue
  • src/components/dialog/content/MissingNodesFooter.vue
  • src/platform/assets/components/UploadModelFooter.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/queue/dialogs/QueueClearHistoryDialog.vue
  • src/components/dialog/content/MissingNodesFooter.vue
  • src/platform/assets/components/UploadModelUpgradeModalFooter.vue
  • src/components/queue/job/QueueJobItem.vue
  • src/components/queue/QueueOverlayActive.vue
  • src/components/input/MultiSelect.vue
  • src/components/sidebar/tabs/AssetsSidebarTab.vue
  • src/platform/assets/components/UploadModelFooter.vue
  • src/components/dialog/confirm/ConfirmFooter.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/dialogs/QueueClearHistoryDialog.vue
  • src/components/ui/button/Button.vue
  • src/components/dialog/content/MissingNodesFooter.vue
  • src/platform/assets/components/UploadModelUpgradeModalFooter.vue
  • src/components/queue/job/QueueJobItem.vue
  • src/components/queue/QueueOverlayActive.vue
  • src/components/input/MultiSelect.vue
  • src/components/sidebar/tabs/AssetsSidebarTab.vue
  • src/components/queue/job/JobFiltersBar.vue
  • src/platform/assets/components/UploadModelFooter.vue
  • src/components/dialog/confirm/ConfirmFooter.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/dialogs/QueueClearHistoryDialog.vue
  • src/components/dialog/content/MissingNodesFooter.vue
  • src/components/queue/job/QueueJobItem.vue
  • src/components/queue/QueueOverlayActive.vue
  • src/components/input/MultiSelect.vue
  • src/components/sidebar/tabs/AssetsSidebarTab.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/dialogs/QueueClearHistoryDialog.vue
  • src/components/dialog/content/MissingNodesFooter.vue
  • src/components/queue/job/QueueJobItem.vue
  • src/components/queue/QueueOverlayActive.vue
  • src/components/sidebar/tabs/AssetsSidebarTab.vue
📚 Learning: 2025-12-17T01:01:03.597Z
Learnt from: CR
Repo: Comfy-Org/ComfyUI_frontend PR: 0
File: AGENTS.md:0-0
Timestamp: 2025-12-17T01:01:03.597Z
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/dialogs/QueueClearHistoryDialog.vue
  • src/components/dialog/content/MissingNodesFooter.vue
  • src/components/queue/job/QueueJobItem.vue
  • src/components/queue/QueueOverlayActive.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/dialogs/QueueClearHistoryDialog.vue
  • src/components/dialog/content/MissingNodesFooter.vue
  • src/components/queue/job/QueueJobItem.vue
  • src/components/queue/QueueOverlayActive.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/queue/dialogs/QueueClearHistoryDialog.vue
  • src/components/queue/job/QueueJobItem.vue
  • src/components/queue/QueueOverlayActive.vue
  • src/components/input/MultiSelect.vue
  • src/components/queue/job/JobFiltersBar.vue
📚 Learning: 2025-12-17T01:01:03.597Z
Learnt from: CR
Repo: Comfy-Org/ComfyUI_frontend PR: 0
File: AGENTS.md:0-0
Timestamp: 2025-12-17T01:01:03.597Z
Learning: Applies to src/**/*.{vue,ts} : Leverage VueUse functions for performance-enhancing styles

Applied to files:

  • src/components/queue/dialogs/QueueClearHistoryDialog.vue
  • src/components/queue/job/QueueJobItem.vue
  • src/components/queue/QueueOverlayActive.vue
  • src/components/input/MultiSelect.vue
  • src/components/sidebar/tabs/AssetsSidebarTab.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/dialogs/QueueClearHistoryDialog.vue
  • src/components/ui/button/Button.vue
  • src/components/dialog/content/MissingNodesFooter.vue
  • src/platform/assets/components/UploadModelUpgradeModalFooter.vue
  • src/components/queue/job/QueueJobItem.vue
  • src/components/queue/QueueOverlayActive.vue
  • src/components/input/MultiSelect.vue
  • src/components/sidebar/tabs/AssetsSidebarTab.vue
  • src/components/queue/job/JobFiltersBar.vue
  • src/platform/assets/components/UploadModelFooter.vue
  • src/components/dialog/confirm/ConfirmFooter.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/dialogs/QueueClearHistoryDialog.vue
  • src/components/ui/button/Button.vue
  • src/components/ui/button/Button.stories.ts
  • src/components/dialog/content/MissingNodesFooter.vue
  • src/platform/assets/components/UploadModelUpgradeModalFooter.vue
  • src/components/queue/job/QueueJobItem.vue
  • src/components/queue/QueueOverlayActive.vue
  • src/components/input/MultiSelect.vue
  • src/components/sidebar/tabs/AssetsSidebarTab.vue
  • src/components/queue/job/JobFiltersBar.vue
  • src/platform/assets/components/UploadModelFooter.vue
  • src/components/ui/button/button.variants.ts
  • src/components/dialog/confirm/ConfirmFooter.vue
📚 Learning: 2025-12-17T01:01:03.597Z
Learnt from: CR
Repo: Comfy-Org/ComfyUI_frontend PR: 0
File: AGENTS.md:0-0
Timestamp: 2025-12-17T01:01:03.597Z
Learning: Applies to src/**/*.vue : Use Vue 3.5+ TypeScript style default prop declaration with reactive destructuring - prefer `useModel` to prop/emit pairs, do not use `withDefaults`

Applied to files:

  • src/components/ui/button/Button.vue
📚 Learning: 2025-12-17T01:01:03.597Z
Learnt from: CR
Repo: Comfy-Org/ComfyUI_frontend PR: 0
File: AGENTS.md:0-0
Timestamp: 2025-12-17T01:01:03.597Z
Learning: Applies to src/**/*.vue : Use `<script setup lang="ts">` for component logic

Applied to files:

  • src/components/ui/button/Button.vue
  • src/components/input/MultiSelect.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 : Destructure props using Vue 3.5 style in Vue components

Applied to files:

  • src/components/ui/button/Button.vue
📚 Learning: 2025-12-04T21:43:49.363Z
Learnt from: DrJKL
Repo: Comfy-Org/ComfyUI_frontend PR: 7137
File: src/components/rightSidePanel/parameters/TabParameters.vue:10-0
Timestamp: 2025-12-04T21:43:49.363Z
Learning: Vue 3.5+ supports reactive props destructure in <script setup>. Destructuring props directly (e.g., `const { nodes } = defineProps<{ nodes: LGraphNode[] }>()`) maintains reactivity through compiler transformation. This is the recommended modern approach and does not require using `props.x` or `toRef`/`toRefs`.

Applied to files:

  • src/components/ui/button/Button.vue
📚 Learning: 2025-11-24T19:47:02.860Z
Learnt from: CR
Repo: Comfy-Org/ComfyUI_frontend PR: 0
File: .github/copilot-instructions.md:0-0
Timestamp: 2025-11-24T19:47:02.860Z
Learning: Applies to src/**/*.vue : Use vue 3.5 style of default prop declaration

Applied to files:

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

Applied to files:

  • src/components/ui/button/Button.vue
📚 Learning: 2025-12-17T01:01:03.597Z
Learnt from: CR
Repo: Comfy-Org/ComfyUI_frontend PR: 0
File: AGENTS.md:0-0
Timestamp: 2025-12-17T01:01:03.597Z
Learning: Applies to src/**/*.vue : Implement proper props and emits definitions in Vue components

Applied to files:

  • src/components/ui/button/Button.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/ui/button/Button.vue
  • src/platform/assets/components/UploadModelUpgradeModalFooter.vue
📚 Learning: 2025-12-05T08:52:50.787Z
Learnt from: DrJKL
Repo: Comfy-Org/ComfyUI_frontend PR: 7137
File: src/components/rightSidePanel/parameters/SectionWidgets.vue:41-49
Timestamp: 2025-12-05T08:52:50.787Z
Learning: In Vue 3.4+ SFCs with a build step, kebab-case prop shorthand (e.g., `:is-empty`) automatically resolves to the corresponding camelCase variable in scope (e.g., `isEmpty`). This is valid syntax combining same-name shorthand with automatic kebab-case-to-camelCase conversion and should not be flagged as an error.

Applied to files:

  • src/components/ui/button/Button.vue
📚 Learning: 2025-12-17T01:01:03.597Z
Learnt from: CR
Repo: Comfy-Org/ComfyUI_frontend PR: 0
File: AGENTS.md:0-0
Timestamp: 2025-12-17T01:01:03.597Z
Learning: Applies to src/**/*.{vue,ts} : 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

Applied to files:

  • src/components/ui/button/Button.vue
  • src/platform/assets/components/UploadModelFooter.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 setup() function in Vue 3 Composition API

Applied to files:

  • src/components/ui/button/Button.vue
📚 Learning: 2025-11-24T19:47:45.616Z
Learnt from: CR
Repo: Comfy-Org/ComfyUI_frontend PR: 0
File: src/components/CLAUDE.md:0-0
Timestamp: 2025-11-24T19:47:45.616Z
Learning: Applies to src/components/**/*.vue : Prefer emit/event-name for state changes over other communication patterns

Applied to files:

  • src/components/ui/button/Button.vue
  • src/platform/assets/components/UploadModelUpgradeModalFooter.vue
  • src/components/queue/job/QueueJobItem.vue
📚 Learning: 2025-11-24T19:47:02.860Z
Learnt from: CR
Repo: Comfy-Org/ComfyUI_frontend PR: 0
File: .github/copilot-instructions.md:0-0
Timestamp: 2025-11-24T19:47:02.860Z
Learning: Applies to src/**/*.vue : Use setup() function for component logic

Applied to files:

  • src/components/ui/button/Button.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 defineExpose only for imperative operations (such as form.validate(), modal.open())

Applied to files:

  • src/components/ui/button/Button.vue
📚 Learning: 2025-12-17T01:01:03.597Z
Learnt from: CR
Repo: Comfy-Org/ComfyUI_frontend PR: 0
File: AGENTS.md:0-0
Timestamp: 2025-12-17T01:01:03.597Z
Learning: Applies to src/**/*.vue : Use Tailwind 4 utility classes for styling - avoid `<style>` blocks

Applied to files:

  • src/components/ui/button/Button.stories.ts
📚 Learning: 2025-12-01T23:42:30.894Z
Learnt from: DrJKL
Repo: Comfy-Org/ComfyUI_frontend PR: 7084
File: src/renderer/extensions/vueNodes/components/SlotConnectionDot.vue:23-26
Timestamp: 2025-12-01T23:42:30.894Z
Learning: In the ComfyUI frontend codebase, Tailwind CSS is configured with Preflight enabled (default), which automatically provides `content: ''` for pseudo-elements when using `after:` or `before:` variants - no need to explicitly add `after:content-['']`.

Applied to files:

  • src/components/ui/button/Button.stories.ts
📚 Learning: 2025-12-17T01:01:03.597Z
Learnt from: CR
Repo: Comfy-Org/ComfyUI_frontend PR: 0
File: AGENTS.md:0-0
Timestamp: 2025-12-17T01:01:03.597Z
Learning: Applies to src/**/*.vue : Use `cn()` utility from `@/utils/tailwindUtil` to merge Tailwind class names - never use `:class="[]"` syntax

Applied to files:

  • src/components/ui/button/Button.stories.ts
📚 Learning: 2025-12-17T01:01:03.597Z
Learnt from: CR
Repo: Comfy-Org/ComfyUI_frontend PR: 0
File: AGENTS.md:0-0
Timestamp: 2025-12-17T01:01:03.597Z
Learning: Applies to src/**/*.vue : Never use the `dark:` Tailwind variant - use semantic values from `style.css` theme instead (e.g., `bg-node-component-surface`)

Applied to files:

  • src/components/ui/button/Button.stories.ts
  • src/components/dialog/confirm/ConfirmFooter.vue
📚 Learning: 2025-12-17T01:01:03.597Z
Learnt from: CR
Repo: Comfy-Org/ComfyUI_frontend PR: 0
File: AGENTS.md:0-0
Timestamp: 2025-12-17T01:01:03.597Z
Learning: Applies to tests-ui/**/*.test.ts : Do not write tests dependent on non-behavioral features like utility classes or styles

Applied to files:

  • src/components/ui/button/Button.stories.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/components/ui/button/Button.stories.ts
  • src/components/ui/button/button.variants.ts
📚 Learning: 2025-12-17T01:01:03.597Z
Learnt from: CR
Repo: Comfy-Org/ComfyUI_frontend PR: 0
File: AGENTS.md:0-0
Timestamp: 2025-12-17T01:01:03.597Z
Learning: Applies to src/**/*.ts : Favor pure functions, especially testable ones

Applied to files:

  • src/components/ui/button/Button.stories.ts
📚 Learning: 2025-12-17T01:01:03.597Z
Learnt from: CR
Repo: Comfy-Org/ComfyUI_frontend PR: 0
File: AGENTS.md:0-0
Timestamp: 2025-12-17T01:01:03.597Z
Learning: Applies to src/**/*.{ts,tsx} : Do not use function expressions - use function declarations instead when possible

Applied to files:

  • src/components/ui/button/Button.stories.ts
📚 Learning: 2025-12-17T01:01:03.597Z
Learnt from: CR
Repo: Comfy-Org/ComfyUI_frontend PR: 0
File: AGENTS.md:0-0
Timestamp: 2025-12-17T01:01:03.597Z
Learning: Applies to src/**/*.{ts,tsx,vue} : Avoid mutable state - prefer immutability and assignment at point of declaration

Applied to files:

  • src/components/ui/button/Button.stories.ts
📚 Learning: 2025-12-17T01:01:03.597Z
Learnt from: CR
Repo: Comfy-Org/ComfyUI_frontend PR: 0
File: AGENTS.md:0-0
Timestamp: 2025-12-17T01:01:03.597Z
Learning: Keep functions short and functional

Applied to files:

  • src/components/ui/button/Button.stories.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 : Use Tailwind CSS for styling

Applied to files:

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

Applied to files:

  • src/components/ui/button/Button.stories.ts
  • src/components/dialog/content/MissingNodesFooter.vue
  • src/platform/assets/components/UploadModelFooter.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/components/ui/button/Button.stories.ts
  • src/components/ui/button/button.variants.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/components/ui/button/Button.stories.ts
  • src/components/ui/button/button.variants.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/queue/QueueOverlayActive.vue
  • src/components/input/MultiSelect.vue
  • src/components/sidebar/tabs/AssetsSidebarTab.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/input/MultiSelect.vue
📚 Learning: 2025-12-04T21:47:07.812Z
Learnt from: DrJKL
Repo: Comfy-Org/ComfyUI_frontend PR: 7137
File: src/components/LiteGraphCanvasSplitterOverlay.vue:43-43
Timestamp: 2025-12-04T21:47:07.812Z
Learning: In Vue SFCs with a build step (pre-compilation), kebab-case attribute names in templates are automatically converted to camelCase, so `:sidebar-panel-visible` as a shorthand binding correctly resolves to a variable named `sidebarPanelVisible`. The `.camel` modifier is only needed when using in-DOM templates without a build step.

Applied to files:

  • src/components/sidebar/tabs/AssetsSidebarTab.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/platform/assets/components/UploadModelFooter.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/platform/assets/components/UploadModelFooter.vue
📚 Learning: 2025-12-17T01:01:03.597Z
Learnt from: CR
Repo: Comfy-Org/ComfyUI_frontend PR: 0
File: AGENTS.md:0-0
Timestamp: 2025-12-17T01:01:03.597Z
Learning: Applies to src/**/*.{vue,ts} : Avoid using `ref` and `watch` together - use `computed` instead if possible

Applied to files:

  • src/platform/assets/components/UploadModelFooter.vue
📚 Learning: 2025-12-17T01:01:03.597Z
Learnt from: CR
Repo: Comfy-Org/ComfyUI_frontend PR: 0
File: AGENTS.md:0-0
Timestamp: 2025-12-17T01:01:03.597Z
Learning: Applies to src/**/*.vue : Utilize Vue 3's Teleport component when needed

Applied to files:

  • src/platform/assets/components/UploadModelFooter.vue
📚 Learning: 2025-12-16T17:41:58.455Z
Learnt from: CR
Repo: Comfy-Org/ComfyUI_frontend PR: 0
File: CLAUDE.md:0-0
Timestamp: 2025-12-16T17:41:58.455Z
Learning: Prerequisites for repository setup: Node.js >= 24, Git repository, available ports for dev server and storybook

Applied to files:

  • vite.config.mts
📚 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: Use Vite for fast development and building

Applied to files:

  • vite.config.mts
📚 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 (like `variant` and `size` in this example) remain accessible by name in the template scope. It's valid to destructure only some props for convenience while accessing others directly in expressions.

Applied to files:

  • src/components/ui/button/button.variants.ts
🧬 Code graph analysis (1)
src/components/ui/button/Button.stories.ts (3)
src/components/ui/button/button.variants.ts (1)
  • FOR_STORIES (49-49)
scripts/size-report.js (1)
  • meta (420-420)
src/components/input/SingleSelect.stories.ts (1)
  • Story (40-40)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (5)
  • GitHub Check: deploy-and-comment
  • GitHub Check: test
  • GitHub Check: setup
  • GitHub Check: lint-and-format
  • GitHub Check: collect
🔇 Additional comments (27)
package.json (1)

164-164: LGTM!

The cva dependency addition correctly supports the new Button component system. Based on learnings, the project deliberately uses cva 1.0.0-beta.4.

vite.config.mts (2)

30-30: LGTM!

The IS_STORYBOOK constant is cleanly defined and follows the existing pattern for environment detection.


55-58: LGTM!

Disabling Vue plugins during Storybook builds is a sensible optimization. DevTools aren't typically needed in Storybook context and this may improve build performance.

src/components/ui/button/button.variants.ts (4)

1-2: LGTM!

Imports are correctly structured with proper type/runtime separation following project conventions.


4-33: LGTM!

The buttonVariants definition correctly follows Tailwind 4 guidelines:

  • Uses semantic color tokens from the design system (e.g., bg-secondary-background, text-muted-foreground)
  • Avoids the dark: variant in favor of semantic values
  • Properly structures variants and sizes with sensible defaults

35-35: LGTM!

The ButtonVariants type export correctly derives from the buttonVariants configuration, providing proper type safety.


37-49: LGTM!

The FOR_STORIES export uses the as const satisfies pattern correctly to provide type-safe variant/size arrays for Storybook usage while preserving literal types.

src/components/sidebar/tabs/AssetsSidebarTab.vue (4)

115-128: LGTM!

The Button component correctly replaces TextButton with valid props (variant="secondary", size="lg"), proper class composition using cn(), and preserved functionality.


184-184: LGTM!

The useI18n import correctly supports composition API i18n usage per coding guidelines.


195-195: LGTM!

Button and cn imports are correctly added from their respective paths to support the migration.

Also applies to: 208-208


210-210: LGTM!

The t function is correctly destructured from useI18n() for composition API i18n usage, following Vue 3 best practices.

src/platform/assets/components/UploadModelUpgradeModalFooter.vue (3)

12-17: LGTM!

Both Button components use valid variants (textonly, secondary) and correctly emit the defined events with proper i18n content.


22-22: LGTM!

Button import is correctly updated to the new component path.


24-27: LGTM!

The defineEmits properly declares both close and subscribe events, following Vue 3 composition API conventions.

src/components/ui/button/Button.vue (3)

1-15: LGTM!

The script setup uses correct imports and the Props interface properly extends PrimitiveProps with type-safe variant/size props derived from ButtonVariants.


17-17: LGTM!

The partial props destructuring is correct. Per established learnings, in Vue 3.5+ with <script setup>, props not destructured (variant, size) remain accessible in the template scope.


20-28: LGTM!

The template correctly uses reka-ui's Primitive with proper class composition via cn(), merging variant styles with custom classes. The slot-based content pattern provides flexibility for the component.

src/components/queue/dialogs/QueueClearHistoryDialog.vue (2)

34-44: LGTM!

Both Button components use valid variants (muted-textonly, secondary) with correct props. The previously flagged undefined subtype prop issue has been resolved.


55-55: LGTM!

Button import is correctly added from the new component path.

src/components/dialog/confirm/ConfirmFooter.vue (1)

3-13: LGTM! Button migration completed correctly.

The migration from TextButton to Button is well-executed:

  • Both buttons properly use variant="textonly"
  • Disabled state and event handlers are preserved
  • Labels are correctly moved to slot content
  • Import path updated to the new Button component

Also applies to: 21-21

src/components/ui/button/Button.stories.ts (1)

1-68: LGTM! Storybook configuration is well-structured.

The Button stories are properly configured:

  • Meta object correctly defines argTypes and controls
  • SingleButton and AllVariants stories provide good coverage
  • Grid layout uses static classes (previous dynamic class issue resolved)
  • Helper function uses function declaration (preferred pattern)
src/components/queue/QueueOverlayActive.vue (1)

83-90: LGTM! Clean migration to Button component.

The TextButton to Button migration is correctly implemented:

  • Proper variant="secondary" and size="sm" props
  • Label moved to slot content with i18n
  • Event handler and custom classes preserved
  • Import path updated correctly

Also applies to: 100-100

src/components/input/MultiSelect.vue (1)

115-122: LGTM! Button migration and option template improvements.

The changes are well-implemented:

  • Clear button correctly uses variant="textonly" and size="md"
  • Label moved to slot content with proper i18n
  • Option template simplified with role="button" for accessibility
  • Custom checkbox styling preserved
  • Import updated to new Button component

Also applies to: 148-169, 183-183

src/components/queue/job/QueueJobItem.vue (1)

157-164: LGTM! Correct Button migration for completed job action.

The TextButton to Button migration is properly executed:

  • Appropriate variant="textonly" and size="sm" for the context
  • Label correctly moved to slot content with i18n
  • Event handler and conditional rendering preserved
  • Custom transform and transition classes maintained
  • Import path updated correctly

Also applies to: 209-209

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

16-25: LGTM! Consistent Button migration across upload flow.

All three button migrations are correctly implemented:

  • Cancel and Back buttons use variant="muted-textonly" with size="lg" for consistency
  • Finish button uses variant="secondary" for emphasis
  • Labels properly moved to slot content with i18n
  • Event handlers, disabled states, and data-attr preserved
  • Import path updated to new Button component

Also applies to: 26-35, 70-77, 90-90

src/components/queue/job/JobFiltersBar.vue (1)

5-14: LGTM! Excellent use of dynamic variant for tab selection.

The Button migration demonstrates proper pattern usage:

  • Dynamic variant prop toggles between secondary (selected) and muted-textonly (unselected)
  • Appropriate size="sm" for tab context
  • Label computed via tabLabel(tab) in slot content
  • Event handler and v-for loop properly preserved
  • Import updated to new Button component

Also applies to: 157-157

src/components/dialog/content/MissingNodesFooter.vue (1)

21-23: LGTM! Proper button hierarchy established.

The Button migration correctly implements visual hierarchy:

  • "Got It" button uses variant="secondary" with size="md" for primary action
  • "Open Manager" button uses variant="textonly" with size="sm" for secondary action
  • Labels properly moved to slot content with i18n
  • Event handlers preserved
  • Import updated to new Button component

Also applies to: 28-30, 54-54


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 Dec 16, 2025

🎨 Storybook Build Status

Build completed successfully!

⏰ Completed at: 12/17/2025, 03:30:50 AM UTC

🔗 Links


🎉 Your Storybook is ready for review!

@github-actions
Copy link

github-actions bot commented Dec 16, 2025

🎭 Playwright Test Results

All tests passed!

⏰ Completed at: 12/17/2025, 03:39:35 AM UTC

📈 Summary

  • Total Tests: 508
  • Passed: 499 ✅
  • Failed: 0
  • Flaky: 0
  • Skipped: 9 ⏭️

📊 Test Reports by Browser

  • chromium: View Report • ✅ 487 / ❌ 0 / ⚠️ 0 / ⏭️ 9
  • 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.

@socket-security
Copy link

socket-security bot commented Dec 16, 2025

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Addedcva@​1.0.0-beta.41001007181100

View full report

@github-actions
Copy link

🔧 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

@DrJKL DrJKL force-pushed the drjkl/button-button branch from 434303a to 0ac1b78 Compare December 16, 2025 04:51
@github-actions
Copy link

github-actions bot commented Dec 16, 2025

Bundle Size Report

Summary

  • Raw size: 16.6 MB baseline 16.6 MB — 🔴 +5.19 kB
  • Gzip: 3.36 MB baseline 3.36 MB — 🔴 +2.66 kB
  • Brotli: 2.59 MB baseline 2.59 MB — 🔴 +1.2 kB
  • Bundles: 99 current • 99 baseline • 54 added / 54 removed

Category Glance
Vendor & Third-Party 🔴 +3.35 kB (8.45 MB) · App Entry Points 🔴 +1.19 kB (3.21 MB) · UI Components 🔴 +424 B (184 kB) · Graph Workspace 🔴 +230 B (992 kB) · Other ⚪ 0 B (3.41 MB) · Panels & Settings ⚪ 0 B (297 kB) · + 3 more

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

Main entry bundles and manifests

File Before After Δ Raw Δ Gzip Δ Brotli
assets/index-DDBMEUUg.js (new) 2.98 MB 🔴 +2.98 MB 🔴 +627 kB 🔴 +477 kB
assets/index-BPlb7xmw.js (removed) 2.98 MB 🟢 -2.98 MB 🟢 -627 kB 🟢 -477 kB
assets/index-BHWzMdzE.js (new) 227 kB 🔴 +227 kB 🔴 +48.5 kB 🔴 +39.9 kB
assets/index-DOvZV4Ev.js (removed) 227 kB 🟢 -227 kB 🟢 -48.5 kB 🟢 -39.9 kB
assets/index-C0QsfXYn.js (removed) 345 B 🟢 -345 B 🟢 -244 B 🟢 -232 B
assets/index-CoOl6Oss.js (new) 345 B 🔴 +345 B 🔴 +244 B 🔴 +215 B

Status: 3 added / 3 removed

Graph Workspace — 992 kB (baseline 992 kB) • 🔴 +230 B

Graph editor runtime, canvas, workflow orchestration

File Before After Δ Raw Δ Gzip Δ Brotli
assets/GraphView-41BNTfqc.js (new) 992 kB 🔴 +992 kB 🔴 +192 kB 🔴 +147 kB
assets/GraphView-B1kxujW_.js (removed) 992 kB 🟢 -992 kB 🟢 -192 kB 🟢 -147 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-BYQ9ZBfQ.js (removed) 6.54 kB 🟢 -6.54 kB 🟢 -2.14 kB 🟢 -1.89 kB
assets/UserSelectView-DnZhzART.js (new) 6.54 kB 🔴 +6.54 kB 🔴 +2.14 kB 🔴 +1.89 kB

Status: 1 added / 1 removed

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

Configuration panels, inspectors, and settings screens

File Before After Δ Raw Δ Gzip Δ Brotli
assets/LegacyCreditsPanel-37_H9jnx.js (removed) 21.4 kB 🟢 -21.4 kB 🟢 -5.16 kB 🟢 -4.5 kB
assets/LegacyCreditsPanel-BtbcpBs1.js (new) 21.4 kB 🔴 +21.4 kB 🔴 +5.15 kB 🔴 +4.5 kB
assets/KeybindingPanel-CcHOPde8.js (removed) 13.6 kB 🟢 -13.6 kB 🟢 -3.42 kB 🟢 -3.03 kB
assets/KeybindingPanel-CVJxsMEo.js (new) 13.6 kB 🔴 +13.6 kB 🔴 +3.42 kB 🔴 +3.01 kB
assets/ExtensionPanel-Bs5uWcxi.js (new) 10.8 kB 🔴 +10.8 kB 🔴 +2.57 kB 🔴 +2.25 kB
assets/ExtensionPanel-xBy8DmEV.js (removed) 10.8 kB 🟢 -10.8 kB 🟢 -2.57 kB 🟢 -2.25 kB
assets/AboutPanel-B-F4vuxm.js (removed) 9.16 kB 🟢 -9.16 kB 🟢 -2.46 kB 🟢 -2.2 kB
assets/AboutPanel-DW_YIp9i.js (new) 9.16 kB 🔴 +9.16 kB 🔴 +2.46 kB 🔴 +2.21 kB
assets/ServerConfigPanel-BSySpJtr.js (removed) 7.07 kB 🟢 -7.07 kB 🟢 -1.98 kB 🟢 -1.76 kB
assets/ServerConfigPanel-CmUd7cA4.js (new) 7.07 kB 🔴 +7.07 kB 🔴 +1.98 kB 🔴 +1.76 kB
assets/UserPanel-cjXd_JOs.js (removed) 6.23 kB 🟢 -6.23 kB 🟢 -1.72 kB 🟢 -1.5 kB
assets/UserPanel-DFL57YXq.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 183 kB) • 🔴 +424 B

Reusable component library chunks

File Before After Δ Raw Δ Gzip Δ Brotli
assets/Load3D.vue_vue_type_script_setup_true_lang-Bf83Ujul.js (removed) 53.7 kB 🟢 -53.7 kB 🟢 -8.49 kB 🟢 -7.29 kB
assets/Load3D.vue_vue_type_script_setup_true_lang-CHhXxNoZ.js (new) 53.7 kB 🔴 +53.7 kB 🔴 +8.49 kB 🔴 +7.3 kB
assets/WidgetSelect.vue_vue_type_script_setup_true_lang-Cvc0eZXG.js (removed) 48.7 kB 🟢 -48.7 kB 🟢 -10.5 kB 🟢 -9.12 kB
assets/WidgetSelect.vue_vue_type_script_setup_true_lang-DZZL7jIw.js (new) 48.7 kB 🔴 +48.7 kB 🔴 +10.5 kB 🔴 +9.12 kB
assets/LazyImage.vue_vue_type_script_setup_true_lang-DvEhZKBh.js (new) 48.4 kB 🔴 +48.4 kB 🔴 +10.7 kB 🔴 +9.36 kB
assets/LazyImage.vue_vue_type_script_setup_true_lang-DUzI2bEp.js (removed) 48 kB 🟢 -48 kB 🟢 -10.6 kB 🟢 -9.32 kB
assets/WidgetInputNumber.vue_vue_type_script_setup_true_lang-BUoEaHFm.js (removed) 14.3 kB 🟢 -14.3 kB 🟢 -3.74 kB 🟢 -3.29 kB
assets/WidgetInputNumber.vue_vue_type_script_setup_true_lang-BYyhbcYd.js (new) 14.3 kB 🔴 +14.3 kB 🔴 +3.73 kB 🔴 +3.3 kB
assets/ComfyQueueButton-CcNZCpWs.js (new) 8.52 kB 🔴 +8.52 kB 🔴 +2.5 kB 🔴 +2.22 kB
assets/ComfyQueueButton-D28T3sFG.js (removed) 8.52 kB 🟢 -8.52 kB 🟢 -2.5 kB 🟢 -2.23 kB
assets/WidgetWithControl.vue_vue_type_script_setup_true_lang-CFRMMfHX.js (removed) 3.68 kB 🟢 -3.68 kB 🟢 -1.45 kB 🟢 -1.31 kB
assets/WidgetWithControl.vue_vue_type_script_setup_true_lang-dxtAJ8CO.js (new) 3.68 kB 🔴 +3.68 kB 🔴 +1.45 kB 🔴 +1.3 kB
assets/WidgetLayoutField.vue_vue_type_script_setup_true_lang-C2ARDBvY.js (new) 2.14 kB 🔴 +2.14 kB 🔴 +890 B 🔴 +771 B
assets/WidgetLayoutField.vue_vue_type_script_setup_true_lang-CwpS9r_H.js (removed) 2.14 kB 🟢 -2.14 kB 🟢 -888 B 🟢 -770 B
assets/WidgetButton-CEPQvIIQ.js (removed) 2.04 kB 🟢 -2.04 kB 🟢 -929 B 🟢 -811 B
assets/WidgetButton-D-PsyQgm.js (new) 2.04 kB 🔴 +2.04 kB 🔴 +927 B 🔴 +816 B
assets/UserAvatar.vue_vue_type_script_setup_true_lang-ByQFYn-E.js (removed) 1.34 kB 🟢 -1.34 kB 🟢 -688 B 🟢 -595 B
assets/UserAvatar.vue_vue_type_script_setup_true_lang-CMhLYo4y.js (new) 1.34 kB 🔴 +1.34 kB 🔴 +687 B 🔴 +598 B
assets/MediaTitle.vue_vue_type_script_setup_true_lang-CgAIT7m1.js (new) 897 B 🔴 +897 B 🔴 +503 B 🔴 +443 B
assets/MediaTitle.vue_vue_type_script_setup_true_lang-qpAfxhMi.js (removed) 897 B 🟢 -897 B 🟢 -501 B 🟢 -436 B

Status: 10 added / 10 removed

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

Stores, services, APIs, and repositories

File Before After Δ Raw Δ Gzip Δ Brotli
assets/keybindingService-CtcGQ0i2.js (removed) 7.51 kB 🟢 -7.51 kB 🟢 -1.83 kB 🟢 -1.57 kB
assets/keybindingService-IEpkzO-A.js (new) 7.51 kB 🔴 +7.51 kB 🔴 +1.83 kB 🔴 +1.57 kB
assets/serverConfigStore-BP7nYmv7.js (removed) 2.83 kB 🟢 -2.83 kB 🟢 -907 B 🟢 -789 B
assets/serverConfigStore-DK03Dh5G.js (new) 2.83 kB 🔴 +2.83 kB 🔴 +906 B 🔴 +793 B
assets/audioService-BczIaWxx.js (new) 2.2 kB 🔴 +2.2 kB 🔴 +960 B 🔴 +824 B
assets/audioService-SfC7QDsJ.js (removed) 2.2 kB 🟢 -2.2 kB 🟢 -961 B 🟢 -826 B

Status: 3 added / 3 removed

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

Helpers, composables, and utility bundles

File Before After Δ Raw Δ Gzip Δ Brotli
assets/audioUtils-BoUpvLAz.js (new) 1.41 kB 🔴 +1.41 kB 🔴 +650 B 🔴 +549 B
assets/audioUtils-C-5NX04G.js (removed) 1.41 kB 🟢 -1.41 kB 🟢 -651 B 🟢 -543 B
assets/mathUtil-CD4DsosH.js 1.32 kB 1.32 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/nodeFilterUtil-CXKCRJ-m.js 460 B 460 B ⚪ 0 B ⚪ 0 B ⚪ 0 B

Status: 1 added / 1 removed

Vendor & Third-Party — 8.45 MB (baseline 8.45 MB) • 🔴 +3.35 kB

External libraries and shared vendor chunks

File Before After Δ Raw Δ Gzip Δ Brotli
assets/vendor-other-BD0aMZBO.js (new) 3.86 MB 🔴 +3.86 MB 🔴 +839 kB 🔴 +671 kB
assets/vendor-other-DByaMi26.js (removed) 3.86 MB 🟢 -3.86 MB 🟢 -836 kB 🟢 -670 kB
assets/vendor-primevue-BD67ynhB.js (new) 1.96 MB 🔴 +1.96 MB 🔴 +334 kB 🔴 +202 kB
assets/vendor-primevue-DFKEqFSu.js (removed) 1.96 MB 🟢 -1.96 MB 🟢 -334 kB 🟢 -202 kB
assets/vendor-chart-BwZ_KFjV.js (new) 452 kB 🔴 +452 kB 🔴 +99 kB 🔴 +81 kB
assets/vendor-chart-o7g89i4t.js (removed) 452 kB 🟢 -452 kB 🟢 -99 kB 🟢 -81 kB
assets/vendor-tiptap-BIufkEM_.js (removed) 232 kB 🟢 -232 kB 🟢 -45.7 kB 🟢 -37.7 kB
assets/vendor-tiptap-DGEie6Tj.js (new) 232 kB 🔴 +232 kB 🔴 +45.7 kB 🔴 +37.7 kB
assets/vendor-vue-BVEjmwHo.js (removed) 160 kB 🟢 -160 kB 🟢 -37.2 kB 🟢 -31.4 kB
assets/vendor-vue-o0fksRVZ.js (new) 160 kB 🔴 +160 kB 🔴 +37.2 kB 🔴 +31.4 kB
assets/vendor-three-C1LfRdh4.js 1.37 MB 1.37 MB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/vendor-xterm-BF8peZ5_.js 420 kB 420 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B

Status: 5 added / 5 removed

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

Bundles that do not match a named category

File Before After Δ Raw Δ Gzip Δ Brotli
assets/WidgetRecordAudio-BnPC1Ziv.js (removed) 20.4 kB 🟢 -20.4 kB 🟢 -5.23 kB 🟢 -4.64 kB
assets/WidgetRecordAudio-hMfmOuDB.js (new) 20.4 kB 🔴 +20.4 kB 🔴 +5.23 kB 🔴 +4.63 kB
assets/AudioPreviewPlayer-BSRvx20B.js (removed) 13.4 kB 🟢 -13.4 kB 🟢 -3.37 kB 🟢 -3.01 kB
assets/AudioPreviewPlayer-DytIIQL6.js (new) 13.4 kB 🔴 +13.4 kB 🔴 +3.37 kB 🔴 +3.01 kB
assets/ValueControlPopover-CxbnrkFa.js (new) 5.49 kB 🔴 +5.49 kB 🔴 +1.7 kB 🔴 +1.52 kB
assets/ValueControlPopover-DjHJLPKK.js (removed) 5.49 kB 🟢 -5.49 kB 🟢 -1.7 kB 🟢 -1.51 kB
assets/WidgetGalleria-Ci2ihyYq.js (new) 4.1 kB 🔴 +4.1 kB 🔴 +1.44 kB 🔴 +1.3 kB
assets/WidgetGalleria-D3jmAtGv.js (removed) 4.1 kB 🟢 -4.1 kB 🟢 -1.44 kB 🟢 -1.3 kB
assets/WidgetColorPicker-CsdD15zX.js (removed) 3.41 kB 🟢 -3.41 kB 🟢 -1.38 kB 🟢 -1.23 kB
assets/WidgetColorPicker-DYihWQtI.js (new) 3.41 kB 🔴 +3.41 kB 🔴 +1.38 kB 🔴 +1.23 kB
assets/WidgetTextarea-B5nrK-RQ.js (new) 3.08 kB 🔴 +3.08 kB 🔴 +1.21 kB 🔴 +1.08 kB
assets/WidgetTextarea-DSzCbrxv.js (removed) 3.08 kB 🟢 -3.08 kB 🟢 -1.21 kB 🟢 -1.07 kB
assets/WidgetMarkdown-BTZ-Dv47.js (removed) 3.08 kB 🟢 -3.08 kB 🟢 -1.28 kB 🟢 -1.13 kB
assets/WidgetMarkdown-DzUpMx1x.js (new) 3.08 kB 🔴 +3.08 kB 🔴 +1.28 kB 🔴 +1.13 kB
assets/WidgetAudioUI-10mAdde8.js (removed) 2.94 kB 🟢 -2.94 kB 🟢 -1.18 kB 🟢 -1.07 kB
assets/WidgetAudioUI-Cu_31tsv.js (new) 2.94 kB 🔴 +2.94 kB 🔴 +1.19 kB 🔴 +1.07 kB
assets/MediaVideoTop-B1cvEWRN.js (removed) 2.65 kB 🟢 -2.65 kB 🟢 -1.02 kB 🟢 -869 B
assets/MediaVideoTop-D5eyv0dl.js (new) 2.65 kB 🔴 +2.65 kB 🔴 +1.01 kB 🔴 +869 B
assets/WidgetChart-B-1rxecT.js (new) 2.48 kB 🔴 +2.48 kB 🔴 +930 B 🔴 +819 B
assets/WidgetChart-DwKqVDKB.js (removed) 2.48 kB 🟢 -2.48 kB 🟢 -931 B 🟢 -818 B
assets/WidgetImageCompare-B4NspM7k.js (removed) 2.21 kB 🟢 -2.21 kB 🟢 -750 B 🟢 -668 B
assets/WidgetImageCompare-BZzCMXSO.js (new) 2.21 kB 🔴 +2.21 kB 🔴 +749 B 🔴 +661 B
assets/WidgetInputText-B9r_PQf0.js (new) 1.99 kB 🔴 +1.99 kB 🔴 +918 B 🔴 +852 B
assets/WidgetInputText-CzyhhPsC.js (removed) 1.99 kB 🟢 -1.99 kB 🟢 -919 B 🟢 -825 B
assets/WidgetToggleSwitch-9W8f9Nwx.js (removed) 1.76 kB 🟢 -1.76 kB 🟢 -832 B 🟢 -733 B
assets/WidgetToggleSwitch-DuN2A0uV.js (new) 1.76 kB 🔴 +1.76 kB 🔴 +832 B 🔴 +737 B
assets/MediaImageTop-B7iuKaes.js (removed) 1.75 kB 🟢 -1.75 kB 🟢 -840 B 🟢 -718 B
assets/MediaImageTop-CmnX5tDW.js (new) 1.75 kB 🔴 +1.75 kB 🔴 +841 B 🔴 +717 B
assets/MediaImageBottom-_-zyE_tc.js (new) 1.55 kB 🔴 +1.55 kB 🔴 +734 B 🔴 +634 B
assets/MediaImageBottom-Bo9Wu6KO.js (removed) 1.55 kB 🟢 -1.55 kB 🟢 -732 B 🟢 -641 B
assets/MediaAudioBottom-D10bFQbi.js (removed) 1.51 kB 🟢 -1.51 kB 🟢 -730 B 🟢 -641 B
assets/MediaAudioBottom-DqSKMR6y.js (new) 1.51 kB 🔴 +1.51 kB 🔴 +733 B 🔴 +644 B
assets/Media3DBottom-D26Jkctx.js (new) 1.5 kB 🔴 +1.5 kB 🔴 +729 B 🔴 +643 B
assets/Media3DBottom-DIoH7F3-.js (removed) 1.5 kB 🟢 -1.5 kB 🟢 -729 B 🟢 -643 B
assets/MediaVideoBottom-BkFV-ee9.js (removed) 1.5 kB 🟢 -1.5 kB 🟢 -729 B 🟢 -644 B
assets/MediaVideoBottom-DviqNxdP.js (new) 1.5 kB 🔴 +1.5 kB 🔴 +730 B 🔴 +642 B
assets/Media3DTop-Cz7OVfH-.js (removed) 1.49 kB 🟢 -1.49 kB 🟢 -762 B 🟢 -646 B
assets/Media3DTop-DzOx7O1q.js (new) 1.49 kB 🔴 +1.49 kB 🔴 +764 B 🔴 +650 B
assets/MediaAudioTop-DSrVmTsv.js (removed) 1.46 kB 🟢 -1.46 kB 🟢 -738 B 🟢 -617 B
assets/MediaAudioTop-GG9iPI9C.js (new) 1.46 kB 🔴 +1.46 kB 🔴 +742 B 🔴 +620 B
assets/WidgetSelect-BLEvzuk1.js (removed) 733 B 🟢 -733 B 🟢 -362 B 🟢 -302 B
assets/WidgetSelect-DJ0BKeJm.js (new) 733 B 🔴 +733 B 🔴 +361 B 🔴 +322 B
assets/WidgetInputNumber-DpijYk-u.js (removed) 673 B 🟢 -673 B 🟢 -346 B 🟢 -286 B
assets/WidgetInputNumber-Dq2PeOLI.js (new) 673 B 🔴 +673 B 🔴 +349 B 🔴 +297 B
assets/Load3D-BN0poNIM.js (new) 424 B 🔴 +424 B 🔴 +265 B 🔴 +224 B
assets/Load3D-CylFrG6_.js (removed) 424 B 🟢 -424 B 🟢 -266 B 🟢 -229 B
assets/WidgetLegacy-BuX_cmoS.js (new) 364 B 🔴 +364 B 🔴 +235 B 🔴 +196 B
assets/WidgetLegacy-DYfIPJ99.js (removed) 364 B 🟢 -364 B 🟢 -239 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/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/widgetPropFilter-BIbGSUAt.js 1.28 kB 1.28 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B

Status: 24 added / 24 removed

@DrJKL DrJKL force-pushed the drjkl/button-button branch 3 times, most recently from 70395ba to 00de47f Compare December 16, 2025 18:11
@DrJKL DrJKL changed the title WIP/Component: Button migration WIP/Component: Button migration 1: TextButton Dec 16, 2025
@DrJKL DrJKL added the Design Used to request Product feedback on design decisions label Dec 16, 2025
@DrJKL DrJKL requested a review from comfydesigner December 16, 2025 21:39
@DrJKL DrJKL marked this pull request as ready for review December 16, 2025 21:41
@DrJKL DrJKL requested review from a team and viva-jinyi as code owners December 16, 2025 21:41
@dosubot dosubot bot added the size:XL This PR changes 500-999 lines, ignoring generated files. label Dec 16, 2025
@DrJKL DrJKL changed the title WIP/Component: Button migration 1: TextButton Component: Button migration 1: TextButton Dec 16, 2025
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: 11

♻️ Duplicate comments (1)
src/components/input/MultiSelect.vue (1)

115-122: Verify prop name: subtype vs variant.

Similar to ConfirmFooter.vue, this file uses subtype="textonly" but button.variants.ts defines a variant prop with "textonly" as a value. Please verify whether subtype is the correct prop name or if it should be variant.

📜 Review details

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 89e67b1 and bd3333d.

⛔ Files ignored due to path filters (1)
  • pnpm-lock.yaml is excluded by !**/pnpm-lock.yaml
📒 Files selected for processing (17)
  • package.json (1 hunks)
  • pnpm-workspace.yaml (1 hunks)
  • src/components/button/TextButton.stories.ts (0 hunks)
  • src/components/button/TextButton.vue (0 hunks)
  • src/components/dialog/confirm/ConfirmFooter.vue (1 hunks)
  • src/components/dialog/content/MissingNodesFooter.vue (2 hunks)
  • src/components/input/MultiSelect.vue (3 hunks)
  • src/components/queue/QueueOverlayActive.vue (2 hunks)
  • src/components/queue/dialogs/QueueClearHistoryDialog.vue (2 hunks)
  • src/components/queue/job/JobFiltersBar.vue (2 hunks)
  • src/components/queue/job/QueueJobItem.vue (2 hunks)
  • src/components/sidebar/tabs/AssetsSidebarTab.vue (3 hunks)
  • src/components/ui/button/Button.stories.ts (1 hunks)
  • src/components/ui/button/Button.vue (1 hunks)
  • src/components/ui/button/button.variants.ts (1 hunks)
  • src/platform/assets/components/UploadModelFooter.vue (3 hunks)
  • src/platform/assets/components/UploadModelUpgradeModalFooter.vue (1 hunks)
💤 Files with no reviewable changes (2)
  • src/components/button/TextButton.stories.ts
  • src/components/button/TextButton.vue
🧰 Additional context used
📓 Path-based instructions (13)
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/sidebar/tabs/AssetsSidebarTab.vue
  • src/components/input/MultiSelect.vue
  • src/components/dialog/content/MissingNodesFooter.vue
  • src/platform/assets/components/UploadModelFooter.vue
  • src/components/ui/button/Button.vue
  • src/components/dialog/confirm/ConfirmFooter.vue
  • src/components/queue/job/JobFiltersBar.vue
  • src/platform/assets/components/UploadModelUpgradeModalFooter.vue
  • src/components/queue/QueueOverlayActive.vue
  • src/components/queue/dialogs/QueueClearHistoryDialog.vue
  • src/components/queue/job/QueueJobItem.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/sidebar/tabs/AssetsSidebarTab.vue
  • src/components/input/MultiSelect.vue
  • src/components/dialog/content/MissingNodesFooter.vue
  • src/platform/assets/components/UploadModelFooter.vue
  • src/components/ui/button/Button.vue
  • src/components/dialog/confirm/ConfirmFooter.vue
  • src/components/queue/job/JobFiltersBar.vue
  • src/components/ui/button/Button.stories.ts
  • src/platform/assets/components/UploadModelUpgradeModalFooter.vue
  • src/components/queue/QueueOverlayActive.vue
  • src/components/ui/button/button.variants.ts
  • src/components/queue/dialogs/QueueClearHistoryDialog.vue
  • src/components/queue/job/QueueJobItem.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/sidebar/tabs/AssetsSidebarTab.vue
  • src/components/input/MultiSelect.vue
  • src/components/dialog/content/MissingNodesFooter.vue
  • src/platform/assets/components/UploadModelFooter.vue
  • src/components/ui/button/Button.vue
  • src/components/dialog/confirm/ConfirmFooter.vue
  • src/components/queue/job/JobFiltersBar.vue
  • src/components/ui/button/Button.stories.ts
  • src/platform/assets/components/UploadModelUpgradeModalFooter.vue
  • src/components/queue/QueueOverlayActive.vue
  • src/components/ui/button/button.variants.ts
  • src/components/queue/dialogs/QueueClearHistoryDialog.vue
  • src/components/queue/job/QueueJobItem.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/sidebar/tabs/AssetsSidebarTab.vue
  • src/components/input/MultiSelect.vue
  • src/components/dialog/content/MissingNodesFooter.vue
  • src/platform/assets/components/UploadModelFooter.vue
  • src/components/ui/button/Button.vue
  • src/components/dialog/confirm/ConfirmFooter.vue
  • src/components/queue/job/JobFiltersBar.vue
  • src/components/ui/button/Button.stories.ts
  • src/platform/assets/components/UploadModelUpgradeModalFooter.vue
  • src/components/queue/QueueOverlayActive.vue
  • src/components/ui/button/button.variants.ts
  • src/components/queue/dialogs/QueueClearHistoryDialog.vue
  • src/components/queue/job/QueueJobItem.vue
src/**/*.{vue,ts,tsx}

📄 CodeRabbit inference engine (src/CLAUDE.md)

Follow Vue 3 composition API style guide

Files:

  • src/components/sidebar/tabs/AssetsSidebarTab.vue
  • src/components/input/MultiSelect.vue
  • src/components/dialog/content/MissingNodesFooter.vue
  • src/platform/assets/components/UploadModelFooter.vue
  • src/components/ui/button/Button.vue
  • src/components/dialog/confirm/ConfirmFooter.vue
  • src/components/queue/job/JobFiltersBar.vue
  • src/components/ui/button/Button.stories.ts
  • src/platform/assets/components/UploadModelUpgradeModalFooter.vue
  • src/components/queue/QueueOverlayActive.vue
  • src/components/ui/button/button.variants.ts
  • src/components/queue/dialogs/QueueClearHistoryDialog.vue
  • src/components/queue/job/QueueJobItem.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/sidebar/tabs/AssetsSidebarTab.vue
  • src/components/input/MultiSelect.vue
  • src/components/dialog/content/MissingNodesFooter.vue
  • src/platform/assets/components/UploadModelFooter.vue
  • src/components/ui/button/Button.vue
  • src/components/dialog/confirm/ConfirmFooter.vue
  • src/components/queue/job/JobFiltersBar.vue
  • src/components/ui/button/Button.stories.ts
  • src/platform/assets/components/UploadModelUpgradeModalFooter.vue
  • src/components/queue/QueueOverlayActive.vue
  • src/components/ui/button/button.variants.ts
  • src/components/queue/dialogs/QueueClearHistoryDialog.vue
  • src/components/queue/job/QueueJobItem.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 component file names must use PascalCase; for example, MenuHamburger.vue

Files:

  • src/components/sidebar/tabs/AssetsSidebarTab.vue
  • src/components/input/MultiSelect.vue
  • src/components/dialog/content/MissingNodesFooter.vue
  • src/components/ui/button/Button.vue
  • src/components/dialog/confirm/ConfirmFooter.vue
  • src/components/queue/job/JobFiltersBar.vue
  • src/components/queue/QueueOverlayActive.vue
  • src/components/queue/dialogs/QueueClearHistoryDialog.vue
  • src/components/queue/job/QueueJobItem.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/sidebar/tabs/AssetsSidebarTab.vue
  • src/components/input/MultiSelect.vue
  • src/components/dialog/content/MissingNodesFooter.vue
  • src/components/ui/button/Button.vue
  • src/components/dialog/confirm/ConfirmFooter.vue
  • src/components/queue/job/JobFiltersBar.vue
  • src/components/queue/QueueOverlayActive.vue
  • src/components/queue/dialogs/QueueClearHistoryDialog.vue
  • src/components/queue/job/QueueJobItem.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/sidebar/tabs/AssetsSidebarTab.vue
  • src/components/input/MultiSelect.vue
  • src/components/dialog/content/MissingNodesFooter.vue
  • src/components/ui/button/Button.vue
  • src/components/dialog/confirm/ConfirmFooter.vue
  • src/components/queue/job/JobFiltersBar.vue
  • src/components/ui/button/Button.stories.ts
  • src/components/queue/QueueOverlayActive.vue
  • src/components/ui/button/button.variants.ts
  • src/components/queue/dialogs/QueueClearHistoryDialog.vue
  • src/components/queue/job/QueueJobItem.vue
**/*.vue

📄 CodeRabbit inference engine (AGENTS.md)

**/*.vue: Use Vue 3 SFCs (Single File Components) with Composition API only; do not use Options API
Vue components must use <script setup lang="ts"> for component logic
Use Vue 3.5 TypeScript style for default prop declaration with reactive props destructuring; do not use withDefaults or runtime props declaration
Prefer useModel to separately defining a prop and emit
Use Tailwind 4 utility classes for styling; avoid using <style> blocks in Vue components
Use semantic Tailwind values from style.css theme instead of the dark: variant; for example, use bg-node-component-surface instead of dark: prefixes
Always use cn() utility from @/utils/tailwindUtil to merge Tailwind class names; do not use :class="[]" syntax
Use ref for reactive state in Vue Composition API components
Implement computed properties with computed() from Vue; avoid using a ref with a watch if a computed would work instead
Use watch and watchEffect for side effects in Vue components
Implement lifecycle hooks using onMounted, onUpdated, and other Vue lifecycle functions
Use provide/inject for dependency injection; do not use dependency injection if a Store or shared composable would be simpler
Do not import Vue macros unnecessarily; only use when needed
Be judicious with addition of new refs or other state: prefer props, avoid redundant computed, and prefer computed over watch
Use VueUse functions for performance-enhancing styles
In Vue Components, implement proper props and emits definitions
Utilize Vue 3's Teleport component when needed
Use Suspense for async components
Implement proper error handling in Vue components
Follow Vue 3 style guide and naming conventions
Use vue-i18n in composition API for any string literals; place new translation entries in src/locales/en/main.json
Avoid new usage of PrimeVue components; prefer shadcn/vue or Reka UI instead

Files:

  • src/components/sidebar/tabs/AssetsSidebarTab.vue
  • src/components/input/MultiSelect.vue
  • src/components/dialog/content/MissingNodesFooter.vue
  • src/platform/assets/components/UploadModelFooter.vue
  • src/components/ui/button/Button.vue
  • src/components/dialog/confirm/ConfirmFooter.vue
  • src/components/queue/job/JobFiltersBar.vue
  • src/platform/assets/components/UploadModelUpgradeModalFooter.vue
  • src/components/queue/QueueOverlayActive.vue
  • src/components/queue/dialogs/QueueClearHistoryDialog.vue
  • src/components/queue/job/QueueJobItem.vue
**/*.{ts,tsx,js,jsx,vue,json}

📄 CodeRabbit inference engine (AGENTS.md)

Code style: Use 2-space indentation, single quotes, no trailing semicolons, and 80-character line width (see .prettierrc)

Files:

  • src/components/sidebar/tabs/AssetsSidebarTab.vue
  • src/components/input/MultiSelect.vue
  • src/components/dialog/content/MissingNodesFooter.vue
  • src/platform/assets/components/UploadModelFooter.vue
  • src/components/ui/button/Button.vue
  • src/components/dialog/confirm/ConfirmFooter.vue
  • src/components/queue/job/JobFiltersBar.vue
  • src/components/ui/button/Button.stories.ts
  • src/platform/assets/components/UploadModelUpgradeModalFooter.vue
  • src/components/queue/QueueOverlayActive.vue
  • src/components/ui/button/button.variants.ts
  • src/components/queue/dialogs/QueueClearHistoryDialog.vue
  • src/components/queue/job/QueueJobItem.vue
  • package.json
**/*.{ts,tsx,vue}

📄 CodeRabbit inference engine (AGENTS.md)

**/*.{ts,tsx,vue}: Imports must be sorted and grouped by plugin; run pnpm format before committing
Use TypeScript for type safety; never use any type - use proper TypeScript types
Never use as any type assertions; fix the underlying type issue instead
Use es-toolkit for utility functions
Write code that is expressive and self-documenting; avoid comments unless absolutely necessary; do not add or retain redundant comments
Keep functions short and functional
Minimize nesting in code (e.g., deeply nested if or for statements); apply the Arrow Anti-Pattern principle
Avoid mutable state; prefer immutability and assignment at point of declaration
Favor pure functions, especially testable ones

Files:

  • src/components/sidebar/tabs/AssetsSidebarTab.vue
  • src/components/input/MultiSelect.vue
  • src/components/dialog/content/MissingNodesFooter.vue
  • src/platform/assets/components/UploadModelFooter.vue
  • src/components/ui/button/Button.vue
  • src/components/dialog/confirm/ConfirmFooter.vue
  • src/components/queue/job/JobFiltersBar.vue
  • src/components/ui/button/Button.stories.ts
  • src/platform/assets/components/UploadModelUpgradeModalFooter.vue
  • src/components/queue/QueueOverlayActive.vue
  • src/components/ui/button/button.variants.ts
  • src/components/queue/dialogs/QueueClearHistoryDialog.vue
  • src/components/queue/job/QueueJobItem.vue
src/**/*.ts

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

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

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

Files:

  • src/components/ui/button/Button.stories.ts
  • src/components/ui/button/button.variants.ts
🧠 Learnings (43)
📓 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: 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
📚 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/sidebar/tabs/AssetsSidebarTab.vue
  • src/components/input/MultiSelect.vue
  • src/components/dialog/content/MissingNodesFooter.vue
  • src/platform/assets/components/UploadModelFooter.vue
  • src/components/dialog/confirm/ConfirmFooter.vue
  • src/components/queue/job/JobFiltersBar.vue
  • src/components/queue/QueueOverlayActive.vue
  • src/components/queue/dialogs/QueueClearHistoryDialog.vue
  • src/components/queue/job/QueueJobItem.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/sidebar/tabs/AssetsSidebarTab.vue
  • src/components/input/MultiSelect.vue
  • src/components/dialog/content/MissingNodesFooter.vue
  • src/platform/assets/components/UploadModelFooter.vue
  • src/components/ui/button/Button.vue
  • src/components/dialog/confirm/ConfirmFooter.vue
  • src/components/queue/job/JobFiltersBar.vue
  • src/platform/assets/components/UploadModelUpgradeModalFooter.vue
  • src/components/queue/QueueOverlayActive.vue
  • src/components/queue/dialogs/QueueClearHistoryDialog.vue
  • src/components/queue/job/QueueJobItem.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/sidebar/tabs/AssetsSidebarTab.vue
  • src/components/input/MultiSelect.vue
  • src/components/dialog/content/MissingNodesFooter.vue
  • src/platform/assets/components/UploadModelFooter.vue
  • src/components/ui/button/Button.vue
  • src/components/dialog/confirm/ConfirmFooter.vue
  • src/components/queue/job/JobFiltersBar.vue
  • src/platform/assets/components/UploadModelUpgradeModalFooter.vue
  • src/components/queue/QueueOverlayActive.vue
  • src/components/queue/dialogs/QueueClearHistoryDialog.vue
  • src/components/queue/job/QueueJobItem.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/sidebar/tabs/AssetsSidebarTab.vue
  • src/components/input/MultiSelect.vue
  • src/components/queue/QueueOverlayActive.vue
  • src/components/queue/job/QueueJobItem.vue
📚 Learning: 2025-12-04T21:47:07.812Z
Learnt from: DrJKL
Repo: Comfy-Org/ComfyUI_frontend PR: 7137
File: src/components/LiteGraphCanvasSplitterOverlay.vue:43-43
Timestamp: 2025-12-04T21:47:07.812Z
Learning: In Vue SFCs with a build step (pre-compilation), kebab-case attribute names in templates are automatically converted to camelCase, so `:sidebar-panel-visible` as a shorthand binding correctly resolves to a variable named `sidebarPanelVisible`. The `.camel` modifier is only needed when using in-DOM templates without a build step.

Applied to files:

  • src/components/sidebar/tabs/AssetsSidebarTab.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/sidebar/tabs/AssetsSidebarTab.vue
  • src/components/input/MultiSelect.vue
  • src/components/dialog/content/MissingNodesFooter.vue
  • src/components/queue/QueueOverlayActive.vue
  • src/components/queue/dialogs/QueueClearHistoryDialog.vue
  • src/components/queue/job/QueueJobItem.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/sidebar/tabs/AssetsSidebarTab.vue
  • src/components/dialog/content/MissingNodesFooter.vue
  • src/components/queue/QueueOverlayActive.vue
  • src/components/queue/dialogs/QueueClearHistoryDialog.vue
  • src/components/queue/job/QueueJobItem.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/components/sidebar/tabs/AssetsSidebarTab.vue
  • src/components/input/MultiSelect.vue
  • src/platform/assets/components/UploadModelFooter.vue
  • src/components/dialog/confirm/ConfirmFooter.vue
  • src/components/queue/dialogs/QueueClearHistoryDialog.vue
  • src/components/queue/job/QueueJobItem.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/sidebar/tabs/AssetsSidebarTab.vue
  • src/components/input/MultiSelect.vue
  • src/components/dialog/content/MissingNodesFooter.vue
  • src/platform/assets/components/UploadModelFooter.vue
  • src/components/dialog/confirm/ConfirmFooter.vue
  • src/components/queue/job/JobFiltersBar.vue
  • src/platform/assets/components/UploadModelUpgradeModalFooter.vue
  • src/components/queue/QueueOverlayActive.vue
  • src/components/queue/dialogs/QueueClearHistoryDialog.vue
  • src/components/queue/job/QueueJobItem.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/sidebar/tabs/AssetsSidebarTab.vue
  • src/components/input/MultiSelect.vue
  • src/components/dialog/content/MissingNodesFooter.vue
  • src/platform/assets/components/UploadModelFooter.vue
  • src/components/dialog/confirm/ConfirmFooter.vue
  • src/platform/assets/components/UploadModelUpgradeModalFooter.vue
  • src/components/queue/QueueOverlayActive.vue
  • src/components/queue/dialogs/QueueClearHistoryDialog.vue
  • src/components/queue/job/QueueJobItem.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/sidebar/tabs/AssetsSidebarTab.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/sidebar/tabs/AssetsSidebarTab.vue
  • src/components/input/MultiSelect.vue
  • src/components/dialog/content/MissingNodesFooter.vue
  • src/platform/assets/components/UploadModelFooter.vue
  • src/components/ui/button/Button.vue
  • src/components/dialog/confirm/ConfirmFooter.vue
  • src/components/queue/job/JobFiltersBar.vue
  • src/platform/assets/components/UploadModelUpgradeModalFooter.vue
  • src/components/queue/QueueOverlayActive.vue
  • src/components/queue/dialogs/QueueClearHistoryDialog.vue
  • src/components/queue/job/QueueJobItem.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/sidebar/tabs/AssetsSidebarTab.vue
  • src/components/input/MultiSelect.vue
  • src/components/dialog/content/MissingNodesFooter.vue
  • src/platform/assets/components/UploadModelFooter.vue
  • src/components/ui/button/Button.vue
  • src/components/dialog/confirm/ConfirmFooter.vue
  • src/components/queue/job/JobFiltersBar.vue
  • src/components/ui/button/Button.stories.ts
  • src/platform/assets/components/UploadModelUpgradeModalFooter.vue
  • src/components/queue/QueueOverlayActive.vue
  • src/components/ui/button/button.variants.ts
  • src/components/queue/dialogs/QueueClearHistoryDialog.vue
  • src/components/queue/job/QueueJobItem.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/input/MultiSelect.vue
  • src/platform/assets/components/UploadModelFooter.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/input/MultiSelect.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/input/MultiSelect.vue
  • src/components/dialog/content/MissingNodesFooter.vue
  • src/platform/assets/components/UploadModelFooter.vue
  • src/components/dialog/confirm/ConfirmFooter.vue
  • src/components/queue/dialogs/QueueClearHistoryDialog.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/input/MultiSelect.vue
  • src/components/queue/QueueOverlayActive.vue
  • src/components/queue/dialogs/QueueClearHistoryDialog.vue
  • src/components/queue/job/QueueJobItem.vue
📚 Learning: 2025-12-09T20:22:23.620Z
Learnt from: CR
Repo: Comfy-Org/ComfyUI_frontend PR: 0
File: AGENTS.md:0-0
Timestamp: 2025-12-09T20:22:23.620Z
Learning: Applies to **/*.vue : Vue components must use `<script setup lang="ts">` for component logic

Applied to files:

  • src/components/input/MultiSelect.vue
  • src/components/ui/button/Button.vue
📚 Learning: 2025-12-09T20:22:23.620Z
Learnt from: CR
Repo: Comfy-Org/ComfyUI_frontend PR: 0
File: AGENTS.md:0-0
Timestamp: 2025-12-09T20:22:23.620Z
Learning: Applies to **/*.vue : Use VueUse functions for performance-enhancing styles

Applied to files:

  • src/components/input/MultiSelect.vue
📚 Learning: 2025-12-09T20:22:23.620Z
Learnt from: CR
Repo: Comfy-Org/ComfyUI_frontend PR: 0
File: AGENTS.md:0-0
Timestamp: 2025-12-09T20:22:23.620Z
Learning: Applies to **/*.vue : Avoid new usage of PrimeVue components; prefer shadcn/vue or Reka UI instead

Applied to files:

  • src/components/input/MultiSelect.vue
  • src/components/ui/button/Button.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/dialog/content/MissingNodesFooter.vue
  • src/components/queue/QueueOverlayActive.vue
  • src/components/queue/dialogs/QueueClearHistoryDialog.vue
  • src/components/queue/job/QueueJobItem.vue
📚 Learning: 2025-12-09T20:22:23.620Z
Learnt from: CR
Repo: Comfy-Org/ComfyUI_frontend PR: 0
File: AGENTS.md:0-0
Timestamp: 2025-12-09T20:22:23.620Z
Learning: Applies to **/*.vue : 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/dialog/content/MissingNodesFooter.vue
  • src/components/queue/QueueOverlayActive.vue
  • src/components/queue/dialogs/QueueClearHistoryDialog.vue
  • src/components/queue/job/QueueJobItem.vue
📚 Learning: 2025-12-09T20:22:23.620Z
Learnt from: CR
Repo: Comfy-Org/ComfyUI_frontend PR: 0
File: AGENTS.md:0-0
Timestamp: 2025-12-09T20:22:23.620Z
Learning: Applies to **/*.vue : Use `ref` for reactive state in Vue Composition API components

Applied to files:

  • src/platform/assets/components/UploadModelFooter.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/platform/assets/components/UploadModelFooter.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/platform/assets/components/UploadModelFooter.vue
📚 Learning: 2025-12-09T20:22:23.620Z
Learnt from: CR
Repo: Comfy-Org/ComfyUI_frontend PR: 0
File: AGENTS.md:0-0
Timestamp: 2025-12-09T20:22:23.620Z
Learning: Applies to **/*.vue : Be judicious with addition of new refs or other state: prefer props, avoid redundant `computed`, and prefer `computed` over `watch`

Applied to files:

  • src/platform/assets/components/UploadModelFooter.vue
📚 Learning: 2025-12-09T20:22:23.620Z
Learnt from: CR
Repo: Comfy-Org/ComfyUI_frontend PR: 0
File: AGENTS.md:0-0
Timestamp: 2025-12-09T20:22:23.620Z
Learning: Applies to **/*.vue : Implement computed properties with `computed()` from Vue; avoid using a `ref` with a `watch` if a `computed` would work instead

Applied to files:

  • src/platform/assets/components/UploadModelFooter.vue
📚 Learning: 2025-12-09T20:22:23.620Z
Learnt from: CR
Repo: Comfy-Org/ComfyUI_frontend PR: 0
File: AGENTS.md:0-0
Timestamp: 2025-12-09T20:22:23.620Z
Learning: Applies to **/*.test.ts : For Component testing, use Vue Test Utils and follow advice about making components easy to test

Applied to files:

  • src/platform/assets/components/UploadModelFooter.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/platform/assets/components/UploadModelFooter.vue
📚 Learning: 2025-12-09T20:22:23.620Z
Learnt from: CR
Repo: Comfy-Org/ComfyUI_frontend PR: 0
File: AGENTS.md:0-0
Timestamp: 2025-12-09T20:22:23.620Z
Learning: Applies to **/*.vue : Use Vue 3.5 TypeScript style for default prop declaration with reactive props destructuring; do not use `withDefaults` or runtime props declaration

Applied to files:

  • src/components/ui/button/Button.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/ui/button/Button.vue
  • src/components/ui/button/Button.stories.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 : Use the Vue 3 Composition API instead of the Options API when writing Vue components (exception: when overriding or extending PrimeVue components for compatibility)

Applied to files:

  • src/components/ui/button/Button.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/ui/button/Button.vue
📚 Learning: 2025-11-24T19:47:02.860Z
Learnt from: CR
Repo: Comfy-Org/ComfyUI_frontend PR: 0
File: .github/copilot-instructions.md:0-0
Timestamp: 2025-11-24T19:47:02.860Z
Learning: Applies to src/**/*.vue : Use vue 3.5 style of default prop declaration

Applied to files:

  • src/components/ui/button/Button.vue
📚 Learning: 2025-12-09T20:22:23.620Z
Learnt from: CR
Repo: Comfy-Org/ComfyUI_frontend PR: 0
File: AGENTS.md:0-0
Timestamp: 2025-12-09T20:22:23.620Z
Learning: Applies to **/*.vue : Follow Vue 3 style guide and naming conventions

Applied to files:

  • src/components/ui/button/Button.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/queue/job/JobFiltersBar.vue
  • src/components/queue/QueueOverlayActive.vue
  • src/components/queue/dialogs/QueueClearHistoryDialog.vue
  • src/components/queue/job/QueueJobItem.vue
📚 Learning: 2025-12-09T03:50:03.127Z
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.

Applied to files:

  • src/components/ui/button/Button.stories.ts
📚 Learning: 2025-12-16T17:30:24.744Z
Learnt from: DrJKL
Repo: Comfy-Org/ComfyUI_frontend PR: 7559
File: .storybook/preview.ts:61-61
Timestamp: 2025-12-16T17:30:24.744Z
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.

Applied to files:

  • src/components/ui/button/Button.stories.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/components/ui/button/Button.stories.ts
  • src/components/ui/button/button.variants.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/components/ui/button/Button.stories.ts
  • src/components/ui/button/button.variants.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 : Prefer emit/event-name for state changes over other communication patterns

Applied to files:

  • src/platform/assets/components/UploadModelUpgradeModalFooter.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 defineExpose only for imperative operations (such as form.validate(), modal.open())

Applied to files:

  • src/components/queue/QueueOverlayActive.vue
🧬 Code graph analysis (1)
src/components/ui/button/Button.stories.ts (1)
src/components/ui/button/button.variants.ts (1)
  • FOR_STORIES (49-49)
⏰ 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). (10)
  • GitHub Check: playwright-tests-chromium-sharded (7, 8)
  • GitHub Check: playwright-tests-chromium-sharded (8, 8)
  • GitHub Check: playwright-tests-chromium-sharded (6, 8)
  • GitHub Check: playwright-tests-chromium-sharded (4, 8)
  • GitHub Check: playwright-tests-chromium-sharded (1, 8)
  • GitHub Check: playwright-tests-chromium-sharded (5, 8)
  • GitHub Check: playwright-tests-chromium-sharded (3, 8)
  • GitHub Check: playwright-tests-chromium-sharded (2, 8)
  • GitHub Check: playwright-tests (mobile-chrome)
  • GitHub Check: playwright-tests (chromium-0.5x)
🔇 Additional comments (8)
package.json (1)

164-164: LGTM! CVA dependency added correctly.

The catalog-based dependency addition for cva aligns with the new Button component's variant system.

src/components/ui/button/button.variants.ts (1)

1-49: LGTM! Well-structured variant definitions with good TypeScript practices.

The CVA configuration is clean and uses semantic tokens from the design system. The type safety with satisfies and the FOR_STORIES export for Storybook are excellent practices.

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

12-17: LGTM! Clean migration to the new Button component.

The migration correctly uses the variant prop and slot-based content rendering, aligning with the new Button API.

Also applies to: 22-22

src/components/queue/QueueOverlayActive.vue (1)

83-90: LGTM! Correct usage of the new Button component.

The Button correctly uses variant="secondary" and size="sm" props that match the variant definitions in button.variants.ts.

Also applies to: 100-100

src/components/sidebar/tabs/AssetsSidebarTab.vue (1)

115-128: LGTM! Clean migration with proper class merging.

The Button correctly uses variant="secondary" and size="lg", and the cn() helper properly merges conditional classes. All imports are correct.

Also applies to: 184-184, 195-195, 208-210

src/components/input/MultiSelect.vue (1)

162-166: LGTM! Appropriate use of PrimeVue Button for internal rendering.

Using PVButton (PrimeVue Button) for option label rendering is appropriate here, as it maintains compatibility with PrimeVue's internal slot requirements while the header action uses the new Button component.

Also applies to: 175-175, 182-182

src/components/queue/job/QueueJobItem.vue (1)

157-164: LGTM: Button migration is correct.

The migration from TextButton to Button is implemented correctly with proper variant, size props and slot-based label content using i18n.

src/components/dialog/content/MissingNodesFooter.vue (1)

21-23: LGTM: Button usage is correct.

This Button migration uses properly defined props (variant, size) with slot-based content.

@dosubot dosubot bot added size:L This PR changes 100-499 lines, ignoring generated files. and removed size:XL This PR changes 500-999 lines, ignoring generated files. labels Dec 16, 2025
@github-actions
Copy link

🔧 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

@socket-security
Copy link

socket-security bot commented Dec 16, 2025

All alerts resolved. Learn more about Socket for GitHub.

This PR previously contained dependency changes with security issues that have been resolved, removed, or ignored.

View full report

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 3

📜 Review details

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between a5f926e and 46242f2.

📒 Files selected for processing (1)
  • src/components/ui/button/Button.stories.ts (1 hunks)
🧰 Additional context used
📓 Path-based instructions (9)
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/ui/button/Button.stories.ts
src/**/*.ts

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

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

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

Files:

  • src/components/ui/button/Button.stories.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/components/ui/button/Button.stories.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/components/ui/button/Button.stories.ts
src/**/*.{vue,ts,tsx}

📄 CodeRabbit inference engine (src/CLAUDE.md)

Follow Vue 3 composition API style guide

Files:

  • src/components/ui/button/Button.stories.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/components/ui/button/Button.stories.ts
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/ui/button/Button.stories.ts
**/*.{ts,tsx,js,jsx,vue,json}

📄 CodeRabbit inference engine (AGENTS.md)

Code style: Use 2-space indentation, single quotes, no trailing semicolons, and 80-character line width (see .prettierrc)

Files:

  • src/components/ui/button/Button.stories.ts
**/*.{ts,tsx,vue}

📄 CodeRabbit inference engine (AGENTS.md)

**/*.{ts,tsx,vue}: Imports must be sorted and grouped by plugin; run pnpm format before committing
Use TypeScript for type safety; never use any type - use proper TypeScript types
Never use as any type assertions; fix the underlying type issue instead
Use es-toolkit for utility functions
Write code that is expressive and self-documenting; avoid comments unless absolutely necessary; do not add or retain redundant comments
Keep functions short and functional
Minimize nesting in code (e.g., deeply nested if or for statements); apply the Arrow Anti-Pattern principle
Avoid mutable state; prefer immutability and assignment at point of declaration
Favor pure functions, especially testable ones

Files:

  • src/components/ui/button/Button.stories.ts
🧠 Learnings (10)
📓 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: 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
Learnt from: DrJKL
Repo: Comfy-Org/ComfyUI_frontend PR: 7537
File: pnpm-workspace.yaml:50-50
Timestamp: 2025-12-16T22:21:59.236Z
Learning: In the Comfy-Org/ComfyUI_frontend repository, the project uses cva1.0.0-beta.4 (beta version) by deliberate choice. Do not suggest replacing it with class-variance-authority or flagging it as a beta dependency concern.
📚 Learning: 2025-12-09T21:40:19.792Z
Learnt from: benceruleanlu
Repo: Comfy-Org/ComfyUI_frontend PR: 7297
File: src/components/actionbar/ComfyActionbar.vue:33-43
Timestamp: 2025-12-09T21:40:19.792Z
Learning: In the Comfy-Org/ComfyUI_frontend repository, inline Tailwind CSS class strings, even when long, are acceptable and preferred over extracting them to computed properties when the classes are static. This is a common Tailwind pattern and doesn't need to be flagged as a readability issue.

Applied to files:

  • src/components/ui/button/Button.stories.ts
📚 Learning: 2025-12-16T17:30:24.744Z
Learnt from: DrJKL
Repo: Comfy-Org/ComfyUI_frontend PR: 7559
File: .storybook/preview.ts:61-61
Timestamp: 2025-12-16T17:30:24.744Z
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.

Applied to files:

  • src/components/ui/button/Button.stories.ts
📚 Learning: 2025-12-09T20:22:23.620Z
Learnt from: CR
Repo: Comfy-Org/ComfyUI_frontend PR: 0
File: AGENTS.md:0-0
Timestamp: 2025-12-09T20:22:23.620Z
Learning: Applies to **/*.vue : Use Tailwind 4 utility classes for styling; avoid using `<style>` blocks in Vue components

Applied to files:

  • src/components/ui/button/Button.stories.ts
📚 Learning: 2025-12-01T23:42:30.894Z
Learnt from: DrJKL
Repo: Comfy-Org/ComfyUI_frontend PR: 7084
File: src/renderer/extensions/vueNodes/components/SlotConnectionDot.vue:23-26
Timestamp: 2025-12-01T23:42:30.894Z
Learning: In the ComfyUI frontend codebase, Tailwind CSS is configured with Preflight enabled (default), which automatically provides `content: ''` for pseudo-elements when using `after:` or `before:` variants - no need to explicitly add `after:content-['']`.

Applied to files:

  • src/components/ui/button/Button.stories.ts
📚 Learning: 2025-12-09T03:50:03.127Z
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.

Applied to files:

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

Applied to files:

  • src/components/ui/button/Button.stories.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/components/ui/button/Button.stories.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/components/ui/button/Button.stories.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/components/ui/button/Button.stories.ts
🧬 Code graph analysis (1)
src/components/ui/button/Button.stories.ts (2)
src/components/ui/button/button.variants.ts (1)
  • FOR_STORIES (49-49)
src/components/input/SingleSelect.stories.ts (1)
  • Story (40-40)
⏰ 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). (1)
  • GitHub Check: Socket Security: Pull Request Alerts
🔇 Additional comments (2)
src/components/ui/button/Button.stories.ts (2)

1-4: LGTM: Imports are properly structured.

The imports follow TypeScript best practices with separate type imports and correct module paths.


38-43: LGTM: Standard Storybook story pattern.

The SingleButton story is correctly structured with appropriate args.

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 46242f2 and d29b5ab.

⛔ Files ignored due to path filters (1)
  • pnpm-lock.yaml is excluded by !**/pnpm-lock.yaml
📒 Files selected for processing (17)
  • package.json (1 hunks)
  • pnpm-workspace.yaml (1 hunks)
  • src/components/button/TextButton.stories.ts (0 hunks)
  • src/components/button/TextButton.vue (0 hunks)
  • src/components/dialog/confirm/ConfirmFooter.vue (1 hunks)
  • src/components/dialog/content/MissingNodesFooter.vue (2 hunks)
  • src/components/input/MultiSelect.vue (3 hunks)
  • src/components/queue/QueueOverlayActive.vue (2 hunks)
  • src/components/queue/dialogs/QueueClearHistoryDialog.vue (2 hunks)
  • src/components/queue/job/JobFiltersBar.vue (2 hunks)
  • src/components/queue/job/QueueJobItem.vue (2 hunks)
  • src/components/sidebar/tabs/AssetsSidebarTab.vue (3 hunks)
  • src/components/ui/button/Button.stories.ts (1 hunks)
  • src/components/ui/button/Button.vue (1 hunks)
  • src/components/ui/button/button.variants.ts (1 hunks)
  • src/platform/assets/components/UploadModelFooter.vue (3 hunks)
  • src/platform/assets/components/UploadModelUpgradeModalFooter.vue (1 hunks)
💤 Files with no reviewable changes (2)
  • src/components/button/TextButton.vue
  • src/components/button/TextButton.stories.ts
🧰 Additional context used
📓 Path-based instructions (13)
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/ui/button/Button.vue
  • src/components/input/MultiSelect.vue
  • src/components/dialog/content/MissingNodesFooter.vue
  • src/components/dialog/confirm/ConfirmFooter.vue
  • src/components/queue/dialogs/QueueClearHistoryDialog.vue
  • src/components/sidebar/tabs/AssetsSidebarTab.vue
  • src/components/queue/job/JobFiltersBar.vue
  • src/components/queue/QueueOverlayActive.vue
  • src/platform/assets/components/UploadModelFooter.vue
  • src/platform/assets/components/UploadModelUpgradeModalFooter.vue
  • src/components/queue/job/QueueJobItem.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/ui/button/Button.vue
  • src/components/input/MultiSelect.vue
  • src/components/ui/button/button.variants.ts
  • src/components/dialog/content/MissingNodesFooter.vue
  • src/components/ui/button/Button.stories.ts
  • src/components/dialog/confirm/ConfirmFooter.vue
  • src/components/queue/dialogs/QueueClearHistoryDialog.vue
  • src/components/sidebar/tabs/AssetsSidebarTab.vue
  • src/components/queue/job/JobFiltersBar.vue
  • src/components/queue/QueueOverlayActive.vue
  • src/platform/assets/components/UploadModelFooter.vue
  • src/platform/assets/components/UploadModelUpgradeModalFooter.vue
  • src/components/queue/job/QueueJobItem.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/ui/button/Button.vue
  • src/components/input/MultiSelect.vue
  • src/components/ui/button/button.variants.ts
  • src/components/dialog/content/MissingNodesFooter.vue
  • src/components/ui/button/Button.stories.ts
  • src/components/dialog/confirm/ConfirmFooter.vue
  • src/components/queue/dialogs/QueueClearHistoryDialog.vue
  • src/components/sidebar/tabs/AssetsSidebarTab.vue
  • src/components/queue/job/JobFiltersBar.vue
  • src/components/queue/QueueOverlayActive.vue
  • src/platform/assets/components/UploadModelFooter.vue
  • src/platform/assets/components/UploadModelUpgradeModalFooter.vue
  • src/components/queue/job/QueueJobItem.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/ui/button/Button.vue
  • src/components/input/MultiSelect.vue
  • src/components/ui/button/button.variants.ts
  • src/components/dialog/content/MissingNodesFooter.vue
  • src/components/ui/button/Button.stories.ts
  • src/components/dialog/confirm/ConfirmFooter.vue
  • src/components/queue/dialogs/QueueClearHistoryDialog.vue
  • src/components/sidebar/tabs/AssetsSidebarTab.vue
  • src/components/queue/job/JobFiltersBar.vue
  • src/components/queue/QueueOverlayActive.vue
  • src/platform/assets/components/UploadModelFooter.vue
  • src/platform/assets/components/UploadModelUpgradeModalFooter.vue
  • src/components/queue/job/QueueJobItem.vue
src/**/*.{vue,ts,tsx}

📄 CodeRabbit inference engine (src/CLAUDE.md)

Follow Vue 3 composition API style guide

Files:

  • src/components/ui/button/Button.vue
  • src/components/input/MultiSelect.vue
  • src/components/ui/button/button.variants.ts
  • src/components/dialog/content/MissingNodesFooter.vue
  • src/components/ui/button/Button.stories.ts
  • src/components/dialog/confirm/ConfirmFooter.vue
  • src/components/queue/dialogs/QueueClearHistoryDialog.vue
  • src/components/sidebar/tabs/AssetsSidebarTab.vue
  • src/components/queue/job/JobFiltersBar.vue
  • src/components/queue/QueueOverlayActive.vue
  • src/platform/assets/components/UploadModelFooter.vue
  • src/platform/assets/components/UploadModelUpgradeModalFooter.vue
  • src/components/queue/job/QueueJobItem.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/ui/button/Button.vue
  • src/components/input/MultiSelect.vue
  • src/components/ui/button/button.variants.ts
  • src/components/dialog/content/MissingNodesFooter.vue
  • src/components/ui/button/Button.stories.ts
  • src/components/dialog/confirm/ConfirmFooter.vue
  • src/components/queue/dialogs/QueueClearHistoryDialog.vue
  • src/components/sidebar/tabs/AssetsSidebarTab.vue
  • src/components/queue/job/JobFiltersBar.vue
  • src/components/queue/QueueOverlayActive.vue
  • src/platform/assets/components/UploadModelFooter.vue
  • src/platform/assets/components/UploadModelUpgradeModalFooter.vue
  • src/components/queue/job/QueueJobItem.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 component file names must use PascalCase; for example, MenuHamburger.vue

Files:

  • src/components/ui/button/Button.vue
  • src/components/input/MultiSelect.vue
  • src/components/dialog/content/MissingNodesFooter.vue
  • src/components/dialog/confirm/ConfirmFooter.vue
  • src/components/queue/dialogs/QueueClearHistoryDialog.vue
  • src/components/sidebar/tabs/AssetsSidebarTab.vue
  • src/components/queue/job/JobFiltersBar.vue
  • src/components/queue/QueueOverlayActive.vue
  • src/components/queue/job/QueueJobItem.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/ui/button/Button.vue
  • src/components/input/MultiSelect.vue
  • src/components/dialog/content/MissingNodesFooter.vue
  • src/components/dialog/confirm/ConfirmFooter.vue
  • src/components/queue/dialogs/QueueClearHistoryDialog.vue
  • src/components/sidebar/tabs/AssetsSidebarTab.vue
  • src/components/queue/job/JobFiltersBar.vue
  • src/components/queue/QueueOverlayActive.vue
  • src/components/queue/job/QueueJobItem.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/ui/button/Button.vue
  • src/components/input/MultiSelect.vue
  • src/components/ui/button/button.variants.ts
  • src/components/dialog/content/MissingNodesFooter.vue
  • src/components/ui/button/Button.stories.ts
  • src/components/dialog/confirm/ConfirmFooter.vue
  • src/components/queue/dialogs/QueueClearHistoryDialog.vue
  • src/components/sidebar/tabs/AssetsSidebarTab.vue
  • src/components/queue/job/JobFiltersBar.vue
  • src/components/queue/QueueOverlayActive.vue
  • src/components/queue/job/QueueJobItem.vue
**/*.vue

📄 CodeRabbit inference engine (AGENTS.md)

**/*.vue: Use Vue 3 SFCs (Single File Components) with Composition API only; do not use Options API
Vue components must use <script setup lang="ts"> for component logic
Use Vue 3.5 TypeScript style for default prop declaration with reactive props destructuring; do not use withDefaults or runtime props declaration
Prefer useModel to separately defining a prop and emit
Use Tailwind 4 utility classes for styling; avoid using <style> blocks in Vue components
Use semantic Tailwind values from style.css theme instead of the dark: variant; for example, use bg-node-component-surface instead of dark: prefixes
Always use cn() utility from @/utils/tailwindUtil to merge Tailwind class names; do not use :class="[]" syntax
Use ref for reactive state in Vue Composition API components
Implement computed properties with computed() from Vue; avoid using a ref with a watch if a computed would work instead
Use watch and watchEffect for side effects in Vue components
Implement lifecycle hooks using onMounted, onUpdated, and other Vue lifecycle functions
Use provide/inject for dependency injection; do not use dependency injection if a Store or shared composable would be simpler
Do not import Vue macros unnecessarily; only use when needed
Be judicious with addition of new refs or other state: prefer props, avoid redundant computed, and prefer computed over watch
Use VueUse functions for performance-enhancing styles
In Vue Components, implement proper props and emits definitions
Utilize Vue 3's Teleport component when needed
Use Suspense for async components
Implement proper error handling in Vue components
Follow Vue 3 style guide and naming conventions
Use vue-i18n in composition API for any string literals; place new translation entries in src/locales/en/main.json
Avoid new usage of PrimeVue components; prefer shadcn/vue or Reka UI instead

Files:

  • src/components/ui/button/Button.vue
  • src/components/input/MultiSelect.vue
  • src/components/dialog/content/MissingNodesFooter.vue
  • src/components/dialog/confirm/ConfirmFooter.vue
  • src/components/queue/dialogs/QueueClearHistoryDialog.vue
  • src/components/sidebar/tabs/AssetsSidebarTab.vue
  • src/components/queue/job/JobFiltersBar.vue
  • src/components/queue/QueueOverlayActive.vue
  • src/platform/assets/components/UploadModelFooter.vue
  • src/platform/assets/components/UploadModelUpgradeModalFooter.vue
  • src/components/queue/job/QueueJobItem.vue
**/*.{ts,tsx,js,jsx,vue,json}

📄 CodeRabbit inference engine (AGENTS.md)

Code style: Use 2-space indentation, single quotes, no trailing semicolons, and 80-character line width (see .prettierrc)

Files:

  • src/components/ui/button/Button.vue
  • src/components/input/MultiSelect.vue
  • src/components/ui/button/button.variants.ts
  • src/components/dialog/content/MissingNodesFooter.vue
  • src/components/ui/button/Button.stories.ts
  • package.json
  • src/components/dialog/confirm/ConfirmFooter.vue
  • src/components/queue/dialogs/QueueClearHistoryDialog.vue
  • src/components/sidebar/tabs/AssetsSidebarTab.vue
  • src/components/queue/job/JobFiltersBar.vue
  • src/components/queue/QueueOverlayActive.vue
  • src/platform/assets/components/UploadModelFooter.vue
  • src/platform/assets/components/UploadModelUpgradeModalFooter.vue
  • src/components/queue/job/QueueJobItem.vue
**/*.{ts,tsx,vue}

📄 CodeRabbit inference engine (AGENTS.md)

**/*.{ts,tsx,vue}: Imports must be sorted and grouped by plugin; run pnpm format before committing
Use TypeScript for type safety; never use any type - use proper TypeScript types
Never use as any type assertions; fix the underlying type issue instead
Use es-toolkit for utility functions
Write code that is expressive and self-documenting; avoid comments unless absolutely necessary; do not add or retain redundant comments
Keep functions short and functional
Minimize nesting in code (e.g., deeply nested if or for statements); apply the Arrow Anti-Pattern principle
Avoid mutable state; prefer immutability and assignment at point of declaration
Favor pure functions, especially testable ones

Files:

  • src/components/ui/button/Button.vue
  • src/components/input/MultiSelect.vue
  • src/components/ui/button/button.variants.ts
  • src/components/dialog/content/MissingNodesFooter.vue
  • src/components/ui/button/Button.stories.ts
  • src/components/dialog/confirm/ConfirmFooter.vue
  • src/components/queue/dialogs/QueueClearHistoryDialog.vue
  • src/components/sidebar/tabs/AssetsSidebarTab.vue
  • src/components/queue/job/JobFiltersBar.vue
  • src/components/queue/QueueOverlayActive.vue
  • src/platform/assets/components/UploadModelFooter.vue
  • src/platform/assets/components/UploadModelUpgradeModalFooter.vue
  • src/components/queue/job/QueueJobItem.vue
src/**/*.ts

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

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

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

Files:

  • src/components/ui/button/button.variants.ts
  • src/components/ui/button/Button.stories.ts
🧠 Learnings (66)
📓 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: 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
📚 Learning: 2025-12-16T22:21:59.236Z
Learnt from: DrJKL
Repo: Comfy-Org/ComfyUI_frontend PR: 7537
File: pnpm-workspace.yaml:50-50
Timestamp: 2025-12-16T22:21:59.236Z
Learning: In the Comfy-Org/ComfyUI_frontend repository, the project uses cva1.0.0-beta.4 (beta version) by deliberate choice. Do not suggest replacing it with class-variance-authority or flagging it as a beta dependency concern.

Applied to files:

  • pnpm-workspace.yaml
  • package.json
📚 Learning: 2025-12-09T03:50:03.127Z
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.

Applied to files:

  • pnpm-workspace.yaml
  • src/components/ui/button/Button.stories.ts
📚 Learning: 2025-12-09T20:22:23.620Z
Learnt from: CR
Repo: Comfy-Org/ComfyUI_frontend PR: 0
File: AGENTS.md:0-0
Timestamp: 2025-12-09T20:22:23.620Z
Learning: Applies to **/*.vue : Avoid new usage of PrimeVue components; prefer shadcn/vue or Reka UI instead

Applied to files:

  • pnpm-workspace.yaml
  • src/components/ui/button/Button.vue
  • src/components/input/MultiSelect.vue
  • src/components/queue/dialogs/QueueClearHistoryDialog.vue
  • src/components/sidebar/tabs/AssetsSidebarTab.vue
📚 Learning: 2025-12-11T12:25:24.164Z
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:24.164Z
Learning: The project has CI automation that handles code formatting (pnpm format) automatically, so manual formatting suggestions should not be provided in code reviews for the Comfy-Org/ComfyUI_frontend repository.

Applied to files:

  • pnpm-workspace.yaml
📚 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:

  • pnpm-workspace.yaml
📚 Learning: 2025-11-24T19:47:02.860Z
Learnt from: CR
Repo: Comfy-Org/ComfyUI_frontend PR: 0
File: .github/copilot-instructions.md:0-0
Timestamp: 2025-11-24T19:47:02.860Z
Learning: Applies to src/**/*.vue : Use the Vue 3 Composition API instead of the Options API when writing Vue components (exception: when overriding or extending PrimeVue components for compatibility)

Applied to files:

  • pnpm-workspace.yaml
  • src/components/ui/button/Button.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:

  • pnpm-workspace.yaml
  • src/components/ui/button/Button.vue
  • src/components/ui/button/Button.stories.ts
📚 Learning: 2025-12-16T17:30:24.744Z
Learnt from: DrJKL
Repo: Comfy-Org/ComfyUI_frontend PR: 7559
File: .storybook/preview.ts:61-61
Timestamp: 2025-12-16T17:30:24.744Z
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.

Applied to files:

  • pnpm-workspace.yaml
  • src/components/ui/button/button.variants.ts
  • src/components/ui/button/Button.stories.ts
  • src/components/dialog/confirm/ConfirmFooter.vue
  • src/components/queue/dialogs/QueueClearHistoryDialog.vue
📚 Learning: 2025-12-09T20:22:23.620Z
Learnt from: CR
Repo: Comfy-Org/ComfyUI_frontend PR: 0
File: AGENTS.md:0-0
Timestamp: 2025-12-09T20:22:23.620Z
Learning: Applies to **/*.vue : Be judicious with addition of new refs or other state: prefer props, avoid redundant `computed`, and prefer `computed` over `watch`

Applied to files:

  • pnpm-workspace.yaml
  • src/components/ui/button/Button.vue
  • src/platform/assets/components/UploadModelFooter.vue
📚 Learning: 2025-12-09T21:40:19.792Z
Learnt from: benceruleanlu
Repo: Comfy-Org/ComfyUI_frontend PR: 7297
File: src/components/actionbar/ComfyActionbar.vue:33-43
Timestamp: 2025-12-09T21:40:19.792Z
Learning: In the Comfy-Org/ComfyUI_frontend repository, inline Tailwind CSS class strings, even when long, are acceptable and preferred over extracting them to computed properties when the classes are static. This is a common Tailwind pattern and doesn't need to be flagged as a readability issue.

Applied to files:

  • pnpm-workspace.yaml
  • src/components/ui/button/Button.stories.ts
📚 Learning: 2025-12-09T20:22:23.620Z
Learnt from: CR
Repo: Comfy-Org/ComfyUI_frontend PR: 0
File: AGENTS.md:0-0
Timestamp: 2025-12-09T20:22:23.620Z
Learning: Applies to **/*.vue : Use Vue 3.5 TypeScript style for default prop declaration with reactive props destructuring; do not use `withDefaults` or runtime props declaration

Applied to files:

  • src/components/ui/button/Button.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/ui/button/Button.vue
  • src/components/input/MultiSelect.vue
  • src/components/dialog/content/MissingNodesFooter.vue
  • src/components/dialog/confirm/ConfirmFooter.vue
  • src/components/queue/dialogs/QueueClearHistoryDialog.vue
  • src/components/sidebar/tabs/AssetsSidebarTab.vue
  • src/components/queue/job/JobFiltersBar.vue
  • src/components/queue/QueueOverlayActive.vue
  • src/platform/assets/components/UploadModelFooter.vue
  • src/platform/assets/components/UploadModelUpgradeModalFooter.vue
  • src/components/queue/job/QueueJobItem.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/ui/button/Button.vue
  • src/components/input/MultiSelect.vue
  • src/components/dialog/content/MissingNodesFooter.vue
  • src/components/dialog/confirm/ConfirmFooter.vue
  • src/components/queue/dialogs/QueueClearHistoryDialog.vue
  • src/components/sidebar/tabs/AssetsSidebarTab.vue
  • src/components/queue/job/JobFiltersBar.vue
  • src/components/queue/QueueOverlayActive.vue
  • src/platform/assets/components/UploadModelFooter.vue
  • src/platform/assets/components/UploadModelUpgradeModalFooter.vue
  • src/components/queue/job/QueueJobItem.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/ui/button/Button.vue
  • src/components/input/MultiSelect.vue
  • src/components/dialog/content/MissingNodesFooter.vue
  • src/components/dialog/confirm/ConfirmFooter.vue
  • src/components/queue/dialogs/QueueClearHistoryDialog.vue
  • src/components/sidebar/tabs/AssetsSidebarTab.vue
  • src/components/queue/job/JobFiltersBar.vue
  • src/components/queue/QueueOverlayActive.vue
  • src/platform/assets/components/UploadModelFooter.vue
  • src/platform/assets/components/UploadModelUpgradeModalFooter.vue
  • src/components/queue/job/QueueJobItem.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/ui/button/Button.vue
📚 Learning: 2025-12-09T20:22:23.620Z
Learnt from: CR
Repo: Comfy-Org/ComfyUI_frontend PR: 0
File: AGENTS.md:0-0
Timestamp: 2025-12-09T20:22:23.620Z
Learning: Applies to **/*.vue : Vue components must use `<script setup lang="ts">` for component logic

Applied to files:

  • src/components/ui/button/Button.vue
  • src/components/input/MultiSelect.vue
📚 Learning: 2025-12-09T20:22:23.620Z
Learnt from: CR
Repo: Comfy-Org/ComfyUI_frontend PR: 0
File: AGENTS.md:0-0
Timestamp: 2025-12-09T20:22:23.620Z
Learning: Applies to **/*.vue : Follow Vue 3 style guide and naming conventions

Applied to files:

  • src/components/ui/button/Button.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 : Destructure props using Vue 3.5 style in Vue components

Applied to files:

  • src/components/ui/button/Button.vue
📚 Learning: 2025-12-04T21:43:49.363Z
Learnt from: DrJKL
Repo: Comfy-Org/ComfyUI_frontend PR: 7137
File: src/components/rightSidePanel/parameters/TabParameters.vue:10-0
Timestamp: 2025-12-04T21:43:49.363Z
Learning: Vue 3.5+ supports reactive props destructure in <script setup>. Destructuring props directly (e.g., `const { nodes } = defineProps<{ nodes: LGraphNode[] }>()`) maintains reactivity through compiler transformation. This is the recommended modern approach and does not require using `props.x` or `toRef`/`toRefs`.

Applied to files:

  • src/components/ui/button/Button.vue
📚 Learning: 2025-11-24T19:47:02.860Z
Learnt from: CR
Repo: Comfy-Org/ComfyUI_frontend PR: 0
File: .github/copilot-instructions.md:0-0
Timestamp: 2025-11-24T19:47:02.860Z
Learning: Applies to src/**/*.vue : Use vue 3.5 style of default prop declaration

Applied to files:

  • src/components/ui/button/Button.vue
📚 Learning: 2025-12-09T20:22:23.620Z
Learnt from: CR
Repo: Comfy-Org/ComfyUI_frontend PR: 0
File: AGENTS.md:0-0
Timestamp: 2025-12-09T20:22:23.620Z
Learning: Applies to **/*.vue : In Vue Components, implement proper props and emits definitions

Applied to files:

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

Applied to files:

  • src/components/ui/button/Button.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/ui/button/Button.vue
  • src/platform/assets/components/UploadModelUpgradeModalFooter.vue
📚 Learning: 2025-12-09T20:22:23.620Z
Learnt from: CR
Repo: Comfy-Org/ComfyUI_frontend PR: 0
File: AGENTS.md:0-0
Timestamp: 2025-12-09T20:22:23.620Z
Learning: Applies to **/*.vue : Prefer `useModel` to separately defining a prop and emit

Applied to files:

  • src/components/ui/button/Button.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 setup() function in Vue 3 Composition API

Applied to files:

  • src/components/ui/button/Button.vue
📚 Learning: 2025-11-24T19:47:45.616Z
Learnt from: CR
Repo: Comfy-Org/ComfyUI_frontend PR: 0
File: src/components/CLAUDE.md:0-0
Timestamp: 2025-11-24T19:47:45.616Z
Learning: Applies to src/components/**/*.vue : Prefer emit/event-name for state changes over other communication patterns

Applied to files:

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

Applied to files:

  • src/components/ui/button/Button.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 defineExpose only for imperative operations (such as form.validate(), modal.open())

Applied to files:

  • src/components/ui/button/Button.vue
  • src/components/queue/QueueOverlayActive.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/ui/button/Button.vue
  • src/components/input/MultiSelect.vue
  • src/components/dialog/content/MissingNodesFooter.vue
  • src/components/dialog/confirm/ConfirmFooter.vue
  • src/components/queue/dialogs/QueueClearHistoryDialog.vue
  • src/components/sidebar/tabs/AssetsSidebarTab.vue
  • src/components/queue/job/JobFiltersBar.vue
  • src/components/queue/QueueOverlayActive.vue
  • src/platform/assets/components/UploadModelFooter.vue
  • src/platform/assets/components/UploadModelUpgradeModalFooter.vue
  • src/components/queue/job/QueueJobItem.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/ui/button/Button.vue
  • src/components/input/MultiSelect.vue
  • src/components/ui/button/button.variants.ts
  • src/components/dialog/content/MissingNodesFooter.vue
  • src/components/ui/button/Button.stories.ts
  • src/components/dialog/confirm/ConfirmFooter.vue
  • src/components/queue/dialogs/QueueClearHistoryDialog.vue
  • src/components/sidebar/tabs/AssetsSidebarTab.vue
  • src/components/queue/job/JobFiltersBar.vue
  • src/components/queue/QueueOverlayActive.vue
  • src/platform/assets/components/UploadModelFooter.vue
  • src/platform/assets/components/UploadModelUpgradeModalFooter.vue
  • src/components/queue/job/QueueJobItem.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/input/MultiSelect.vue
  • src/components/dialog/confirm/ConfirmFooter.vue
  • src/components/queue/dialogs/QueueClearHistoryDialog.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/input/MultiSelect.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/input/MultiSelect.vue
  • src/components/dialog/content/MissingNodesFooter.vue
  • src/components/dialog/confirm/ConfirmFooter.vue
  • src/components/queue/dialogs/QueueClearHistoryDialog.vue
  • src/components/sidebar/tabs/AssetsSidebarTab.vue
  • src/components/queue/job/JobFiltersBar.vue
  • src/components/queue/QueueOverlayActive.vue
  • src/platform/assets/components/UploadModelFooter.vue
  • src/platform/assets/components/UploadModelUpgradeModalFooter.vue
  • src/components/queue/job/QueueJobItem.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/input/MultiSelect.vue
  • src/components/dialog/content/MissingNodesFooter.vue
  • src/components/dialog/confirm/ConfirmFooter.vue
  • src/components/queue/dialogs/QueueClearHistoryDialog.vue
  • src/components/sidebar/tabs/AssetsSidebarTab.vue
  • src/components/queue/job/JobFiltersBar.vue
  • src/components/queue/QueueOverlayActive.vue
  • src/platform/assets/components/UploadModelFooter.vue
  • src/components/queue/job/QueueJobItem.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/input/MultiSelect.vue
  • src/components/dialog/content/MissingNodesFooter.vue
  • src/components/dialog/confirm/ConfirmFooter.vue
  • src/components/queue/dialogs/QueueClearHistoryDialog.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/input/MultiSelect.vue
  • src/components/dialog/content/MissingNodesFooter.vue
  • src/components/dialog/confirm/ConfirmFooter.vue
  • src/components/queue/dialogs/QueueClearHistoryDialog.vue
  • src/components/sidebar/tabs/AssetsSidebarTab.vue
  • src/components/queue/QueueOverlayActive.vue
  • src/platform/assets/components/UploadModelFooter.vue
  • src/platform/assets/components/UploadModelUpgradeModalFooter.vue
  • src/components/queue/job/QueueJobItem.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/components/input/MultiSelect.vue
  • src/components/dialog/confirm/ConfirmFooter.vue
  • src/components/queue/dialogs/QueueClearHistoryDialog.vue
  • src/components/sidebar/tabs/AssetsSidebarTab.vue
  • src/platform/assets/components/UploadModelFooter.vue
  • src/components/queue/job/QueueJobItem.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/input/MultiSelect.vue
  • src/components/queue/dialogs/QueueClearHistoryDialog.vue
  • src/components/queue/QueueOverlayActive.vue
  • src/components/queue/job/QueueJobItem.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/input/MultiSelect.vue
  • src/components/dialog/content/MissingNodesFooter.vue
  • src/components/queue/dialogs/QueueClearHistoryDialog.vue
  • src/components/sidebar/tabs/AssetsSidebarTab.vue
  • src/components/queue/QueueOverlayActive.vue
  • src/components/queue/job/QueueJobItem.vue
📚 Learning: 2025-12-09T20:22:23.620Z
Learnt from: CR
Repo: Comfy-Org/ComfyUI_frontend PR: 0
File: AGENTS.md:0-0
Timestamp: 2025-12-09T20:22:23.620Z
Learning: Applies to **/*.vue : Use VueUse functions for performance-enhancing styles

Applied to files:

  • src/components/input/MultiSelect.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 (like `variant` and `size` in this example) remain accessible by name in the template scope. It's valid to destructure only some props for convenience while accessing others directly in expressions.

Applied to files:

  • src/components/ui/button/button.variants.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/components/ui/button/button.variants.ts
  • src/components/ui/button/Button.stories.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/components/ui/button/button.variants.ts
  • src/components/ui/button/Button.stories.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/components/ui/button/button.variants.ts
  • src/components/ui/button/Button.stories.ts
📚 Learning: 2025-11-24T19:47:34.324Z
Learnt from: CR
Repo: Comfy-Org/ComfyUI_frontend PR: 0
File: src/CLAUDE.md:0-0
Timestamp: 2025-11-24T19:47:34.324Z
Learning: Applies to src/**/{components,composables}/**/*.{ts,tsx,vue} : Use vue-i18n for ALL user-facing strings by adding them to `src/locales/en/main.json`

Applied to files:

  • src/components/dialog/content/MissingNodesFooter.vue
  • src/components/queue/dialogs/QueueClearHistoryDialog.vue
  • src/components/sidebar/tabs/AssetsSidebarTab.vue
  • src/components/queue/QueueOverlayActive.vue
  • src/components/queue/job/QueueJobItem.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/dialog/content/MissingNodesFooter.vue
  • src/components/queue/dialogs/QueueClearHistoryDialog.vue
  • src/components/queue/QueueOverlayActive.vue
  • src/components/queue/job/QueueJobItem.vue
📚 Learning: 2025-12-09T20:22:23.620Z
Learnt from: CR
Repo: Comfy-Org/ComfyUI_frontend PR: 0
File: AGENTS.md:0-0
Timestamp: 2025-12-09T20:22:23.620Z
Learning: Applies to **/*.vue : 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/dialog/content/MissingNodesFooter.vue
  • src/components/queue/dialogs/QueueClearHistoryDialog.vue
  • src/components/queue/QueueOverlayActive.vue
  • src/components/queue/job/QueueJobItem.vue
📚 Learning: 2025-12-09T20:22:23.620Z
Learnt from: CR
Repo: Comfy-Org/ComfyUI_frontend PR: 0
File: AGENTS.md:0-0
Timestamp: 2025-12-09T20:22:23.620Z
Learning: Applies to **/*.vue : Use Tailwind 4 utility classes for styling; avoid using `<style>` blocks in Vue components

Applied to files:

  • src/components/ui/button/Button.stories.ts
📚 Learning: 2025-12-01T23:42:30.894Z
Learnt from: DrJKL
Repo: Comfy-Org/ComfyUI_frontend PR: 7084
File: src/renderer/extensions/vueNodes/components/SlotConnectionDot.vue:23-26
Timestamp: 2025-12-01T23:42:30.894Z
Learning: In the ComfyUI frontend codebase, Tailwind CSS is configured with Preflight enabled (default), which automatically provides `content: ''` for pseudo-elements when using `after:` or `before:` variants - no need to explicitly add `after:content-['']`.

Applied to files:

  • src/components/ui/button/Button.stories.ts
📚 Learning: 2025-12-09T20:22:23.620Z
Learnt from: CR
Repo: Comfy-Org/ComfyUI_frontend PR: 0
File: AGENTS.md:0-0
Timestamp: 2025-12-09T20:22:23.620Z
Learning: Applies to **/*.{ts,tsx,vue} : Minimize nesting in code (e.g., deeply nested `if` or `for` statements); apply the Arrow Anti-Pattern principle

Applied to files:

  • src/components/ui/button/Button.stories.ts
📚 Learning: 2025-12-09T20:22:23.620Z
Learnt from: CR
Repo: Comfy-Org/ComfyUI_frontend PR: 0
File: AGENTS.md:0-0
Timestamp: 2025-12-09T20:22:23.620Z
Learning: Applies to **/*.{ts,tsx,vue} : Keep functions short and functional

Applied to files:

  • src/components/ui/button/Button.stories.ts
📚 Learning: 2025-12-09T20:22:23.620Z
Learnt from: CR
Repo: Comfy-Org/ComfyUI_frontend PR: 0
File: AGENTS.md:0-0
Timestamp: 2025-12-09T20:22:23.620Z
Learning: Applies to **/*.{ts,tsx,vue} : Favor pure functions, especially testable ones

Applied to files:

  • src/components/ui/button/Button.stories.ts
📚 Learning: 2025-12-09T20:22:23.620Z
Learnt from: CR
Repo: Comfy-Org/ComfyUI_frontend PR: 0
File: AGENTS.md:0-0
Timestamp: 2025-12-09T20:22:23.620Z
Learning: Applies to **/*.{ts,tsx,vue} : Avoid mutable state; prefer immutability and assignment at point of declaration

Applied to files:

  • src/components/ui/button/Button.stories.ts
📚 Learning: 2025-12-09T20:22:23.620Z
Learnt from: CR
Repo: Comfy-Org/ComfyUI_frontend PR: 0
File: AGENTS.md:0-0
Timestamp: 2025-12-09T20:22:23.620Z
Learning: Applies to **/*.vue : Always use `cn()` utility from `@/utils/tailwindUtil` to merge Tailwind class names; do not use `:class="[]"` syntax

Applied to files:

  • src/components/ui/button/Button.stories.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 : Use Tailwind CSS for styling

Applied to files:

  • src/components/ui/button/Button.stories.ts
📚 Learning: 2025-12-09T20:22:23.620Z
Learnt from: CR
Repo: Comfy-Org/ComfyUI_frontend PR: 0
File: AGENTS.md:0-0
Timestamp: 2025-12-09T20:22:23.620Z
Learning: Applies to **/*.vue : Use semantic Tailwind values from `style.css` theme instead of the `dark:` variant; for example, use `bg-node-component-surface` instead of `dark:` prefixes

Applied to files:

  • src/components/ui/button/Button.stories.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/dialog/confirm/ConfirmFooter.vue
  • src/components/sidebar/tabs/AssetsSidebarTab.vue
  • src/components/queue/QueueOverlayActive.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/queue/dialogs/QueueClearHistoryDialog.vue
  • src/components/queue/job/JobFiltersBar.vue
  • src/components/queue/QueueOverlayActive.vue
  • src/components/queue/job/QueueJobItem.vue
📚 Learning: 2025-12-04T21:47:07.812Z
Learnt from: DrJKL
Repo: Comfy-Org/ComfyUI_frontend PR: 7137
File: src/components/LiteGraphCanvasSplitterOverlay.vue:43-43
Timestamp: 2025-12-04T21:47:07.812Z
Learning: In Vue SFCs with a build step (pre-compilation), kebab-case attribute names in templates are automatically converted to camelCase, so `:sidebar-panel-visible` as a shorthand binding correctly resolves to a variable named `sidebarPanelVisible`. The `.camel` modifier is only needed when using in-DOM templates without a build step.

Applied to files:

  • src/components/sidebar/tabs/AssetsSidebarTab.vue
📚 Learning: 2025-12-09T20:22:23.620Z
Learnt from: CR
Repo: Comfy-Org/ComfyUI_frontend PR: 0
File: AGENTS.md:0-0
Timestamp: 2025-12-09T20:22:23.620Z
Learning: Applies to **/*.vue : Use `ref` for reactive state in Vue Composition API components

Applied to files:

  • src/platform/assets/components/UploadModelFooter.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/platform/assets/components/UploadModelFooter.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/platform/assets/components/UploadModelFooter.vue
📚 Learning: 2025-12-09T20:22:23.620Z
Learnt from: CR
Repo: Comfy-Org/ComfyUI_frontend PR: 0
File: AGENTS.md:0-0
Timestamp: 2025-12-09T20:22:23.620Z
Learning: Applies to **/*.vue : Implement computed properties with `computed()` from Vue; avoid using a `ref` with a `watch` if a `computed` would work instead

Applied to files:

  • src/platform/assets/components/UploadModelFooter.vue
📚 Learning: 2025-12-09T20:22:23.620Z
Learnt from: CR
Repo: Comfy-Org/ComfyUI_frontend PR: 0
File: AGENTS.md:0-0
Timestamp: 2025-12-09T20:22:23.620Z
Learning: Applies to **/*.test.ts : For Component testing, use Vue Test Utils and follow advice about making components easy to test

Applied to files:

  • src/platform/assets/components/UploadModelFooter.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/platform/assets/components/UploadModelFooter.vue
🧬 Code graph analysis (1)
src/components/ui/button/Button.stories.ts (2)
src/components/ui/button/button.variants.ts (1)
  • FOR_STORIES (49-49)
src/components/input/SingleSelect.stories.ts (1)
  • Story (40-40)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (5)
  • GitHub Check: deploy-and-comment
  • GitHub Check: test
  • GitHub Check: lint-and-format
  • GitHub Check: setup
  • GitHub Check: collect
🔇 Additional comments (13)
src/components/sidebar/tabs/AssetsSidebarTab.vue (1)

115-128: LGTM! Clean migration to Button component.

The Button replacement correctly uses variant/size props, moves label content to the slot with proper i18n integration, and applies conditional styling via cn(). The implementation follows the project's migration pattern consistently.

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

12-17: LGTM! Button migration properly implemented.

Both buttons correctly use the new Button API with appropriate variants (textonly/secondary), proper event emission, and i18n labels in slots. The implementation is clean and consistent with the migration pattern.

src/components/ui/button/Button.vue (1)

1-28: LGTM! Well-designed Button component.

The implementation is clean and follows all coding guidelines:

  • Uses reka-ui Primitive (avoiding PrimeVue as per guidelines)
  • Proper TypeScript types with extends PrimitiveProps
  • Correct Vue 3.5 props destructuring pattern (partial destructuring valid per learning)
  • Integrates buttonVariants for consistent styling
  • Simple, focused component with slot-based content
src/components/queue/job/QueueJobItem.vue (1)

157-164: LGTM! Button migration correctly implemented.

The View button properly uses the textonly variant with sm size, maintains custom styling, and correctly emits the 'view' event. The i18n label is properly placed in the slot. Implementation is consistent with the migration pattern.

src/components/input/MultiSelect.vue (1)

115-122: LGTM! Clear button migration is correct.

The clear action properly uses the new Button component with textonly variant and md size. The i18n label is correctly placed in the slot, and the click handler is preserved. Implementation follows the migration pattern.

src/components/queue/dialogs/QueueClearHistoryDialog.vue (1)

34-44: LGTM! Dialog buttons correctly migrated.

Both buttons properly implement the new Button API:

  • Cancel uses muted-textonly variant (confirmed valid in past review)
  • Clear uses secondary variant with proper disabled state binding
  • Event handlers correctly maintained
  • i18n labels properly placed in slots

The implementation is clean and consistent with the migration pattern.

src/components/dialog/confirm/ConfirmFooter.vue (1)

3-13: LGTM! Button migration correctly implemented.

Both cancel and confirm buttons now use the correct variant="textonly" prop, with labels properly rendered as slot content. The disabled state and event emissions are preserved correctly.

src/components/queue/QueueOverlayActive.vue (1)

83-90: LGTM! Button migration correctly implemented.

The "View All Jobs" button correctly uses variant="secondary" and size="sm", with the label properly rendered as slot content using vue-i18n.

src/components/ui/button/Button.stories.ts (1)

1-68: LGTM! Storybook configuration is well-structured.

The story configuration correctly:

  • Defines argTypes with proper controls for variant and size
  • Uses a pure function declaration for generateVariants()
  • Renders all variant/size combinations in a static grid layout
  • Leverages FOR_STORIES from the variants module for type safety
src/components/ui/button/button.variants.ts (1)

4-49: LGTM! Variant configuration is well-designed.

The CVA-based button variants correctly:

  • Define comprehensive base styles with focus-visible, disabled, and SVG styling
  • Provide six semantic variants (secondary, primary, inverted, destructive, textonly, muted-textonly) using theme tokens
  • Define four size options (sm, md, lg, icon) with appropriate dimensions
  • Export type-safe arrays for Storybook consumption via FOR_STORIES
  • Use satisfies operator for compile-time type checking
src/platform/assets/components/UploadModelFooter.vue (1)

16-25: LGTM! Button migrations correctly implemented.

All three buttons (cancel, back, finish) now use the correct Button component with:

  • Proper variant props (muted-textonly for cancel/back, secondary for finish)
  • Appropriate size props where specified
  • Labels correctly rendered as slot content with vue-i18n
  • Disabled states and event emissions preserved

Also applies to: 26-35, 70-77

src/components/queue/job/JobFiltersBar.vue (1)

5-14: LGTM! Button migration correctly implemented with dynamic variant.

The job filter tabs correctly:

  • Use conditional variant prop (secondary when selected, muted-textonly otherwise)
  • Apply consistent size="sm" and class="px-3"
  • Render tab labels as slot content with proper i18n via tabLabel(tab)
  • Emit update events on click
src/components/dialog/content/MissingNodesFooter.vue (1)

21-23: LGTM! Button migrations correctly implemented.

Both buttons (Cloud "Got It" and OSS "Open Manager") now use the correct Button component with:

  • Proper variant props (secondary for Cloud mode, textonly for OSS mode)
  • Appropriate size props (md and sm respectively)
  • Labels correctly rendered as slot content with vue-i18n

Also applies to: 28-30

@DrJKL DrJKL force-pushed the drjkl/button-button branch from d29b5ab to e88c84d Compare December 17, 2025 01:00
Copy link
Contributor

@christian-byrne christian-byrne left a comment

Choose a reason for hiding this comment

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

There is definitely going to be some things diverging very slightly from designs, but for the better in the long run mostly likely + a lot of these things were implemented a long time ago.

import { useFuse } from '@vueuse/integrations/useFuse'
import type { UseFuseOptions } from '@vueuse/integrations/useFuse'
import Button from 'primevue/button'
import PVButton from 'primevue/button'
Copy link
Contributor

Choose a reason for hiding this comment

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

Ever better to use as so the alias is explicit?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Gave it another look, I think it was just being used to get a pointer cursor. If you check the new behavior of MultiSelect in Storybook we shouldn't need the primevue/button anymore.

@dosubot dosubot bot added size:XL This PR changes 500-999 lines, ignoring generated files. and removed size:L This PR changes 100-499 lines, ignoring generated files. labels Dec 17, 2025
@DrJKL DrJKL merged commit 8d7dd9e into main Dec 17, 2025
34 checks passed
@DrJKL DrJKL deleted the drjkl/button-button branch December 17, 2025 04:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Design Used to request Product feedback on design decisions size:XL This PR changes 500-999 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants